From: dhrname Date: Wed, 21 Jan 2015 14:21:25 +0000 (+0900) Subject: New object for SMIL Animation X-Git-Tag: version22~362 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5627645c45292686ac8597149f222652ce1f7681;p=sie%2Fsie.git New object for SMIL Animation --- diff --git a/document/ufltimatest.html b/document/ufltimatest.html index 554a0f5..f4282ec 100644 --- a/document/ufltimatest.html +++ b/document/ufltimatest.html @@ -22,7 +22,6 @@
  • ヘルプ
  • -

    @@ -60,4 +59,4 @@ * * ***** END LICENSE BLOCK ***** */--> - \ No newline at end of file + diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index ee0351a..83648dd 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -126,4 +126,41 @@ base("$event").up("TimeEvents").mix( { this.detail = detailArg; } } ); -//#endif // _SMIL_IDL_ \ No newline at end of file + +if(window.requestAnimationFrame && requestAnimationFrame + && !document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Animation", "1.1")) { + /*IE11などSMILアニメーションに対応していないブラウザ用*/ + + /*$frame オブジェクト + * 全体のフレームの管理を行う + */ + base("$frame").mix ( { + /*フレームレート。1ミリ秒何フレームか。計算を省略するためミリ秒使用*/ + fpms: 0.024, + /*タイムラインのリスト (時間区間の設定ができる)*/ + timelines: [], + /*setFrame メソッド + * フレーム数を数値num まで進めるか、戻す*/ + setFrame: function( /*number*/ num) { + var timelines = this.timelines; // タイムラインのリスト + for (var i=0;i