modify render

This commit is contained in:
mkwiser
2014-09-11 00:40:28 +08:00
parent 599cf0c9a2
commit 3db2f94760
2 changed files with 7 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ define(
level: 20
});
cover.options.stroke = 1;
cover.options.fill = false;
cover.options.strokeColor = 'green';
cover.addShape('circle', {
@@ -68,14 +68,15 @@ define(
var font = currentRender.addLayer('font', {
level: 10
});
shape_bdjk = glyfAdjust(shape_bdjk, 200 / 512);
var scale = 200 / 512;
shape_bdjk = glyfAdjust(shape_bdjk, scale, -shape_bdjk.xMin * scale, -shape_bdjk.yMin * scale);
shape_bdjk.x = 444;
shape_bdjk.y = 55;
font.addShape('font', shape_bdjk);
var pathPanel = currentRender.addLayer('path', {
level: 11
level: 11,
stroke: false
});
var pathArray = glyf2path(shape_baidu);

View File

@@ -96,8 +96,9 @@ define(
}
}
else if(this.selectionBox) {
this.selectionBox = null;
var coverLayer = this.render.getLayer('cover');
coverLayer.clearShapes()
coverLayer.clearShapes();
coverLayer.refresh();
}
},