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