diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2019-01-22 19:57:50 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2019-01-22 19:57:50 +0100 |
commit | 4ffb59abe80ff6815866a37447db62933b064813 (patch) | |
tree | c1536d952a43a384192b5e74e01fcf3f21b2e338 /src/modules/optional | |
parent | 4cfcc9a7f9f61406c565e24b87d4cc83cc9a1ccf (diff) | |
download | svg.js-4ffb59abe80ff6815866a37447db62933b064813.tar.gz svg.js-4ffb59abe80ff6815866a37447db62933b064813.zip |
fixed move and center commands for text
- fixed move commands (x, y, move) of text so that it moves text always by the upper left edge.
- fixed center commands (cx, cy, center) of text so that it moves text always by the center.
Diffstat (limited to 'src/modules/optional')
-rw-r--r-- | src/modules/optional/sugar.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js index 7aba0f7..0da0fe4 100644 --- a/src/modules/optional/sugar.js +++ b/src/modules/optional/sugar.js @@ -102,11 +102,6 @@ registerMethods([ 'Element', 'Runner' ], { // Opacity opacity: function (value) { return this.attr('opacity', value) - }, - - // Relative move over x and y axes - dmove: function (x, y) { - return this.dx(x).dy(y) } }) |