svnno****@sourc*****
svnno****@sourc*****
2010年 6月 30日 (水) 22:50:52 JST
Revision: 1915 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1915 Author: dhrname Date: 2010-06-30 22:50:52 +0900 (Wed, 30 Jun 2010) Log Message: ----------- 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-06-30 13:36:11 UTC (rev 1914) +++ branches/06x/061/org/w3c/dom/svg.js 2010-06-30 13:50:52 UTC (rev 1915) @@ -3763,6 +3763,8 @@ this.endElement = s.endElement; this.beginElementAt = s.beginElementAt; this.endElementAt = s.endElementAt; + //NAIBU.Clipというリストに追加 + NAIBU.Clip[NAIBU.Clip.length] = this; return this; }; SVGAnimationElement.constructor = SVGElement; @@ -3796,14 +3798,14 @@ NAIBU.stop = setInterval( (function() { var ntc = NAIBU.Time.currentFrame++; var nc = NAIBU.Clip; - var s = ntc * 41; + var s = ntc * 125 / 0.8; //フレーム数ntcをミリ秒数sに変換 for (var i=0,ncli=nc.length;i<ncli;++i) { var nci = nc[i]; if (nci.getStartTime() <= s) { if (nci.getCurrentTime() === 0) { nci.beginElement(); } - nci._currentTime += 41; + nci._currentTime += 125; } if (nci._end) { if (nci._end <= s && nci.getCurrentTime() !== 0) { @@ -3826,6 +3828,15 @@ function SVGAnimateElement(){ SVGAnimationElement.apply(this, arguments); + this.addEventListener("beginEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("endEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("repeatEvent", function(evt) { + var tar = evt.target; + }, false); return this; }; SVGAnimateElement.constructor = SVGAnimationElement; @@ -3833,6 +3844,15 @@ function SVGSetElement(){ SVGAnimationElement.apply(this, arguments); + this.addEventListener("beginEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("endEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("repeatEvent", function(evt) { + var tar = evt.target; + }, false); return this; }; SVGSetElement.constructor = SVGAnimationElement; @@ -3840,6 +3860,15 @@ function SVGAnimateMotionElement(){ SVGAnimationElement.apply(this, arguments); + this.addEventListener("beginEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("endEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("repeatEvent", function(evt) { + var tar = evt.target; + }, false); return this; }; SVGAnimateMotionElement.constructor = SVGAnimationElement; @@ -3857,6 +3886,15 @@ function SVGAnimateColorElement() { SVGAnimationElement.apply(this, arguments); + this.addEventListener("beginEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("endEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("repeatEvent", function(evt) { + var tar = evt.target; + }, false); return this; }; SVGAnimateColorElement.constructor = SVGAnimationElement; @@ -3864,6 +3902,15 @@ function SVGAnimateTransformElement() { SVGAnimationElement.apply(this, arguments); + this.addEventListener("beginEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("endEvent", function(evt) { + var tar = evt.target; + }, false); + this.addEventListener("repeatEvent", function(evt) { + var tar = evt.target; + }, false); return this; }; SVGAnimateTransformElement.constructor = SVGAnimationElement;