From 5e7641cd7a3e399cec56ac7b7f6828a855e96e02 Mon Sep 17 00:00:00 2001 From: dhrname Date: Mon, 25 Jun 2012 23:01:02 +0900 Subject: [PATCH] =?utf8?q?Path=20Type=E3=81=AE=E3=83=9E=E3=82=B8=E3=83=83?= =?utf8?q?=E3=82=AF=E3=83=8A=E3=83=B3=E3=83=90=E3=83=BC=E3=82=92=E3=82=B3?= =?utf8?q?=E3=83=A1=E3=83=B3=E3=83=88=E3=81=AB=E5=A4=89=E6=8F=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- org/w3c/dom/svg.js | 104 ++++++++++++++++++++++++++--------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index 0a77548..e4ebfb1 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -2338,34 +2338,34 @@ function SVGAnimatedPreserveAspectRatio() { }; function SVGPathSeg() { - /*readonly unsigned short*/ this.pathSegType = SVGPathSeg.PATHSEG_UNKNOWN; + /*readonly unsigned short*/ this.pathSegType = /*SVGPathSeg.PATHSEG_UNKNOWN*/ 0; /*readonly DOMString*/ this.pathSegTypeAsLetter = null; return this; }; -(function(t) { +/*(function(t) { // Path Segment Types - /*unsigned short*/ t.PATHSEG_UNKNOWN = 0; - /*unsigned short*/ t.PATHSEG_CLOSEPATH = 1; - /*unsigned short*/ t.PATHSEG_MOVETO_ABS = 2; - /*unsigned short*/ t.PATHSEG_MOVETO_REL = 3; - /*unsigned short*/ t.PATHSEG_LINETO_ABS = 4; - /*unsigned short*/ t.PATHSEG_LINETO_REL = 5; - /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_ABS = 6; - /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_REL = 7; - /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_ABS = 8; - /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_REL = 9; - /*unsigned short*/ t.PATHSEG_ARC_ABS = 10; - /*unsigned short*/ t.PATHSEG_ARC_REL = 11; - /*unsigned short*/ t.PATHSEG_LINETO_HORIZONTAL_ABS = 12; - /*unsigned short*/ t.PATHSEG_LINETO_HORIZONTAL_REL = 13; - /*unsigned short*/ t.PATHSEG_LINETO_VERTICAL_ABS = 14; - /*unsigned short*/ t.PATHSEG_LINETO_VERTICAL_REL = 15; - /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; - /*unsigned short*/ t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; - /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; - /*unsigned short*/ t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; -})(SVGPathSeg); + /*unsigned short t.PATHSEG_UNKNOWN = 0; + /*unsigned short t.PATHSEG_CLOSEPATH = 1; + /*unsigned short t.PATHSEG_MOVETO_ABS = 2; + /*unsigned short t.PATHSEG_MOVETO_REL = 3; + /*unsigned short t.PATHSEG_LINETO_ABS = 4; + /*unsigned short t.PATHSEG_LINETO_REL = 5; + /*unsigned short t.PATHSEG_CURVETO_CUBIC_ABS = 6; + /*unsigned short t.PATHSEG_CURVETO_CUBIC_REL = 7; + /*unsigned short t.PATHSEG_CURVETO_QUADRATIC_ABS = 8; + /*unsigned short t.PATHSEG_CURVETO_QUADRATIC_REL = 9; + /*unsigned short t.PATHSEG_ARC_ABS = 10; + /*unsigned short t.PATHSEG_ARC_REL = 11; + /*unsigned short t.PATHSEG_LINETO_HORIZONTAL_ABS = 12; + /*unsigned short t.PATHSEG_LINETO_HORIZONTAL_REL = 13; + /*unsigned short t.PATHSEG_LINETO_VERTICAL_ABS = 14; + /*unsigned short t.PATHSEG_LINETO_VERTICAL_REL = 15; + /*unsigned short t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; + /*unsigned short t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; + /*unsigned short t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; + /*unsigned short t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; +})(SVGPathSeg);*/ /*SVGPathSegxx *軽量化のために、SVGPathSegの継承をしない。また、{}オブジェクトで代用する予定 */ @@ -2373,7 +2373,7 @@ function SVGPathSegClosePath() { return this; }; SVGPathSegClosePath.prototype = { - pathSegType : SVGPathSeg.PATHSEG_CLOSEPATH, + pathSegType : /*SVGPathSeg.PATHSEG_CLOSEPATH*/ 1, pathSegTypeAsLetter : "z" }; function SVGPathSegMovetoAbs() { @@ -2382,7 +2382,7 @@ function SVGPathSegMovetoAbs() { return this; }; SVGPathSegMovetoAbs.prototype = { - pathSegType : SVGPathSeg.PATHSEG_MOVETO_ABS, + pathSegType : /*SVGPathSeg.PATHSEG_MOVETO_ABS*/ 2, pathSegTypeAsLetter : "M" }; function SVGPathSegMovetoRel() { @@ -2391,7 +2391,7 @@ function SVGPathSegMovetoRel() { return this; }; SVGPathSegMovetoRel.prototype = { - pathSegType : SVGPathSeg.PATHSEG_MOVETO_REL, + pathSegType : /*SVGPathSeg.PATHSEG_MOVETO_REL*/ 3, pathSegTypeAsLetter : "m" }; function SVGPathSegLinetoAbs() { @@ -2400,7 +2400,7 @@ function SVGPathSegLinetoAbs() { return this; }; SVGPathSegLinetoAbs.prototype = { - pathSegType : SVGPathSeg.PATHSEG_LINETO_ABS, + pathSegType : /*SVGPathSeg.PATHSEG_LINETO_ABS*/ 4, pathSegTypeAsLetter : "L" }; function SVGPathSegLinetoRel() { @@ -2409,7 +2409,7 @@ function SVGPathSegLinetoRel() { return this; }; SVGPathSegLinetoRel.prototype = { - pathSegType : SVGPathSeg.PATHSEG_LINETO_REL, + pathSegType : /*SVGPathSeg.PATHSEG_LINETO_REL*/ 5, pathSegTypeAsLetter : "l" }; function SVGPathSegCurvetoCubicAbs() { @@ -2422,7 +2422,7 @@ function SVGPathSegCurvetoCubicAbs() { return this; }; SVGPathSegCurvetoCubicAbs.prototype = { - pathSegType : SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, + pathSegType : /*SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS*/ 6, pathSegTypeAsLetter : "C" }; function SVGPathSegCurvetoCubicRel() { @@ -2435,7 +2435,7 @@ function SVGPathSegCurvetoCubicRel() { return this; }; SVGPathSegCurvetoCubicRel.prototype = { - pathSegType : SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, + pathSegType : /*SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL*/ 7, pathSegTypeAsLetter : "c" }; function SVGPathSegCurvetoQuadraticAbs() { @@ -2443,7 +2443,7 @@ function SVGPathSegCurvetoQuadraticAbs() { /*float*/ this.y; /*float*/ this.x1; /*float*/ this.y1; - this.pathSegType = SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS; + this.pathSegType = /*SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS*/ 8; this.pathSegTypeAsLetter = "Q"; return this; }; @@ -2452,7 +2452,7 @@ function SVGPathSegCurvetoQuadraticRel() { /*float*/ this.y; /*float*/ this.x1; /*float*/ this.y1; - this.pathSegType = SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL; + this.pathSegType = /*SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL*/ 9; this.pathSegTypeAsLetter = "q"; return this; }; @@ -2468,7 +2468,7 @@ function SVGPathSegArcAbs() { SVGPathSegArcAbs.prototype = { /*boolean*/ largeArcFlag : true, /*boolean*/ sweepFlag : true, - pathSegType : SVGPathSeg.PATHSEG_ARC_ABS, + pathSegType : /*SVGPathSeg.PATHSEG_ARC_ABS*/ 10, pathSegTypeAsLetter : "A" }; function SVGPathSegArcRel() { @@ -2482,30 +2482,30 @@ function SVGPathSegArcRel() { SVGPathSegArcRel.prototype = { /*boolean*/ largeArcFlag : true, /*boolean*/ sweepFlag : true, - pathSegType : SVGPathSeg.PATHSEG_ARC_REL, + pathSegType : /*SVGPathSeg.PATHSEG_ARC_REL*/ 11, pathSegTypeAsLetter : "a" }; function SVGPathSegLinetoHorizontalAbs() { /*float*/ this.x; - this.pathSegType = SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS; + this.pathSegType = /*SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS*/ 12; this.pathSegTypeAsLetter = "H"; return this; }; function SVGPathSegLinetoHorizontalRel() { /*float*/ this.x; - this.pathSegType = SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL; + this.pathSegType = /*SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL*/ 13; this.pathSegTypeAsLetter = "h"; return this; }; function SVGPathSegLinetoVerticalAbs() { /*float*/ this.y; - this.pathSegType = SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS; + this.pathSegType = /*SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS*/ 14; this.pathSegTypeAsLetter = "V"; return this; }; function SVGPathSegLinetoVerticalRel() { /*float*/ this.y; - this.pathSegType = SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL; + this.pathSegType = /*SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL*/ 15; this.pathSegTypeAsLetter = "v"; return this; }; @@ -2514,7 +2514,7 @@ function SVGPathSegCurvetoCubicSmoothAbs() { /*float*/ this.y; /*float*/ this.x2; /*float*/ this.y2; - this.pathSegType = SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; + this.pathSegType = /*SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS*/ 16; this.pathSegTypeAsLetter = "S"; return this; }; @@ -2523,21 +2523,21 @@ function SVGPathSegCurvetoCubicSmoothRel() { /*float*/ this.y; /*float*/ this.x2; /*float*/ this.y2; - this.pathSegType = SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL; + this.pathSegType = /*SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL*/ 17; this.pathSegTypeAsLetter = "s"; return this; }; function SVGPathSegCurvetoQuadraticSmoothAbs() { /*float*/ this.x; /*float*/ this.y; - this.pathSegType = SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; + this.pathSegType = /*SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS*/ 18; this.pathSegTypeAsLetter = "T"; return this; }; function SVGPathSegCurvetoQuadraticSmoothRel() { /*float*/ this.x; /*float*/ this.y; - this.pathSegType = SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; + this.pathSegType = /*SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL*/ 19; this.pathSegTypeAsLetter = "t"; return this; }; @@ -3107,10 +3107,10 @@ _sproto._com = { nl = this.normalizedPathSegList; for (var i=1,nln=nl.numberOfItems,ms=null;i