[Sie-announce] SIEコード [1554] gradientの整理

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 1月 7日 (木) 22:37:55 JST


Revision: 1554
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1554
Author:   dhrname
Date:     2010-01-07 22:37:55 +0900 (Thu, 07 Jan 2010)

Log Message:
-----------
gradientの整理

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

Modified: branches/05x/058/sie.js
===================================================================
--- branches/05x/058/sie.js	2010-01-07 12:56:16 UTC (rev 1553)
+++ branches/05x/058/sie.js	2010-01-07 13:37:55 UTC (rev 1554)
@@ -1423,7 +1423,7 @@
     var cy = parseFloat((grad.getAttribute("cy") || "0.5").replace(/%/, ""));
     var r = rx = ry = parseFloat((grad.getAttribute("r") || "0.5").replace(/%/, ""));
     var el = this.w, et = this.h, er = 0, eb = 0;
-    var data = this.tar.getAttribute("path")+"";
+    var data = this.tar.path.value;
     var units = grad.getAttribute("gradientUnits");
     if (!units || units === "objectBoundingBox") {
       //%の場合は小数点に変換(10% -> 0.1)
@@ -1452,9 +1452,9 @@
     var plm = pl.matrixTransform(matrix);
     var ellipse = plm.list.join(" ");
     var outline = document.getElementById("_NAIBU_outline");
-    var background = document.createElement("div");
-    background.style.position = "absolute";
-    background.style.textAlign = "left"; background.style.top = "0px"; background.style.left = "0px"; background.style.width = this.w+ "px"; background.style.height = this.h+ "px";
+    var background = document.createElement("div"), bstyle = background.style;
+    bstyle.position = "absolute";
+    bstyle.textAlign = "left"; bstyle.top = "0px"; bstyle.left = "0px"; bstyle.width = this.w+ "px"; bstyle.height = this.h+ "px";
     outline.appendChild(background);
     background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
     background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;




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