@thi.ng/hdom-canvas 4.1.122 → 4.1.123

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**: 2024-03-01T15:22:50Z
3
+ - **Last updated**: 2024-03-02T14:05:53Z
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.
package/README.md CHANGED
@@ -209,6 +209,8 @@ set to `false` to skip unnecessary diffing and force redraws.
209
209
  To disable the automatic background clearing of the canvas, set the `__clear` attribute to `false`.
210
210
 
211
211
  ```ts
212
+ import { canvas } from "@thi.ng/hdom-components";
213
+
212
214
  [canvas, { width: 100, height: 100, __clear: false }, ...]
213
215
  ```
214
216
 
@@ -220,6 +222,8 @@ context accordingly before any shapes are processed. For fullscreen
220
222
  canvases simply set the `width` & `height` attribs to:
221
223
 
222
224
  ```ts
225
+ import { canvas } from "@thi.ng/hdom-components";
226
+
223
227
  [canvas,
224
228
  {
225
229
  width: window.innerWidth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-canvas",
3
- "version": "4.1.122",
3
+ "version": "4.1.123",
4
4
  "description": "@thi.ng/hdom component wrapper for declarative canvas scenegraphs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -42,8 +42,8 @@
42
42
  "@thi.ng/checks": "^3.5.1",
43
43
  "@thi.ng/diff": "^5.1.60",
44
44
  "@thi.ng/errors": "^2.4.19",
45
- "@thi.ng/hdom": "^9.4.19",
46
- "@thi.ng/hiccup-canvas": "^2.5.21"
45
+ "@thi.ng/hdom": "^9.4.20",
46
+ "@thi.ng/hiccup-canvas": "^2.5.22"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.40.1",
@@ -92,5 +92,5 @@
92
92
  ],
93
93
  "year": 2018
94
94
  },
95
- "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
95
+ "gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
96
96
  }