svnno****@sourc*****
svnno****@sourc*****
2009年 4月 14日 (火) 23:54:47 JST
Revision: 1122 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1122 Author: dhrname Date: 2009-04-14 23:54:47 +0900 (Tue, 14 Apr 2009) Log Message: ----------- setAttributeに変更 Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-08 13:11:38 UTC (rev 1121) +++ branches/04x/046/sie.js 2009-04-14 14:54:47 UTC (rev 1122) @@ -1018,10 +1018,10 @@ this.w = w; this.h = h; //radialGradientで必要 isRadial = this.gradient(fillElement, RegExp.$1, matrix); } else { - fillElement.color = this.color(this.fill); + fillElement.setAttribute("color", "black");//this.color(this.fill); var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる if (fillOpacity < 1) { - fillElement.opacity = fillOpacity; + fillElement.setAttribute("opacity", fillOpacity); } } } catch(e) {stlog.add(e,682); fillElement.on = "true"; @@ -1038,25 +1038,25 @@ try { var sw = new STLength(this.strokewidth, Math.sqrt((w*w + h*h) / 2)); var swx = sw.value * Math.sqrt(Math.abs(matrix.determinant())); - strokeElement.weight = swx + "px"; + strokeElement.setAttribute("weight", swx + "px"); if (this.stroke.match(/url\(#([^)]+)/)) { this.gradient(strokeElement, RegExp.$1); } else { - strokeElement.color = this.color(this.stroke); + strokeElement.setAttribute("color", this.color(this.stroke)); var strokeOpacity = this.strokeopacity * this.opacity; //opacityを掛け合わせる if (swx < 1) { strokeOpacity *= swx; //太さが1px未満なら色を薄くする } if (strokeOpacity < 1) { - strokeElement.opacity = strokeOpacity; + strokeElement.setAttribute("opacity", strokeOpacity); } } - strokeElement.miterlimit = this.strokemiterlimit; - strokeElement.joinstyle = this.strokelinejoin; + strokeElement.setAttribute("miterlimit", this.strokemiterlimit); + strokeElement.setAttribute("joinstyle", this.strokelinejoin); if (this.strokelinecap === "butt") { - strokeElement.endcap = "flat"; + strokeElement.setAttribute("endcap", "flat"); } else { - strokeElement.endcap = this.strokelinecap; + strokeElement.setAttribute("endcap", this.strokelinecap); } var tsd = this.strokedasharray; if (tsd !== "none") { @@ -1070,7 +1070,7 @@ this.strokedasharray += " " + this.strokedasharray; } } - strokeElement.dashstyle = this.strokedasharray; + strokeElement.setAttribute("dashstyle", this.strokedasharray); } } catch(e) {stlog.add(e,720); strokeElement.on = "false";} el.appendChild(strokeElement);