summaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-08-29 12:45:21 +0200
committerwout <wout@impinc.co.uk>2014-08-29 12:45:21 +0200
commitdd4be62e397e4db78444881eed32865f98e52582 (patch)
treec2300f62c756fde22c80f30aba66dca04602297b /src/group.js
parent8789391f036ffded3ac919d62ee652e7cae15c5c (diff)
downloadsvg.js-dd4be62e397e4db78444881eed32865f98e52582.tar.gz
svg.js-dd4be62e397e4db78444881eed32865f98e52582.zip
Added SVG.TBox for transformed bounding boxes
Diffstat (limited to 'src/group.js')
-rwxr-xr-xsrc/group.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group.js b/src/group.js
index 66a8437..1b61371 100755
--- a/src/group.js
+++ b/src/group.js
@@ -17,11 +17,11 @@ SVG.G = SVG.invent({
}
// Move by center over x-axis
, cx: function(x) {
- return x == null ? this.bbox().cx : this.x(x - this.bbox().width / 2)
+ return x == null ? this.tbox().cx : this.x(x - this.tbox().width / 2)
}
// Move by center over y-axis
, cy: function(y) {
- return y == null ? this.bbox().cy : this.y(y - this.bbox().height / 2)
+ return y == null ? this.tbox().cy : this.y(y - this.tbox().height / 2)
}
}