[Sie-announce] SIEコード [2545]

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2011年 3月 31日 (木) 23:51:14 JST


Revision: 2545
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2545
Author:   dhrname
Date:     2011-03-31 23:51:14 +0900 (Thu, 31 Mar 2011)

Log Message:
-----------


Modified Paths:
--------------
    branches/07x/074/org/w3c/dom/svg.js

Modified: branches/07x/074/org/w3c/dom/svg.js
===================================================================
--- branches/07x/074/org/w3c/dom/svg.js	2011-03-31 14:37:34 UTC (rev 2544)
+++ branches/07x/074/org/w3c/dom/svg.js	2011-03-31 14:51:14 UTC (rev 2545)
@@ -2867,10 +2867,10 @@
       var tar = evt.target,
           matrix = tar.getScreenCTM(),
           tlist = tar.normalizedPathSegList,
+          _parseInt = _pInt,
           dat = [],
           ma = matrix.a, mb = matrix.b, mc = matrix.c, md = matrix.d, me = matrix.e, mf = matrix.f,
           cname = tar._com._nameCom,
-          pin = _pInt,
           isZ = tar._com._isZ, isC = tar._com._isC;
       for (var i=0, tli=tlist.numberOfItems;i<tli;++i) {
         var ti = tlist[i],
@@ -2882,14 +2882,14 @@
            *[mb md mf] * [y]
            *[0  0  1 ]   [1]
            */
-          t += ([ma*ti.x1 + mc*ti.y1 + me | 0,
-                 mb*ti.x1 + md*ti.y1 + mf | 0,
-                 ma*ti.x2 + mc*ti.y2 + me | 0,
-                 mb*ti.x2 + md*ti.y2 + mf | 0,
-                 ma*ti.x + mc*ti.y + me | 0,
-                 mb*ti.x + md*ti.y + mf | 0]).join(" ");
+          t += ([_parseInt(ma*ti.x1 + mc*ti.y1 + me, 10),
+                 _parseInt(mb*ti.x1 + md*ti.y1 + mf, 10),
+                 _parseInt(ma*ti.x2 + mc*ti.y2 + me, 10),
+                 _parseInt(mb*ti.x2 + md*ti.y2 + mf, 10),
+                 _parseInt(ma*ti.x + mc*ti.y + me, 10),
+                 _parseInt(mb*ti.x + md*ti.y + mf, 10)]).join(" ");
         } else if (!isZ[tps]) {
-          t += ma*ti.x + mc*ti.y + me | 0 + " " +pin(mb*ti.x + md*ti.y + mf, 10);
+          t += _parseInt(ma*ti.x + mc*ti.y + me, 10)+ " " +_parseInt(mb*ti.x + md*ti.y + mf, 10);
         }
         dat[i] = t;
       }




Sie-announce メーリングリストの案内
Zurück zum Archiv-Index