[Sie-announce] SIEコード [1079]

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 15日 (日) 21:15:21 JST


Revision: 1079
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1079
Author:   dhrname
Date:     2009-03-15 21:15:21 +0900 (Sun, 15 Mar 2009)

Log Message:
-----------


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

Property Changed:
----------------
    branches/04x/sie.js

Modified: branches/04x/sie.js
===================================================================
--- branches/04x/sie.js	2009-03-15 12:12:50 UTC (rev 1078)
+++ branches/04x/sie.js	2009-03-15 12:15:21 UTC (rev 1079)
@@ -1251,6 +1251,7 @@
   } catch(e) {stlog.add(e,749); angle = 270;}
     ele.setAttribute("type", "gradient");
     ele.setAttribute("angle", angle + "");
+    x1 = y1 = x2 = y2 = angle = null;
   } else if (type === "gradientRadial") {
   try{
     ele.setAttribute("type", "gradientTitle");
@@ -1273,36 +1274,34 @@
         er = er > nx ? er : nx;
         eb = eb > ny ? eb : ny;
       }
-      cx = cx*(er - el) + el; cy = cy*(eb - et) + et; rx = r*(er - el); ry = r*(eb - et)
+      degis = null;
+      cx = cx*(er - el) + el; cy = cy*(eb - et) + et; rx = r*(er - el); ry = r*(eb - et);
     }
     el = cx - rx; et = cy - ry; er = cx + rx; eb = cy + ry;
     var outline = document.getElementById("_NAIBU_outline");
-    var background = document.createElement("div"), gradient = document.createElement("div");
-    background.style.position = "absolute"; gradient.style.position = "absolute";
-    background.style.top = 0; background.style.left = 0; background.style.width = this.w; background.style.height = this.h;
+    var background = document.createElement("div");
+    background.style.position = "absolute";
+    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);
-    outline.appendChild(gradient);
     background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
     background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
-    var elout = ele.outerHTML;
     var er2 = er - el / 2;
     var ellipse = "ar " +el+ "," +et+ "," +er+ "," +eb+ " " +er2+ ",0 " +er2+ ",0 e";
-    var coord = 'coordsize="' +this.w+ ' ' +this.h+ '"';
-    background.innerHTML = '<v:shape style="position:relative;"' +coord+ 'path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
-    gradient.innerHTML = '<v:shape style="position:relative; antialias:false;"' +coord+ 'path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>';
+    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; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
     background.filters[0].apply();
-    background.innerHTML = '<v:shape style="position:relative; antialias:false;"' +coord+ 'path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>';
+    background.innerHTML = circle;
     background.filters[0].play();
     this.tar.parentNode.insertBefore(background, this.tar);
-    background.style.left = "-40"; //ずれを修正
     this.tar.setAttribute("filled", "false");
+    ellipse = circle = null;
     return true;
     } catch(e) {stlog.add(e,1175);}
   }
   } else {
     return false;
   }
-  x1 = y1 = type = color = colors = opacity = null;
+  stops = type = color = colors = opacity = null;
   return false;
 }
 


Property changes on: branches/04x/sie.js
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/04x/041/sie.js:891-923
/branches/04x/042/sie.js:927-967
/branches/04x/043/sie.js:969-1013
/branches/04x/044/sie.js:1015-1067
   + /branches/04x/041/sie.js:891-923
/branches/04x/042/sie.js:927-967
/branches/04x/043/sie.js:969-1013
/branches/04x/044/sie.js:1015-1067
/branches/04x/045/sie.js:1069-1078




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