From svnnotify @ sourceforge.jp Wed Apr 1 22:18:15 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 01 Apr 2009 22:18:15 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTE1XSAxLCBJRTjjga4=?= =?utf-8?b?44Gf44KB44CBQ1NT6Kit5a6a44Gu6Zqb44Gr44GvcHjjgajjgYTjgYbljZg=?= =?utf-8?b?5L2N44KS5LuY44GR44KL44KI44GG44Gr44GX44Gf?= Message-ID: <1238591895.978012.30114.nullmailer@users.sourceforge.jp> Revision: 1115 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1115 Author: dhrname Date: 2009-04-01 22:18:15 +0900 (Wed, 01 Apr 2009) Log Message: ----------- 1,IE8のため、CSS設定の際にはpxという単位を付けるようにした 2,VMLの生成はouterHTMLを使ってDOM経由で Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-03-29 14:30:36 UTC (rev 1114) +++ branches/04x/046/sie.js 2009-04-01 13:18:15 UTC (rev 1115) @@ -98,8 +98,8 @@ //vmlの名前空間をセット(必須) function setVMLNameSpace() { if (!document.namespaces["v"]) { - document.namespaces.add("v","urn:schemas-microsoft-com:vml"); - document.namespaces.add("o","urn:schemas-microsoft-com:office:office"); + document.namespaces.add("v","urn:schemas-microsoft-com:vml", "#default#VML"); + document.namespaces.add("o","urn:schemas-microsoft-com:office:office", "#default#VML"); } var st = document.createStyleSheet(); var vmlUrl = "behavior: url(#default#VML);display:inline-block;"; //inline-blockはIEのバグ対策 @@ -178,8 +178,8 @@ this.setObject(c,sw,sh); var backr = document.createElement("v:rect"); //背景の作成 backr.style.position = "absolute"; - backr.style.width = w; - backr.style.height = h; + backr.style.width = w+ "px"; + backr.style.height = h+ "px"; backr.style.zIndex = -1; backr.setAttribute("stroked", "false"); backr.setAttribute("filled", "false"); @@ -197,11 +197,11 @@ var bt = -this.vi._ty; if (bfl !== 0) { //内部の図形にずれが生じたとき bl = bfl; - tpstyle.left = -bl; + tpstyle.left = -bl+ "px"; } if (bft !== 0) { bt = bft; - tpstyle.top = -bt; + tpstyle.top = -bt+ "px"; } var backright = bl + viewWidth + 1; var backdown = bt + viewHeight + 1; @@ -211,14 +211,14 @@ for (var i=0,textli=text.length;i Revision: 1116 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1116 Author: dhrname Date: 2009-04-03 20:08:25 +0900 (Fri, 03 Apr 2009) Log Message: ----------- スタイルシートのプロパティleftとtopのデフォルト値がIE8ではautoなので、それの対策 Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-01 13:18:15 UTC (rev 1115) +++ branches/04x/046/sie.js 2009-04-03 11:08:25 UTC (rev 1116) @@ -170,12 +170,12 @@ } catch(e) {stlog.add(e,129); } } -SVGtoVML.prototype.set = function stvset() { +SVGtoVML.prototype.set = function stvset(ob) { var w = this.w, h = this.h, c = this.children; var sw = this.swi.value, sh = this.shi.value; - try { this.setObject(this.use,sw,sh); this.setObject(c,sw,sh); + try { var backr = document.createElement("v:rect"); //背景の作成 backr.style.position = "absolute"; backr.style.width = w+ "px"; @@ -185,7 +185,7 @@ backr.setAttribute("filled", "false"); this.rootElement.appendChild(backr); var trstyle = this.rootElement.style; - var tpstyle = this.rootElement.parentNode.style; + var tpstyle = ob.style; trstyle.visibility = "visible"; //以下、画像を切り取り trstyle.overflow = "hidden"; @@ -195,11 +195,11 @@ var bfl = parseFloat(backrs.left), bft = parseFloat(backrs.top); var bl = -this.vi._tx var bt = -this.vi._ty; - if (bfl !== 0) { //内部の図形にずれが生じたとき + if (bfl !== 0 && !isNaN(bfl)) { //内部の図形にずれが生じたとき(isNaNはIE8でautoがデフォルト値のため) bl = bfl; tpstyle.left = -bl+ "px"; } - if (bft !== 0) { + if (bft !== 0 && !isNaN(bfl)) { bt = bft; tpstyle.top = -bt+ "px"; } @@ -1918,7 +1918,6 @@ var obst = ob.style; ob.innerHTML = dc; var obc = ob.getElementsByTagName("group").item(0); //obcはSVGのルート要素 - obc.outerHTML = obc.outerHTML //IE8の標準モード対策 var regaw = obc.getAttribute("svgwidth") || obwidth; var regah = obc.getAttribute("svgheight") || obheight; regw = new STLength(regaw,obwidth); @@ -1930,8 +1929,10 @@ var dn = new Date(); STdocument[dn] = new SVGtoVML(obc,obwidth,obheight,regw,regh); obj.parentNode.insertBefore(ob,obj); + ob.outerHTML = ob.outerHTML //IE8の標準モード対策 + obc.outerHTML = obc.outerHTML //IE8の標準モード対策 STdocument[dn].read(); - STdocument[dn].set(); + STdocument[dn].set(ob); alert((new Date()).getTime() - dn.getTime()); data = dc = null; if (NAIBU.STObject !== void 0) {NAIBU.STObject.next();} From svnnotify @ sourceforge.jp Fri Apr 3 20:17:31 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 03 Apr 2009 20:17:31 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTE3XSAgU1RWaWV3U3Bl?= =?utf-8?b?Y+OCquODluOCuOOCp+OCr+ODiOOBrnNldOODoeOCveODg+ODieOBq+OBig==?= =?utf-8?b?44GE44Gm44CBdHRwc+OBruWApOOBjOOBquOBi+OBo+OBn+OBruOCkuS/rg==?= =?utf-8?b?5q2j?= Message-ID: <1238757451.603392.17469.nullmailer@users.sourceforge.jp> Revision: 1117 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1117 Author: dhrname Date: 2009-04-03 20:17:31 +0900 (Fri, 03 Apr 2009) Log Message: ----------- STViewSpecオブジェクトのsetメソッドにおいて、ttpsの値がなかったのを修正 Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-03 11:08:25 UTC (rev 1116) +++ branches/04x/046/sie.js 2009-04-03 11:17:31 UTC (rev 1117) @@ -148,14 +148,14 @@ this.rootElement = obc; this.w = w; this.h = h; this.swi = swi; this.shi = shi; return this; } -SVGtoVML.prototype.read = function stvread() { +SVGtoVML.prototype.read = function stvread(/*element*/ ob) { this.rootElement.style.visibility = "hidden"; this.vi = new STViewSpec(this.rootElement); try{ this.children = []; //子要素 var sw = this.swi.value, sh = this.shi.value; this.getObject("USE", STUseElement, "use", sw, sh); //use要素を先に処理 - var mat = this.vi.set(sw, sh); //返り値はMatrix型 + var mat = this.vi.set(sw, sh, ob); //返り値はMatrix型 this.chset(this.rootElement, mat, sw, sh); } catch(n) {stlog.add(n,109);} } @@ -190,11 +190,9 @@ //以下、画像を切り取り trstyle.overflow = "hidden"; var backrs = backr.currentStyle; - var viewWidth = w > sw ? sw : w; - var viewHeight = h > sh ? sh : h; + var viewWidth = w > sw ? sw : w, viewHeight = h > sh ? sh : h; var bfl = parseFloat(backrs.left), bft = parseFloat(backrs.top); - var bl = -this.vi._tx - var bt = -this.vi._ty; + var bl = -this.vi._tx, bt = -this.vi._ty; if (bfl !== 0 && !isNaN(bfl)) { //内部の図形にずれが生じたとき(isNaNはIE8でautoがデフォルト値のため) bl = bfl; tpstyle.left = -bl+ "px"; @@ -1549,7 +1547,7 @@ vb = par = null; return this; } -STViewSpec.prototype.set = function vss( /*float*/ vw, /*float*/ vh) { +STViewSpec.prototype.set = function vss( /*float*/ vw, /*float*/ vh, /*element*/ ob) { var vB = this.viewBox, par = this.preserveAspectRatio; try { if (!vB) { @@ -1598,7 +1596,7 @@ break; } } - var ttps = this.tar.parentNode.style; + var ttps = ob.style; this._tx = tx; this._ty = ty; ttps.marginLeft = this._tx+ "px"; @@ -1931,7 +1929,7 @@ obj.parentNode.insertBefore(ob,obj); ob.outerHTML = ob.outerHTML //IE8の標準モード対策 obc.outerHTML = obc.outerHTML //IE8の標準モード対策 - STdocument[dn].read(); + STdocument[dn].read(ob); STdocument[dn].set(ob); alert((new Date()).getTime() - dn.getTime()); data = dc = null; From svnnotify @ sourceforge.jp Sat Apr 4 23:10:07 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 04 Apr 2009 23:10:07 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTE4XSAgc2V0QXR0cmli?= =?utf-8?b?dXRl44Gu6YOo5YiG44KS44CB44OX44Ot44OR44OG44Kj5pu444GN5o+b44GI?= =?utf-8?b?44Gr5aSJ5pu0?= Message-ID: <1238854207.103839.23203.nullmailer@users.sourceforge.jp> Revision: 1118 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1118 Author: dhrname Date: 2009-04-04 23:10:07 +0900 (Sat, 04 Apr 2009) Log Message: ----------- setAttributeの部分を、プロパティ書き換えに変更 Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-03 11:17:31 UTC (rev 1117) +++ branches/04x/046/sie.js 2009-04-04 14:10:07 UTC (rev 1118) @@ -351,7 +351,7 @@ try{ var ele = this.tar; ele.style.width = sw+ "px"; ele.style.height = sh +"px"; - ele.setAttribute("coordsize", sw + " " + sh); + ele.coordsize = sw + " " + sh; stvsetob(this.children,sw,sh); delete (this.children); } catch(e){stlog.addd(e,3145)} @@ -530,8 +530,8 @@ var plm = pl.matrixTransform(ttm); var dat = plm.list.join(" "); var ele = this.tar; - ele.setAttribute("path", dat); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat; + ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); list = pl = plm = dat = null; } catch(e) {stlog.add(e,257);} @@ -637,8 +637,8 @@ } catch(e) {if(this.d == ""){/*d属性が空*/}else{stlog.add(e,355);}} try { var ele = this.tar; - ele.setAttribute("path", dat + " e"); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat + " e"; + ele.coordsize = w + " " + h; ele.style.width = w+ "px"; ele.style.height = h +"px"; this.paint.set(w, h, ttm); dat = this.paint = this.d = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 @@ -704,8 +704,8 @@ } catch(e) {stlog.add(e,395);} try { var ele = this.tar; - ele.setAttribute("path", dat); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat; + ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,406);} } @@ -730,8 +730,8 @@ } catch(e) {stlog.add(e,429);} try { var ele = this.tar; - ele.setAttribute("path", dat); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat; + ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,440);} } @@ -762,8 +762,8 @@ } catch(e) {stlog.add(e,468);} try { var ele = this.tar; - ele.setAttribute("path", dat); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat; + ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,479);} } @@ -794,8 +794,8 @@ } catch(e) {stlog.add(e,508);} try { var ele = this.tar; - ele.setAttribute("path", dat); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat; + ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,519);} } @@ -844,8 +844,8 @@ } catch(e) {stlog.add(e,564);} try { var ele = this.tar; - ele.setAttribute("path", dat); - ele.setAttribute("coordsize", w + " " + h); + ele.path = dat; + ele.coordsize = w + " " + h; ele.style.width = w+ "px"; ele.style.height = h +"px"; this.paint.set(w, h, ttm); } catch(ee) {stlog.add(ee,576);} @@ -905,7 +905,7 @@ this.xlink.set(); tns.setAttribute("transform", ts+ " translate(" +this.x.value+ "," +this.y.value+ ")"); tns.firstChild.setAttribute("id",""); - tns.setAttribute("coordorgin","0 0"); + tns.coordorgin = "0 0"; this.paint = new NAIBU.PaintColor(this.xlink.resource); this.paint.tar = tns; return this; @@ -1007,7 +1007,7 @@ NAIBU.PaintColor.prototype.set = function pcset(/*float*/ w, /*float*/ h, /*Matrix*/ matrix) { var el = this.tar; if (this.fill === "none") { - el.setAttribute("filled", "false"); + el.filled = "false"; } else { var fillElement = document.createElement("v:fill"); var isRadial = false; @@ -1016,7 +1016,7 @@ this.w = w; this.h = h; //radialGradientで必要 isRadial = this.gradient(fillElement, RegExp.$1, matrix); } else { - fillElement.setAttribute("color", this.color(this.fill)); + fillElement.color = this.color(this.fill); var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる if (fillOpacity < 1) { fillElement.setAttribute("opacity", fillOpacity); @@ -1923,7 +1923,7 @@ var regwv = regw.value, reghv = regh.value; obst.width = regwv+ "px"; obst.height = reghv+ "px"; - ob.setAttribute("coordsize",regwv +" "+ reghv); + ob.coordsize = regwv +" "+ reghv; var dn = new Date(); STdocument[dn] = new SVGtoVML(obc,obwidth,obheight,regw,regh); obj.parentNode.insertBefore(ob,obj); From svnnotify @ sourceforge.jp Sun Apr 5 21:22:28 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 05 Apr 2009 21:22:28 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTE5XQ==?= Message-ID: <1238934148.988361.13611.nullmailer@users.sourceforge.jp> Revision: 1119 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1119 Author: dhrname Date: 2009-04-05 21:22:28 +0900 (Sun, 05 Apr 2009) Log Message: ----------- Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-04 14:10:07 UTC (rev 1118) +++ branches/04x/046/sie.js 2009-04-05 12:22:28 UTC (rev 1119) @@ -181,8 +181,8 @@ backr.style.width = w+ "px"; backr.style.height = h+ "px"; backr.style.zIndex = -1; - backr.setAttribute("stroked", "false"); - backr.setAttribute("filled", "false"); + backr.stroked = "false"; + backr.filled = "false"; this.rootElement.appendChild(backr); var trstyle = this.rootElement.style; var tpstyle = ob.style; @@ -416,8 +416,8 @@ backrs.height = "1px"; backrs.left = "0px"; backrs.top = "0px"; - backr.setAttribute("stroked", "false"); - backr.setAttribute("filled", "false"); + backr.stroked = "false"; + backr.filled = "false"; ttp.appendChild(backr); } tts.width = "0px"; @@ -1019,42 +1019,42 @@ fillElement.color = this.color(this.fill); var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる if (fillOpacity < 1) { - fillElement.setAttribute("opacity", fillOpacity); + fillElement.opacity = fillOpacity; } } - } catch(e) {stlog.add(e,682); fillElement.setAttribute("on", "true"); - fillElement.setAttribute("color", "black");} + } catch(e) {stlog.add(e,682); fillElement.on = "true"; + fillElement.color = "black";} if (!isRadial) { el.appendChild(fillElement); } isRadial = fillOpacity = null; } if (this.stroke === "none") { - el.setAttribute("stroked", "false"); + el.stroked = "false"; } else { var strokeElement = document.createElement("v:stroke"); try { var sw = new STLength(this.strokewidth, Math.sqrt((w*w + h*h) / 2)); var swx = sw.value * Math.sqrt(Math.abs(matrix.determinant())); - strokeElement.setAttribute("weight", swx + "px"); + strokeElement.weight = swx + "px"; if (this.stroke.match(/url\(#([^)]+)/)) { this.gradient(strokeElement, RegExp.$1); } else { - strokeElement.setAttribute("color", this.color(this.stroke)); + strokeElement.color = this.color(this.stroke); var strokeOpacity = this.strokeopacity * this.opacity; //opacityを掛け合わせる if (swx < 1) { strokeOpacity *= swx; //太さが1px未満なら色を薄くする } if (strokeOpacity < 1) { - strokeElement.setAttribute("opacity", strokeOpacity); + strokeElement.opacity = strokeOpacity; } } - strokeElement.setAttribute("miterlimit", this.strokemiterlimit); - strokeElement.setAttribute("joinstyle", this.strokelinejoin); + strokeElement.miterlimit = this.strokemiterlimit; + strokeElement.joinstyle = this.strokelinejoin; if (this.strokelinecap === "butt") { - strokeElement.setAttribute("endcap", "flat"); + strokeElement.endcap = "flat"; } else { - strokeElement.setAttribute("endcap", this.strokelinecap); + strokeElement.endcap = this.strokelinecap; } var tsd = this.strokedasharray; if (tsd !== "none") { @@ -1068,9 +1068,9 @@ this.strokedasharray += " " + this.strokedasharray; } } - strokeElement.setAttribute("dashstyle", this.strokedasharray); + strokeElement.dashstyle = this.strokedasharray; } - } catch(e) {stlog.add(e,720); strokeElement.setAttribute("on", "false");} + } catch(e) {stlog.add(e,720); strokeElement.on = "false";} el.appendChild(strokeElement); sw = tsd = null; } @@ -1245,12 +1245,12 @@ colors[i] = stop.getAttribute("offset") + " " + color[i]; opacity[i] = (stop.style.stopopacity || stop.getAttribute("stopopacity") || 1) * this.fillopacity * this.opacity; } - ele.setAttribute("method", "none"); - ele.setAttribute("color", color[0]); - ele.setAttribute("color2", color[length-1]); - ele.setAttribute("colors", colors.join(",")); + ele.method = "none"; + ele.color = color[0]; + ele.color2 = color[length-1]; + ele.colors = colors.join(","); // When colors attribute is used, the meanings of opacity and o:opacity2 are reversed. - ele.setAttribute("opacity", opacity[length-1]); + ele.opacity = opacity[length-1]; ele.setAttribute("o:opacity2", opacity[0]); var type = grad.getAttribute("type"); if (type === "gradient") { @@ -1265,14 +1265,14 @@ angle -= 360; } } catch(e) {stlog.add(e,749); angle = 270;} - ele.setAttribute("type", "gradient"); - ele.setAttribute("angle", angle + ""); + ele.type = "gradient"; + ele.angle = angle + ""; x1 = y1 = x2 = y2 = angle = null; } else if (type === "gradientRadial") { try{ - ele.setAttribute("type", "gradientTitle"); - ele.setAttribute("focus", "100%"); - ele.setAttribute("focusposition", "0.5 0.5"); + ele.type = "gradientTitle"; + ele.focus = "100%"; + ele.focusposition = "0.5 0.5"; var cx = parseFloat((grad.getAttribute("cx") || "0.5").replace(/%/, "")); var cy = parseFloat((grad.getAttribute("cy") || "0.5").replace(/%/, "")); var r = rx = ry = parseFloat((grad.getAttribute("r") || "0.5").replace(/%/, "")); @@ -1319,7 +1319,7 @@ background.innerHTML = circle; background.filters[0].play(); this.tar.parentNode.insertBefore(background, this.tar); - this.tar.setAttribute("filled", "false"); + this.tar.filled = "false"; ellipse = circle = data = list = pl = plm = gt = cx = cy = r = null; return true; } From svnnotify @ sourceforge.jp Sun Apr 5 22:04:17 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 05 Apr 2009 22:04:17 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTIwXSAgb3V0ZXJIVE1M?= =?utf-8?b?44Gu6Kej5rG6562W44KS44KE44KB44KL?= Message-ID: <1238936657.788444.28642.nullmailer@users.sourceforge.jp> Revision: 1120 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1120 Author: dhrname Date: 2009-04-05 22:04:17 +0900 (Sun, 05 Apr 2009) Log Message: ----------- outerHTMLの解決策をやめる Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-05 12:22:28 UTC (rev 1119) +++ branches/04x/046/sie.js 2009-04-05 13:04:17 UTC (rev 1120) @@ -1927,8 +1927,6 @@ var dn = new Date(); STdocument[dn] = new SVGtoVML(obc,obwidth,obheight,regw,regh); obj.parentNode.insertBefore(ob,obj); - ob.outerHTML = ob.outerHTML //IE8の標準モード対策 - obc.outerHTML = obc.outerHTML //IE8の標準モード対策 STdocument[dn].read(ob); STdocument[dn].set(ob); alert((new Date()).getTime() - dn.getTime()); From svnnotify @ sourceforge.jp Wed Apr 8 22:11:38 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 08 Apr 2009 22:11:38 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTIxXSAgc3Jj5bGe5oCn?= =?utf-8?b?44Gu6Kit5a6a44Gnc2V0QXR0cmlidXRl44Gu5L2/55So44KS6YG/44GR44Gf?= Message-ID: <1239196298.668065.17481.nullmailer@users.sourceforge.jp> Revision: 1121 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1121 Author: dhrname Date: 2009-04-08 22:11:38 +0900 (Wed, 08 Apr 2009) Log Message: ----------- src属性の設定でsetAttributeの使用を避けた Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-05 13:04:17 UTC (rev 1120) +++ branches/04x/046/sie.js 2009-04-08 13:11:38 UTC (rev 1121) @@ -763,6 +763,7 @@ try { var ele = this.tar; ele.path = dat; + ele.style.width = w+ "px"; ele.style.height = h +"px"; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,479);} @@ -795,6 +796,7 @@ try { var ele = this.tar; ele.path = dat; + ele.style.width = w+ "px"; ele.style.height = h +"px"; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,519);} @@ -1792,11 +1794,10 @@ if (this.href.indexOf(".") === 0) { //相対URIの場合 uri = this.href; } - var attr = "href"; switch (this.show) { case "embed": if (this.tar.tagName === "image") { - attr = "src"; + this.tar.src = uri; } else{ uri.match(/#(.+)$/); this.resource = document.getElementById(RegExp.$1); @@ -1810,7 +1811,7 @@ default: break; } - this.tar.setAttribute(attr,uri); + this.tar.setAttribute("href",uri); } } catch(e) {stlog.add(e,17155);} } From svnnotify @ sourceforge.jp Tue Apr 14 23:54:47 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 14 Apr 2009 23:54:47 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTIyXSAgc2V0QXR0cmli?= =?utf-8?b?dXRl44Gr5aSJ5pu0?= Message-ID: <1239720887.321516.543.nullmailer@users.sourceforge.jp> Revision: 1122 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1122 Author: dhrname Date: 2009-04-14 23:54:47 +0900 (Tue, 14 Apr 2009) Log Message: ----------- setAttributeに変更 Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-08 13:11:38 UTC (rev 1121) +++ branches/04x/046/sie.js 2009-04-14 14:54:47 UTC (rev 1122) @@ -1018,10 +1018,10 @@ this.w = w; this.h = h; //radialGradientで必要 isRadial = this.gradient(fillElement, RegExp.$1, matrix); } else { - fillElement.color = this.color(this.fill); + fillElement.setAttribute("color", "black");//this.color(this.fill); var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる if (fillOpacity < 1) { - fillElement.opacity = fillOpacity; + fillElement.setAttribute("opacity", fillOpacity); } } } catch(e) {stlog.add(e,682); fillElement.on = "true"; @@ -1038,25 +1038,25 @@ try { var sw = new STLength(this.strokewidth, Math.sqrt((w*w + h*h) / 2)); var swx = sw.value * Math.sqrt(Math.abs(matrix.determinant())); - strokeElement.weight = swx + "px"; + strokeElement.setAttribute("weight", swx + "px"); if (this.stroke.match(/url\(#([^)]+)/)) { this.gradient(strokeElement, RegExp.$1); } else { - strokeElement.color = this.color(this.stroke); + strokeElement.setAttribute("color", this.color(this.stroke)); var strokeOpacity = this.strokeopacity * this.opacity; //opacityを掛け合わせる if (swx < 1) { strokeOpacity *= swx; //太さが1px未満なら色を薄くする } if (strokeOpacity < 1) { - strokeElement.opacity = strokeOpacity; + strokeElement.setAttribute("opacity", strokeOpacity); } } - strokeElement.miterlimit = this.strokemiterlimit; - strokeElement.joinstyle = this.strokelinejoin; + strokeElement.setAttribute("miterlimit", this.strokemiterlimit); + strokeElement.setAttribute("joinstyle", this.strokelinejoin); if (this.strokelinecap === "butt") { - strokeElement.endcap = "flat"; + strokeElement.setAttribute("endcap", "flat"); } else { - strokeElement.endcap = this.strokelinecap; + strokeElement.setAttribute("endcap", this.strokelinecap); } var tsd = this.strokedasharray; if (tsd !== "none") { @@ -1070,7 +1070,7 @@ this.strokedasharray += " " + this.strokedasharray; } } - strokeElement.dashstyle = this.strokedasharray; + strokeElement.setAttribute("dashstyle", this.strokedasharray); } } catch(e) {stlog.add(e,720); strokeElement.on = "false";} el.appendChild(strokeElement); From svnnotify @ sourceforge.jp Thu Apr 16 23:23:58 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 16 Apr 2009 23:23:58 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTIzXSAxLGZpbGwsIHN0?= =?utf-8?b?cm9rZWNvbG9y44OX44Ot44OR44OG44Kj44Gr55u05o6l6Kit5a6a?= Message-ID: <1239891838.601956.19127.nullmailer@users.sourceforge.jp> Revision: 1123 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1123 Author: dhrname Date: 2009-04-16 23:23:58 +0900 (Thu, 16 Apr 2009) Log Message: ----------- 1,fill,strokecolorプロパティに直接設定 2,width,heightでサイズ指定をやめる Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-14 14:54:47 UTC (rev 1122) +++ branches/04x/046/sie.js 2009-04-16 14:23:58 UTC (rev 1123) @@ -350,7 +350,6 @@ STGroupElement.prototype.set = function (sw,sh) { try{ var ele = this.tar; - ele.style.width = sw+ "px"; ele.style.height = sh +"px"; ele.coordsize = sw + " " + sh; stvsetob(this.children,sw,sh); delete (this.children); @@ -639,7 +638,6 @@ var ele = this.tar; ele.path = dat + " e"; ele.coordsize = w + " " + h; - ele.style.width = w+ "px"; ele.style.height = h +"px"; this.paint.set(w, h, ttm); dat = this.paint = this.d = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 } catch(e) {stlog.add(e,372);} @@ -1018,7 +1016,7 @@ this.w = w; this.h = h; //radialGradientで必要 isRadial = this.gradient(fillElement, RegExp.$1, matrix); } else { - fillElement.setAttribute("color", "black");//this.color(this.fill); + el.fillcolor = this.color(this.fill); var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる if (fillOpacity < 1) { fillElement.setAttribute("opacity", fillOpacity); @@ -1038,11 +1036,11 @@ try { var sw = new STLength(this.strokewidth, Math.sqrt((w*w + h*h) / 2)); var swx = sw.value * Math.sqrt(Math.abs(matrix.determinant())); - strokeElement.setAttribute("weight", swx + "px"); + el.strokeweight = swx + "px"; if (this.stroke.match(/url\(#([^)]+)/)) { this.gradient(strokeElement, RegExp.$1); } else { - strokeElement.setAttribute("color", this.color(this.stroke)); + el.strokecolor = this.color(this.stroke); var strokeOpacity = this.strokeopacity * this.opacity; //opacityを掛け合わせる if (swx < 1) { strokeOpacity *= swx; //太さが1px未満なら色を薄くする From svnnotify @ sourceforge.jp Fri Apr 17 23:49:52 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 17 Apr 2009 23:49:52 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTI0XSBkb2N1bWVudC5u?= =?utf-8?b?YW1lc3BhY2VzLiBhZGTjg6Hjgr3jg4Pjg4njga7nrKzkuInlvJXmlbDjgpI=?= =?utf-8?b?5YmK6Zmk44GZ44KL44GT44Go44Gn44CB5Zuz5b2i44Gu6Z2e6KGo56S644OQ?= =?utf-8?b?44Kw44KS6Kej5rG6?= Message-ID: <1239979792.771475.23816.nullmailer@users.sourceforge.jp> Revision: 1124 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1124 Author: dhrname Date: 2009-04-17 23:49:52 +0900 (Fri, 17 Apr 2009) Log Message: ----------- document.namespaces.addメソッドの第三引数を削除することで、図形の非表示バグを解決 Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-16 14:23:58 UTC (rev 1123) +++ branches/04x/046/sie.js 2009-04-17 14:49:52 UTC (rev 1124) @@ -98,19 +98,19 @@ //vmlの名前空間をセット(必須) function setVMLNameSpace() { if (!document.namespaces["v"]) { - document.namespaces.add("v","urn:schemas-microsoft-com:vml", "#default#VML"); - document.namespaces.add("o","urn:schemas-microsoft-com:office:office", "#default#VML"); + document.namespaces.add("v","urn:schemas-microsoft-com:vml"); + document.namespaces.add("o","urn:schemas-microsoft-com:office:office"); + var st = document.createStyleSheet(); + var vmlUrl = "behavior: url(#default#VML);display:inline-block;"; //inline-blockはIEのバグ対策 + st.addRule("v\\:rect",vmlUrl); + st.addRule("v\\:image",vmlUrl); + st.addRule("v\\:fill",vmlUrl); + st.addRule("v\\:stroke",vmlUrl); + st.addRule("o\\:opacity2",vmlUrl); + st.addRule("dn\\:defs","display:none"); + st.addRule("v\\:group", vmlUrl+ "position:relative;width:100%;height:100%;"); + st.addRule("v\\:shape", vmlUrl+ "width:100%;height:100%;"); } - var st = document.createStyleSheet(); - var vmlUrl = "behavior: url(#default#VML);display:inline-block;"; //inline-blockはIEのバグ対策 - st.addRule("v\\:rect",vmlUrl); - st.addRule("v\\:image",vmlUrl); - st.addRule("v\\:fill",vmlUrl); - st.addRule("v\\:stroke",vmlUrl); - st.addRule("o\\:opacity2",vmlUrl); - st.addRule("dn\\:defs","display:none"); - st.addRule("v\\:group", vmlUrl+ "position:relative;width:100%;height:100%;"); - st.addRule("v\\:shape", vmlUrl+ "width:100%;height:100%;"); } //windowに指定したイベントと関数を追加 @@ -761,7 +761,6 @@ try { var ele = this.tar; ele.path = dat; - ele.style.width = w+ "px"; ele.style.height = h +"px"; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,479);} @@ -794,7 +793,6 @@ try { var ele = this.tar; ele.path = dat; - ele.style.width = w+ "px"; ele.style.height = h +"px"; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); } catch(e) {stlog.add(e,519);} @@ -846,7 +844,6 @@ var ele = this.tar; ele.path = dat; ele.coordsize = w + " " + h; - ele.style.width = w+ "px"; ele.style.height = h +"px"; this.paint.set(w, h, ttm); } catch(ee) {stlog.add(ee,576);} } @@ -1019,7 +1016,7 @@ el.fillcolor = this.color(this.fill); var fillOpacity = this.fillopacity * this.opacity; //opacityを掛け合わせる if (fillOpacity < 1) { - fillElement.setAttribute("opacity", fillOpacity); + fillElement.opacity = fillOpacity; } } } catch(e) {stlog.add(e,682); fillElement.on = "true"; From svnnotify @ sourceforge.jp Sat Apr 18 23:45:52 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 18 Apr 2009 23:45:52 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTI1XSB2OiBncm91cA==?= =?utf-8?b?6KaB57Sg44GuY29vcmRzaXpl5bGe5oCn44Gu6Kit5a6a44KS44GX44Gq44GE?= =?utf-8?b?44KI44GG44Gr44GZ44KL?= Message-ID: <1240065952.829362.1301.nullmailer@users.sourceforge.jp> Revision: 1125 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1125 Author: dhrname Date: 2009-04-18 23:45:52 +0900 (Sat, 18 Apr 2009) Log Message: ----------- v:group要素のcoordsize属性の設定をしないようにする Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-17 14:49:52 UTC (rev 1124) +++ branches/04x/046/sie.js 2009-04-18 14:45:52 UTC (rev 1125) @@ -350,7 +350,6 @@ STGroupElement.prototype.set = function (sw,sh) { try{ var ele = this.tar; - ele.coordsize = sw + " " + sh; stvsetob(this.children,sw,sh); delete (this.children); } catch(e){stlog.addd(e,3145)} From svnnotify @ sourceforge.jp Fri Apr 24 22:21:42 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 24 Apr 2009 22:21:42 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMTI2XSAxLCAgY2xpcA==?= =?utf-8?b?44Gu5Y2Y5L2N44KS6Zmk5Y67?= Message-ID: <1240579302.801476.32445.nullmailer@users.sourceforge.jp> Revision: 1126 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1126 Author: dhrname Date: 2009-04-24 22:21:42 +0900 (Fri, 24 Apr 2009) Log Message: ----------- 1, clipの単位を除去 2, fill,stroke要素の属性を設定するようにした Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-18 14:45:52 UTC (rev 1125) +++ branches/04x/046/sie.js 2009-04-24 13:21:42 UTC (rev 1126) @@ -203,7 +203,7 @@ } var backright = bl + viewWidth + 1; var backdown = bt + viewHeight + 1; - trstyle.clip = "rect(" +bt+ " " +backright+ "px " +backdown+ "px " +bl+ ")"; + trstyle.clip = "rect(" +bt+ " " +backright+ " " +backdown+ " " +bl+ ")"; //以下、テキストの位置を修正 var text = this.rootElement.getElementsByTagName("div"); for (var i=0,textli=text.length;i Revision: 1127 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1127 Author: dhrname Date: 2009-04-30 23:34:53 +0900 (Thu, 30 Apr 2009) Log Message: ----------- radialGradient要素のときに使うdiv要素の対策として、修正を施した Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-04-24 13:21:42 UTC (rev 1126) +++ branches/04x/046/sie.js 2009-04-30 14:34:53 UTC (rev 1127) @@ -208,17 +208,19 @@ var text = this.rootElement.getElementsByTagName("div"); for (var i=0,textli=text.length;i