svnno****@sourc*****
svnno****@sourc*****
2010年 6月 20日 (日) 22:29:12 JST
Revision: 1906 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1906 Author: dhrname Date: 2010-06-20 22:29:12 +0900 (Sun, 20 Jun 2010) Log Message: ----------- closepathコマンドに関するう修正をした 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-19 15:04:12 UTC (rev 1905) +++ branches/06x/061/org/w3c/dom/svg.js 2010-06-20 13:29:12 UTC (rev 1906) @@ -2137,6 +2137,11 @@ tnl.appendItem(ti); } else if (dii === "c") { tnl.appendItem(tar.createSVGPathSegCurvetoCubicAbs(cx, cy, ti.x1+rx, ti.y1+ry, ti.x2+rx, ti.y2+ry)); + } else if (dii === "Z" || dii === "z") { + var tg = tlist.getItem(j+1); + if (tg.pathSegTypeAsLetter !== "M" && tg.pathSegTypeAsLetter !== "m") { + cx = cy = 0; + } } else if (dii === "Q") { //2次スプライン曲線は近似的な3次ベジェ曲線に変換している tnl.appendItem(tar.createSVGPathSegCurvetoCubicAbs(cx, cy, (rx + 2*ti.x1) / 3, (ry + 2*ti.y1) / 3, (2*ti.x1 + cx) / 3, (2*ti.y1 + cy) / 3));