@thi.ng/hdom-canvas 4.1.178 → 4.1.179

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +3 -279
  2. package/package.json +9 -10
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-21T15:46:53Z
3
+ - **Last updated**: 2025-01-23T13:39:11Z
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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -20,281 +22,3 @@ and/or version bumps of transitive dependencies.
20
22
  #### ♻️ Refactoring
21
23
 
22
24
  - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
23
-
24
- ## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@4.1.0) (2021-11-17)
25
-
26
- #### 🚀 Features
27
-
28
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
29
- Improving the overall build ergonomics
30
- - introduced a tools workspaces
31
- - imported it in all needed packages/examples
32
- - inclusive project root
33
-
34
- #### ♻️ Refactoring
35
-
36
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
37
- this commit reverts (partly) changes made in:
38
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
39
- overall purpose is better testament ergonomics:
40
- instead of having to pass NODE_OPTIONS with every invocation
41
- having a binary to handle this for us.
42
-
43
- ### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@4.0.1) (2021-10-13)
44
-
45
- #### ♻️ Refactoring
46
-
47
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
48
-
49
- # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@4.0.0) (2021-10-12)
50
-
51
- #### 🛑 Breaking changes
52
-
53
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
54
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
55
- - only ESM modules will be published from now on
56
- - CJS obsolete due to ESM support in recent versions of node:
57
- - i.e. launch NodeJS via:
58
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
59
- - in the node REPL use `await import(...)` instead of `require()`
60
- - UMD obsolete due to widespread browser support for ESM
61
- Also:
62
- - normalize/restructure/reorg all package.json files
63
- - cleanup all build scripts, remove obsolete
64
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
65
-
66
- #### ♻️ Refactoring
67
-
68
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
69
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
70
- - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
71
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
72
- - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
73
- - largely related to recent updates/restructuring of these packages:
74
- - api
75
- - defmulti
76
- - errors
77
- - logger
78
-
79
- ### [3.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.24) (2020-12-22)
80
-
81
- #### ♻️ Refactoring
82
-
83
- - update DiffMode handling ([ae8e3cf](https://github.com/thi-ng/umbrella/commit/ae8e3cf))
84
-
85
- ### [3.0.23](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.23) (2020-12-07)
86
-
87
- #### ♻️ Refactoring
88
-
89
- - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
90
-
91
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.0) (2020-06-05)
92
-
93
- #### 🛑 Breaking changes
94
-
95
- - remove obsolete files ([41c8a9d](https://github.com/thi-ng/umbrella/commit/41c8a9d))
96
- - BREAKING CHANGE: tree traversal & rendering parts extracted to new
97
- package [@thi.ng/hiccup-canvas](https://github.com/thi-ng/umbrella/tree/main/packages/hiccup-canvas)
98
- From now on, this package only contains the canvas component wrapper & hdom related interface implementations, allowing canvas rendering parts to be used separately.
99
-
100
- ### [2.4.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.4.4) (2020-02-25)
101
-
102
- #### ♻️ Refactoring
103
-
104
- - update imports ([1aa1083](https://github.com/thi-ng/umbrella/commit/1aa1083))
105
-
106
- ### [2.4.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.4.2) (2020-01-24)
107
-
108
- #### 🩹 Bug fixes
109
-
110
- - update points() to draw centered rects ([43d0aef](https://github.com/thi-ng/umbrella/commit/43d0aef))
111
-
112
- ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.4.0) (2019-11-09)
113
-
114
- #### 🚀 Features
115
-
116
- - add `packedPoints` shape type, update readme ([292611a](https://github.com/thi-ng/umbrella/commit/292611a))
117
- - minor refactor point()/drawPoints()
118
-
119
- ## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.3.0) (2019-09-21)
120
-
121
- #### 🚀 Features
122
-
123
- - add clip attrib support for paths ([2c2909d](https://github.com/thi-ng/umbrella/commit/2c2909d))
124
-
125
- ### [2.2.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.4) (2019-08-21)
126
-
127
- #### ♻️ Refactoring
128
-
129
- - split into sep files, expose direct draw fns ([4f0a220](https://github.com/thi-ng/umbrella/commit/4f0a220))
130
- - all fns in /draw can be used w/o hdom trees (direct canvas shape drawing)
131
- - make implicit deps explicit
132
- - update draw state handling ([d5c0738](https://github.com/thi-ng/umbrella/commit/d5c0738))
133
- - improve re-use in points(), polygon/polyline() ([b1cb63b](https://github.com/thi-ng/umbrella/commit/b1cb63b))
134
- - update resolveColor to use resolveAsCSS ([22ab80e](https://github.com/thi-ng/umbrella/commit/22ab80e))
135
-
136
- ### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.2) (2019-08-16)
137
-
138
- #### 🩹 Bug fixes
139
-
140
- - fix attrib default vals, add missing weight val ([f09677f](https://github.com/thi-ng/umbrella/commit/f09677f))
141
-
142
- ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.0) (2019-07-31)
143
-
144
- #### 🚀 Features
145
-
146
- - add setTransform attrib, update docs/readme ([eed3de2](https://github.com/thi-ng/umbrella/commit/eed3de2))
147
- - delegates to canvas 2D context setTransform() to
148
- override current tx (rather than `transform` which
149
- concatenates given matrix with existing one
150
-
151
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.1.0) (2019-07-07)
152
-
153
- #### 🚀 Features
154
-
155
- - enable TS strict compiler flags (refactor) ([998f5a1](https://github.com/thi-ng/umbrella/commit/998f5a1))
156
-
157
- #### ♻️ Refactoring
158
-
159
- - TS strictNullChecks ([b79d0c6](https://github.com/thi-ng/umbrella/commit/b79d0c6))
160
-
161
- ### [2.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.0.5) (2019-03-10)
162
-
163
- #### ♻️ Refactoring
164
-
165
- - update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
166
-
167
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.0.0) (2019-02-27)
168
-
169
- #### 🛑 Breaking changes
170
-
171
- - update image handling, add image/atlas blitting support ([bc59d30](https://github.com/thi-ng/umbrella/commit/bc59d30))
172
- - BREAKING CHANGE: new image args/attribs & arg order, see readme
173
-
174
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@1.1.0) (2019-01-22)
175
-
176
- #### 🚀 Features
177
-
178
- - add color dep, update color attrib handling ([1d92c8c](https://github.com/thi-ng/umbrella/commit/1d92c8c))
179
- - add support for non-string color attribs
180
- - update readme
181
-
182
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@1.0.0) (2019-01-21)
183
-
184
- #### 🛑 Breaking changes
185
-
186
- - update package scripts, outputs, imports in remaining packages ([f912a84](https://github.com/thi-ng/umbrella/commit/f912a84))
187
- - BREAKING CHANGE: enable multi-outputs (ES6 modules, CJS, UMD)
188
- - build scripts now first build ES6 modules in package root, then call
189
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
190
- - all imports MUST be updated to only refer to package level
191
- (not individual files anymore). tree shaking in user land will get rid of
192
- all unused imported symbols
193
-
194
- #### 🚀 Features
195
-
196
- - add ellipse() / ellipticArc(), update readme ([9a50769](https://github.com/thi-ng/umbrella/commit/9a50769))
197
-
198
- ### [0.1.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.15) (2018-12-13)
199
-
200
- #### ♻️ Refactoring
201
-
202
- - update HDOMImplementation, add __skip support, reformat ([43327c9](https://github.com/thi-ng/umbrella/commit/43327c9))
203
-
204
- ### [0.1.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.13) (2018-12-08)
205
-
206
- #### ⏱ Performance improvements
207
-
208
- - update diffTree() to compute edit dist only ([899941f](https://github.com/thi-ng/umbrella/commit/899941f))
209
-
210
- #### ♻️ Refactoring
211
-
212
- - update diffArray call site ([a7e9def](https://github.com/thi-ng/umbrella/commit/a7e9def))
213
-
214
- ### [0.1.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.12) (2018-11-26)
215
-
216
- #### 🩹 Bug fixes
217
-
218
- - actually pass maxWidth argument to text function ([97965d8](https://github.com/thi-ng/umbrella/commit/97965d8))
219
-
220
- ### [0.1.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.7) (2018-10-21)
221
-
222
- #### ♻️ Refactoring
223
-
224
- - update points() to accept iterables ([b31b480](https://github.com/thi-ng/umbrella/commit/b31b480))
225
-
226
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.0) (2018-09-22)
227
-
228
- #### ♻️ Refactoring
229
-
230
- - add _serialize control attrib to root group ([53a1d2c](https://github.com/thi-ng/umbrella/commit/53a1d2c))
231
- - switch canvas back to lifecycle object form ([09a821b](https://github.com/thi-ng/umbrella/commit/09a821b))
232
- - this allows users to augment the component with `init` & `release`
233
- lifecycle methods if needed...
234
-
235
- ### [0.1.0-alpha](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.0-alpha) (2018-09-16)
236
-
237
- #### 🚀 Features
238
-
239
- - add more shapes/prims, update transform handling ([d3acb70](https://github.com/thi-ng/umbrella/commit/d3acb70))
240
- - add `line`, `hline`, `vline`, `arc` & `img` prims
241
- - update beginShape() to support `translate`, `rotate`, `scale` attribs
242
- and return boolean if context needs restoring later
243
- - update endShape()
244
- - optimize repeated property lookups
245
- - add [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/main/packages/checks) dep
246
- - implement drawing state inheritance & restoration ([ccbf53c](https://github.com/thi-ng/umbrella/commit/ccbf53c))
247
- - add mergeState() & restoreState() to apply & undo only edited attribs
248
- - add CTX_ATTRIBS alias mappings & DEFAULTS
249
- - rename beginShape() => applyTransform()
250
- - rename createTree() => drawTree()
251
- - remove export flags from shape fns
252
- - add [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) dep
253
- - add path shape type, embedded fn & iterator handling ([82cd938](https://github.com/thi-ng/umbrella/commit/82cd938))
254
- - add canvas-specific normalizeTree() impl ([1d24a16](https://github.com/thi-ng/umbrella/commit/1d24a16))
255
- - update canvas component hdom control attribs
256
- - update createTree() (remove fn & iterator checks,
257
- moved to normalizeTree())
258
- - minor refactoring
259
- - add rounded rect option (as path) ([764373a](https://github.com/thi-ng/umbrella/commit/764373a))
260
- - create path if opt radius arg is given for `["rect"...]`
261
- - fix [#43](https://github.com/thi-ng/umbrella/issues/43), add gradient support ([81fe154](https://github.com/thi-ng/umbrella/commit/81fe154))
262
- - add "linearGradient"/"radialGradient" shape types
263
- - add defLinearGradient() & defRadialGradient()
264
- - update mergeState(), restoreState() & setAttrib()
265
- - add new shape types, add canvas attribs, refactor ([6496e47](https://github.com/thi-ng/umbrella/commit/6496e47))
266
- - add `points` shapetype for optimized point drawing (rects)
267
- - add arc segment support for `path`
268
- - refactor rounded rects to use arc segments
269
- - add `clear` boolean attrib to (optionally) disable canvas clearing
270
- - extract walk() from drawTree()
271
- - add `defs` node/group type ([de61c21](https://github.com/thi-ng/umbrella/commit/de61c21))
272
- - in preparation for easier conversion to SVG-hiccup
273
- - update points() to use circle or rect shapes ([d412269](https://github.com/thi-ng/umbrella/commit/d412269))
274
- - add `.toHiccup()` interface support ([8ecdd13](https://github.com/thi-ng/umbrella/commit/8ecdd13))
275
- - add `.toHiccup()` type check in `normalizeTree()` and call w/
276
- user context
277
- - add warning msg for hydrateTree() impl ([adaaa7a](https://github.com/thi-ng/umbrella/commit/adaaa7a))
278
- - add HDPI auto-adjustment, update docs ([5de0255](https://github.com/thi-ng/umbrella/commit/5de0255))
279
- - replace canvas fn with component object w/ life cycle methods
280
- - if HDPI, inject CSS width/height props and pre-scale drawing ctx
281
- - update canvas component & diffTree impl, update docs ([74547aa](https://github.com/thi-ng/umbrella/commit/74547aa))
282
-
283
- #### 🩹 Bug fixes
284
-
285
- - update __normalize handling, rename fns ([a52f83c](https://github.com/thi-ng/umbrella/commit/a52f83c))
286
- - update canvas() component fn
287
- - rename drawTree() => createTree()
288
- - update releaseTree() call sites
289
- - remove warning from hydrateTree() (just do nothing)
290
-
291
- #### ⏱ Performance improvements
292
-
293
- - inline type checks, update deps & readme ([ae4b621](https://github.com/thi-ng/umbrella/commit/ae4b621))
294
-
295
- #### ♻️ Refactoring
296
-
297
- - update canvas component, add docs ([1cfad51](https://github.com/thi-ng/umbrella/commit/1cfad51))
298
- - update to reflect hdom api changes ([81a39ba](https://github.com/thi-ng/umbrella/commit/81a39ba))
299
- - update attrib aliases ([5aa9d46](https://github.com/thi-ng/umbrella/commit/5aa9d46))
300
- - swap `img` args to be more consistent w/ others ([c20b24a](https://github.com/thi-ng/umbrella/commit/c20b24a))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-canvas",
3
- "version": "4.1.178",
3
+ "version": "4.1.179",
4
4
  "description": "@thi.ng/hdom component wrapper for declarative canvas scenegraphs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,18 +43,17 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.17",
47
- "@thi.ng/checks": "^3.6.20",
48
- "@thi.ng/diff": "^5.1.84",
49
- "@thi.ng/errors": "^2.5.23",
50
- "@thi.ng/hdom": "^9.4.59",
51
- "@thi.ng/hiccup-canvas": "^3.1.34"
46
+ "@thi.ng/api": "^8.11.18",
47
+ "@thi.ng/checks": "^3.6.21",
48
+ "@thi.ng/diff": "^5.1.85",
49
+ "@thi.ng/errors": "^2.5.24",
50
+ "@thi.ng/hdom": "^9.4.60",
51
+ "@thi.ng/hiccup-canvas": "^3.1.35"
52
52
  },
53
53
  "devDependencies": {
54
- "@microsoft/api-extractor": "^7.48.1",
55
54
  "esbuild": "^0.24.2",
56
55
  "typedoc": "^0.27.6",
57
- "typescript": "^5.7.2"
56
+ "typescript": "^5.7.3"
58
57
  },
59
58
  "keywords": [
60
59
  "array",
@@ -96,5 +95,5 @@
96
95
  ],
97
96
  "year": 2018
98
97
  },
99
- "gitHead": "363db3998a14ddfd7a82f3039d8ca9681581e284\n"
98
+ "gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
100
99
  }