@thi.ng/hiccup-canvas 2.2.0 → 2.2.1

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**: 2023-01-10T15:20:19Z
3
+ - **Last updated**: 2023-02-05T14:42:21Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.2.1) (2023-02-05)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - add null check for __skip attrib ([416b7bb](https://github.com/thi-ng/umbrella/commit/416b7bb))
17
+
12
18
  ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.2.0) (2023-01-10)
13
19
 
14
20
  #### 🚀 Features
package/draw.js CHANGED
@@ -26,7 +26,7 @@ export const draw = (ctx, shape, pstate = { attribs: {}, edits: [] }) => {
26
26
  return;
27
27
  }
28
28
  const origAttribs = shape[1];
29
- if (origAttribs.__skip)
29
+ if (origAttribs?.__skip)
30
30
  return;
31
31
  const state = __mergeState(ctx, pstate, origAttribs);
32
32
  const attribs = state ? state.attribs : pstate.attribs;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-shape.d.ts","sourceRoot":"","sources":["../src/internal/end-shape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,UAAU,QACjB,wBAAwB,WACpB,UAAU,GAAG,CAAC,SAYvB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../src/internal/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AA0D3C,gBAAgB;AAChB,eAAO,MAAM,YAAY,QACnB,wBAAwB,SACtB,SAAS,WACP,UAAU,GAAG,CAAC,0BA0BvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,cAAc,QACrB,wBAAwB,QACvB,SAAS,QACT,SAAS,SAaf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,UACvB,SAAS,MACZ,MAAM,KACP,cAAc,SAIjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-canvas",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,20 +34,20 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.6.3",
38
- "@thi.ng/checks": "^3.3.7",
39
- "@thi.ng/color": "^5.2.17",
40
- "@thi.ng/math": "^5.4.0",
41
- "@thi.ng/pixel": "^4.1.0",
42
- "@thi.ng/vectors": "^7.5.31"
37
+ "@thi.ng/api": "^8.7.0",
38
+ "@thi.ng/checks": "^3.3.8",
39
+ "@thi.ng/color": "^5.2.18",
40
+ "@thi.ng/math": "^5.4.1",
41
+ "@thi.ng/pixel": "^4.1.1",
42
+ "@thi.ng/vectors": "^7.6.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "^7.33.7",
46
- "@thi.ng/testament": "^0.3.9",
47
- "rimraf": "^3.0.2",
45
+ "@microsoft/api-extractor": "^7.34.2",
46
+ "@thi.ng/testament": "^0.3.10",
47
+ "rimraf": "^4.1.2",
48
48
  "tools": "^0.0.1",
49
- "typedoc": "^0.23.22",
50
- "typescript": "^4.9.4"
49
+ "typedoc": "^0.23.24",
50
+ "typescript": "^4.9.5"
51
51
  },
52
52
  "keywords": [
53
53
  "2d",
@@ -130,5 +130,5 @@
130
130
  ],
131
131
  "year": 2018
132
132
  },
133
- "gitHead": "3f0b3e2a7c82aefc7e46fb4338369836b5e1b8cf\n"
133
+ "gitHead": "50ba9c87676fac60c46d2bc0e4d2c7711a374a68\n"
134
134
  }