diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-12-05 19:36:28 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-12-05 19:36:28 +0100 |
commit | 5161dfdb3a08490da0ae1c5c8b6515eb0ae0da30 (patch) | |
tree | 03217ab484a962ea4b183c1d9902ffe92d08a153 /src/elements | |
parent | f089db0c1990d75bbd34713f97f547045ae92fca (diff) | |
download | svg.js-5161dfdb3a08490da0ae1c5c8b6515eb0ae0da30.tar.gz svg.js-5161dfdb3a08490da0ae1c5c8b6515eb0ae0da30.zip |
Release 3.0.33.0.3
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({ |