diff options
Diffstat (limited to 'src/bbox.js')
-rw-r--r-- | src/bbox.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bbox.js b/src/bbox.js index c67d7c2..f58e77b 100644 --- a/src/bbox.js +++ b/src/bbox.js @@ -7,12 +7,12 @@ SVG.BBox = function(element) { this.x = box.x + element.trans.x this.y = box.y + element.trans.y - /* add the center */ - this.cx = this.x + box.width / 2 - this.cy = this.x + box.height / 2 - /* plain width and height */ - this.width = box.width - this.height = box.height + this.width = box.width * element.trans.scaleX + this.height = box.height * element.trans.scaleY + + /* add the center */ + this.cx = this.x + this.width / 2 + this.cy = this.y + this.height / 2 }
\ No newline at end of file |