@thi.ng/hdom-canvas 4.1.34 → 4.1.36

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 +48 -48
  2. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-10-28T19:08:39Z
3
+ - **Last updated**: 2022-11-23T22:46:54Z
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.
@@ -53,16 +53,16 @@ and/or version bumps of transitive dependencies.
53
53
 
54
54
  #### ♻️ Refactoring
55
55
 
56
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
57
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
58
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
59
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
56
60
  - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
57
61
  - largely related to recent updates/restructuring of these packages:
58
62
  - api
59
63
  - defmulti
60
64
  - errors
61
65
  - 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)
66
66
 
67
67
  ### [3.0.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@3.0.24) (2020-12-22)
68
68
 
@@ -114,12 +114,12 @@ and/or version bumps of transitive dependencies.
114
114
 
115
115
  #### ♻️ Refactoring
116
116
 
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
117
  - split into sep files, expose direct draw fns ([4f0a220](https://github.com/thi-ng/umbrella/commit/4f0a220))
121
118
  - all fns in /draw can be used w/o hdom trees (direct canvas shape drawing)
122
119
  - make implicit deps explicit
120
+ - update draw state handling ([d5c0738](https://github.com/thi-ng/umbrella/commit/d5c0738))
121
+ - improve re-use in points(), polygon/polyline() ([b1cb63b](https://github.com/thi-ng/umbrella/commit/b1cb63b))
122
+ - update resolveColor to use resolveAsCSS ([22ab80e](https://github.com/thi-ng/umbrella/commit/22ab80e))
123
123
 
124
124
  ### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@2.2.2) (2019-08-16)
125
125
 
@@ -215,51 +215,15 @@ and/or version bumps of transitive dependencies.
215
215
 
216
216
  #### ♻️ Refactoring
217
217
 
218
+ - add _serialize control attrib to root group ([53a1d2c](https://github.com/thi-ng/umbrella/commit/53a1d2c))
218
219
  - switch canvas back to lifecycle object form ([09a821b](https://github.com/thi-ng/umbrella/commit/09a821b))
219
220
  - this allows users to augment the component with `init` & `release`
220
221
  lifecycle methods if needed...
221
- - add _serialize control attrib to root group ([53a1d2c](https://github.com/thi-ng/umbrella/commit/53a1d2c))
222
222
 
223
223
  ### [0.1.0-alpha](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-canvas@0.1.0-alpha) (2018-09-16)
224
224
 
225
225
  #### 🚀 Features
226
226
 
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
227
  - add more shapes/prims, update transform handling ([d3acb70](https://github.com/thi-ng/umbrella/commit/d3acb70))
264
228
  - add `line`, `hline`, `vline`, `arc` & `img` prims
265
229
  - update beginShape() to support `translate`, `rotate`, `scale` attribs
@@ -267,6 +231,42 @@ and/or version bumps of transitive dependencies.
267
231
  - update endShape()
268
232
  - optimize repeated property lookups
269
233
  - add [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/main/packages/checks) dep
234
+ - implement drawing state inheritance & restoration ([ccbf53c](https://github.com/thi-ng/umbrella/commit/ccbf53c))
235
+ - add mergeState() & restoreState() to apply & undo only edited attribs
236
+ - add CTX_ATTRIBS alias mappings & DEFAULTS
237
+ - rename beginShape() => applyTransform()
238
+ - rename createTree() => drawTree()
239
+ - remove export flags from shape fns
240
+ - add [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) dep
241
+ - add path shape type, embedded fn & iterator handling ([82cd938](https://github.com/thi-ng/umbrella/commit/82cd938))
242
+ - add canvas-specific normalizeTree() impl ([1d24a16](https://github.com/thi-ng/umbrella/commit/1d24a16))
243
+ - update canvas component hdom control attribs
244
+ - update createTree() (remove fn & iterator checks,
245
+ moved to normalizeTree())
246
+ - minor refactoring
247
+ - add rounded rect option (as path) ([764373a](https://github.com/thi-ng/umbrella/commit/764373a))
248
+ - create path if opt radius arg is given for `["rect"...]`
249
+ - fix [#43](https://github.com/thi-ng/umbrella/issues/43), add gradient support ([81fe154](https://github.com/thi-ng/umbrella/commit/81fe154))
250
+ - add "linearGradient"/"radialGradient" shape types
251
+ - add defLinearGradient() & defRadialGradient()
252
+ - update mergeState(), restoreState() & setAttrib()
253
+ - add new shape types, add canvas attribs, refactor ([6496e47](https://github.com/thi-ng/umbrella/commit/6496e47))
254
+ - add `points` shapetype for optimized point drawing (rects)
255
+ - add arc segment support for `path`
256
+ - refactor rounded rects to use arc segments
257
+ - add `clear` boolean attrib to (optionally) disable canvas clearing
258
+ - extract walk() from drawTree()
259
+ - add `defs` node/group type ([de61c21](https://github.com/thi-ng/umbrella/commit/de61c21))
260
+ - in preparation for easier conversion to SVG-hiccup
261
+ - update points() to use circle or rect shapes ([d412269](https://github.com/thi-ng/umbrella/commit/d412269))
262
+ - add `.toHiccup()` interface support ([8ecdd13](https://github.com/thi-ng/umbrella/commit/8ecdd13))
263
+ - add `.toHiccup()` type check in `normalizeTree()` and call w/
264
+ user context
265
+ - add warning msg for hydrateTree() impl ([adaaa7a](https://github.com/thi-ng/umbrella/commit/adaaa7a))
266
+ - add HDPI auto-adjustment, update docs ([5de0255](https://github.com/thi-ng/umbrella/commit/5de0255))
267
+ - replace canvas fn with component object w/ life cycle methods
268
+ - if HDPI, inject CSS width/height props and pre-scale drawing ctx
269
+ - update canvas component & diffTree impl, update docs ([74547aa](https://github.com/thi-ng/umbrella/commit/74547aa))
270
270
 
271
271
  #### 🩹 Bug fixes
272
272
 
@@ -282,7 +282,7 @@ and/or version bumps of transitive dependencies.
282
282
 
283
283
  #### ♻️ Refactoring
284
284
 
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
285
  - update canvas component, add docs ([1cfad51](https://github.com/thi-ng/umbrella/commit/1cfad51))
286
+ - update to reflect hdom api changes ([81a39ba](https://github.com/thi-ng/umbrella/commit/81a39ba))
287
+ - update attrib aliases ([5aa9d46](https://github.com/thi-ng/umbrella/commit/5aa9d46))
288
+ - 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.34",
3
+ "version": "4.1.36",
4
4
  "description": "@thi.ng/hdom component wrapper for declarative canvas scenegraphs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,19 +34,19 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.4.5",
38
- "@thi.ng/checks": "^3.3.2",
39
- "@thi.ng/diff": "^5.1.15",
40
- "@thi.ng/errors": "^2.2.3",
41
- "@thi.ng/hdom": "^9.1.24",
42
- "@thi.ng/hiccup-canvas": "^2.1.34"
37
+ "@thi.ng/api": "^8.5.0",
38
+ "@thi.ng/checks": "^3.3.3",
39
+ "@thi.ng/diff": "^5.1.17",
40
+ "@thi.ng/errors": "^2.2.4",
41
+ "@thi.ng/hdom": "^9.1.26",
42
+ "@thi.ng/hiccup-canvas": "^2.1.36"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.33.5",
46
- "@thi.ng/testament": "^0.3.4",
46
+ "@thi.ng/testament": "^0.3.5",
47
47
  "rimraf": "^3.0.2",
48
48
  "tools": "^0.0.1",
49
- "typedoc": "^0.23.18",
49
+ "typedoc": "^0.23.20",
50
50
  "typescript": "^4.8.4"
51
51
  },
52
52
  "keywords": [
@@ -70,8 +70,8 @@
70
70
  "node": ">=12.7"
71
71
  },
72
72
  "files": [
73
- "*.js",
74
- "*.d.ts"
73
+ "./*.js",
74
+ "./*.d.ts"
75
75
  ],
76
76
  "exports": {
77
77
  ".": {
@@ -89,5 +89,5 @@
89
89
  ],
90
90
  "year": 2018
91
91
  },
92
- "gitHead": "a4b60163a8caddceed5ec1b6b3584d164f61e7b6\n"
92
+ "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
93
93
  }