svnno****@sourc*****
svnno****@sourc*****
2009年 5月 12日 (火) 22:59:22 JST
Revision: 1161 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1161 Author: dhrname Date: 2009-05-12 22:59:22 +0900 (Tue, 12 May 2009) Log Message: ----------- NAIBU.transformToCTMの変数における整理 Modified Paths: -------------- branches/04x/047/sie.js Modified: branches/04x/047/sie.js =================================================================== --- branches/04x/047/sie.js 2009-05-12 13:50:57 UTC (rev 1160) +++ branches/04x/047/sie.js 2009-05-12 13:59:22 UTC (rev 1161) @@ -1412,12 +1412,12 @@ if (tft) { var coma = tft.match(NAIBU.comaR); //コマンド文字にマッチ translate var list = tft.match(NAIBU.listR); //カッコ内のリストにマッチ (10 20 30...) + var a,b,c,d,e,f,lis,deg,rad,degli,matri; for (var j=0;j<coma.length;j++) { - var lis = list[j], com = coma[j]; - var a,b,c,d,e,f; - var deg = lis.match(NAIBU.degR); - var rad = parseFloat(deg[0]) / 180 * Math.PI; - var degli = deg.length; + lis = list[j], com = coma[j]; + deg = lis.match(NAIBU.degR); + rad = parseFloat(deg[0]) / 180 * Math.PI; + degli = deg.length; if (degli === 6) { a = parseFloat(deg[0]); b = parseFloat(deg[1]); c = parseFloat(deg[2]); d = parseFloat(deg[3]); e = parseFloat(deg[4]); f = parseFloat(deg[5]); } else if (degli === 3) { @@ -1442,11 +1442,11 @@ break; } } - var matri = new Matrix(a,b,c,d,e,f); + matri = new Matrix(a,b,c,d,e,f); matrix = matrix.multiply(matri); - lis = com = matri = deg = rad = null; + lis = com = deg = rad = null; } - list = coma = mat = null; + list = coma = mat = matri = null; } } catch(e) {stlog.add(e,816);} return matrix; @@ -1482,6 +1482,7 @@ var pmt = p.matrixTransform(ttm); F[i++] = pmt.x; F[i++] = pmt.y; + p = pmt = null; } var s = new PList(F); return s;