@thi.ng/hiccup-svg 5.0.40 → 5.1.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-12-18T13:41:20Z
3
+ - **Last updated**: 2023-12-18T23:11:27Z
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
+ ## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.1.0) (2023-12-18)
13
+
14
+ #### 🚀 Features
15
+
16
+ - update convertTree() rounded rect handling ([6115a50](https://github.com/thi-ng/umbrella/commit/6115a50))
17
+ - use `r` attrib to derive rounded rect radius
18
+
12
19
  ### [5.0.32](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.0.32) (2023-11-09)
13
20
 
14
21
  #### ♻️ Refactoring
package/convert.js CHANGED
@@ -99,7 +99,7 @@ const convertTree = (tree) => {
99
99
  );
100
100
  break;
101
101
  case "rect": {
102
- const r = tree[5] || 0;
102
+ const r = tree[5] ?? attribs.r ?? 0;
103
103
  result = roundedRect(
104
104
  tree[2],
105
105
  tree[3],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-svg",
3
- "version": "5.0.40",
3
+ "version": "5.1.0",
4
4
  "description": "SVG element functions for @thi.ng/hiccup & related tooling",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -136,5 +136,5 @@
136
136
  "parent": "@thi.ng/hiccup",
137
137
  "year": 2016
138
138
  },
139
- "gitHead": "25a42a81fac8603a1e440a7aa8bc343276211ff4\n"
139
+ "gitHead": "b67c377b8cdd00aa6ff53e5b86b420739788fa15\n"
140
140
  }