@thi.ng/hiccup-canvas 3.1.77 → 3.1.81
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/package.json +139 -139
- package/CHANGELOG.md +0 -133
package/package.json
CHANGED
|
@@ -1,140 +1,140 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
2
|
+
"name": "@thi.ng/hiccup-canvas",
|
|
3
|
+
"version": "3.1.81",
|
|
4
|
+
"description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts",
|
|
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://thi.ng/hiccup-canvas",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.6",
|
|
43
|
+
"@thi.ng/checks": "^3.7.22",
|
|
44
|
+
"@thi.ng/color": "^5.7.66",
|
|
45
|
+
"@thi.ng/geom-arc": "^2.1.199",
|
|
46
|
+
"@thi.ng/math": "^5.13.3",
|
|
47
|
+
"@thi.ng/pixel": "^7.5.14",
|
|
48
|
+
"@thi.ng/vectors": "^8.6.10"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"esbuild": "^0.25.11",
|
|
52
|
+
"typedoc": "^0.28.14",
|
|
53
|
+
"typescript": "^5.9.3"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"2d",
|
|
57
|
+
"arc",
|
|
58
|
+
"array",
|
|
59
|
+
"bezier",
|
|
60
|
+
"blend",
|
|
61
|
+
"canvas",
|
|
62
|
+
"circle",
|
|
63
|
+
"conversion",
|
|
64
|
+
"declarative",
|
|
65
|
+
"drawing",
|
|
66
|
+
"gradient",
|
|
67
|
+
"graphics",
|
|
68
|
+
"group",
|
|
69
|
+
"hiccup",
|
|
70
|
+
"particles",
|
|
71
|
+
"scenegraph",
|
|
72
|
+
"svg",
|
|
73
|
+
"tree",
|
|
74
|
+
"typescript"
|
|
75
|
+
],
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18"
|
|
81
|
+
},
|
|
82
|
+
"files": [
|
|
83
|
+
"./*.js",
|
|
84
|
+
"./*.d.ts",
|
|
85
|
+
"internal"
|
|
86
|
+
],
|
|
87
|
+
"exports": {
|
|
88
|
+
".": {
|
|
89
|
+
"default": "./index.js"
|
|
90
|
+
},
|
|
91
|
+
"./api": {
|
|
92
|
+
"default": "./api.js"
|
|
93
|
+
},
|
|
94
|
+
"./arc": {
|
|
95
|
+
"default": "./arc.js"
|
|
96
|
+
},
|
|
97
|
+
"./color": {
|
|
98
|
+
"default": "./color.js"
|
|
99
|
+
},
|
|
100
|
+
"./draw": {
|
|
101
|
+
"default": "./draw.js"
|
|
102
|
+
},
|
|
103
|
+
"./image": {
|
|
104
|
+
"default": "./image.js"
|
|
105
|
+
},
|
|
106
|
+
"./line": {
|
|
107
|
+
"default": "./line.js"
|
|
108
|
+
},
|
|
109
|
+
"./packed-points": {
|
|
110
|
+
"default": "./packed-points.js"
|
|
111
|
+
},
|
|
112
|
+
"./path": {
|
|
113
|
+
"default": "./path.js"
|
|
114
|
+
},
|
|
115
|
+
"./points": {
|
|
116
|
+
"default": "./points.js"
|
|
117
|
+
},
|
|
118
|
+
"./polygon": {
|
|
119
|
+
"default": "./polygon.js"
|
|
120
|
+
},
|
|
121
|
+
"./polyline": {
|
|
122
|
+
"default": "./polyline.js"
|
|
123
|
+
},
|
|
124
|
+
"./rect": {
|
|
125
|
+
"default": "./rect.js"
|
|
126
|
+
},
|
|
127
|
+
"./text": {
|
|
128
|
+
"default": "./text.js"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"thi.ng": {
|
|
132
|
+
"parent": "@thi.ng/hiccup",
|
|
133
|
+
"related": [
|
|
134
|
+
"hdom-canvas",
|
|
135
|
+
"hiccup"
|
|
136
|
+
],
|
|
137
|
+
"year": 2018
|
|
138
|
+
},
|
|
139
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
140
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [3.1.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@3.1.31) (2025-01-14)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
|
|
19
|
-
|
|
20
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@3.1.0) (2024-06-21)
|
|
21
|
-
|
|
22
|
-
#### 🚀 Features
|
|
23
|
-
|
|
24
|
-
- add fillRule attrib support ([9acb563](https://github.com/thi-ng/umbrella/commit/9acb563))
|
|
25
|
-
|
|
26
|
-
#### ♻️ Refactoring
|
|
27
|
-
|
|
28
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
29
|
-
|
|
30
|
-
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@3.0.1) (2024-05-09)
|
|
31
|
-
|
|
32
|
-
#### ♻️ Refactoring
|
|
33
|
-
|
|
34
|
-
- minor update `draw()` arc handling ([e82077e](https://github.com/thi-ng/umbrella/commit/e82077e))
|
|
35
|
-
|
|
36
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@3.0.0) (2024-05-08)
|
|
37
|
-
|
|
38
|
-
#### 🛑 Breaking changes
|
|
39
|
-
|
|
40
|
-
- fix [#69](https://github.com/thi-ng/umbrella/issues/69) add elliptic arc path segment support, rename circular arc segments ([7f82cb2](https://github.com/thi-ng/umbrella/commit/7f82cb2))
|
|
41
|
-
- BREAKING CHANGE: add elliptic arc path segment support, rename circular arc segments
|
|
42
|
-
- update `path()` arc segment handling
|
|
43
|
-
- use standard `A` and `a` path segment types for SVG-compatible elliptic arc segments
|
|
44
|
-
- use `R` and `r` for canvas-only circular arc segments
|
|
45
|
-
- update deps
|
|
46
|
-
|
|
47
|
-
#### ⏱ Performance improvements
|
|
48
|
-
|
|
49
|
-
- update rect(), use native rounded rect drawing ([5540510](https://github.com/thi-ng/umbrella/commit/5540510))
|
|
50
|
-
|
|
51
|
-
### [2.5.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.36) (2024-04-20)
|
|
52
|
-
|
|
53
|
-
#### ♻️ Refactoring
|
|
54
|
-
|
|
55
|
-
- update type usage ([33ffebf](https://github.com/thi-ng/umbrella/commit/33ffebf))
|
|
56
|
-
|
|
57
|
-
### [2.5.17](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.17) (2024-02-22)
|
|
58
|
-
|
|
59
|
-
#### ♻️ Refactoring
|
|
60
|
-
|
|
61
|
-
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
62
|
-
|
|
63
|
-
### [2.5.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.14) (2024-02-19)
|
|
64
|
-
|
|
65
|
-
#### 🩹 Bug fixes
|
|
66
|
-
|
|
67
|
-
- fix [#448](https://github.com/thi-ng/umbrella/issues/448), pass vertex layout opts to packedPolyline()/packedPolygon() ([eb2bdc0](https://github.com/thi-ng/umbrella/commit/eb2bdc0))
|
|
68
|
-
- update args for packedPolyline()/packedPolygon()
|
|
69
|
-
- update draw() delegation call sites
|
|
70
|
-
|
|
71
|
-
### [2.5.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.2) (2023-12-19)
|
|
72
|
-
|
|
73
|
-
#### 🩹 Bug fixes
|
|
74
|
-
|
|
75
|
-
- fix rounded rect attrib handling ([ee79d01](https://github.com/thi-ng/umbrella/commit/ee79d01))
|
|
76
|
-
|
|
77
|
-
## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.5.0) (2023-12-18)
|
|
78
|
-
|
|
79
|
-
#### 🚀 Features
|
|
80
|
-
|
|
81
|
-
- fix [#433](https://github.com/thi-ng/umbrella/issues/433), support rounded rects via `r` attrib ([573245e](https://github.com/thi-ng/umbrella/commit/573245e))
|
|
82
|
-
- update draw() to update rect handling
|
|
83
|
-
|
|
84
|
-
### [2.4.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.4.6) (2023-11-09)
|
|
85
|
-
|
|
86
|
-
#### ♻️ Refactoring
|
|
87
|
-
|
|
88
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
89
|
-
|
|
90
|
-
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.4.0) (2023-10-23)
|
|
91
|
-
|
|
92
|
-
#### 🚀 Features
|
|
93
|
-
|
|
94
|
-
- add/update packed shape support ([14ce2f8](https://github.com/thi-ng/umbrella/commit/14ce2f8))
|
|
95
|
-
- add packedPolyline() / packedPolygon() fns
|
|
96
|
-
- update draw() to add support for new shape types
|
|
97
|
-
|
|
98
|
-
### [2.3.24](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.3.24) (2023-10-11)
|
|
99
|
-
|
|
100
|
-
#### 🩹 Bug fixes
|
|
101
|
-
|
|
102
|
-
- fix "ellipse" shape handling (off-by-one error) ([d1985c4](https://github.com/thi-ng/umbrella/commit/d1985c4))
|
|
103
|
-
- update draw() to include last (CCW flag) shape arg
|
|
104
|
-
- also related to [#418](https://github.com/thi-ng/umbrella/issues/418)
|
|
105
|
-
- update circular arc handling in draw() ([18173c5](https://github.com/thi-ng/umbrella/commit/18173c5))
|
|
106
|
-
- actually use CCW shape arg
|
|
107
|
-
- add issue references for upcoming fixes
|
|
108
|
-
|
|
109
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.3.0) (2023-04-08)
|
|
110
|
-
|
|
111
|
-
#### 🚀 Features
|
|
112
|
-
|
|
113
|
-
- add support for __clear ctrl attrib ([2f3de82](https://github.com/thi-ng/umbrella/commit/2f3de82))
|
|
114
|
-
|
|
115
|
-
### [2.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.2.1) (2023-02-05)
|
|
116
|
-
|
|
117
|
-
#### 🩹 Bug fixes
|
|
118
|
-
|
|
119
|
-
- add null check for __skip attrib ([416b7bb](https://github.com/thi-ng/umbrella/commit/416b7bb))
|
|
120
|
-
|
|
121
|
-
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.2.0) (2023-01-10)
|
|
122
|
-
|
|
123
|
-
#### 🚀 Features
|
|
124
|
-
|
|
125
|
-
- add __background attrib support ([a33a58d](https://github.com/thi-ng/umbrella/commit/a33a58d))
|
|
126
|
-
- update __mergeState() to fill bg if attrib given
|
|
127
|
-
- refactor attrib handling in main draw() fn
|
|
128
|
-
|
|
129
|
-
### [2.1.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-canvas@2.1.9) (2022-04-07)
|
|
130
|
-
|
|
131
|
-
#### ♻️ Refactoring
|
|
132
|
-
|
|
133
|
-
- replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
|