@thi.ng/hiccup-canvas 2.1.6 → 2.1.9

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**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-04-07T14:17:30Z
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.1.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.1.9) (2022-04-07)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
17
+
12
18
  ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.1.0) (2021-11-17)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -513,4 +513,4 @@ If this project contributes to an academic publication, please cite it as:
513
513
 
514
514
  ## License
515
515
 
516
- © 2018 - 2021 Karsten Schmidt // Apache Software License 2.0
516
+ © 2018 - 2022 Karsten Schmidt // Apache Software License 2.0
package/color.js CHANGED
@@ -3,7 +3,7 @@ import { css } from "@thi.ng/color/css/css";
3
3
  export const resolveColor = css;
4
4
  export const resolveGradientOrColor = (state, v) => isString(v)
5
5
  ? v[0] === "$"
6
- ? state.grads[v.substr(1)]
6
+ ? state.grads[v.substring(1)]
7
7
  : v
8
8
  : resolveColor(v);
9
9
  export const defLinearGradient = (ctx, { from, to }, stops) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-canvas",
3
- "version": "2.1.6",
3
+ "version": "2.1.9",
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.3.3",
38
- "@thi.ng/checks": "^3.1.3",
39
- "@thi.ng/color": "^4.1.6",
40
- "@thi.ng/math": "^5.2.0",
41
- "@thi.ng/pixel": "^3.3.0",
42
- "@thi.ng/vectors": "^7.4.2"
37
+ "@thi.ng/api": "^8.3.5",
38
+ "@thi.ng/checks": "^3.1.5",
39
+ "@thi.ng/color": "^5.0.1",
40
+ "@thi.ng/math": "^5.3.1",
41
+ "@thi.ng/pixel": "^3.4.0",
42
+ "@thi.ng/vectors": "^7.5.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "^7.19.2",
46
- "@thi.ng/testament": "^0.2.3",
45
+ "@microsoft/api-extractor": "^7.19.4",
46
+ "@thi.ng/testament": "^0.2.5",
47
47
  "rimraf": "^3.0.2",
48
48
  "tools": "^0.0.1",
49
- "typedoc": "^0.22.10",
50
- "typescript": "^4.5.3"
49
+ "typedoc": "^0.22.13",
50
+ "typescript": "^4.6.2"
51
51
  },
52
52
  "keywords": [
53
53
  "2d",
@@ -80,46 +80,46 @@
80
80
  ],
81
81
  "exports": {
82
82
  ".": {
83
- "import": "./index.js"
83
+ "default": "./index.js"
84
84
  },
85
85
  "./api": {
86
- "import": "./api.js"
86
+ "default": "./api.js"
87
87
  },
88
88
  "./arc": {
89
- "import": "./arc.js"
89
+ "default": "./arc.js"
90
90
  },
91
91
  "./color": {
92
- "import": "./color.js"
92
+ "default": "./color.js"
93
93
  },
94
94
  "./draw": {
95
- "import": "./draw.js"
95
+ "default": "./draw.js"
96
96
  },
97
97
  "./image": {
98
- "import": "./image.js"
98
+ "default": "./image.js"
99
99
  },
100
100
  "./line": {
101
- "import": "./line.js"
101
+ "default": "./line.js"
102
102
  },
103
103
  "./packed-points": {
104
- "import": "./packed-points.js"
104
+ "default": "./packed-points.js"
105
105
  },
106
106
  "./path": {
107
- "import": "./path.js"
107
+ "default": "./path.js"
108
108
  },
109
109
  "./points": {
110
- "import": "./points.js"
110
+ "default": "./points.js"
111
111
  },
112
112
  "./polygon": {
113
- "import": "./polygon.js"
113
+ "default": "./polygon.js"
114
114
  },
115
115
  "./polyline": {
116
- "import": "./polyline.js"
116
+ "default": "./polyline.js"
117
117
  },
118
118
  "./rect": {
119
- "import": "./rect.js"
119
+ "default": "./rect.js"
120
120
  },
121
121
  "./text": {
122
- "import": "./text.js"
122
+ "default": "./text.js"
123
123
  }
124
124
  },
125
125
  "thi.ng": {
@@ -130,5 +130,5 @@
130
130
  ],
131
131
  "year": 2018
132
132
  },
133
- "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
133
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
134
134
  }