svnno****@sourc*****
svnno****@sourc*****
2011年 6月 21日 (火) 21:43:17 JST
Revision: 2783 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2783 Author: dhrname Date: 2011-06-21 21:43:17 +0900 (Tue, 21 Jun 2011) Log Message: ----------- SVGAnimateMotionElementの変数stの位置がおかしかったので修正 Modified Paths: -------------- branches/08x/080/org/w3c/dom/svg.js Modified: branches/08x/080/org/w3c/dom/svg.js =================================================================== --- branches/08x/080/org/w3c/dom/svg.js 2011-06-21 12:38:11 UTC (rev 2782) +++ branches/08x/080/org/w3c/dom/svg.js 2011-06-21 12:43:17 UTC (rev 2783) @@ -5518,9 +5518,9 @@ for (var i=1;i<ii;i+=2) { st += Math.sqrt(Math.pow(tav[i][1] - tav[i-1][1], 2) + Math.pow(tav[i][0] - tav[i-1][0], 2)); } - var st = (st / total) * d, - p = tar.ownerDocument.documentElement.createSVGPoint(), + var p = tar.ownerDocument.documentElement.createSVGPoint(), trans = _tar.targetElement.transform; + st = (st / total) * d; p.x = tav[ii][0] + (tav[ii+1][0] - tav[ii][0]) * (tg - st) / d; p.y = tav[ii][1] + (tav[ii+1][1] - tav[ii][1]) * (tg - st) / d; p = p.matrixTransform(_tar.targetElement.getScreenCTM());