[Sie-announce] SIEコード [1061] rect要素に適用

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 3月 11日 (水) 20:50:07 JST


Revision: 1061
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1061
Author:   dhrname
Date:     2009-03-11 20:50:07 +0900 (Wed, 11 Mar 2009)

Log Message:
-----------
rect要素に適用

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

Modified: branches/04x/044/sie.js
===================================================================
--- branches/04x/044/sie.js	2009-03-11 11:13:52 UTC (rev 1060)
+++ branches/04x/044/sie.js	2009-03-11 11:50:07 UTC (rev 1061)
@@ -832,6 +832,7 @@
     var ele = this.tar;
     ele.setAttribute("path", dat);
     ele.setAttribute("coordsize", w + " " + h);
+    this.paint.mx = x; this.paint.my = y; this.paint.mwidth = this.width.value; this.paint.mheight = this.height.value;
     this.paint.set(w, h, ttm);
   } catch(ee) {stlog.add(ee,576);}
 }
@@ -1266,8 +1267,8 @@
     background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
     background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
     var elout = ele.outerHTML;
-    var et = parseFloat(this.tar.currentStyle.top), el = parseFloat(this.tar.currentStyle.left), ew = parseFloat(this.tar.currentStyle.width), eh = parseFloat(this.tar.currentStyle.height), ew2 = ew / 2;
-    var ellipse = "ar " +et+ "," +el+ "," +eh+ "," +ew+ " " +ew2+ ",0 " +ew2+ ",0 e";
+    var et = this.my, el = this.mx, ew = this.mwidth, eh = this.mheight, ew2 = ew / 2;
+    var ellipse = "ar " +el+ "," +et+ "," +eh+ "," +ew+ " " +ew2+ ",0 " +ew2+ ",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>';




Sie-announce メーリングリストの案内
アーカイブの一覧に戻る