@thi.ng/hiccup-canvas 2.5.0 → 2.5.2

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-18T22:05:31Z
3
+ - **Last updated**: 2023-12-19T12:24:50Z
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,12 @@ 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
+ ### [2.5.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.2) (2023-12-19)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix rounded rect attrib handling ([ee79d01](https://github.com/thi-ng/umbrella/commit/ee79d01))
17
+
12
18
  ## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.0) (2023-12-18)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -96,7 +96,7 @@ For Node.js REPL:
96
96
  const hiccupCanvas = await import("@thi.ng/hiccup-canvas");
97
97
  ```
98
98
 
99
- Package sizes (brotli'd, pre-treeshake): ESM: 2.52 KB
99
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.53 KB
100
100
 
101
101
  ## Dependencies
102
102
 
@@ -123,6 +123,7 @@ directory are using this package:
123
123
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/hdom-canvas-particles.jpg" width="240"/> | 2D Bezier curve-guided particle system | [Demo](https://demo.thi.ng/umbrella/hdom-canvas-particles/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/hdom-canvas-particles) |
124
124
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/hdom-canvas/hdom-canvas-shapes-results.png" width="240"/> | Various hdom-canvas shape drawing examples & SVG conversion / export | [Demo](https://demo.thi.ng/umbrella/hdom-canvas-shapes/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/hdom-canvas-shapes) |
125
125
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/hiccup-canvas-arcs.png" width="240"/> | Animated arcs & drawing using hiccup-canvas | [Demo](https://demo.thi.ng/umbrella/hiccup-canvas-arcs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/hiccup-canvas-arcs) |
126
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/hiccup-canvas-basics.png" width="240"/> | Basic hiccup-based canvas drawing | [Demo](https://demo.thi.ng/umbrella/hiccup-canvas-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/hiccup-canvas-basics) |
126
127
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/poly-subdiv.jpg" width="240"/> | Animated, iterative polygon subdivisions & visualization | [Demo](https://demo.thi.ng/umbrella/poly-subdiv/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/poly-subdiv) |
127
128
 
128
129
  ## API
package/draw.js CHANGED
@@ -94,7 +94,7 @@ const draw = (ctx, shape, pstate = { attribs: {}, edits: [] }) => {
94
94
  shape[3],
95
95
  shape[4],
96
96
  // support rounded rects via `r` attrib
97
- shape[5] ?? origAttribs.r
97
+ shape[5] ?? origAttribs?.r
98
98
  );
99
99
  break;
100
100
  case "circle":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-canvas",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,18 +35,17 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.13",
39
- "@thi.ng/checks": "^3.4.13",
40
- "@thi.ng/color": "^5.6.6",
41
- "@thi.ng/math": "^5.7.8",
42
- "@thi.ng/pixel": "^5.0.6",
43
- "@thi.ng/vectors": "^7.8.11"
38
+ "@thi.ng/api": "^8.9.14",
39
+ "@thi.ng/checks": "^3.4.14",
40
+ "@thi.ng/color": "^5.6.8",
41
+ "@thi.ng/math": "^5.7.9",
42
+ "@thi.ng/pixel": "^6.0.1",
43
+ "@thi.ng/vectors": "^7.8.13"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.38.3",
47
47
  "esbuild": "^0.19.8",
48
48
  "rimraf": "^5.0.5",
49
- "tools": "^0.0.1",
50
49
  "typedoc": "^0.25.4",
51
50
  "typescript": "^5.3.2"
52
51
  },
@@ -131,5 +130,5 @@
131
130
  ],
132
131
  "year": 2018
133
132
  },
134
- "gitHead": "d1c8bca89fa5c57ca0c690933edb03129b085687\n"
133
+ "gitHead": "36d93175f8fbc0190c3c96a9ac0016a9663e9a80\n"
135
134
  }