svnno****@sourc*****
svnno****@sourc*****
2009年 3月 13日 (金) 21:00:13 JST
Revision: 1071 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1071 Author: dhrname Date: 2009-03-13 21:00:13 +0900 (Fri, 13 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-12 11:36:24 UTC (rev 1070) +++ branches/04x/045/sie.js 2009-03-13 12:00:13 UTC (rev 1071) @@ -1284,18 +1284,18 @@ 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;" 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]+ '" />'; + gradient.innerHTML = 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);} }