From 373b78a10b3255104e221c64494e3139d11d058b Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Fri, 10 Apr 2020 15:04:42 +1000 Subject: added tests for Line --- src/elements/Line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/elements/Line.js b/src/elements/Line.js index 146aa45..b9982f4 100644 --- a/src/elements/Line.js +++ b/src/elements/Line.js @@ -29,7 +29,7 @@ export default class Line extends Shape { if (x1 == null) { return this.array() } else if (typeof y1 !== 'undefined') { - x1 = { x1: x1, y1: y1, x2: x2, y2: y2 } + x1 = { x1, y1, x2, y2 } } else { x1 = new PointArray(x1).toLine() } -- cgit v1.2.3