diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-10 15:04:42 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-10 15:04:42 +1000 |
commit | 373b78a10b3255104e221c64494e3139d11d058b (patch) | |
tree | 8ed9b7da1febf8efb75fa3ca10d5a11205573c77 /src | |
parent | 47dc23cf13f870c9ce5dbc69c22a1c33f01619ef (diff) | |
download | svg.js-373b78a10b3255104e221c64494e3139d11d058b.tar.gz svg.js-373b78a10b3255104e221c64494e3139d11d058b.zip |
added tests for Line
Diffstat (limited to 'src')
-rw-r--r-- | src/elements/Line.js | 2 |
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() } |