var temp = this.getEachStrokes(buhin);\r
var result = new Array();\r
var box = this.getBox(buhin);\r
+ if(sx != 0 || sy != 0){\r
+ if(sx > 200){\r
+ sx -= 200; // Ǥ°ÕÅÀ¥â¡¼¥É\r
+ } else {\r
+ sx2 = 0; // Ãæ¿´ÅÀ¥â¡¼¥É\r
+ sy2 = 0;\r
+ }\r
+ }\r
for(var i = 0; i < temp.length; i++){\r
if(sx != 0 || sy != 0){\r
- if(sx > 200){\r
- sx -= 200; // Ǥ°ÕÅÀ¥â¡¼¥É\r
- } else {\r
- sx2 = 0; // Ãæ¿´ÅÀ¥â¡¼¥É\r
- sy2 = 0;\r
- }\r
temp[i][3] = stretch(sx, sx2, temp[i][3], box.minX, box.maxX);\r
temp[i][4] = stretch(sy, sy2, temp[i][4], box.minY, box.maxY);\r
temp[i][5] = stretch(sx, sx2, temp[i][5], box.minX, box.maxX);\r
function drawBuhin(polygons, glyph, x1, y1, x2, y2, sx, sy, sx2, sy2){ // void\r
var strokes = glyph.split("$");\r
var box = this.getBox(glyph);\r
+ if(sx != 0 || sy != 0){\r
+ if(sx > 200){\r
+ sx -= 200; // Ǥ°ÕÅÀ¥â¡¼¥É\r
+ } else {\r
+ sx2 = 0; // Ãæ¿´ÅÀ¥â¡¼¥É\r
+ sy2 = 0;\r
+ }\r
+ }\r
for(var i = 0; i < strokes.length; i++){\r
var columns = strokes[i].split(":");\r
if(sx != 0 || sy != 0){\r
- if(sx > 200){\r
- sx -= 200; // Ǥ°ÕÅÀ¥â¡¼¥É\r
- } else {\r
- sx2 = 0; // Ãæ¿´ÅÀ¥â¡¼¥É\r
- sy2 = 0;\r
- }\r
columns[3] = stretch(sx, sx2, columns[3], box.minX, box.maxX);\r
columns[4] = stretch(sy, sy2, columns[4], box.minY, box.maxY);\r
columns[5] = stretch(sx, sx2, columns[5], box.minX, box.maxX);\r