svnno****@sourc*****
svnno****@sourc*****
2009年 4月 16日 (木) 23:23:58 JST
Revision: 1123
http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1123
Author: dhrname
Date: 2009-04-16 23:23:58 +0900 (Thu, 16 Apr 2009)
Log Message:
-----------
1,fill,strokecolorプロパティに直接設定
2,width,heightでサイズ指定をやめる
Modified Paths:
--------------
branches/04x/046/sie.js
Modified: branches/04x/046/sie.js
===================================================================
--- branches/04x/046/sie.js 2009-04-14 14:54:47 UTC (rev 1122)
+++ branches/04x/046/sie.js 2009-04-16 14:23:58 UTC (rev 1123)
@@ -350,7 +350,6 @@
STGroupElement.prototype.set = function (sw,sh) {
try{
var ele = this.tar;
- ele.style.width = sw+ "px"; ele.style.height = sh +"px";
ele.coordsize = sw + " " + sh;
stvsetob(this.children,sw,sh);
delete (this.children);
@@ -639,7 +638,6 @@
var ele = this.tar;
ele.path = dat + " e";
ele.coordsize = w + " " + h;
- ele.style.width = w+ "px"; ele.style.height = h +"px";
this.paint.set(w, h, ttm);
dat = this.paint = this.d = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放
} catch(e) {stlog.add(e,372);}
@@ -1018,7 +1016,7 @@
this.w = w; this.h = h; //radialGradientで必要
isRadial = this.gradient(fillElement, RegExp.$1, matrix);
} else {
- fillElement.setAttribute("color", "black");//this.color(this.fill);
+ el.fillcolor = this.color(this.fill);
var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる
if (fillOpacity < 1) {
fillElement.setAttribute("opacity", fillOpacity);
@@ -1038,11 +1036,11 @@
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.setAttribute("weight", swx + "px");
+ el.strokeweight = swx + "px";
if (this.stroke.match(/url\(#([^)]+)/)) {
this.gradient(strokeElement, RegExp.$1);
} else {
- strokeElement.setAttribute("color", this.color(this.stroke));
+ el.strokecolor = this.color(this.stroke);
var strokeOpacity = this.strokeopacity * this.opacity; //opacityを掛け合わせる
if (swx < 1) {
strokeOpacity *= swx; //太さが1px未満なら色を薄くする