svnno****@sourc*****
svnno****@sourc*****
2009年 12月 21日 (月) 21:58:43 JST
Revision: 1488 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1488 Author: dhrname Date: 2009-12-21 21:58:43 +0900 (Mon, 21 Dec 2009) Log Message: ----------- 関数NAIBU.pathDataを削除した Modified Paths: -------------- branches/05x/056/sie.js Modified: branches/05x/056/sie.js =================================================================== --- branches/05x/056/sie.js 2009-12-21 12:28:55 UTC (rev 1487) +++ branches/05x/056/sie.js 2009-12-21 12:58:43 UTC (rev 1488) @@ -2042,7 +2042,10 @@ x += fontSize / Math.SQRT2; y -= fontSize / Math.SQRT2; } - NAIBU.pathData(glyphData[i], path, true, ti.w, ti.h, (new Matrix(fe, 0, 0, -fe, x, y)) ); + var s = new STPath(path, (new Matrix(fe, 0, 0, -fe, x, y))); + s.d = glyphData[i]; + s.set(ti.w, ti.h); + s = null; adv += advanceX[i]; } } @@ -2158,7 +2161,8 @@ matrix.e = dx + adv*fe; matrix.f = dy; } - NAIBU.pathData(glyphData[i], path, false, 0, 0, matrix); + path.setAttributeNS(null, "transform", "matrix(" +matrix.a+ "," +matrix.b+ "," +matrix.c+ "," +matrix.d+ "," +matrix.e+ "," +matrix.f+ ")"); + path.setAttributeNS(null, "d", glyphData[i]); adv += advanceX[i]; matrix = null; } @@ -2173,19 +2177,6 @@ } data = isTategaki = horizOrVert = em = advX = dx = dy = fontSize = null; }; -NAIBU.pathData = function(/*string*/ data, /*Element*/ p, /*boolean*/ t, /*float*/ w, h, /*Matrix*/ matrix) { - //CTMでフォントを移動させておく - if (t) { //IEならば - var s = new STPath(p, matrix); - s.d = data; - s.set(w,h); - s = null; - } else { - p.setAttributeNS(null, "transform", "matrix(" +matrix.a+ "," +matrix.b+ "," +matrix.c+ "," +matrix.d+ "," +matrix.e+ "," +matrix.f+ ")"); - p.setAttributeNS(null, "d", data); - } - matrix = data = t = null; -}; NAIBU.Time = { currentFrame : 0,