@thi.ng/hiccup-svg
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.2.1"></a> | ||
## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-svg@0.2.0...@thi.ng/hiccup-svg@0.2.1) (2018-04-09) | ||
### Bug Fixes | ||
* **hiccup-svg:** path(), update add null check for points() ([b9d9a49](https://github.com/thi-ng/umbrella/commit/b9d9a49)) | ||
<a name="0.2.0"></a> | ||
@@ -8,0 +19,0 @@ # 0.2.0 (2018-04-08) |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.point = point; | ||
const points = (pts, sep = " ") => pts.map(point).join(sep); | ||
const points = (pts, sep = " ") => pts ? pts.map(point).join(sep) : ""; | ||
exports.points = points; |
{ | ||
"name": "@thi.ng/hiccup-svg", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -6,3 +6,3 @@ "use strict"; | ||
"path", | ||
Object.assign({}, attr, { d: segments.map((seg) => seg[0] + format_1.points(seg[1], ",")) }) | ||
Object.assign({}, attr, { d: segments.map((seg) => seg[0] + format_1.points(seg[1], ",")).join("") }) | ||
]; |
20199