svnno****@sourc*****
svnno****@sourc*****
2010年 2月 16日 (火) 22:04:37 JST
Revision: 1665 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1665 Author: dhrname Date: 2010-02-16 22:04:37 +0900 (Tue, 16 Feb 2010) Log Message: ----------- getCTMメソッドを実装 Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-02-16 13:04:05 UTC (rev 1664) +++ branches/ufltima/dom/svg.js 2010-02-16 13:04:37 UTC (rev 1665) @@ -183,6 +183,13 @@ *CTMとは現在の利用座標系に対する変換行列 */ /*SVGMatrix*/ SVGElement.prototype.getCTM = function() { + var s; + if (this.parentNode) { + s = this.parentNode.getCTM().multiply(this.transform.consolidate()); + } else { + s = this.transform.consolidate(); + } + return s; }; /*SVGMatrix*/ SVGElement.prototype.getScreenCTM = function(){