@thi.ng/hdom-canvas 4.0.10 → 4.1.3
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 +208 -69
- package/package.json +90 -85
package/CHANGELOG.md
CHANGED
|
@@ -1,149 +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.
|
|
8
|
+
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
5
11
|
|
|
6
|
-
## [4.0
|
|
12
|
+
## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@4.1.0) (2021-11-17)
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
#### 🚀 Features
|
|
9
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
|
|
10
21
|
|
|
22
|
+
#### ♻️ Refactoring
|
|
11
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.
|
|
12
30
|
|
|
31
|
+
### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@4.0.1) (2021-10-13)
|
|
13
32
|
|
|
14
|
-
|
|
33
|
+
#### ♻️ Refactoring
|
|
15
34
|
|
|
16
|
-
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
17
36
|
|
|
37
|
+
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@4.0.0) (2021-10-12)
|
|
18
38
|
|
|
39
|
+
#### 🛑 Breaking changes
|
|
19
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
|
|
20
53
|
|
|
54
|
+
#### ♻️ Refactoring
|
|
21
55
|
|
|
22
|
-
|
|
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)
|
|
23
66
|
|
|
24
|
-
|
|
67
|
+
### [3.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.24) (2020-12-22)
|
|
25
68
|
|
|
69
|
+
#### ♻️ Refactoring
|
|
26
70
|
|
|
71
|
+
- update DiffMode handling ([ae8e3cf](https://github.com/thi-ng/umbrella/commit/ae8e3cf))
|
|
27
72
|
|
|
73
|
+
### [3.0.23](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.23) (2020-12-07)
|
|
28
74
|
|
|
75
|
+
#### ♻️ Refactoring
|
|
29
76
|
|
|
30
|
-
|
|
77
|
+
- update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
|
|
31
78
|
|
|
79
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.0) (2020-06-05)
|
|
32
80
|
|
|
33
|
-
|
|
81
|
+
#### 🛑 Breaking changes
|
|
34
82
|
|
|
35
|
-
|
|
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.
|
|
36
87
|
|
|
88
|
+
### [2.4.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.4.4) (2020-02-25)
|
|
37
89
|
|
|
38
|
-
|
|
90
|
+
#### ♻️ Refactoring
|
|
39
91
|
|
|
40
|
-
|
|
92
|
+
- update imports ([1aa1083](https://github.com/thi-ng/umbrella/commit/1aa1083))
|
|
41
93
|
|
|
42
|
-
-
|
|
43
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
44
|
-
- i.e. launch NodeJS via:
|
|
45
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
46
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
47
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
94
|
+
### [2.4.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.4.2) (2020-01-24)
|
|
48
95
|
|
|
49
|
-
|
|
50
|
-
- normalize/restructure/reorg all package.json files
|
|
51
|
-
- cleanup all build scripts, remove obsolete
|
|
52
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
96
|
+
#### 🩹 Bug fixes
|
|
53
97
|
|
|
98
|
+
- update points() to draw centered rects ([43d0aef](https://github.com/thi-ng/umbrella/commit/43d0aef))
|
|
54
99
|
|
|
100
|
+
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.4.0) (2019-11-09)
|
|
55
101
|
|
|
102
|
+
#### 🚀 Features
|
|
56
103
|
|
|
104
|
+
- add `packedPoints` shape type, update readme ([292611a](https://github.com/thi-ng/umbrella/commit/292611a))
|
|
105
|
+
- minor refactor point()/drawPoints()
|
|
57
106
|
|
|
107
|
+
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.3.0) (2019-09-21)
|
|
58
108
|
|
|
59
|
-
|
|
109
|
+
#### 🚀 Features
|
|
60
110
|
|
|
61
|
-
|
|
111
|
+
- add clip attrib support for paths ([2c2909d](https://github.com/thi-ng/umbrella/commit/2c2909d))
|
|
62
112
|
|
|
63
|
-
|
|
113
|
+
### [2.2.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.4) (2019-08-21)
|
|
64
114
|
|
|
65
|
-
|
|
115
|
+
#### ♻️ Refactoring
|
|
66
116
|
|
|
67
|
-
-
|
|
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
|
|
68
123
|
|
|
69
|
-
|
|
124
|
+
### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.2) (2019-08-16)
|
|
70
125
|
|
|
71
|
-
|
|
126
|
+
#### 🩹 Bug fixes
|
|
72
127
|
|
|
73
|
-
|
|
128
|
+
- fix attrib default vals, add missing weight val ([f09677f](https://github.com/thi-ng/umbrella/commit/f09677f))
|
|
74
129
|
|
|
75
|
-
|
|
130
|
+
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.0) (2019-07-31)
|
|
76
131
|
|
|
77
|
-
|
|
132
|
+
#### 🚀 Features
|
|
78
133
|
|
|
79
|
-
|
|
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
|
|
80
138
|
|
|
81
|
-
|
|
139
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.1.0) (2019-07-07)
|
|
82
140
|
|
|
83
|
-
|
|
141
|
+
#### 🚀 Features
|
|
84
142
|
|
|
85
|
-
|
|
143
|
+
- enable TS strict compiler flags (refactor) ([998f5a1](https://github.com/thi-ng/umbrella/commit/998f5a1))
|
|
86
144
|
|
|
87
|
-
|
|
145
|
+
#### ♻️ Refactoring
|
|
88
146
|
|
|
89
|
-
|
|
147
|
+
- TS strictNullChecks ([b79d0c6](https://github.com/thi-ng/umbrella/commit/b79d0c6))
|
|
90
148
|
|
|
91
|
-
###
|
|
149
|
+
### [2.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.0.5) (2019-03-10)
|
|
92
150
|
|
|
93
|
-
|
|
151
|
+
#### ♻️ Refactoring
|
|
94
152
|
|
|
95
|
-
|
|
153
|
+
- update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
|
|
96
154
|
|
|
97
|
-
|
|
155
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.0.0) (2019-02-27)
|
|
98
156
|
|
|
99
|
-
|
|
157
|
+
#### 🛑 Breaking changes
|
|
100
158
|
|
|
101
|
-
|
|
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
|
|
102
161
|
|
|
103
|
-
|
|
162
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@1.1.0) (2019-01-22)
|
|
104
163
|
|
|
105
|
-
|
|
164
|
+
#### 🚀 Features
|
|
106
165
|
|
|
107
|
-
|
|
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
|
|
108
169
|
|
|
109
|
-
|
|
170
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@1.0.0) (2019-01-21)
|
|
110
171
|
|
|
111
|
-
|
|
172
|
+
#### 🛑 Breaking changes
|
|
112
173
|
|
|
113
|
-
|
|
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
|
|
114
181
|
|
|
115
|
-
|
|
182
|
+
#### 🚀 Features
|
|
116
183
|
|
|
117
|
-
|
|
184
|
+
- add ellipse() / ellipticArc(), update readme ([9a50769](https://github.com/thi-ng/umbrella/commit/9a50769))
|
|
118
185
|
|
|
119
|
-
###
|
|
186
|
+
### [0.1.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.15) (2018-12-13)
|
|
120
187
|
|
|
121
|
-
|
|
188
|
+
#### ♻️ Refactoring
|
|
122
189
|
|
|
123
|
-
|
|
190
|
+
- update HDOMImplementation, add __skip support, reformat ([43327c9](https://github.com/thi-ng/umbrella/commit/43327c9))
|
|
124
191
|
|
|
125
|
-
###
|
|
192
|
+
### [0.1.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.13) (2018-12-08)
|
|
126
193
|
|
|
127
|
-
|
|
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
|
|
128
217
|
|
|
129
|
-
|
|
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))
|
|
130
222
|
|
|
131
|
-
|
|
223
|
+
### [0.1.0-alpha](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.0-alpha) (2018-09-16)
|
|
132
224
|
|
|
133
|
-
|
|
225
|
+
#### 🚀 Features
|
|
134
226
|
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
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
|
|
138
270
|
|
|
139
|
-
|
|
271
|
+
#### 🩹 Bug fixes
|
|
140
272
|
|
|
141
|
-
|
|
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)
|
|
142
278
|
|
|
143
|
-
|
|
279
|
+
#### ⏱ Performance improvements
|
|
144
280
|
|
|
145
|
-
|
|
281
|
+
- inline type checks, update deps & readme ([ae4b621](https://github.com/thi-ng/umbrella/commit/ae4b621))
|
|
146
282
|
|
|
147
|
-
|
|
283
|
+
#### ♻️ Refactoring
|
|
148
284
|
|
|
149
|
-
-
|
|
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/package.json
CHANGED
|
@@ -1,88 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@thi.ng/hdom-canvas",
|
|
3
|
+
"version": "4.1.3",
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.3"
|
|
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
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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.2.0",
|
|
38
|
-
"@thi.ng/checks": "^3.0.7",
|
|
39
|
-
"@thi.ng/diff": "^5.0.8",
|
|
40
|
-
"@thi.ng/errors": "^2.0.6",
|
|
41
|
-
"@thi.ng/hdom": "^9.0.8",
|
|
42
|
-
"@thi.ng/hiccup-canvas": "^2.0.10"
|
|
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": "5fe52419af63984ebe53032201b2a6174b9cb159"
|
|
88
|
-
}
|
|
90
|
+
"year": 2018
|
|
91
|
+
},
|
|
92
|
+
"gitHead": "d777b58d7bec4496d38166cdabda4ffb78b0dc47\n"
|
|
93
|
+
}
|