From: dhrname Date: Sat, 8 Nov 2014 13:46:13 +0000 (+0900) Subject: shape関連のインターフェースをbase関数で表現 X-Git-Tag: version22~396^2~14 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4c9a3777a46d1033894dbff8b2f2aa938d8c4f41;p=sie%2Fsie.git shape関連のインターフェースをbase関数で表現 --- diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index 3d2b614..dc18da4 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -3274,7 +3274,8 @@ _com: { } ); })(document, Math); -function SVGRectElement(_doc) { +base.$1.up("http://www.w3.org/2000/svgrect") + .on("initialize", function (_doc) { this._tar = _doc.createElement("v:shape"); var slen = SVGAnimatedLength; /*readonly SVGAnimatedLength*/ this.x = new slen(); @@ -3386,9 +3387,10 @@ function SVGRectElement(_doc) { }, false); evt = tar = void 0; }, false); -}; +} ); -function SVGCircleElement(_doc) { +base.$1.up("http://www.w3.org/2000/svgcircle") + .on("initialize", function (_doc) { this._tar = _doc.createElement("v:shape"); var sl = SVGAnimatedLength; /*readonly SVGAnimatedLength*/ this.cx = new sl(); @@ -3470,9 +3472,10 @@ function SVGCircleElement(_doc) { }, false); evt = tar = void 0; }, false); -}; +} ); -function SVGEllipseElement(_doc) { +base.$1.up("http://www.w3.org/2000/svgellipse") + .on("initialize", function (_doc) { this._tar = _doc.createElement("v:shape"); var sl = SVGAnimatedLength; /*readonly SVGAnimatedLength*/ this.cx = new sl(); @@ -3557,7 +3560,7 @@ function SVGEllipseElement(_doc) { }, false); evt = tar = void 0; }, false); -}; +} ); function SVGLineElement(_doc) { this._tar = _doc.createElement("v:shape"); @@ -3633,7 +3636,7 @@ function SVGLineElement(_doc) { * このインターフェースはpolygonとpolyline要素共通のインターフェースとして使用。 * ファイルサイズを軽量にすることができる */ -NAIBU._GenericSVGPolyElement = function (_doc, xclose) { +base.$1._GenericSVGPolyElement = function (_doc, xclose) { this._tar = _doc.createElement("v:shape"); _doc = void 0; //interface SVGAnimatedPoints @@ -3693,15 +3696,17 @@ NAIBU._GenericSVGPolyElement = function (_doc, xclose) { evt = tar = void 0; }, false); }; -function SVGPolylineElement(_doc) { +base.$1.up("http://www.w3.org/2000/svgpolyline") + .on("initialize", function (_doc) { NAIBU._GenericSVGPolyElement.call(this, _doc, "e"); _doc = void 0; -}; +} ); -function SVGPolygonElement(_doc) { +base.$1.up("http://www.w3.org/2000/svgpolygon") + .on("initialize", function (_doc) { NAIBU._GenericSVGPolyElement.call(this, _doc, "x e"); _doc = void 0; -}; +} ); function SVGTextContentElement(_doc) { /*readonly SVGAnimatedLength*/ this.textLength = new SVGAnimatedLength(); @@ -6262,11 +6267,6 @@ function SVGForeignObjectElement(_doc) /*: //#endif _SVG_IDL_ base("DOMImplementation")["http://www.w3.org/2000/svg"] = { - rect: SVGRectElement, - circle: SVGCircleElement, - ellipse: SVGEllipseElement, - polyline: SVGPolylineElement, - polygon: SVGPolygonElement, text: SVGTextElement, tspan: SVGTSpanElement, image: SVGImageElement,