-/*!SIE-SVG without Plugin under LGPL2.1 & GPL2.0 & Mozilla Public License\r
+/*SIE-SVG without Plugin under LGPL2.1 & GPL2.0 & Mozilla Public License\r
*http://sie.sourceforge.jp/\r
*Usage: <script defer="defer" type="text/javascript" src="sie.js"></script>\r
*/\r
-/*! ***** BEGIN LICENSE BLOCK *****\r
+/* ***** BEGIN LICENSE BLOCK *****\r
* Version: MPL 1.1/GPL 2.0/LGPL 2.1\r
*\r
* The contents of this file are subject to the Mozilla Public License Version\r
* the terms of any one of the MPL, the GPL or the LGPL.\r
*\r
* ***** END LICENSE BLOCK ***** */\r
-/*!\r
+/*\r
* Copyright (c) 2000 World Wide Web Consortium,\r
* (Massachusetts Institute of Technology, Institut National de\r
* Recherche en Informatique et en Automatique, Keio University). All\r
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
* PURPOSE.\r
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.\r
- */\r
-/*!MIT License\r
+ *//*!MIT License\r
See Also MIT-LICENSE.txt\r
Copyright (c) 2013 dhrname*/\r
\r
F.prototype = this;\r
s = new F();\r
this[name] = s;\r
- /*自身が値であるようなプロパティを設定する*/\r
- s[name] = s;\r
F = void 0;\r
return s;\r
},\r
/*キャッシュに登録されている場合は、登録されたオブジェクトを返す*/\r
return this[name];\r
} else {\r
- return (this[name] = _base.obj.up(name));\r
+ var F = _base.F,\r
+ s;\r
+ F.prototype = _base.obj;\r
+ s = new F();\r
+ this[name] = s;\r
+ /*自身が値であるようなプロパティを設定する*/\r
+ s[name] = s;\r
+ F = void 0;\r
+ return s;\r
}\r
};\r
\r
_base.__ng_ = hash;\r
hash = proto = void 0;\r
\r
+/*base.free関数\r
+ * 即時関数の内部で作っていおいたオブジェクトを解放させるための関数\r
+ */\r
+base.free = function() {\r
+ delete _base.obj;\r
+ _base = void 0;\r
+};\r
+\r
})();\r
\r
/*Function Object.create\r
/*string*/ prevValue: null,\r
newValue: null,\r
attrName: null,\r
- /*unsigned short*/ attrChange: 2\r
+ /*unsigned short*/ attrChange: 2,\r
} );\r
// attrChangeType\r
/*unsigned short MutationEvent.MODIFICATION = 1;\r
/*CSSRule*/ parentRule: null,\r
type: /*CSSRule.STYLE_RULE*/ 1,\r
selectorText: "",\r
-/*CSSStyleDeclaration*/ style: (base("$CSSStyleDeclaration"))\r
+/*CSSStyleDeclaration*/ style: (base("$CSSStyleDeclaration")),\r
} ).mix( function() {\r
this.up("$CSSMediaRule").mix( {\r
type: /*CSSRule.MEDIA_RULE*/ 4,\r
\r
this.up("$CSSPageRule").mix( {\r
type: /*CSSRule.PAGE_RULE*/ 6,\r
- selectorText: ""\r
+ selectorText: "",\r
/*CSSStyleDeclaration this.style;*/\r
} );\r
\r
this.detail = detailArg;\r
}\r
} );\r
-//#endif // _SMIL_IDL_\r
+//#endif // _SMIL_IDL_\r
\r
\r
//これを頭に付けたら、内部処理用\r
/*readonly SVGAnimatedPreserveAspectRatio*/ this.preserveAspectRatio = new SVGAnimatedPreserveAspectRatio();\r
};\r
function SVGViewSpec(ele) {\r
- SVGFitToViewBox.apply(this, arguments);\r
+ SVGFitToViewBox.call(this, ele);\r
/*readonly SVGTransformList*/ this.transform = base("$SVGStringList").$SVGTransformList.up("$1");\r
/*readonly SVGElement*/ this.viewTarget = ele;\r
/*readonly DOMString*/ this.viewBoxString = this.preserveAspectRatioString = this.transformString = this.viewTargetString = "";\r
};\r
-SVGViewSpec.prototype = Object._create(SVGFitToViewBox);\r
\r
function SVGGElement(_doc) {\r
this._tar = _doc.createElement("v:group");\r
*行列の積を求めて返す\r
*/\r
/*SVGMatrix*/ multiply : function(/*SVGMatrix*/ secondMatrix ) {\r
- var s = base("$SVGMatrix").up("$1"),\r
+ var s = this.$SVGMatrix.up("$1"),\r
m = secondMatrix,\r
isf = isFinite,\r
t = this;\r
*逆行列を返す\r
*/\r
/*SVGMatrix*/ inverse : function() {\r
- var s = base("$SVGMatrix").up("$1"), \r
+ var s = this.$SVGMatrix.up("$1"), \r
n = this._determinant();\r
if (n !== 0) {\r
s.a = this.d / n;\r
}\r
},\r
/*SVGMatrix*/ translate : function(/*float*/ x, /*float*/ y ) {\r
- var m = base("$SVGMatrix").up("$1");\r
+ var m = this.$SVGMatrix.up("$1");\r
m.e = x;\r
m.f = y;\r
var s = this.multiply(m);\r
return s;\r
},\r
/*SVGMatrix*/ scale : function(/*float*/ scaleFactor ) {\r
- var m = base("$SVGMatrix").up("$1");\r
+ var m = this.$SVGMatrix.up("$1");\r
m.a = scaleFactor;\r
m.d = scaleFactor;\r
var s = this.multiply(m);\r
return s;\r
},\r
/*SVGMatrix*/ scaleNonUniform : function(/*float*/ scaleFactorX, /*float*/ scaleFactorY ) {\r
- var m = base("$SVGMatrix").up("$1");\r
+ var m = this.$SVGMatrix.up("$1");\r
m.a = scaleFactorX;\r
m.d = scaleFactorY;\r
var s = this.multiply(m);\r
return s;\r
},\r
/*SVGMatrix*/ rotate : function(/*float*/ angle ) {\r
- var m = base("$SVGMatrix").up("$1"), rad = angle / 180 * Math.PI; //ラジアン変換\r
+ var m = this.$SVGMatrix.up("$1"), rad = angle / 180 * Math.PI; //ラジアン変換\r
m.a = Math.cos(rad);\r
m.b = Math.sin(rad);\r
m.c = -m.b;\r
if ((x === 0) || (y === 0) || !isFinite(x) || !isFinite(y)) {\r
throw (new SVGException(/*SVGException.SVG_INVALID_VALUE_ERR*/ 1));\r
}\r
- var m = base("$SVGMatrix").up("$1"), rad = Math.atan2(y, x);\r
+ var m = this.$SVGMatrix.up("$1"), rad = Math.atan2(y, x);\r
m.a = Math.cos(rad);\r
m.b = Math.sin(rad);\r
m.c = -m.b;\r
return s;\r
},\r
/*SVGMatrix*/ flipX : function() {\r
- var m = base("$SVGMatrix").up("$1");\r
+ var m = this.$SVGMatrix.up("$1");\r
m.a = -m.a;\r
var s = this.multiply(m);\r
m = void 0;\r
return s;\r
},\r
/*SVGMatrix*/ flipY : function() {\r
- var m = base("$SVGMatrix").up("$1");\r
+ var m = this.$SVGMatrix.up("$1");\r
m.d = -m.d;\r
var s = this.multiply(m);\r
m = void 0;\r
return s;\r
},\r
/*SVGMatrix*/ skewX : function(/*float*/ angle ){\r
- var m = base("$SVGMatrix").up("$1"), rad = angle / 180 * Math.PI; //ラジアン変換\r
+ var m = this.$SVGMatrix.up("$1"), rad = angle / 180 * Math.PI; //ラジアン変換\r
m.c = Math.tan(rad);\r
var s = this.multiply(m);\r
m = void 0;\r
return s;\r
},\r
/*SVGMatrix*/ skewY : function(/*float*/ angle ){\r
- var m = base("$SVGMatrix").up("$1"), rad = angle / 180 * Math.PI;\r
+ var m = this.$SVGMatrix.up("$1"), rad = angle / 180 * Math.PI;\r
m.b = Math.tan(rad);\r
var s = this.multiply(m);\r
m = void 0;\r
window.onscroll = NAIBU.emptyFunction;\r
window.detachEvent("onload", NAIBU._main);\r
NAIBU.freeArg();\r
+ base.free();\r
base = Object._create = CSS2Properties = NAIBU.xmlhttp = NAIBU = STLog = void 0;\r
Array = ActiveXObject = void 0;\r
} catch(e) {}\r