svnno****@sourc*****
svnno****@sourc*****
2009年 9月 27日 (日) 22:37:05 JST
Revision: 1290 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1290 Author: dhrname Date: 2009-09-27 22:37:05 +0900 (Sun, 27 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/DOM/org/w3c/dom/svg.js Modified: branches/DOM/org/w3c/dom/svg.js =================================================================== --- branches/DOM/org/w3c/dom/svg.js 2009-09-26 14:05:22 UTC (rev 1289) +++ branches/DOM/org/w3c/dom/svg.js 2009-09-27 13:37:05 UTC (rev 1290) @@ -3041,7 +3041,7 @@ return (new DOMException(DOMException.INDEX_SIZE_ERR)); } else { //以下のメソッドに関しては、css.js(org.w3c.dom.css)をご覧下さい - var fontSize = this.style.getPropertyCSSValue("fontSize").getFloatValue(CSSPrimitiveValue.CSS_NUMBER); + var fontSize = this.style.getPropertyCSSValue("font-size").getFloatValue(CSSPrimitiveValue.CSS_NUMBER); fontSize = fontSize * Math.sqrt(Math.abs(this.getCTM().determinant())); } }; @@ -3050,7 +3050,7 @@ return (new DOMException(DOMException.INDEX_SIZE_ERR)); } else { //以下のメソッドに関しては、css.js(org.w3c.dom.css)をご覧下さい - var fontSize = this.style.getPropertyCSSValue("fontSize").getFloatValue(CSSPrimitiveValue.CSS_NUMBER); + var fontSize = this.style.getPropertyCSSValue("font-size").getFloatValue(CSSPrimitiveValue.CSS_NUMBER); fontSize = fontSize * Math.sqrt(Math.abs(ttm.determinant())); //現在の座標系で文字の大きさを変換する var s = this.ownerDocument.documentElement.createSVGPoint(); s.x = (fontSize*(charnum+1)); @@ -3058,10 +3058,18 @@ return s; } }; -/*SVGRect*/ SVGTextContentElement.prototype.getExtentOfChar (/*unsigned long*/ charnum ) -/*float*/ SVGTextContentElement.prototype.getRotationOfChar (/*unsigned long*/ charnum ) -/*long*/ SVGTextContentElement.prototype.getCharNumAtPosition (/*SVGPoint*/ point ); -/*void*/ SVGTextContentElement.prototype.selectSubString (/*unsigned long*/ charnum,/*unsigned long*/ nchars ) +/*SVGRect*/ SVGTextContentElement.prototype.getExtentOfChar (/*unsigned long*/ charnum ) { + +}; +/*float*/ SVGTextContentElement.prototype.getRotationOfChar (/*unsigned long*/ charnum ) { + +}; +/*long*/ SVGTextContentElement.prototype.getCharNumAtPosition (/*SVGPoint*/ point ) { + +}; +/*void*/ SVGTextContentElement.prototype.selectSubString (/*unsigned long*/ charnum,/*unsigned long*/ nchars ) { + +}; function SVGTextPositioningElement() { SVGTextContentElement.apply(this, arguments); @@ -3345,7 +3353,7 @@ /*readonly SVGAnimatedLength*/ this.height = new SVGAnimatedLength(0); /*readonly SVGAnimatedInteger*/ this.filterResX = new SVGAnimatedInteger(); /*readonly SVGAnimatedInteger*/ this.filterResY = new SVGAnimatedInteger(); - this._xlink = new SVGURIReference(); + this._xlink = new SVGURIReference(this); void setFilterRes (/*unsigned long*/ filterResX,/*unsigned long*/ filterResY ); return this; }; @@ -3364,10 +3372,17 @@ SVGFilterPrimitiveStandardAttributes.constructor = SVGStylable; SVGFilterPrimitiveStandardAttributes.prototype = new SVGStylable(); -function SVGFEBlendElement : - SVGElement, - SVGFilterPrimitiveStandardAttributes { +function SVGFEBlendElement() { SVGElement.apply(this, arguments); + /*readonly SVGAnimatedString*/ this.in1 = new SVGAnimatedString(); + /*readonly SVGAnimatedString*/ this.in2 = new SVGAnimatedString(); + /*readonly SVGAnimatedEnumeration*/ mode;] + this._fpsa = SVGFilterPrimitiveStandardAttributes(this); + return this; +}; +SVGFEBlendElement.constructor = SVGElement; +SVGFEBlendElement.prototype = new SVGElement(); +with (SVGFEBlendElement) { // Blend Mode Types /*unsigned short*/ SVG_FEBLEND_MODE_UNKNOWN = 0; /*unsigned short*/ SVG_FEBLEND_MODE_NORMAL = 1; @@ -3375,84 +3390,80 @@ /*unsigned short*/ SVG_FEBLEND_MODE_SCREEN = 3; /*unsigned short*/ SVG_FEBLEND_MODE_DARKEN = 4; /*unsigned short*/ SVG_FEBLEND_MODE_LIGHTEN = 5; - /*readonly SVGAnimatedString*/ in1; - /*readonly SVGAnimatedString*/ in2; - /*readonly SVGAnimatedEnumeration*/ mode; - }; - -function SVGFEComponentTransferElement : - SVGElement, - SVGFilterPrimitiveStandardAttributes { +}; +function SVGFEGaussianBlurElement() { SVGElement.apply(this, arguments); - /*readonly SVGAnimatedString*/ in1; - }; -function SVGFEGaussianBlurElement : - SVGElement, - SVGFilterPrimitiveStandardAttributes { - SVGElement.apply(this, arguments); - /*readonly SVGAnimatedString*/ in1; - /*readonly SVGAnimatedNumber*/stdDeviationX; - /*readonly SVGAnimatedNumber*/stdDeviationY; - void setStdDeviation ( in float stdDeviationX, in float stdDeviationY ); - }; + /*readonly SVGAnimatedString*/ this.in1 = new SVGAnimatedString(); + /*readonly SVGAnimatedNumber*/ this.stdDeviationX = new SVGAnimatedNumber(); + /*readonly SVGAnimatedNumber*/ this.stdDeviationY = new SVGAnimatedNumber(); + this._fpsa = SVGFilterPrimitiveStandardAttributes(this); + return this; +}; +SVGFEGaussianBlurElement.constructor = SVGElement; +SVGFEGaussianBlurElement.prototype = new SVGElement(); +/*void*/ SVGFEGaussianBlurElement.prototype.setStdDeviation = function(/*float*/ stdDeviationX, /*float*/ stdDeviationY ) { + +}; -function SVGCursorElement : - SVGElement, - SVGURIReference, - SVGTests, - SVGExternalResourcesRequired { +function SVGCursorElement() { SVGElement.apply(this, arguments); - /*readonly SVGAnimatedLength*/ x; - /*readonly SVGAnimatedLength*/ y; - }; -SVGColorProfileElement.constructor = SVGElement; -SVGColorProfileElement.prototype = new SVGElement(); + /*readonly SVGAnimatedLength*/ this.x = new SVGAnimatedLength(0); + /*readonly SVGAnimatedLength*/ this.y = new SVGAnimatedLength(0); + this._xlink = new SVGURIReference(this); + return this; +}; +SVGCursorElement.constructor = SVGElement; +SVGCursorElement.prototype = new SVGElement(); -function SVGAElement : - SVGElement, - SVGURIReference, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - events::EventTarget { +function SVGAElement() { SVGElement.apply(this, arguments); - /*readonly SVGAnimatedString*/ target; - }; -SVGColorProfileElement.constructor = SVGElement; -SVGColorProfileElement.prototype = new SVGElement(); + /*readonly SVGAnimatedString*/ this.target = new SVGAnimatedString(); + this._xlink = new SVGURIReference(this); + return this; +}; +SVGAElement.constructor = SVGElement; +SVGAElement.prototype = new SVGElement(); -function SVGViewElement : - SVGElement, - SVGExternalResourcesRequired, - SVGFitToViewBox, - SVGZoomAndPan { +function SVGViewElement() { SVGElement.apply(this, arguments); - /*readonly SVGStringList*/ viewTarget; - }; -SVGColorProfileElement.constructor = SVGElement; -SVGColorProfileElement.prototype = new SVGElement(); + /*readonly SVGStringList*/ this.viewTarget = new SVGStringList(); + //SVGFitToViewBoxのインターフェースを用いる + /*readonly SVGAnimatedRect*/ this.viewBox = new SVGAnimatedRect(); + /*readonly SVGAnimatedPreserveAspectRatio*/ this.preserveAspectRatio = new SVGAnimatedPreserveAspectRatio(); + /*unsigned short*/ this.zoomAndPan = SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE; + return this; +}; +SVGViewElement.constructor = SVGElement; +SVGViewElement.prototype = new SVGElement(); -function SVGScriptElement : - SVGElement, - SVGURIReference, - SVGExternalResourcesRequired { +function SVGScriptElement() { SVGElement.apply(this, arguments); - /*DOMString*/ type; - // raises DOMException on setting - }; -SVGColorProfileElement.constructor = SVGElement; -SVGColorProfileElement.prototype = new SVGElement(); + /*DOMString*/ this.type; + this._xlink = new SVGURIReference(this); + return this; +}; +SVGScriptElement.constructor = SVGElement; +SVGScriptElement.prototype = new SVGElement(); -function SVGEvent : events::Event {}; -function SVGZoomEvent : events::UIEvent { - /*readonly SVGRect*/ zoomRectScreen; - /*readonly float*/ previousScale; - /*readonly SVGPoint*/ previousTranslate; - /*readonly float*/ newScale; - /*readonly SVGPoint*/ newTranslate; - }; +function SVGEvent() { + Event.apply(this, arguments); + return this; +}; +SVGEvent.constructor = Event; +SVGEvent.prototype = new Event(); + +function SVGZoomEvent() { + UIEvent.apply(this, arguments); + /*readonly SVGRect*/ this.zoomRectScreen = new SVGRect(); + /*readonly float*/ this.previousScale = 1; + /*readonly SVGPoint*/ this.previousTranslate = new SVGPoint(); + /*readonly float*/ this.newScale = 1; + /*readonly SVGPoint*/ this.newTranslate; = new SVGPoint(); + return this; +}; +SVGZoomEvent.constructor = UIEvent; +SVGZoomEvent.prototype = new UIEvent(); + function SVGAnimationElement : SVGElement, SVGTests,