diff --git a/src/index.html b/src/index.html
index acfaa0b..fa61e57 100644
--- a/src/index.html
+++ b/src/index.html
@@ -49,7 +49,7 @@
fill: #f00;
}
- rect.bounding-box {
+ path.bounding-box {
fill: transparent;
stroke: #000;
stroke-dasharray: 5,2;
diff --git a/src/js/parser/javascript/base.js b/src/js/parser/javascript/base.js
index cb3c254..769768c 100644
--- a/src/js/parser/javascript/base.js
+++ b/src/js/parser/javascript/base.js
@@ -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) {