aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Line.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/Line.js')
-rw-r--r--src/elements/Line.js2
1 files changed, 1 insertions, 1 deletions
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()
}