svnno****@sourc*****
svnno****@sourc*****
2009年 3月 11日 (水) 21:03:09 JST
Revision: 1062 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1062 Author: dhrname Date: 2009-03-11 21:03:09 +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:50:07 UTC (rev 1061) +++ branches/04x/044/sie.js 2009-03-11 12:03:09 UTC (rev 1062) @@ -832,7 +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.mx = x; this.paint.my = y; this.paint.mright = xw; this.paint.mbottom = yh; this.paint.set(w, h, ttm); } catch(ee) {stlog.add(ee,576);} } @@ -1267,8 +1267,8 @@ background.style.filter = "progid:DXImageTransform.Microsoft.Compositor"; background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23; var elout = ele.outerHTML; - 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 et = this.my, el = this.mx, er = this.mright, eb = this.mbottom, 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>';