From: dhrname Date: Thu, 22 Jan 2015 13:56:28 +0000 (+0900) Subject: Add a begin property of the object X-Git-Tag: version22~358 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5969e64df00b01fdba3bb543e09de966c69c3cbb;p=sie%2Fsie.git Add a begin property of the object --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 22d5386..2359058 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -139,16 +139,22 @@ if(window.requestAnimationFrame && requestAnimationFrame fpms: 0.024, /*タイムラインのリスト (時間区間の設定ができる)*/ timelines: [], + /*開始フレーム数。アニメーションの開始条件となる*/ + begin: 0, /*setFrame メソッド * フレーム数を数値num まで進めるか、戻す*/ setFrame: function( /*number*/ num) { + if(num < this.begin) { + return; + } var timelines = this.timelines; // タイムラインのリスト for (var i=0;i