[Sie-announce] SIEコード [1248] transform属性の動的変更に対応

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 9月 14日 (月) 22:50:27 JST


Revision: 1248
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1248
Author:   dhrname
Date:     2009-09-14 22:50:27 +0900 (Mon, 14 Sep 2009)

Log Message:
-----------
transform属性の動的変更に対応

Modified Paths:
--------------
    branches/05x/051/sie.js

Modified: branches/05x/051/sie.js
===================================================================
--- branches/05x/051/sie.js	2009-09-14 13:40:54 UTC (rev 1247)
+++ branches/05x/051/sie.js	2009-09-14 13:50:27 UTC (rev 1248)
@@ -646,8 +646,8 @@
     this.w = w; this.h = h;
     if(Nnenn) {
 		Nnenn = false;
-		this.setAttributeNS("http://www.w3.org/svg/2000","stroke", "red");
-		this.setAttributeNS("http://www.w3.org/svg/2000","stroke-width", "20px");
+		this.setAttributeNS("http://www.w3.org/svg/2000","stroke", "black");
+		this.setAttributeNS("http://www.w3.org/svg/2000","transform", "scale(1.2)");
 	}
     dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放
   } catch(e) {stlog.add(e,372);}
@@ -676,7 +676,9 @@
     }
   }
   if (name === "transform") {
-    this.transformable = NAIBU.transformToCTM(this.tar, this.partransformable);
+    var tar = {getAttribute : (function(n){return value})};
+    this.transformable = NAIBU.transformToCTM(tar, this.partransformable);
+    tar = null;
     this.set(this.w, this.h);
   }
   var tn = this[name];




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