@thi.ng/hiccup-canvas 2.5.32 → 2.5.34
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 +1 -1
- package/README.md +9 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 191 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -86,7 +86,13 @@ implementations) and then translates these into canvas API draw calls.
|
|
|
86
86
|
yarn add @thi.ng/hiccup-canvas
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
ESM import:
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
import * as hc from "@thi.ng/hiccup-canvas";
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Browser ESM import:
|
|
90
96
|
|
|
91
97
|
```html
|
|
92
98
|
<script type="module" src="https://cdn.skypack.dev/@thi.ng/hiccup-canvas"></script>
|
|
@@ -97,7 +103,7 @@ ES module import:
|
|
|
97
103
|
For Node.js REPL:
|
|
98
104
|
|
|
99
105
|
```js
|
|
100
|
-
const
|
|
106
|
+
const hc = await import("@thi.ng/hiccup-canvas");
|
|
101
107
|
```
|
|
102
108
|
|
|
103
109
|
Package sizes (brotli'd, pre-treeshake): ESM: 2.53 KB
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-canvas",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.34",
|
|
4
4
|
"description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.
|
|
40
|
-
"@thi.ng/checks": "^3.
|
|
41
|
-
"@thi.ng/color": "^5.6.
|
|
42
|
-
"@thi.ng/math": "^5.10.
|
|
43
|
-
"@thi.ng/pixel": "^6.1.
|
|
44
|
-
"@thi.ng/vectors": "^7.10.
|
|
39
|
+
"@thi.ng/api": "^8.10.0",
|
|
40
|
+
"@thi.ng/checks": "^3.6.0",
|
|
41
|
+
"@thi.ng/color": "^5.6.40",
|
|
42
|
+
"@thi.ng/math": "^5.10.9",
|
|
43
|
+
"@thi.ng/pixel": "^6.1.27",
|
|
44
|
+
"@thi.ng/vectors": "^7.10.26"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.43.0",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
],
|
|
132
132
|
"year": 2018
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
|
|
135
135
|
}
|