From svnnotify @ sourceforge.jp Sun Sep 6 23:02:53 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 06 Sep 2009 23:02:53 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjI5XSAg5paH44Gu5pW0?= =?utf-8?b?5b2i?= Message-ID: <1252245773.447357.17076.nullmailer@users.sourceforge.jp> Revision: 1229 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1229 Author: dhrname Date: 2009-09-06 23:02:53 +0900 (Sun, 06 Sep 2009) Log Message: ----------- 文の整形 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-07-08 12:39:30 UTC (rev 1228) +++ branches/05x/051/sie.js 2009-09-06 14:02:53 UTC (rev 1229) @@ -56,9 +56,10 @@ //引数にtrueがあれば、例外処理のログを作動させる stlog = new STLog(true); var ary = document.getElementsByTagName("script"); - for (var i=0; i < ary.length; i++) {//全script要素をチェックして、type属性がimage/svg+xmlならば、中身をSVGとして処理する + //全script要素をチェックして、type属性がimage/svg+xmlならば、中身をSVGとして処理する + for (var i=0; i < ary.length; i++) { var hoge = ary[i].type; - if (ary[i].type === "image/svg+xml") { + if (ary[i].type === "image/svg+xml") { var ait = ary[i].text; if (sieb_s && ait.match(/<svg/)) { //ソース内のタグを除去 @@ -71,7 +72,7 @@ var da = {}; da.obj = []; da.obj[i] = ary[i]; da.num = i + 1; da.content = ait; da.success = true; ca(da); - } else{ + } else { var s = textToSVG(ait,ary[i].getAttribute("width"),ary[i].getAttribute("height")); ary[i].parentNode.insertBefore(s,ary[i]); } From svnnotify @ sourceforge.jp Mon Sep 7 22:22:39 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 07 Sep 2009 22:22:39 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjMwXSAgU1RTZXRFbGVt?= =?utf-8?b?ZW5044Kq44OW44K444Kn44Kv44OI44GuZnJhbWXjgahzZXTjg6Hjgr3jg4M=?= =?utf-8?b?44OJ44KS5a6f6KOF?= Message-ID: <1252329759.905366.17102.nullmailer@users.sourceforge.jp> Revision: 1230 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1230 Author: dhrname Date: 2009-09-07 22:22:39 +0900 (Mon, 07 Sep 2009) Log Message: ----------- STSetElementオブジェクトのframeとsetメソッドを実装 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-06 14:02:53 UTC (rev 1229) +++ branches/05x/051/sie.js 2009-09-07 13:22:39 UTC (rev 1230) @@ -1823,6 +1823,7 @@ } catch(e) {stlog.add(e,17155);} } +//SMIL言語のset要素を参照 function STSetElement(ele) { this.tar = ele; var begin = new Date(), end = new Date(); @@ -1834,7 +1835,25 @@ this.currentTime = 0; return this; } +//timeLineはアニメーションのタイムラインとして、フレームを再生する際に使用 +NAIBU.timeLine = []; STSetElement.prototype.set = function() { + var tb = null; + if (this.beginEvent.event !== "") { + tb = this.beginEvent; + } + if (this.endEvent.event !== "") { + tb = this.endEvent; + } + if (!tb) { //イベントが設定されているならば + tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる + this.tar.parentNode.attachEvent(tb.event,(function(){ + tb.indefinite = false; + })); + } + NAIBU.timeLine[NAIBU.timeLine.length] = this; +} +STSetElement.prototype.frame = function() { if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { alert(this.beginEvent.event); } @@ -1927,7 +1946,7 @@ this.event = midValue || pool; } var beginEvent = new Date(), endEvent = new Date(), _currentTime = 0; -beginEvent.synchParser("id.event-00:02"); +beginEvent.synchParser("id.event"); endEvent.synchParser("00:04"); beginEvent.indefinite = false; endEvent.indefinite = false; From svnnotify @ sourceforge.jp Tue Sep 8 22:22:34 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 08 Sep 2009 22:22:34 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjMxXQ==?= Message-ID: <1252416154.030828.21178.nullmailer@users.sourceforge.jp> Revision: 1231 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1231 Author: dhrname Date: 2009-09-08 22:22:33 +0900 (Tue, 08 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-07 13:22:39 UTC (rev 1230) +++ branches/05x/051/sie.js 2009-09-08 13:22:33 UTC (rev 1231) @@ -1925,10 +1925,12 @@ idValue = pool; pool = ""; break; - } else if("+-".indexOf(stri) !== -1) { //符号ならば + } else if ("+-".indexOf(stri) !== -1) { //符号ならば midValue = pool; pool = ""; mode = 2; + } else if (i === sti-2) { //終わりの2文字前ならば + mode = 2; } pool += stri; break; @@ -1950,13 +1952,15 @@ endEvent.synchParser("00:04"); beginEvent.indefinite = false; endEvent.indefinite = false; +function woso(){ setInterval((function() { if (beginEvent.isFired(_currentTime) && !endEvent.isFired(_currentTime)) { alert(beginEvent.event); } _currentTime += 100; }),41) - +} +woso(); function utf16( /*string*/ s) { return unescape(s); } From svnnotify @ sourceforge.jp Tue Sep 8 22:43:09 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 08 Sep 2009 22:43:09 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjMyXQ==?= Message-ID: <1252417389.653022.12904.nullmailer@users.sourceforge.jp> Revision: 1232 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1232 Author: dhrname Date: 2009-09-08 22:43:09 +0900 (Tue, 08 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-08 13:22:33 UTC (rev 1231) +++ branches/05x/051/sie.js 2009-09-08 13:43:09 UTC (rev 1232) @@ -1902,6 +1902,7 @@ if ("+-".indexOf(stri) !== -1 || /[0-9]/.test(stri)) { mode = 1; } else { + pool += stri; mode = 12; } break; @@ -1929,8 +1930,6 @@ midValue = pool; pool = ""; mode = 2; - } else if (i === sti-2) { //終わりの2文字前ならば - mode = 2; } pool += stri; break; From svnnotify @ sourceforge.jp Wed Sep 9 19:37:23 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 09 Sep 2009 19:37:23 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjMzXQ==?= Message-ID: <1252492643.131935.26450.nullmailer@users.sourceforge.jp> Revision: 1233 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1233 Author: dhrname Date: 2009-09-09 19:37:23 +0900 (Wed, 09 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-08 13:43:09 UTC (rev 1232) +++ branches/05x/051/sie.js 2009-09-09 10:37:23 UTC (rev 1233) @@ -1939,6 +1939,7 @@ this.setClockValue(str); } else if (mode === 12) { midValue = pool; + this.clockValue = 0; } else { this.setClockValue(pool); } From svnnotify @ sourceforge.jp Wed Sep 9 20:27:12 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 09 Sep 2009 20:27:12 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjM0XQ==?= Message-ID: <1252495632.902930.6687.nullmailer@users.sourceforge.jp> Revision: 1234 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1234 Author: dhrname Date: 2009-09-09 20:27:12 +0900 (Wed, 09 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-09 10:37:23 UTC (rev 1233) +++ branches/05x/051/sie.js 2009-09-09 11:27:12 UTC (rev 1234) @@ -231,7 +231,7 @@ //chset childNodesで要素を作成していく SVGtoVML.prototype.chset = function _s_chset( /*element*/ ele, /*Matrix*/ matrix, /*float*/w, /*float*/h){ var nods = ele.childNodes, s = null; - var name = "group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE", gname = "DIV|group"; //要素名に合致させる文字列 + var name = "group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE|set", gname = "DIV|group"; //要素名に合致させる文字列 var cmatrix = matrix; //子要素に継がせるCTM var te = nods[0]; if (te !== void 0) { @@ -277,6 +277,8 @@ cmatrix = s.transformable; } else if (te.nodeName === "image") { s = new STImage(te, matrix, w, h); + } else if (te.nodeName === "set") { + s = new STSetElement(te, matrix); } if (s) { this.children[this.children.length] = s; @@ -1824,13 +1826,14 @@ } //SMIL言語のset要素を参照 -function STSetElement(ele) { +function STSetElement( /*element*/ ele, /*Matrix*/ matrix) { this.tar = ele; var begin = new Date(), end = new Date(); begin.synchParser(ele.getAttribute("begin")); end.synchParser(ele.getAttribute("end")); begin.indefinite = false; end.indefinite = false; + this.transformable = matrix; this.beginEvent = begin; this.endEvent = end; this.currentTime = 0; return this; @@ -1838,20 +1841,24 @@ //timeLineはアニメーションのタイムラインとして、フレームを再生する際に使用 NAIBU.timeLine = []; STSetElement.prototype.set = function() { + try{ var tb = null; if (this.beginEvent.event !== "") { tb = this.beginEvent; + tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる + this.tar.parentNode.attachEvent(tb.event,(function(){ + tb.indefinite = false; + })); } if (this.endEvent.event !== "") { tb = this.endEvent; - } - if (!tb) { //イベントが設定されているならば - tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる + tb.indefinite = true; this.tar.parentNode.attachEvent(tb.event,(function(){ tb.indefinite = false; })); } NAIBU.timeLine[NAIBU.timeLine.length] = this; + } catch (e){stlog.add(e,18590)} } STSetElement.prototype.frame = function() { if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { @@ -1948,8 +1955,8 @@ this.event = midValue || pool; } var beginEvent = new Date(), endEvent = new Date(), _currentTime = 0; -beginEvent.synchParser("id.event"); -endEvent.synchParser("00:04"); +beginEvent.synchParser("1s"); +endEvent.synchParser("2s"); beginEvent.indefinite = false; endEvent.indefinite = false; function woso(){ @@ -1960,7 +1967,7 @@ _currentTime += 100; }),41) } -woso(); + function utf16( /*string*/ s) { return unescape(s); } @@ -2055,7 +2062,8 @@ .replace(//g, "/v:group>") .replace(/)/g, "/g, "/dn:defs>"); + .replace(/\/defs>/g, "/dn:defs>") + .replace(/ Revision: 1235 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1235 Author: dhrname Date: 2009-09-10 21:30:51 +0900 (Thu, 10 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-09 11:27:12 UTC (rev 1234) +++ branches/05x/051/sie.js 2009-09-10 12:30:51 UTC (rev 1235) @@ -1845,14 +1845,12 @@ var tb = null; if (this.beginEvent.event !== "") { tb = this.beginEvent; - tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる - this.tar.parentNode.attachEvent(tb.event,(function(){ - tb.indefinite = false; - })); } if (this.endEvent.event !== "") { tb = this.endEvent; - tb.indefinite = true; + } + if (tb) { + tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる this.tar.parentNode.attachEvent(tb.event,(function(){ tb.indefinite = false; })); @@ -1967,7 +1965,11 @@ _currentTime += 100; }),41) } - +setInterval((function() { + for (var i=0,ntli=NAIBU.timeLine.length;i Revision: 1236 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1236 Author: dhrname Date: 2009-09-10 22:08:33 +0900 (Thu, 10 Sep 2009) Log Message: ----------- EventCaputerStartでタイムラインを実装 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-10 12:30:51 UTC (rev 1235) +++ branches/05x/051/sie.js 2009-09-10 13:08:33 UTC (rev 1236) @@ -317,6 +317,8 @@ try { getURL(this.emd[n].src,ca,this.emd,n+1); } catch(e) {stlog.add(e,185);this.next();} + } else { //全要素の読み込みが終われば + EventCaputerStart(); //イベントを開始させる } } catch(e) {stlog.add(e,293);this.onumber++;this.next();} } @@ -1845,12 +1847,14 @@ var tb = null; if (this.beginEvent.event !== "") { tb = this.beginEvent; + tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる + this.tar.parentNode.attachEvent(tb.event,(function(){ + tb.indefinite = false; + })); } if (this.endEvent.event !== "") { tb = this.endEvent; - } - if (tb) { - tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる + tb.indefinite = true; this.tar.parentNode.attachEvent(tb.event,(function(){ tb.indefinite = false; })); @@ -1952,24 +1956,13 @@ this.mode = mode; this.event = midValue || pool; } -var beginEvent = new Date(), endEvent = new Date(), _currentTime = 0; -beginEvent.synchParser("1s"); -endEvent.synchParser("2s"); -beginEvent.indefinite = false; -endEvent.indefinite = false; -function woso(){ -setInterval((function() { - if (beginEvent.isFired(_currentTime) && !endEvent.isFired(_currentTime)) { - alert(beginEvent.event); - } - _currentTime += 100; -}),41) -} -setInterval((function() { +function EventCaputerStart(){ +NAIBU.time = setInterval((function() { for (var i=0,ntli=NAIBU.timeLine.length;i Revision: 1237 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1237 Author: dhrname Date: 2009-09-10 22:10:14 +0900 (Thu, 10 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-10 13:08:33 UTC (rev 1236) +++ branches/05x/051/sie.js 2009-09-10 13:10:14 UTC (rev 1237) @@ -92,6 +92,7 @@ } //他のページに移動する際に起動 function unsvgtovml() { + clearInterval(NAIBU.time); NAIBU = stlog = STLog = null; } From svnnotify @ sourceforge.jp Fri Sep 11 21:09:09 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Fri, 11 Sep 2009 21:09:09 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjM4XSAgYXR0YWNoRXZl?= =?utf-8?b?bnRu6YOo5YiG44Gu5L+u5q2j?= Message-ID: <1252670949.969514.14012.nullmailer@users.sourceforge.jp> Revision: 1238 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1238 Author: dhrname Date: 2009-09-11 21:09:09 +0900 (Fri, 11 Sep 2009) Log Message: ----------- attachEventn部分の修正 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-10 13:10:14 UTC (rev 1237) +++ branches/05x/051/sie.js 2009-09-11 12:09:09 UTC (rev 1238) @@ -1849,14 +1849,14 @@ if (this.beginEvent.event !== "") { tb = this.beginEvent; tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる - this.tar.parentNode.attachEvent(tb.event,(function(){ + this.tar.parentNode.attachEvent("on" +tb.event,(function(){ tb.indefinite = false; })); } if (this.endEvent.event !== "") { tb = this.endEvent; tb.indefinite = true; - this.tar.parentNode.attachEvent(tb.event,(function(){ + this.tar.parentNode.attachEvent("on" +tb.event,(function(){ tb.indefinite = false; })); } From svnnotify @ sourceforge.jp Sat Sep 12 21:17:25 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 12 Sep 2009 21:17:25 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjM5XQ==?= Message-ID: <1252757845.840556.19167.nullmailer@users.sourceforge.jp> Revision: 1239 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1239 Author: dhrname Date: 2009-09-12 21:17:25 +0900 (Sat, 12 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-11 12:09:09 UTC (rev 1238) +++ branches/05x/051/sie.js 2009-09-12 12:17:25 UTC (rev 1239) @@ -279,7 +279,7 @@ } else if (te.nodeName === "image") { s = new STImage(te, matrix, w, h); } else if (te.nodeName === "set") { - s = new STSetElement(te, matrix); + s = new STSetElement(te, matrix, w, h); } if (s) { this.children[this.children.length] = s; @@ -1829,35 +1829,37 @@ } //SMIL言語のset要素を参照 -function STSetElement( /*element*/ ele, /*Matrix*/ matrix) { +function STSetElement( /*element*/ ele, /*Matrix*/ matrix, w, h) { this.tar = ele; var begin = new Date(), end = new Date(); begin.synchParser(ele.getAttribute("begin")); end.synchParser(ele.getAttribute("end")); begin.indefinite = false; end.indefinite = false; + this.to = ele.getAttribute("to"); + this.attrName = ele.getAttribute("attributeName") this.transformable = matrix; this.beginEvent = begin; this.endEvent = end; this.currentTime = 0; + this.width = w; this.height = h; return this; } //timeLineはアニメーションのタイムラインとして、フレームを再生する際に使用 NAIBU.timeLine = []; STSetElement.prototype.set = function() { try{ - var tb = null; if (this.beginEvent.event !== "") { - tb = this.beginEvent; + var tb = this.beginEvent; tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる this.tar.parentNode.attachEvent("on" +tb.event,(function(){ tb.indefinite = false; })); } if (this.endEvent.event !== "") { - tb = this.endEvent; - tb.indefinite = true; - this.tar.parentNode.attachEvent("on" +tb.event,(function(){ - tb.indefinite = false; + var te = this.endEvent; + te.indefinite = true; + this.tar.parentNode.attachEvent("on" +te.event,(function(){ + te.indefinite = false; })); } NAIBU.timeLine[NAIBU.timeLine.length] = this; @@ -1865,10 +1867,16 @@ } STSetElement.prototype.frame = function() { if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { - alert(this.beginEvent.event); + this.tar.parentNode.setAttribute(this.attrName, this.to); + this.children = []; + this.chset(this.tar.parentNode,this.transformable, this.width, this.height); + } else if(this.endEvent.isFired(this.currentTime)){ + this.beginEvent.indefinite = true; + this.endEvent.indefinite = true; } this.currentTime += 100; } +STSetElement.prototype.chset = SVGtoVML.prototype.chset; //setClockValueメソッド。同期させるSMIL言語に使う Date.prototype.setClockValue = function(str) { From svnnotify @ sourceforge.jp Sat Sep 12 23:40:17 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 12 Sep 2009 23:40:17 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQwXQ==?= Message-ID: <1252766417.028859.8906.nullmailer@users.sourceforge.jp> Revision: 1240 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1240 Author: dhrname Date: 2009-09-12 23:40:16 +0900 (Sat, 12 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-12 12:17:25 UTC (rev 1239) +++ branches/05x/051/sie.js 2009-09-12 14:40:16 UTC (rev 1240) @@ -1836,8 +1836,8 @@ end.synchParser(ele.getAttribute("end")); begin.indefinite = false; end.indefinite = false; - this.to = ele.getAttribute("to"); - this.attrName = ele.getAttribute("attributeName") + this.to = ele.getAttribute("to") || ""; + this.attrName = ele.getAttribute("attributeName"); this.transformable = matrix; this.beginEvent = begin; this.endEvent = end; this.currentTime = 0; @@ -1846,7 +1846,8 @@ } //timeLineはアニメーションのタイムラインとして、フレームを再生する際に使用 NAIBU.timeLine = []; -STSetElement.prototype.set = function() { +STSetElement.prototype.set = function(sw, sh) { + this.w = sw; this.h = sh; try{ if (this.beginEvent.event !== "") { var tb = this.beginEvent; @@ -1867,9 +1868,15 @@ } STSetElement.prototype.frame = function() { if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { - this.tar.parentNode.setAttribute(this.attrName, this.to); + var target = this.tar.parentNode; //変更される対象要素 + alert(""); this.children = []; - this.chset(this.tar.parentNode,this.transformable, this.width, this.height); + if (target.nodeName === "group") { + this.chset(target, this.transformable, this.width, this.height); + } else { + this.chset({childNodes:[target]}, (new Matrix(1,0,0,1,0,0)), this.width, this.height); + } + stvsetob(this.children,this.w,this.h); } else if(this.endEvent.isFired(this.currentTime)){ this.beginEvent.indefinite = true; this.endEvent.indefinite = true; From svnnotify @ sourceforge.jp Sat Sep 12 23:45:23 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sat, 12 Sep 2009 23:45:23 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQxXSAgc2V06KaB57Sg?= =?utf-8?b?44Gu5a6f6KOF44KS44KE44KB44KL?= Message-ID: <1252766723.653248.14362.nullmailer@users.sourceforge.jp> Revision: 1241 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1241 Author: dhrname Date: 2009-09-12 23:45:23 +0900 (Sat, 12 Sep 2009) Log Message: ----------- set要素の実装をやめる Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-12 14:40:16 UTC (rev 1240) +++ branches/05x/051/sie.js 2009-09-12 14:45:23 UTC (rev 1241) @@ -92,7 +92,6 @@ } //他のページに移動する際に起動 function unsvgtovml() { - clearInterval(NAIBU.time); NAIBU = stlog = STLog = null; } @@ -232,7 +231,7 @@ //chset childNodesで要素を作成していく SVGtoVML.prototype.chset = function _s_chset( /*element*/ ele, /*Matrix*/ matrix, /*float*/w, /*float*/h){ var nods = ele.childNodes, s = null; - var name = "group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE|set", gname = "DIV|group"; //要素名に合致させる文字列 + var name = "group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE", gname = "DIV|group"; //要素名に合致させる文字列 var cmatrix = matrix; //子要素に継がせるCTM var te = nods[0]; if (te !== void 0) { @@ -278,8 +277,6 @@ cmatrix = s.transformable; } else if (te.nodeName === "image") { s = new STImage(te, matrix, w, h); - } else if (te.nodeName === "set") { - s = new STSetElement(te, matrix, w, h); } if (s) { this.children[this.children.length] = s; @@ -319,7 +316,6 @@ getURL(this.emd[n].src,ca,this.emd,n+1); } catch(e) {stlog.add(e,185);this.next();} } else { //全要素の読み込みが終われば - EventCaputerStart(); //イベントを開始させる } } catch(e) {stlog.add(e,293);this.onumber++;this.next();} } @@ -1828,157 +1824,6 @@ } catch(e) {stlog.add(e,17155);} } -//SMIL言語のset要素を参照 -function STSetElement( /*element*/ ele, /*Matrix*/ matrix, w, h) { - this.tar = ele; - var begin = new Date(), end = new Date(); - begin.synchParser(ele.getAttribute("begin")); - end.synchParser(ele.getAttribute("end")); - begin.indefinite = false; - end.indefinite = false; - this.to = ele.getAttribute("to") || ""; - this.attrName = ele.getAttribute("attributeName"); - this.transformable = matrix; - this.beginEvent = begin; this.endEvent = end; - this.currentTime = 0; - this.width = w; this.height = h; - return this; -} -//timeLineはアニメーションのタイムラインとして、フレームを再生する際に使用 -NAIBU.timeLine = []; -STSetElement.prototype.set = function(sw, sh) { - this.w = sw; this.h = sh; - try{ - if (this.beginEvent.event !== "") { - var tb = this.beginEvent; - tb.indefinite = true; //これにより、イベントが起きるまで作動を待たせる - this.tar.parentNode.attachEvent("on" +tb.event,(function(){ - tb.indefinite = false; - })); - } - if (this.endEvent.event !== "") { - var te = this.endEvent; - te.indefinite = true; - this.tar.parentNode.attachEvent("on" +te.event,(function(){ - te.indefinite = false; - })); - } - NAIBU.timeLine[NAIBU.timeLine.length] = this; - } catch (e){stlog.add(e,18590)} -} -STSetElement.prototype.frame = function() { - if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { - var target = this.tar.parentNode; //変更される対象要素 - alert(""); - this.children = []; - if (target.nodeName === "group") { - this.chset(target, this.transformable, this.width, this.height); - } else { - this.chset({childNodes:[target]}, (new Matrix(1,0,0,1,0,0)), this.width, this.height); - } - stvsetob(this.children,this.w,this.h); - } else if(this.endEvent.isFired(this.currentTime)){ - this.beginEvent.indefinite = true; - this.endEvent.indefinite = true; - } - this.currentTime += 100; -} -STSetElement.prototype.chset = SVGtoVML.prototype.chset; - -//setClockValueメソッド。同期させるSMIL言語に使う -Date.prototype.setClockValue = function(str) { - var n = str.indexOf(":"), d = 0, h = 0, min = 0, s = 0; - if (n === -1) { //単位つきTimecount-Valueならば - d = parseFloat(str); - if (isNaN(d)) { - throw new Error("文法エラーです"); - } - var tani = str.match(/[a-z]+/); - tani = tani ? tani : "s"; - d *= this._tani[tani]; - } else { - if (n !== str.lastIndexOf(":")) { //Full-clock-Valueならば - var fullClock = str.match(/(\d+)\:(\d\d)\:([\.\d]+)/); - h = RegExp.$1; min = RegExp.$2; s = RegExp.$3; - } else { - partialClock = str.match(/(\d\d)\:([\.\d]+)/); - min = RegExp.$1; s = RegExp.$2; - } - d = parseInt(h,10)*3600000 + parseInt(min,10)*6000 + parseFloat(s,10)*1000; - } - this.clockValue = d; -} -Date.prototype._tani = {"h":3600000, "min":6000, "s":1000, "ms":1}; -//isFiredメソッド。イベントが発火されたかどうか。返す値はBoolean型。 -Date.prototype.isFired = function(s) { - if (s >= this.clockValue && !this.indefinite) { - return true; - } else { - return false; - } -} -//synchParserメソッド。begin属性の値などの解析を行う。 -Date.prototype.synchParser = function(str) { - var mode = 0, pool = "", midValue = null, idValue = null; - for (var i=0,sti=str.length;i/g, "/v:group>") .replace(/)/g, "/g, "/dn:defs>") - .replace(//g, "/dn:defs>"); var ob = document.createElement("v:group"); var obst = ob.style; ob.innerHTML = dc; From svnnotify @ sourceforge.jp Sun Sep 13 19:35:16 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 Sep 2009 19:35:16 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQyXSAgUGFpbnRDb2xv?= =?utf-8?b?cuOCquODluOCuOOCp+OCr+ODiOOBq2ZpbGxFbGVtZW5044OX44Ot44OR44OG?= =?utf-8?b?44Kj44KS6L+95Yqg?= Message-ID: <1252838116.473572.30873.nullmailer@users.sourceforge.jp> Revision: 1242 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1242 Author: dhrname Date: 2009-09-13 19:35:16 +0900 (Sun, 13 Sep 2009) Log Message: ----------- PaintColorオブジェクトにfillElementプロパティを追加 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-12 14:45:23 UTC (rev 1241) +++ branches/05x/051/sie.js 2009-09-13 10:35:16 UTC (rev 1242) @@ -218,6 +218,7 @@ } } } + CollectGarbage(); //IEの非公式なやりかた } catch(e) {stlog.add(e,138);} } SVGtoVML.prototype.setObject = function stvsetob( /*SVGElement*/ arr, /*float*/ sw, /*float*/ sh) { @@ -952,6 +953,12 @@ name = null; } } + if (this.fill !== "none") { + this.fillElement = document.createElement("v:fill"); + } + if (this.stroke !== "none") { + this.strokeElement = document.createElement("v:stroke"); + } } return this; } @@ -1014,7 +1021,7 @@ if (this.fill === "none") { el.filled = "false"; } else { - var fillElement = document.createElement("v:fill"); + var fillElement = this.fillElement; var isRadial = false; try { if (this._urlreg.test(this.fill)) { //fill属性の値がurl(#id)ならば、idを設定したグラデーション関連要素を呼び出す @@ -1037,7 +1044,7 @@ if (this.stroke === "none") { el.stroked = "false"; } else { - var strokeElement = document.createElement("v:stroke"); + var strokeElement = this.strokeElement; try { var sw = new STLength(this.strokewidth, Math.sqrt((w*w + h*h) / 2)); var swx = sw.value * Math.sqrt(Math.abs(matrix.determinant())); From svnnotify @ sourceforge.jp Sun Sep 13 21:07:56 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 Sep 2009 21:07:56 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQzXSAgc2V0QXR0cmli?= =?utf-8?b?dXRlTlPjg6Hjgr3jg4Pjg4njgpLlrp/pqJPjgajjgZfjgablrp/oo4U=?= Message-ID: <1252843676.734289.5239.nullmailer@users.sourceforge.jp> Revision: 1243 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1243 Author: dhrname Date: 2009-09-13 21:07:56 +0900 (Sun, 13 Sep 2009) Log Message: ----------- setAttributeNSメソッドを実験として実装 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-13 10:35:16 UTC (rev 1242) +++ branches/05x/051/sie.js 2009-09-13 12:07:56 UTC (rev 1243) @@ -541,6 +541,7 @@ //path要素の処理 function STPath( /*element*/ ele, /*Matrix*/ matrix) { this.tar = ele; + this.partransformable = matrix; this.d = ele.getAttribute("d"); this.paint = new NAIBU.PaintColor(ele); this.transformable = NAIBU.transformToCTM(ele,matrix); @@ -641,10 +642,32 @@ ele.path = dat + " e"; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = this.paint = ttm = this.transformable = this.d = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = w = h = null; //解放 + this.w = w; this.h = h; + dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 } catch(e) {stlog.add(e,372);} } - +STPath.prototype.setAttributeNS = function ( /*string*/ namespaceURI, /*string*/ name, /*string*/ value) { + if (this.paint.defaults[name] !== void 0) { //スタイルで定義されていれば + name = name.replace(/fill-/g, "fill").replace(/stroke-/g, "stroke"); + this.paint[name] = value; + if (name === "fill" || this.paint.fillElement === void 0) { + this.paint.fillElement = document.createElement("v:fill"); + } + if (name === "stroke" || this.paint.strokeElement === void 0) { + this.paint.strokeElement = document.createElement("v:stroke"); + } + this.paint.set(this.w, this.h, this.transformable); + } + var tn = this[name]; + if (tn !== void 0) { //属性が定義されていれば + if (tn === "transform") { + this.transformable = NAIBU.transformToCTM(this.tar, this.partransformable) + } + if (typeof tn === "string" || tn instanceof STLength) { //文字列か長さの場合 + this.set(this.w, this.h); + } + } +} //QからCに変換 NAIBU.qtoc = function (/*float*/ x, /*float*/ y, /*Array*/ F) { F[0] = "c"; From svnnotify @ sourceforge.jp Sun Sep 13 23:41:11 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 13 Sep 2009 23:41:11 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQ0XSAgZmlsbOimgQ==?= =?utf-8?b?57Sg44Gu6Kq/5pW077yI5a6f6aiT5Lit77yJ?= Message-ID: <1252852871.443483.16466.nullmailer@users.sourceforge.jp> Revision: 1244 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1244 Author: dhrname Date: 2009-09-13 23:41:11 +0900 (Sun, 13 Sep 2009) Log Message: ----------- fill要素の調整(実験中) TO DO fillELementの生成をset関数に移す Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-13 12:07:56 UTC (rev 1243) +++ branches/05x/051/sie.js 2009-09-13 14:41:11 UTC (rev 1244) @@ -644,29 +644,42 @@ this.paint.set(w, h, ttm); this.w = w; this.h = h; dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 + if(Nnenn) { + Nnenn = false; + this.setAttributeNS("http://www.w3.org/svg/2000","stroke-width", "10px"); + this.setAttributeNS("http://www.w3.org/svg/2000","fill", "red"); + } } catch(e) {stlog.add(e,372);} } +Nnenn = true; STPath.prototype.setAttributeNS = function ( /*string*/ namespaceURI, /*string*/ name, /*string*/ value) { +try{ //以下でfill,storke要素のリセットが必要 + if (this.tar.getElementsByTagName("fill").length > 0) { + this.tar.removeChild(this.paint.fillElement); + } + this.paint.fillElement = document.createElement("v:fill"); + if (this.tar.getElementsByTagName("stroke").length > 0) { + this.tar.removeChild(this.paint.strokeElement); + } + this.paint.strokeElement = document.createElement("v:stroke"); if (this.paint.defaults[name] !== void 0) { //スタイルで定義されていれば - name = name.replace(/fill-/g, "fill").replace(/stroke-/g, "stroke"); + name = name.replace(/fill-/, "fill").replace(/stroke-/, "stroke"); this.paint[name] = value; - if (name === "fill" || this.paint.fillElement === void 0) { - this.paint.fillElement = document.createElement("v:fill"); - } - if (name === "stroke" || this.paint.strokeElement === void 0) { - this.paint.strokeElement = document.createElement("v:stroke"); - } this.paint.set(this.w, this.h, this.transformable); } - var tn = this[name]; + var tn = this[name]; if (tn !== void 0) { //属性が定義されていれば if (tn === "transform") { this.transformable = NAIBU.transformToCTM(this.tar, this.partransformable) } - if (typeof tn === "string" || tn instanceof STLength) { //文字列か長さの場合 - this.set(this.w, this.h); + if (typeof tn === "string"){//文字列の場合 + this[tn] = value; + } else if (tn instanceof STLength) { //長さの場合 + this[tn].newValueSpecifiedUnits(this[tn].uniType, parseFloat(value)); } + this.set(this.w, this.h); } + }catch(e){stlog.add(e,6824);} } //QからCに変換 NAIBU.qtoc = function (/*float*/ x, /*float*/ y, /*Array*/ F) { From svnnotify @ sourceforge.jp Mon Sep 14 21:24:06 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 Sep 2009 21:24:06 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQ1XSAgZmlsbOOAgXN0?= =?utf-8?b?cm9rZeimgee0oOOBrueUn+aIkOOCkuWFg+OBq+aIu+OBmQ==?= Message-ID: <1252931046.820574.30550.nullmailer@users.sourceforge.jp> Revision: 1245 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1245 Author: dhrname Date: 2009-09-14 21:24:06 +0900 (Mon, 14 Sep 2009) Log Message: ----------- fill、stroke要素の生成を元に戻す Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-13 14:41:11 UTC (rev 1244) +++ branches/05x/051/sie.js 2009-09-14 12:24:06 UTC (rev 1245) @@ -646,22 +646,20 @@ dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 if(Nnenn) { Nnenn = false; - this.setAttributeNS("http://www.w3.org/svg/2000","stroke-width", "10px"); - this.setAttributeNS("http://www.w3.org/svg/2000","fill", "red"); + this.setAttributeNS("http://www.w3.org/svg/2000","stroke", "red"); } } catch(e) {stlog.add(e,372);} } Nnenn = true; STPath.prototype.setAttributeNS = function ( /*string*/ namespaceURI, /*string*/ name, /*string*/ value) { try{ //以下でfill,storke要素のリセットが必要 - if (this.tar.getElementsByTagName("fill").length > 0) { - this.tar.removeChild(this.paint.fillElement); + var tgebtfill = this.tar.getElementsByTagName("fill"), tgebtstroke = this.tar.getElementsByTagName("stroke"); + if (tgebtfill.length > 0) { + this.tar.removeChild(tgebtfill[0]); } - this.paint.fillElement = document.createElement("v:fill"); - if (this.tar.getElementsByTagName("stroke").length > 0) { - this.tar.removeChild(this.paint.strokeElement); + if (tgebtstroke.length > 0) { + this.tar.removeChild(tgebtstroke[0]); } - this.paint.strokeElement = document.createElement("v:stroke"); if (this.paint.defaults[name] !== void 0) { //スタイルで定義されていれば name = name.replace(/fill-/, "fill").replace(/stroke-/, "stroke"); this.paint[name] = value; @@ -989,12 +987,6 @@ name = null; } } - if (this.fill !== "none") { - this.fillElement = document.createElement("v:fill"); - } - if (this.stroke !== "none") { - this.strokeElement = document.createElement("v:stroke"); - } } return this; } @@ -1057,7 +1049,7 @@ if (this.fill === "none") { el.filled = "false"; } else { - var fillElement = this.fillElement; + var fillElement = document.createElement("v:fill");; var isRadial = false; try { if (this._urlreg.test(this.fill)) { //fill属性の値がurl(#id)ならば、idを設定したグラデーション関連要素を呼び出す @@ -1080,7 +1072,7 @@ if (this.stroke === "none") { el.stroked = "false"; } else { - var strokeElement = this.strokeElement; + 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())); From svnnotify @ sourceforge.jp Mon Sep 14 22:34:22 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 Sep 2009 22:34:22 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQ2XSAgZ+imgee0oA==?= =?utf-8?b?44Gr44KC5a++5Yem?= Message-ID: <1252935262.688284.24715.nullmailer@users.sourceforge.jp> Revision: 1246 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1246 Author: dhrname Date: 2009-09-14 22:34:22 +0900 (Mon, 14 Sep 2009) Log Message: ----------- g要素にも対処 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-14 12:24:06 UTC (rev 1245) +++ branches/05x/051/sie.js 2009-09-14 13:34:22 UTC (rev 1246) @@ -340,6 +340,7 @@ function STGroupElement( /*element*/ g, /*Matrix*/ matrix, /*float*/w, h) { try{ this.tar = g; + this.partransformable = matrix; this.transformable = NAIBU.transformToCTM(g,matrix); //g要素のtransform属性を前もって処理 //以下、ツリーとして処理 this.children = []; @@ -351,7 +352,7 @@ STGroupElement.prototype.set = function (sw,sh) { try{ stvsetob(this.children,sw,sh); - this.children = this.transformable = null; + this.w = sw; this.h = sh; } catch(e){stlog.addd(e,3145)} } STGroupElement.prototype.chset = SVGtoVML.prototype.chset; @@ -643,33 +644,43 @@ ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); this.w = w; this.h = h; - dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 if(Nnenn) { Nnenn = false; this.setAttributeNS("http://www.w3.org/svg/2000","stroke", "red"); + this.setAttributeNS("http://www.w3.org/svg/2000","stroke-width", "20px"); } + dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 } catch(e) {stlog.add(e,372);} } Nnenn = true; STPath.prototype.setAttributeNS = function ( /*string*/ namespaceURI, /*string*/ name, /*string*/ value) { try{ //以下でfill,storke要素のリセットが必要 - var tgebtfill = this.tar.getElementsByTagName("fill"), tgebtstroke = this.tar.getElementsByTagName("stroke"); - if (tgebtfill.length > 0) { - this.tar.removeChild(tgebtfill[0]); + if (this instanceof STGroupElement) { + this.paint = NAIBU.PaintColor.prototype.cache[this.tar.uniqueID]; + name = name.replace(/fill-/, "fill").replace(/stroke-/, "stroke"); + if (this.paint.defaults[name] !== void 0) { //スタイルで定義されていれば + this.paint[name] = value; + } + } else { + var tgebtfill = this.tar.getElementsByTagName("fill"), tgebtstroke = this.tar.getElementsByTagName("stroke"); + if (tgebtfill.length > 0) { + this.tar.removeChild(tgebtfill[0]); + } + if (tgebtstroke.length > 0) { + this.tar.removeChild(tgebtstroke[0]); + } + name = name.replace(/fill-/, "fill").replace(/stroke-/, "stroke"); + if (this.paint.defaults[name] !== void 0) { + this.paint[name] = value; + this.paint.set(this.w, this.h, this.transformable); + } } - if (tgebtstroke.length > 0) { - this.tar.removeChild(tgebtstroke[0]); + if (name === "transform") { + this.transformable = NAIBU.transformToCTM(this.tar, this.partransformable); + this.set(this.w, this.h); } - if (this.paint.defaults[name] !== void 0) { //スタイルで定義されていれば - name = name.replace(/fill-/, "fill").replace(/stroke-/, "stroke"); - this.paint[name] = value; - this.paint.set(this.w, this.h, this.transformable); - } - var tn = this[name]; + var tn = this[name]; if (tn !== void 0) { //属性が定義されていれば - if (tn === "transform") { - this.transformable = NAIBU.transformToCTM(this.tar, this.partransformable) - } if (typeof tn === "string"){//文字列の場合 this[tn] = value; } else if (tn instanceof STLength) { //長さの場合 From svnnotify @ sourceforge.jp Mon Sep 14 22:40:54 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 Sep 2009 22:40:54 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQ3XQ==?= Message-ID: <1252935654.590370.474.nullmailer@users.sourceforge.jp> Revision: 1247 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1247 Author: dhrname Date: 2009-09-14 22:40:54 +0900 (Mon, 14 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-14 13:34:22 UTC (rev 1246) +++ branches/05x/051/sie.js 2009-09-14 13:40:54 UTC (rev 1247) @@ -655,7 +655,7 @@ Nnenn = true; STPath.prototype.setAttributeNS = function ( /*string*/ namespaceURI, /*string*/ name, /*string*/ value) { try{ //以下でfill,storke要素のリセットが必要 - if (this instanceof STGroupElement) { + if (this instanceof STGroupElement) { //g要素ならば this.paint = NAIBU.PaintColor.prototype.cache[this.tar.uniqueID]; name = name.replace(/fill-/, "fill").replace(/stroke-/, "stroke"); if (this.paint.defaults[name] !== void 0) { //スタイルで定義されていれば From svnnotify @ sourceforge.jp Mon Sep 14 22:50:27 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 14 Sep 2009 22:50:27 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQ4XSAgdHJhbnNmb3Jt?= =?utf-8?b?5bGe5oCn44Gu5YuV55qE5aSJ5pu044Gr5a++5b+c?= Message-ID: <1252936227.145225.12245.nullmailer@users.sourceforge.jp> Revision: 1248 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1248 Author: dhrname Date: 2009-09-14 22:50:27 +0900 (Mon, 14 Sep 2009) Log Message: ----------- transform属性の動的変更に対応 Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-14 13:40:54 UTC (rev 1247) +++ branches/05x/051/sie.js 2009-09-14 13:50:27 UTC (rev 1248) @@ -646,8 +646,8 @@ this.w = w; this.h = h; if(Nnenn) { Nnenn = false; - this.setAttributeNS("http://www.w3.org/svg/2000","stroke", "red"); - this.setAttributeNS("http://www.w3.org/svg/2000","stroke-width", "20px"); + this.setAttributeNS("http://www.w3.org/svg/2000","stroke", "black"); + this.setAttributeNS("http://www.w3.org/svg/2000","transform", "scale(1.2)"); } dat = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 } catch(e) {stlog.add(e,372);} @@ -676,7 +676,9 @@ } } if (name === "transform") { - this.transformable = NAIBU.transformToCTM(this.tar, this.partransformable); + var tar = {getAttribute : (function(n){return value})}; + this.transformable = NAIBU.transformToCTM(tar, this.partransformable); + tar = null; this.set(this.w, this.h); } var tn = this[name]; From svnnotify @ sourceforge.jp Tue Sep 15 22:08:38 2009 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 15 Sep 2009 22:08:38 +0900 Subject: [Sie-announce] =?utf-8?b?U0lF44Kz44O844OJIFsxMjQ5XQ==?= Message-ID: <1253020118.348245.4437.nullmailer@users.sourceforge.jp> Revision: 1249 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1249 Author: dhrname Date: 2009-09-15 22:08:38 +0900 (Tue, 15 Sep 2009) Log Message: ----------- Modified Paths: -------------- trunk/help.html trunk/screenshot.html Modified: trunk/help.html =================================================================== --- trunk/help.html 2009-09-14 13:50:27 UTC (rev 1248) +++ trunk/help.html 2009-09-15 13:08:38 UTC (rev 1249) @@ -9,29 +9,29 @@

-
    + +

    ホーム > ヘルプ

    ヘルプ - SIE

    SIEとは

    SIE はHTMLのように、リンク機能が付いたベクタ形式の画像であるSVGをウェブ上で表示するための、オープンソースのソフトウェアです。

    -

    プロジェクトの目標

    -

    SIE プロジェクトは、Webの標準をサポートして、ネットに参加する誰もがSIEのコードを編集でき、利用できるようにします。詳しくは「SIE プロジェクトの目標」をご覧下さい。

    初めての方へ

    初めてSIEをお使いになる方は、「使い方 - SIE」のページをご覧になると便利です。

    +

    開発者の方へ

    +

    私たちのプロジェクトでは、さらなる協力者を求めています。もし、あなたが専門技術を持っていなくとも、何か、文書の作成や翻訳などで協力していただけることがあります。どんな細かいことでも、私たちには強力な手助けとなるのです。主に、次のようなボランティアが不足しているので、募集しています。

    +
      +
    1. JavaScriptの開発者
    2. +
    3. 英語の翻訳者
    4. +
    5. 公式サイトの編集者(またはデザイナー)
    6. +
    +

    もし、参加したいのであれば、sie-developers @ lists.sourceforge.jpに連絡して、何か自分に手伝えることがないかどうか、問うてみてください。

    困ったときは

    公式の「WIKI」をご覧下さい。また、解決できない疑問があれば、メーリングリストの会員(無料)となって、メールでご質問下されば回答を得ることができます。

    -

    リンク集

    -

    FAQ(よくある質問とその回答)

    1. プロジェクトに関する質問 @@ -124,6 +124,6 @@ GNU Free Documentation License

      ホームに戻る

      「オープンソース」はOpen Source Group Japanの商標です。

      -
      SourceForge.jp© Copyright 2009 dhrname(Eメールでdhrname @ mail.goo.ne.jp。開発ブログはdhrnameの開発日誌)このページの許諾に関して、GNU Free Documentation Licenseが適用されます。
      +
      SourceForge.jp© Copyright 2009 dhrname(Eメールでdhrname @ mail.goo.ne.jpSIE 公式WIKI SIE 公式メーリングリスト ブログ(dhrnameの開発日誌))このページの許諾に関して、GNU Free Documentation Licenseが適用されます。
      \ No newline at end of file Modified: trunk/screenshot.html =================================================================== --- trunk/screenshot.html 2009-09-14 13:50:27 UTC (rev 1248) +++ trunk/screenshot.html 2009-09-15 13:08:38 UTC (rev 1249) @@ -9,14 +9,15 @@

      -

      スクリーンショット - SIE

      -
        + +

        ホーム > スクリーンショット

        +

        スクリーンショット - SIE

        各ブラウザの見え方

        SIEを利用したデモのページについて、スクリーンショットを撮りました。各ブラウザの見え方は以下のとおりです。

        Firefoxの場合

        @@ -30,7 +31,7 @@

        注意

        他人の商標や著作物である可能性が高いため、Firefox以外のブラウザのGUIやロゴは写していません。なお、Firefoxのスクリーンショット写真は、MPL1.1のライセンスに従うものとします。

        ホームに戻る

        -
        © Copyright 2003 dhr(Eメールでdhrname @ mail.goo.ne.jp)コードの著作権の許諾に関しては、次の文章に書かれています。(英文LICENCE.txt)。このページの許諾に関しても、同様のライセンスが適用されるものとします。
        +
        © Copyright 2003 dhr(Eメールでdhrname @ mail.goo.ne.jpSIE 公式WIKI SIE 公式メーリングリスト ブログ(dhrnameの開発日誌))コードの著作権の許諾に関しては、次の文章に書かれています。(英文LICENCE.txt)。このページの許諾に関しても、同様のライセンスが適用されるものとします。