Refactoring bounding box rendering method

This commit is contained in:
Jeff Avallone 2014-12-02 19:15:19 -05:00
parent 5afb4fa717
commit 9609b1d5b7
2 changed files with 4 additions and 8 deletions

View File

@ -49,7 +49,7 @@
fill: #f00;
}
rect.bounding-box {
path.bounding-box {
fill: transparent;
stroke: #000;
stroke-dasharray: 5,2;

View File

@ -30,14 +30,10 @@ export default {
},
render_bbox(container, box) {
container.rect()
container.path(box.path)
.attr({
'class': 'bounding-box',
width: box.width,
height: box.height
})
.transform(Snap.matrix()
.translate(box.x, box.y));
'class': 'bounding-box'
});
},
render(container) {