svnno****@sourc*****
svnno****@sourc*****
2009年 3月 9日 (月) 23:17:36 JST
Revision: 1058 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1058 Author: dhrname Date: 2009-03-09 23:17:36 +0900 (Mon, 09 Mar 2009) Log Message: ----------- 1、radialGradient要素の実装をさらに勧めた。 2、1の要素が適用された要素については、中身の色(fillで指定された色)を表示させないようにした Modified Paths: -------------- branches/04x/044/sie.js Modified: branches/04x/044/sie.js =================================================================== --- branches/04x/044/sie.js 2009-03-08 14:14:00 UTC (rev 1057) +++ branches/04x/044/sie.js 2009-03-09 14:17:36 UTC (rev 1058) @@ -1266,18 +1266,23 @@ background.style.filter = "progid:DXImageTransform.Microsoft.Compositor"; background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23; var elout = ele.outerHTML; - background.innerHTML = '<v:shape style="position:relative; width:100%; height:100%;" path="' +data+ '" stroked="f" fillcolor="red" />'; - gradient.innerHTML = '<v:shape style="position:relative; width:100%; height:100%; antialias:false;" path="ar 0,0,500,500 250,0 250,0 e" stroked="f">' +elout+ '</v:shape>'; - background.filters[0].apply(); - background.innerHTML = '<v:shape style="position:relative; width:100%; height:100%; antialias:false;" path="ar 0,0,500,500 250,0 250,0 e" stroked="f">' +elout+ '</v:shape>'; - background.filters[0].play(); + 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"; + background.innerHTML = '<v:shape style="position:relative; width:100%; height:100%;" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />'; + gradient.innerHTML = '<v:shape style="position:relative; width:100%; height:100%; antialias:false;" path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>'; + background.filters[0].apply(); + background.innerHTML = '<v:shape style="position:relative; width:100%; height:100%; antialias:false;" path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>'; + background.filters[0].play(); + this.tar.parentNode.insertBefore(background, this.tar); + this.tar.setAttribute("filled", "false"); + return true; } catch(e) {stlog.add(e,1175);} } } else { - return; + return false; } x1 = y1 = type = color = colors = opacity = null; - return; + return false; } //font属性、関連プロパティを処理する