svnno****@sourc*****
svnno****@sourc*****
2010年 10月 11日 (月) 19:58:17 JST
Revision: 2054 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2054 Author: dhrname Date: 2010-10-11 19:58:17 +0900 (Mon, 11 Oct 2010) Log Message: ----------- SVGAnimationElementオブジェクトの修正 Modified Paths: -------------- branches/06x/061/org/w3c/dom/svg.js Modified: branches/06x/061/org/w3c/dom/svg.js =================================================================== --- branches/06x/061/org/w3c/dom/svg.js 2010-10-11 10:29:01 UTC (rev 2053) +++ branches/06x/061/org/w3c/dom/svg.js 2010-10-11 10:58:17 UTC (rev 2054) @@ -4378,6 +4378,7 @@ this.endElement = s.endElement; this.beginElementAt = s.beginElementAt; this.endElementAt = s.endElementAt; + this._begin = 0; this._from = this._to = this._values = this._by = null; this._keyTimes = null; this.addEventListener("beginEvent", function(evt) { @@ -4445,7 +4446,14 @@ } else if (tar._by) { tar._values = ["0", tar._by]; } else { - throw (new Error("アニメーション属性の設定を忘れていませんか")); + /*アニメーションの効果が出ないように調整する + *SMILアニメーションの仕様を参照 + * + *>if none of the from, to, by or values attributes are specified, the animation will have no effect + *「3.2.2. Animation function values」より引用 + *http://www.w3.org/TR/2001/REC-smil-animation-20010904/#AnimFuncValues + */ + return this; } if (tar.hasAttributeNS("http://www.w3.org/1999/xlink", "xlink:href")) { tar.targetElement = tar.ownerDocument.getElementById(tar.getAttributeNS("http://www.w3.org/1999/xlink", "xlink:href").substring(1)) @@ -4562,7 +4570,7 @@ start : function() { if (NAIBU.Clip.length > 0) { NAIBU.stop = setInterval( (function() { - try{ +/* try{*/ var ntc = NAIBU.Time.currentFrame++; var nc = NAIBU.Clip; var s = ntc * 125 / 0.8; //フレーム数ntcをミリ秒数sに変換 @@ -4589,9 +4597,9 @@ } nci = null; } - } catch (e) { +/* } catch (e) { stlog.add(e, 4157); - } + }*/ }), 125 );