[Sie-announce] SIEコード [2698] SVGTransformのメソッドに対して軽量化

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2011年 5月 23日 (月) 23:13:31 JST


Revision: 2698
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2698
Author:   dhrname
Date:     2011-05-23 23:13:31 +0900 (Mon, 23 May 2011)

Log Message:
-----------
SVGTransformのメソッドに対して軽量化

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

Modified: branches/07x/078/org/w3c/dom/svg.js
===================================================================
--- branches/07x/078/org/w3c/dom/svg.js	2011-05-22 10:25:49 UTC (rev 2697)
+++ branches/07x/078/org/w3c/dom/svg.js	2011-05-23 14:13:31 UTC (rev 2698)
@@ -2172,32 +2172,32 @@
   /*readonly unsigned short*/ type : SVGTransform.SVG_TRANSFORM_UNKNOWN,
   /*readonly float*/ angle : 0,
   /*void*/ setMatrix : function(/*SVGMatrix*/ matrix ) {
-    this.type = SVGTransform.SVG_TRANSFORM_MATRIX;
+    this.type = /*SVGTransform.SVG_TRANSFORM_MATRIX*/ 1;
     this.matrix = this._matrix.multiply(matrix);
   },
   /*void*/ setTranslate : function(/*float*/ tx, /*float*/ ty ) {
-    this.type = SVGTransform.SVG_TRANSFORM_TRANSLATE;
+    this.type = /*SVGTransform.SVG_TRANSFORM_TRANSLATE*/ 2;
     this.matrix = this._matrix.translate(tx, ty);
   },
   /*void*/ setScale : function(/*float*/ sx, /*float*/ sy ) {
-    this.type = SVGTransform.SVG_TRANSFORM_SCALE;
+    this.type = /*SVGTransform.SVG_TRANSFORM_SCALE*/ 3;
     this.matrix = this._matrix.scaleNonUniform(sx, sy);
   },
   /*void*/ setRotate : function(/*float*/ angle, /*float*/ cx, /*float*/ cy ) {
     this.angle = angle;
-    this.type = SVGTransform.SVG_TRANSFORM_ROTATE;
+    this.type = /*SVGTransform.SVG_TRANSFORM_ROTATE*/ 4;
     this.matrix = this._matrix.rotate(angle);
     this.matrix.e = (1-this.matrix.a)*cx - this.matrix.c*cy;
     this.matrix.f = -this.matrix.b*cx + (1-this.matrix.d)*cy;
   },
   /*void*/ setSkewX : function(/*float*/ angle ) {
     this.angle = angle;
-    this.type = SVGTransform.SVG_TRANSFORM_SKEWX;
+    this.type = /*SVGTransform.SVG_TRANSFORM_SKEWX*/ 5;
     this.matrix = this._matrix.skewX(angle);
   },
   /*void*/ setSkewY : function(/*float*/ angle ) {
     this.angle = angle;
-    this.type = SVGTransform.SVG_TRANSFORM_SKEWY;
+    this.type = /*SVGTransform.SVG_TRANSFORM_SKEWY*/ 6;
     this.matrix = this._matrix.skewY(angle);
   }
 };




Sie-announce メーリングリストの案内
アーカイブの一覧に戻る