aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Element.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-11-08 09:55:24 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-11-08 09:55:24 +0100
commit4b92c587ccf15bdce2459b6e39850b7d6c4c6ec5 (patch)
treefea78e5100f6211cdebb95f6be0e215be5d323b8 /src/elements/Element.js
parent2827a27531c661726d204d6da9d17c6f72d8e404 (diff)
downloadsvg.js-4b92c587ccf15bdce2459b6e39850b7d6c4c6ec5.tar.gz
svg.js-4b92c587ccf15bdce2459b6e39850b7d6c4c6ec5.zip
bump version3.0.15
### Fixed - allow object input of `when` and `delay` to `animate()` ### Added - added missing dmove function to runner
Diffstat (limited to 'src/elements/Element.js')
-rw-r--r--src/elements/Element.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Element.js b/src/elements/Element.js
index 264cea8..3bd97de 100644
--- a/src/elements/Element.js
+++ b/src/elements/Element.js
@@ -59,12 +59,12 @@ export default class Element extends Dom {
}
// Relative move over x axis
- dx (x) {
+ dx (x = 0) {
return this.x(new SVGNumber(x).plus(this.x()))
}
// Relative move over y axis
- dy (y) {
+ dy (y = 0) {
return this.y(new SVGNumber(y).plus(this.y()))
}