diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-11 12:21:53 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-11 12:21:53 +1000 |
commit | caaeba44902e91451770d7513355ef70460db18d (patch) | |
tree | 54f54f77474ba8a6f5043878e71f9d8bacb5c281 /src | |
parent | d7b149afa7cde9e51ca74180b369b1e1b5770cf7 (diff) | |
download | svg.js-caaeba44902e91451770d7513355ef70460db18d.tar.gz svg.js-caaeba44902e91451770d7513355ef70460db18d.zip |
added tests for circled.js and gradiented.js
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/core/circled.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/core/circled.js b/src/modules/core/circled.js index 597d252..a03e29b 100644 --- a/src/modules/core/circled.js +++ b/src/modules/core/circled.js @@ -26,16 +26,12 @@ export function y (y) { // Move by center over x-axis export function cx (x) { - return x == null - ? this.attr('cx') - : this.attr('cx', x) + return this.attr('cx', x) } // Move by center over y-axis export function cy (y) { - return y == null - ? this.attr('cy') - : this.attr('cy', y) + return this.attr('cy', y) } // Set width of element |