OSDN Git Service

shape関連のインターフェースをbase関数で表現
authordhrname <sie-developers@lists.sourceforge.jp>
Sat, 8 Nov 2014 13:46:13 +0000 (22:46 +0900)
committerdhrname <sie-developers@lists.sourceforge.jp>
Sat, 8 Nov 2014 13:46:13 +0000 (22:46 +0900)
org/w3c/dom/svg.js

index 3d2b614..dc18da4 100644 (file)
@@ -3274,7 +3274,8 @@ _com: {
 } );\r
 })(document, Math);\r
 \r
-function SVGRectElement(_doc) {\r
+base.$1.up("http://www.w3.org/2000/svgrect")\r
+ .on("initialize",  function (_doc) {\r
   this._tar = _doc.createElement("v:shape");\r
   var slen = SVGAnimatedLength;\r
   /*readonly SVGAnimatedLength*/ this.x = new slen();\r
@@ -3386,9 +3387,10 @@ function SVGRectElement(_doc) {
     }, false);\r
     evt = tar = void 0;\r
   }, false);\r
-};\r
+} );\r
 \r
-function SVGCircleElement(_doc) {\r
+base.$1.up("http://www.w3.org/2000/svgcircle")\r
+ .on("initialize",  function (_doc) {\r
   this._tar = _doc.createElement("v:shape");\r
   var sl = SVGAnimatedLength;\r
   /*readonly SVGAnimatedLength*/ this.cx = new sl();\r
@@ -3470,9 +3472,10 @@ function SVGCircleElement(_doc) {
     }, false);\r
     evt = tar = void 0;\r
   }, false);\r
-};\r
+} );\r
 \r
-function SVGEllipseElement(_doc) {\r
+base.$1.up("http://www.w3.org/2000/svgellipse")\r
+ .on("initialize",  function (_doc) {\r
   this._tar = _doc.createElement("v:shape");\r
   var sl = SVGAnimatedLength;\r
   /*readonly SVGAnimatedLength*/ this.cx = new sl();\r
@@ -3557,7 +3560,7 @@ function SVGEllipseElement(_doc) {
     }, false);\r
     evt = tar = void 0;\r
   }, false);\r
-};\r
+} );\r
 \r
 function SVGLineElement(_doc) {\r
   this._tar = _doc.createElement("v:shape");\r
@@ -3633,7 +3636,7 @@ function SVGLineElement(_doc) {
  * このインターフェースはpolygonとpolyline要素共通のインターフェースとして使用。\r
  * ファイルサイズを軽量にすることができる\r
  */\r
-NAIBU._GenericSVGPolyElement = function (_doc, xclose) {\r
+base.$1._GenericSVGPolyElement = function (_doc, xclose) {\r
   this._tar = _doc.createElement("v:shape");\r
   _doc = void 0;\r
   //interface SVGAnimatedPoints\r
@@ -3693,15 +3696,17 @@ NAIBU._GenericSVGPolyElement = function (_doc, xclose) {
     evt = tar = void 0;\r
   }, false);\r
 };\r
-function SVGPolylineElement(_doc) {\r
+base.$1.up("http://www.w3.org/2000/svgpolyline")\r
+ .on("initialize",  function (_doc) {\r
   NAIBU._GenericSVGPolyElement.call(this, _doc, "e");\r
   _doc = void 0;\r
-};\r
+} );\r
 \r
-function SVGPolygonElement(_doc) {\r
+base.$1.up("http://www.w3.org/2000/svgpolygon")\r
+ .on("initialize",  function (_doc) {\r
   NAIBU._GenericSVGPolyElement.call(this, _doc, "x e");\r
   _doc = void 0;\r
-};\r
+} );\r
 \r
 function SVGTextContentElement(_doc) {\r
   /*readonly SVGAnimatedLength*/      this.textLength = new SVGAnimatedLength();\r
@@ -6262,11 +6267,6 @@ function SVGForeignObjectElement(_doc) /*:
 \r
 //#endif  _SVG_IDL_\r
 base("DOMImplementation")["http://www.w3.org/2000/svg"] = {\r
-  rect:            SVGRectElement,\r
-  circle:          SVGCircleElement,\r
-  ellipse:         SVGEllipseElement,\r
-  polyline:        SVGPolylineElement,\r
-  polygon:         SVGPolygonElement,\r
   text:            SVGTextElement,\r
   tspan:           SVGTSpanElement,\r
   image:           SVGImageElement,\r