diff options
Diffstat (limited to 'src/types/Point.js')
-rw-r--r-- | src/types/Point.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/Point.js b/src/types/Point.js index 5d44733..cfd204e 100644 --- a/src/types/Point.js +++ b/src/types/Point.js @@ -18,8 +18,8 @@ export default class Point { const source = Array.isArray(x) ? { x: x[0], y: x[1] } : typeof x === 'object' - ? { x: x.x, y: x.y } - : { x: x, y: y } + ? { x: x.x, y: x.y } + : { x: x, y: y } // merge source this.x = source.x == null ? base.x : source.x |