@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 +7 -1
- package/README.md +1 -1
- package/color.js +1 -1
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**:
|
|
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
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.
|
|
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.
|
|
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.
|
|
38
|
-
"@thi.ng/checks": "^3.1.
|
|
39
|
-
"@thi.ng/color": "^
|
|
40
|
-
"@thi.ng/math": "^5.
|
|
41
|
-
"@thi.ng/pixel": "^3.
|
|
42
|
-
"@thi.ng/vectors": "^7.
|
|
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.
|
|
46
|
-
"@thi.ng/testament": "^0.2.
|
|
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.
|
|
50
|
-
"typescript": "^4.
|
|
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
|
-
"
|
|
83
|
+
"default": "./index.js"
|
|
84
84
|
},
|
|
85
85
|
"./api": {
|
|
86
|
-
"
|
|
86
|
+
"default": "./api.js"
|
|
87
87
|
},
|
|
88
88
|
"./arc": {
|
|
89
|
-
"
|
|
89
|
+
"default": "./arc.js"
|
|
90
90
|
},
|
|
91
91
|
"./color": {
|
|
92
|
-
"
|
|
92
|
+
"default": "./color.js"
|
|
93
93
|
},
|
|
94
94
|
"./draw": {
|
|
95
|
-
"
|
|
95
|
+
"default": "./draw.js"
|
|
96
96
|
},
|
|
97
97
|
"./image": {
|
|
98
|
-
"
|
|
98
|
+
"default": "./image.js"
|
|
99
99
|
},
|
|
100
100
|
"./line": {
|
|
101
|
-
"
|
|
101
|
+
"default": "./line.js"
|
|
102
102
|
},
|
|
103
103
|
"./packed-points": {
|
|
104
|
-
"
|
|
104
|
+
"default": "./packed-points.js"
|
|
105
105
|
},
|
|
106
106
|
"./path": {
|
|
107
|
-
"
|
|
107
|
+
"default": "./path.js"
|
|
108
108
|
},
|
|
109
109
|
"./points": {
|
|
110
|
-
"
|
|
110
|
+
"default": "./points.js"
|
|
111
111
|
},
|
|
112
112
|
"./polygon": {
|
|
113
|
-
"
|
|
113
|
+
"default": "./polygon.js"
|
|
114
114
|
},
|
|
115
115
|
"./polyline": {
|
|
116
|
-
"
|
|
116
|
+
"default": "./polyline.js"
|
|
117
117
|
},
|
|
118
118
|
"./rect": {
|
|
119
|
-
"
|
|
119
|
+
"default": "./rect.js"
|
|
120
120
|
},
|
|
121
121
|
"./text": {
|
|
122
|
-
"
|
|
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": "
|
|
133
|
+
"gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
|
|
134
134
|
}
|