[Sie-announce] SIEコード [2143] フレームの進行にバグがあったので修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 11月 15日 (月) 20:32:26 JST


Revision: 2143
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2143
Author:   dhrname
Date:     2010-11-15 20:32:25 +0900 (Mon, 15 Nov 2010)

Log Message:
-----------
フレームの進行にバグがあったので修正

Modified Paths:
--------------
    branches/06x/063/org/w3c/dom/svg.js

Modified: branches/06x/063/org/w3c/dom/svg.js
===================================================================
--- branches/06x/063/org/w3c/dom/svg.js	2010-11-14 13:22:12 UTC (rev 2142)
+++ branches/06x/063/org/w3c/dom/svg.js	2010-11-15 11:32:25 UTC (rev 2143)
@@ -4737,6 +4737,7 @@
             }
             if (!!nci._frame) {
               nci._frame();
+              nci._currentFrame++;
             }
           }
           nci = null;
@@ -4809,6 +4810,12 @@
         vi = null;
         return;
       }
+      if ((tar._keyTimes[1] === 1) && (tar._valueList.length > 2)) {
+        for (var i=0,n=0,tvli=tar._valueList.length-1;i<tvli;++i) {
+          n += 1 / tvli;
+          tar._keyTimes[i+1] = n;
+        }
+      }
       evt = tta = vir = vi = null;
     }, false);
   }, false);
@@ -4839,6 +4846,7 @@
          *http://www.w3.org/TR/2005/REC-SMIL2-20050107/animation.html#animationNS-SpecifyingAnimationFunction
          */
         var v = v1 + (v2-v1) * (tg-tar._keyTimes[ii]*d) / d;
+        console.log(tar._valueList+" " +tar._keyTimes);
         tanim.newValueSpecifiedUnits(tanim.unitType, v);
         tta.baseVal = tanim;
         tanim = null;




Sie-announce メーリングリストの案内
Back to archive index