From caaeba44902e91451770d7513355ef70460db18d Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sat, 11 Apr 2020 12:21:53 +1000 Subject: added tests for circled.js and gradiented.js --- src/modules/core/circled.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/modules') 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 -- cgit v1.2.3