summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-10 15:04:42 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-10 15:04:42 +1000
commit373b78a10b3255104e221c64494e3139d11d058b (patch)
tree8ed9b7da1febf8efb75fa3ca10d5a11205573c77 /src
parent47dc23cf13f870c9ce5dbc69c22a1c33f01619ef (diff)
downloadsvg.js-373b78a10b3255104e221c64494e3139d11d058b.tar.gz
svg.js-373b78a10b3255104e221c64494e3139d11d058b.zip
added tests for Line
Diffstat (limited to 'src')
-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()
}