}\r
}\r
tnext = sar = spar = snext = void 0;\r
-}\r
-}).mix( function(){\r
+ },\r
/*以下の正規表現は属性のパーサの際に用いる*/\r
- this._degReg = /[\-\d\.e]+/g;\r
- this._comaReg = /[A-Za-z]+(?=\s*\()/g;\r
- this._strReg = /\([^\)]+\)/g;\r
- this._syouReg = /^[^a-z\-]+/;\r
- this._conReg = /\:\s+/g;\r
- this._bouReg = /\s*;[^a-z\-]*/g;\r
+ _degReg: /[\-\d\.e]+/g,\r
+ _comaReg: /[A-Za-z]+(?=\s*\()/g,\r
+ _strReg: /\([^\)]+\)/g,\r
+ _syouReg: /^[^a-z\-]+/,\r
+ _conReg: /\:\s+/g,\r
+ _bouReg: /\s*;[^a-z\-]*/g,\r
/*_cacheMatrixプロパティはSVGMatrixのキャッシュとして、\r
*getCTMメソッドで使う\r
*/\r
- this._cacheMatrix = null;\r
+ _cacheMatrix: null,\r
/*以下のオブジェクトは単位がパーセント付きの属性の名前を示し、処理に使う*/\r
- this._x1width = {\r
+ _x1width: {\r
"x" : 1,\r
"x1" : 1,\r
"x2" : 1,\r
"width" : 1,\r
"cx" : 1\r
- };\r
- this._y1height = {\r
+ },\r
+ _y1height: {\r
"y" : 1,\r
"y1" : 1,\r
"y2" : 1,\r
"height" : 1,\r
"cy" : 1\r
- };\r
- /*String*/ this.id = null; //id属性の値\r
- /*String*/ this.xmlbase = null; //xml:base属性の値\r
- /*SVGSVGElement*/ this.ownerSVGElement; //ルート要素であるsvg要素\r
- /*readonly SVGElement*/ this.viewportElement; //ビューポートを形成する要素(多くはsvg要素)\r
- /*readonly attribute SVGElement*/ this.nearestViewportElement = null;\r
- /*readonly attribute SVGElement*/ this.farthestViewportElement = null;\r
+ },\r
+ /*String*/ id: null, //id属性の値\r
+ /*String*/ xmlbase: null, //xml:base属性の値\r
+ /*SVGSVGElement*/ ownerSVGElement: null, //ルート要素であるsvg要素\r
+ /*readonly SVGElement*/ viewportElement: null, //ビューポートを形成する要素(多くはsvg要素)\r
+ /*readonly attribute SVGElement*/ nearestViewportElement: null,\r
+ /*readonly attribute SVGElement*/ farthestViewportElement: null,\r
\r
/*interface SVGLocatable*/\r
- /*SVGRect*/ this.getBBox = function(){\r
+ /*SVGRect*/ getBBox: function(){\r
var s = new SVGRect(),\r
data = this._tar.path.value,\r
vi = this.ownerDocument.documentElement.viewport,\r
s.height = eb - et;\r
nx = ny = data = degis =el = et = er = eb = vi = void 0;\r
return s;\r
- };\r
+ },\r
\r
/*getCTMメソッド\r
*CTMとは現在の利用座標系に対する変換行列\r
*1.2ではgetCTMが言及されていない\r
*もし、要素の中心座標を取得したい人がいれば、transformプロパティのconsolidateメソッドを使うこと\r
*/\r
- /*SVGMatrix*/ this.getCTM = function() {\r
+ /*SVGMatrix*/ getCTM: function() {\r
var s, m;\r
if (this._cacheMatrix) { //キャッシュがあれば\r
s = this._cacheMatrix;\r
this._cacheMatrix = s; //キャッシュをためて次回で使う\r
}\r
return s;\r
- };\r
+ },\r
\r
- /*SVGMatrix*/ this.getScreenCTM = function(){\r
+ /*SVGMatrix*/ getScreenCTM: function(){\r
if (!this.parentNode) {\r
return null;\r
}\r
return ((this.nearestViewportElement || this.ownerDocument.documentElement)\r
.getScreenCTM().multiply(this.getCTM()));\r
- };\r
+ },\r
\r
/*getTransformToElementメソッド\r
*これは、あるelementへの変換行列を計算して返す\r
*たとえばある要素から別の要素への引越しをする際の変換行列を算出することが可能\r
*/\r
- /*SVGMatrix*/ this.getTransformToElement = function(/*SVGElement*/ element ){\r
+ /*SVGMatrix*/ getTransformToElement: function(/*SVGElement*/ element ){\r
var s = this.getScreenCTM().inverse().multiply(element.getScreenCTM());\r
return s;\r
- };\r
+ }\r
});\r
\r
function SVGAnimatedBoolean() {\r