summaryrefslogtreecommitdiffstats
path: root/src/modules/optional/sugar.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-12 23:21:10 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-12 23:21:10 +0100
commit33e82b796e7870a9523b6e9653877a2613f8f7a2 (patch)
tree7450136c1178008d9ba17bc2408ee5f43c71e9c4 /src/modules/optional/sugar.js
parent7b02d60829d1151a9fd1e726a0a995b92b165328 (diff)
downloadsvg.js-33e82b796e7870a9523b6e9653877a2613f8f7a2.tar.gz
svg.js-33e82b796e7870a9523b6e9653877a2613f8f7a2.zip
Release 3.0.53.0.5
Diffstat (limited to 'src/modules/optional/sugar.js')
-rw-r--r--src/modules/optional/sugar.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js
index d4255c3..c05512d 100644
--- a/src/modules/optional/sugar.js
+++ b/src/modules/optional/sugar.js
@@ -38,7 +38,7 @@ var sugar = {
return this
}
- registerMethods([ 'Shape', 'Runner' ], extension)
+ registerMethods([ 'Element', 'Runner' ], extension)
})
registerMethods([ 'Element', 'Runner' ], {
@@ -110,18 +110,6 @@ registerMethods([ 'Element', 'Runner' ], {
}
})
-registerMethods('Element', {
- // Relative move over x axis
- dx: function (x) {
- return this.x(new SVGNumber(x).plus(this.x()))
- },
-
- // Relative move over y axis
- dy: function (y) {
- return this.y(new SVGNumber(y).plus(this.y()))
- }
-})
-
registerMethods('radius', {
// Add x and y radius
radius: function (x, y) {