svnno****@sourc*****
svnno****@sourc*****
2010年 6月 22日 (火) 22:29:37 JST
Revision: 1910 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1910 Author: dhrname Date: 2010-06-22 22:29:37 +0900 (Tue, 22 Jun 2010) Log Message: ----------- 複数のtコマンドに対応 Modified Paths: -------------- branches/06x/061/org/w3c/dom/svg.js Modified: branches/06x/061/org/w3c/dom/svg.js =================================================================== --- branches/06x/061/org/w3c/dom/svg.js 2010-06-21 14:21:30 UTC (rev 1909) +++ branches/06x/061/org/w3c/dom/svg.js 2010-06-22 13:29:37 UTC (rev 1910) @@ -2233,8 +2233,10 @@ } else if (dii === "T" || dii === "t") { if (j !== 0) { var tg = tlist.getItem(j-1); - if (tg.pathSegTypeAsLetter === "Q" || tg.pathSegTypeAsLetter === "q") { + if ("QqTt".indexOf(tg.pathSegTypeAsLetter) > -1) { tnl.appendItem(tar.createSVGPathSegCurvetoCubicAbs(cx, cy, (rx + 2*xn) / 3, (ry + 2*yn) / 3, (2*xn + cx) / 3, (2*yn + cy) / 3)); + xn = 2*cx - xn; + yn = 2*cy - yn; } } } else if (dii === "H" || dii === "h") {