From b89fbb7c591e1f8527ec729fc5aeb8f562c27295 Mon Sep 17 00:00:00 2001 From: dhrname Date: Sun, 1 Mar 2015 22:05:21 +0900 Subject: [PATCH] Modify an advance method about a fixed numbe --- org/w3c/dom/smil.js | 12 ++++++++---- tool/Spec/spec/SvgDomSpec.js | 20 ++++++++++++++++++-- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index f473938..d6b65b5 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -487,7 +487,10 @@ base("$from").of( { } } ) - .mix( { + .mix( { + /*advanceメソッドで使われる有効数字の桁数 (小数点の桁数を決めるときに使う)*/ + degit: 0, + /*advance メソッド * アニメーションの進行具合を示す進捗率 t (0 <= t <= 1)をもとに、現在の呈示値を算出するためのもの * callメソッドが前もって呼び出されていることが前提となる*/ @@ -501,15 +504,16 @@ base("$from").of( { var str = "", numList = this.numList, strList = this.strList, - fromNumList = this.from.numList; + fromNumList = this.from.numList, + deg = this.degit; for (var i=0,nuli=numList.length;i