diff options
Diffstat (limited to 'src/elements/Element.js')
-rw-r--r-- | src/elements/Element.js | 4 |
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())) } |