[Sie-announce] SIEコード [1099] rect要素限定で、filter方式のradialGradientを適用

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 20日 (金) 21:51:50 JST


Revision: 1099
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1099
Author:   dhrname
Date:     2009-03-20 21:51:50 +0900 (Fri, 20 Mar 2009)

Log Message:
-----------
rect要素限定で、filter方式のradialGradientを適用

Modified Paths:
--------------
    branches/04x/046/sie.js

Modified: branches/04x/046/sie.js
===================================================================
--- branches/04x/046/sie.js	2009-03-18 14:34:59 UTC (rev 1098)
+++ branches/04x/046/sie.js	2009-03-20 12:51:50 UTC (rev 1099)
@@ -1258,6 +1258,7 @@
     ele.setAttribute("type", "gradientTitle");
     ele.setAttribute("focus", "100%");
     ele.setAttribute("focusposition", "0.5 0.5");
+    if (this.tar.getAttribute("tag") === "rect") {
     var cx = parseFloat((grad.getAttribute("cx") || "0.5").replace(/%/, ""));
     var cy = parseFloat((grad.getAttribute("cy") || "0.5").replace(/%/, ""));
     var r = rx = ry = parseFloat((grad.getAttribute("r") || "0.5").replace(/%/, ""));
@@ -1296,6 +1297,9 @@
     this.tar.parentNode.insertBefore(background, this.tar);
     this.tar.setAttribute("filled", "false");
     ellipse = circle = null;
+    } else {
+      return false;
+    }
     return true;
     } catch(e) {stlog.add(e,1175);}
   }




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