diff options
Diffstat (limited to 'src/elements')
-rw-r--r-- | src/elements/G.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/elements/G.js b/src/elements/G.js index 398554a..0a11c1e 100644 --- a/src/elements/G.js +++ b/src/elements/G.js @@ -32,6 +32,14 @@ export default class G extends Container { dmove (dx, dy) { return this.transform({ dx, dy }, true) } + + width () { + return this.bbox().width + } + + height () { + return this.bbox().height + } } registerMethods({ |