@thi.ng/hiccup-svg 4.2.10 → 4.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/convert.js +6 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-06-09T16:14:01Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [4.2.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.13) (2022-06-09)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- fix [#351](https://github.com/thi-ng/umbrella/issues/351) convertTree() ([8dc0e86](https://github.com/thi-ng/umbrella/commit/8dc0e86))
|
|
17
|
+
- update gradientTreansform handling
|
|
18
|
+
|
|
12
19
|
### [4.2.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.9) (2022-04-07)
|
|
13
20
|
|
|
14
21
|
#### ♻️ Refactoring
|
package/convert.js
CHANGED
|
@@ -68,12 +68,16 @@ export const convertTree = (tree) => {
|
|
|
68
68
|
case "linearGradient":
|
|
69
69
|
return linearGradient(attribs.id, attribs.from, attribs.to, tree[2], {
|
|
70
70
|
gradientUnits: attribs.gradientUnits || "userSpaceOnUse",
|
|
71
|
-
|
|
71
|
+
...(attribs.gradientTransform
|
|
72
|
+
? { gradientTransform: attribs.gradientTransform }
|
|
73
|
+
: null),
|
|
72
74
|
});
|
|
73
75
|
case "radialGradient":
|
|
74
76
|
return radialGradient(attribs.id, attribs.from, attribs.to, attribs.r1, attribs.r2, tree[2], {
|
|
75
77
|
gradientUnits: attribs.gradientUnits || "userSpaceOnUse",
|
|
76
|
-
|
|
78
|
+
...(attribs.gradientTransform
|
|
79
|
+
? { gradientTransform: attribs.gradientTransform }
|
|
80
|
+
: null),
|
|
77
81
|
});
|
|
78
82
|
case "circle":
|
|
79
83
|
return circle(tree[2], tree[3], attribs, ...tree.slice(4));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-svg",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.13",
|
|
4
4
|
"description": "SVG element functions for @thi.ng/hiccup & @thi.ng/hdom",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/checks": "^3.
|
|
38
|
-
"@thi.ng/color": "^5.0
|
|
39
|
-
"@thi.ng/prefixes": "^2.1.
|
|
37
|
+
"@thi.ng/checks": "^3.2.0",
|
|
38
|
+
"@thi.ng/color": "^5.1.0",
|
|
39
|
+
"@thi.ng/prefixes": "^2.1.7"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.
|
|
43
|
-
"@thi.ng/testament": "^0.2.
|
|
42
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
43
|
+
"@thi.ng/testament": "^0.2.8",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.22.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"typedoc": "^0.22.17",
|
|
47
|
+
"typescript": "^4.7.3"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"arc",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"parent": "@thi.ng/hiccup",
|
|
136
136
|
"year": 2016
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
139
139
|
}
|