svnno****@sourc*****
svnno****@sourc*****
2010年 4月 12日 (月) 23:29:00 JST
Revision: 1791 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1791 Author: dhrname Date: 2010-04-12 23:29:00 +0900 (Mon, 12 Apr 2010) Log Message: ----------- rect要素の実装 Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-04-11 13:15:02 UTC (rev 1790) +++ branches/ufltima/dom/svg.js 2010-04-12 14:29:00 UTC (rev 1791) @@ -148,9 +148,10 @@ return; } var name = evt.attrName, tar = evt.target, _parseFloat = parseFloat; - if (!!CSS2Properties[name] || name.indexOf("-") > -1) { + if (!!CSS2Properties[name] || name.indexOf("-") > -1) { //スタイルシートのプロパティならば tar._attributeStyle.setProperty(name, evt.newValue, ""); - } else if (evt.relatedNode.localName === "id") { //xml:idあるいはid属性ならば + } + if (evt.relatedNode.localName === "id") { //xml:idあるいはid属性ならば tar.id = evt.newValue; } else if (name === "transform" && !!tar.transform) { var tft = evt.newValue, degR = /[\-\d\.e]+/g; @@ -1163,7 +1164,7 @@ var obje = document.getElementsByTagName("object"); for (var i=0, objli=1;i<objli;++i) { var objei = {style:{}};//obje[i]; - xmlhttp.open("GET", "../svggen/shapes-polygon-01-t.svg", true);//objei.getAttribute("data"), true); + xmlhttp.open("GET", "../svggen/shapes-rect-01-t.svg", true);//objei.getAttribute("data"), true); xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {