aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/Point.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2021-01-13 17:26:33 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2021-01-13 17:26:33 +0100
commit4524c20b48abe08e69c25a7382a289592d147496 (patch)
tree3e475fe673d5acd800180282e84df03d396106f3 /src/types/Point.js
parent4f4dc2afa62cb899a5cae72c359150f8adf27edb (diff)
downloadsvg.js-4524c20b48abe08e69c25a7382a289592d147496.tar.gz
svg.js-4524c20b48abe08e69c25a7382a289592d147496.zip
update dependencies, apply new linter fixes
Diffstat (limited to 'src/types/Point.js')
-rw-r--r--src/types/Point.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/types/Point.js b/src/types/Point.js
index cb09bf3..f028e6d 100644
--- a/src/types/Point.js
+++ b/src/types/Point.js
@@ -15,9 +15,11 @@ export default class Point {
const base = { x: 0, y: 0 }
// ensure source as object
- const source = Array.isArray(x) ? { x: x[0], y: x[1] }
- : typeof x === 'object' ? { x: x.x, y: x.y }
- : { x: x, y: y }
+ const source = Array.isArray(x)
+ ? { x: x[0], y: x[1] }
+ : typeof x === 'object'
+ ? { x: x.x, y: x.y }
+ : { x: x, y: y }
// merge source
this.x = source.x == null ? base.x : source.x