[Sie-announce] SIEコード [1077] radialGradient要素の表示を正確にできるようにした。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 14日 (土) 22:20:57 JST


Revision: 1077
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1077
Author:   dhrname
Date:     2009-03-14 22:20:57 +0900 (Sat, 14 Mar 2009)

Log Message:
-----------
radialGradient要素の表示を正確にできるようにした。

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

Modified: branches/04x/045/sie.js
===================================================================
--- branches/04x/045/sie.js	2009-03-13 14:24:31 UTC (rev 1076)
+++ branches/04x/045/sie.js	2009-03-14 13:20:57 UTC (rev 1077)
@@ -1278,21 +1278,21 @@
     }
     el = cx - rx; et = cy - ry; er = cx + rx; eb = cy + ry;
     var outline = document.getElementById("_NAIBU_outline");
-    var background = document.createElement("v:group");
+    var background = document.createElement("div");
     background.style.position = "absolute";
-    background.style.top = 0; background.style.left = 0; background.style.width = this.w; background.style.height = this.h;
+    background.style.textAlign = "left"; background.style.top = 0; background.style.left = 0; background.style.width = this.w; background.style.height = this.h;
     outline.appendChild(background);
     background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
     background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
     var er2 = er - el / 2;
     var ellipse = "ar " +el+ "," +et+ "," +er+ "," +eb+ " " +er2+ ",0 " +er2+ ",0 e";
     var circle = '<v:shape style="position:relative; antialias:false; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +ellipse+ '" stroked="f">' +ele.outerHTML+ '</v:shape>';
-    background.innerHTML = '<v:shape style="position:relative;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
+    background.innerHTML = '<v:shape style="position:relative; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
     background.filters[0].apply();
     background.innerHTML = circle;
     background.filters[0].play();
-    this.tar.parentNode.insertBefore(background, this.tar.nextSibling);
-    this.tar.setAttribute("fillcolor", color[color.length-1]);
+    this.tar.parentNode.insertBefore(background, this.tar);
+    this.tar.setAttribute("filled", "false");
     ellipse = circle = null;
     return true;
     } catch(e) {stlog.add(e,1175);}




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