[Sie-announce] SIEコード [1118] setAttributeの部分を、プロパティ書き換えに変更

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 4月 4日 (土) 23:10:07 JST


Revision: 1118
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1118
Author:   dhrname
Date:     2009-04-04 23:10:07 +0900 (Sat, 04 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-03 11:17:31 UTC (rev 1117)
+++ branches/04x/046/sie.js	2009-04-04 14:10:07 UTC (rev 1118)
@@ -351,7 +351,7 @@
   try{
   var ele = this.tar;
   ele.style.width = sw+ "px"; ele.style.height = sh +"px";
-  ele.setAttribute("coordsize", sw + " " + sh);
+  ele.coordsize = sw + " " + sh;
   stvsetob(this.children,sw,sh);
   delete (this.children);
   } catch(e){stlog.addd(e,3145)}
@@ -530,8 +530,8 @@
     var plm = pl.matrixTransform(ttm);
     var dat = plm.list.join(" ");
     var ele = this.tar;
-    ele.setAttribute("path", dat);
-    ele.setAttribute("coordsize", w + " " + h);
+    ele.path = dat;
+    ele.coordsize = w + " " + h;
     this.paint.set(w, h, ttm);
     list = pl = plm = dat = null;
   } catch(e) {stlog.add(e,257);}
@@ -637,8 +637,8 @@
   } catch(e) {if(this.d == ""){/*d属性が空*/}else{stlog.add(e,355);}}
   try {
     var ele = this.tar;
-    ele.setAttribute("path", dat + " e");
-    ele.setAttribute("coordsize", w + " " + h);
+    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; //解放
@@ -704,8 +704,8 @@
   } catch(e) {stlog.add(e,395);}
   try {
     var ele = this.tar;
-    ele.setAttribute("path", dat);
-    ele.setAttribute("coordsize", w + " " + h);
+    ele.path = dat;
+    ele.coordsize = w + " " + h;
     this.paint.set(w, h, ttm);
   } catch(e) {stlog.add(e,406);}
 }
@@ -730,8 +730,8 @@
   } catch(e) {stlog.add(e,429);}
   try {
     var ele = this.tar;
-    ele.setAttribute("path", dat);
-    ele.setAttribute("coordsize", w + " " + h);
+    ele.path = dat;
+    ele.coordsize = w + " " + h;
     this.paint.set(w, h, ttm);
   } catch(e) {stlog.add(e,440);}
 }
@@ -762,8 +762,8 @@
   } catch(e) {stlog.add(e,468);}
   try {
     var ele = this.tar;
-    ele.setAttribute("path", dat);
-    ele.setAttribute("coordsize", w + " " + h);
+    ele.path = dat;
+    ele.coordsize = w + " " + h;
     this.paint.set(w, h, ttm);
   } catch(e) {stlog.add(e,479);}
 }
@@ -794,8 +794,8 @@
   } catch(e) {stlog.add(e,508);}
   try {
     var ele = this.tar;
-    ele.setAttribute("path", dat);
-    ele.setAttribute("coordsize", w + " " + h);
+    ele.path = dat;
+    ele.coordsize = w + " " + h;
     this.paint.set(w, h, ttm);
   } catch(e) {stlog.add(e,519);}
 }
@@ -844,8 +844,8 @@
   } catch(e) {stlog.add(e,564);}
   try {
     var ele = this.tar;
-    ele.setAttribute("path", dat);
-    ele.setAttribute("coordsize", w + " " + h);
+    ele.path = dat;
+    ele.coordsize = w + " " + h;
     ele.style.width = w+ "px"; ele.style.height = h +"px";
     this.paint.set(w, h, ttm);
   } catch(ee) {stlog.add(ee,576);}
@@ -905,7 +905,7 @@
   this.xlink.set();
   tns.setAttribute("transform", ts+ " translate(" +this.x.value+ "," +this.y.value+ ")");
   tns.firstChild.setAttribute("id","");
-  tns.setAttribute("coordorgin","0  0");
+  tns.coordorgin = "0  0";
   this.paint = new NAIBU.PaintColor(this.xlink.resource);
   this.paint.tar = tns;
   return this;
@@ -1007,7 +1007,7 @@
 NAIBU.PaintColor.prototype.set = function pcset(/*float*/ w, /*float*/ h, /*Matrix*/ matrix) {
   var el = this.tar;
   if (this.fill === "none") {
-    el.setAttribute("filled", "false");
+    el.filled = "false";
   } else {
     var fillElement = document.createElement("v:fill");
     var isRadial = false;
@@ -1016,7 +1016,7 @@
       this.w = w; this.h = h; //radialGradientで必要
       isRadial = this.gradient(fillElement, RegExp.$1, matrix);
     } else {
-      fillElement.setAttribute("color", this.color(this.fill));
+      fillElement.color = this.color(this.fill);
       var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる
       if (fillOpacity < 1) {
         fillElement.setAttribute("opacity", fillOpacity);
@@ -1923,7 +1923,7 @@
   var regwv = regw.value,  reghv = regh.value;
   obst.width = regwv+ "px";
   obst.height = reghv+ "px";
-  ob.setAttribute("coordsize",regwv  +" "+  reghv);
+  ob.coordsize = regwv  +" "+  reghv;
   var dn = new Date();
   STdocument[dn] = new SVGtoVML(obc,obwidth,obheight,regw,regh);
   obj.parentNode.insertBefore(ob,obj);




Sie-announce メーリングリストの案内
Back to archive index