svnno****@sourc*****
svnno****@sourc*****
2009年 12月 21日 (月) 21:22:16 JST
Revision: 1486 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1486 Author: dhrname Date: 2009-12-21 21:22:16 +0900 (Mon, 21 Dec 2009) Log Message: ----------- スコープのAliasを作った Modified Paths: -------------- branches/05x/056/sie.js Modified: branches/05x/056/sie.js =================================================================== --- branches/05x/056/sie.js 2009-12-21 12:01:34 UTC (rev 1485) +++ branches/05x/056/sie.js 2009-12-21 12:22:16 UTC (rev 1486) @@ -368,8 +368,8 @@ function STGroupElement( /*element*/ g, /*Matrix*/ matrix, /*float*/w, h) { try{ this.tar = g; - var _nt = NAIBU.transformToCTM; - this.transformable = _nt(g,matrix); //g要素のtransform属性を前もって処理 + var _ni = NAIBU; //Alias + this.transformable = _ni.transformToCTM(g,matrix); //g要素のtransform属性を前もって処理 //以下、ツリーとして処理 this.children = []; this.chset(g,this.transformable, w, h); @@ -582,10 +582,10 @@ //path要素の処理 function STPath( /*element*/ ele, /*Matrix*/ matrix) { this.tar = ele; - var _nt = NAIBU.transformToCTM; + var _ni = NAIBU; //Alias this.d = ele.getAttribute("d"); - this.paint = new NAIBU.PaintColor(ele); - this.transformable = _nt(ele,matrix); + this.paint = new _ni.PaintColor(ele); + this.transformable = _ni.transformToCTM(ele,matrix); return this; } STPath.prototype.set = function ( /*float*/ w, /*float*/ h) {