@thi.ng/hiccup-svg 5.5.9 → 5.5.14
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 +145 -145
- package/CHANGELOG.md +0 -116
package/package.json
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
2
|
+
"name": "@thi.ng/hiccup-svg",
|
|
3
|
+
"version": "5.5.14",
|
|
4
|
+
"description": "SVG element functions for @thi.ng/hiccup & related tooling",
|
|
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-svg",
|
|
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/prefixes": "^2.3.57"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"esbuild": "^0.25.11",
|
|
49
|
+
"typedoc": "^0.28.14",
|
|
50
|
+
"typescript": "^5.9.3"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"arc",
|
|
54
|
+
"bezier",
|
|
55
|
+
"circle",
|
|
56
|
+
"color",
|
|
57
|
+
"conversion",
|
|
58
|
+
"export",
|
|
59
|
+
"fileformat",
|
|
60
|
+
"gradient",
|
|
61
|
+
"hdom",
|
|
62
|
+
"hiccup",
|
|
63
|
+
"shape",
|
|
64
|
+
"svg",
|
|
65
|
+
"tree",
|
|
66
|
+
"typescript",
|
|
67
|
+
"ui",
|
|
68
|
+
"visualization",
|
|
69
|
+
"xml"
|
|
70
|
+
],
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"access": "public"
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=18"
|
|
76
|
+
},
|
|
77
|
+
"files": [
|
|
78
|
+
"./*.js",
|
|
79
|
+
"./*.d.ts"
|
|
80
|
+
],
|
|
81
|
+
"exports": {
|
|
82
|
+
".": {
|
|
83
|
+
"default": "./index.js"
|
|
84
|
+
},
|
|
85
|
+
"./api": {
|
|
86
|
+
"default": "./api.js"
|
|
87
|
+
},
|
|
88
|
+
"./circle": {
|
|
89
|
+
"default": "./circle.js"
|
|
90
|
+
},
|
|
91
|
+
"./convert": {
|
|
92
|
+
"default": "./convert.js"
|
|
93
|
+
},
|
|
94
|
+
"./defs": {
|
|
95
|
+
"default": "./defs.js"
|
|
96
|
+
},
|
|
97
|
+
"./ellipse": {
|
|
98
|
+
"default": "./ellipse.js"
|
|
99
|
+
},
|
|
100
|
+
"./format": {
|
|
101
|
+
"default": "./format.js"
|
|
102
|
+
},
|
|
103
|
+
"./gradients": {
|
|
104
|
+
"default": "./gradients.js"
|
|
105
|
+
},
|
|
106
|
+
"./group": {
|
|
107
|
+
"default": "./group.js"
|
|
108
|
+
},
|
|
109
|
+
"./image": {
|
|
110
|
+
"default": "./image.js"
|
|
111
|
+
},
|
|
112
|
+
"./line": {
|
|
113
|
+
"default": "./line.js"
|
|
114
|
+
},
|
|
115
|
+
"./path": {
|
|
116
|
+
"default": "./path.js"
|
|
117
|
+
},
|
|
118
|
+
"./pattern": {
|
|
119
|
+
"default": "./pattern.js"
|
|
120
|
+
},
|
|
121
|
+
"./points": {
|
|
122
|
+
"default": "./points.js"
|
|
123
|
+
},
|
|
124
|
+
"./polygon": {
|
|
125
|
+
"default": "./polygon.js"
|
|
126
|
+
},
|
|
127
|
+
"./polyline": {
|
|
128
|
+
"default": "./polyline.js"
|
|
129
|
+
},
|
|
130
|
+
"./rect": {
|
|
131
|
+
"default": "./rect.js"
|
|
132
|
+
},
|
|
133
|
+
"./svg": {
|
|
134
|
+
"default": "./svg.js"
|
|
135
|
+
},
|
|
136
|
+
"./text": {
|
|
137
|
+
"default": "./text.js"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"thi.ng": {
|
|
141
|
+
"alias": "svg",
|
|
142
|
+
"parent": "@thi.ng/hiccup",
|
|
143
|
+
"year": 2016
|
|
144
|
+
},
|
|
145
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
146
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,116 +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
|
-
## [5.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.5.0) (2025-07-26)
|
|
15
|
-
|
|
16
|
-
#### 🚀 Features
|
|
17
|
-
|
|
18
|
-
- add branch-level support for `__convert: false` ([a51d634](https://github.com/thi-ng/umbrella/commit/a51d634))
|
|
19
|
-
- update `convertTree()` to allow branch-local disabling of conversion
|
|
20
|
-
- add tests
|
|
21
|
-
|
|
22
|
-
### [5.4.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.4.13) (2025-01-14)
|
|
23
|
-
|
|
24
|
-
#### ♻️ Refactoring
|
|
25
|
-
|
|
26
|
-
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
|
|
27
|
-
|
|
28
|
-
## [5.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.4.0) (2024-09-16)
|
|
29
|
-
|
|
30
|
-
#### 🚀 Features
|
|
31
|
-
|
|
32
|
-
- add pattern(), add/use Attribs type alias ([4c40840](https://github.com/thi-ng/umbrella/commit/4c40840))
|
|
33
|
-
|
|
34
|
-
## [5.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.3.0) (2024-06-21)
|
|
35
|
-
|
|
36
|
-
#### 🚀 Features
|
|
37
|
-
|
|
38
|
-
- add fillRule attrib conversion support ([9277417](https://github.com/thi-ng/umbrella/commit/9277417))
|
|
39
|
-
|
|
40
|
-
#### ♻️ Refactoring
|
|
41
|
-
|
|
42
|
-
- rename various rest args to be more semantically meaningful ([8088a56](https://github.com/thi-ng/umbrella/commit/8088a56))
|
|
43
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
44
|
-
|
|
45
|
-
### [5.2.34](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.2.34) (2024-04-20)
|
|
46
|
-
|
|
47
|
-
#### ♻️ Refactoring
|
|
48
|
-
|
|
49
|
-
- update type usage ([dc07fdd](https://github.com/thi-ng/umbrella/commit/dc07fdd))
|
|
50
|
-
|
|
51
|
-
### [5.2.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.2.11) (2024-02-16)
|
|
52
|
-
|
|
53
|
-
#### 🩹 Bug fixes
|
|
54
|
-
|
|
55
|
-
- update scale attrib ([7e797d1](https://github.com/thi-ng/umbrella/commit/7e797d1))
|
|
56
|
-
handling (if zero)
|
|
57
|
-
- update path() attrib overrides ([7b25d0d](https://github.com/thi-ng/umbrella/commit/7b25d0d))
|
|
58
|
-
|
|
59
|
-
## [5.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.2.0) (2023-12-26)
|
|
60
|
-
|
|
61
|
-
#### 🚀 Features
|
|
62
|
-
|
|
63
|
-
- include Inkscape xmlns in `<svg>` root ([997850b](https://github.com/thi-ng/umbrella/commit/997850b))
|
|
64
|
-
- add `__inkscapeLayer` group attrib handling ([79a3932](https://github.com/thi-ng/umbrella/commit/79a3932))
|
|
65
|
-
|
|
66
|
-
## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.1.0) (2023-12-18)
|
|
67
|
-
|
|
68
|
-
#### 🚀 Features
|
|
69
|
-
|
|
70
|
-
- update convertTree() rounded rect handling ([6115a50](https://github.com/thi-ng/umbrella/commit/6115a50))
|
|
71
|
-
- use `r` attrib to derive rounded rect radius
|
|
72
|
-
|
|
73
|
-
### [5.0.32](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.0.32) (2023-11-09)
|
|
74
|
-
|
|
75
|
-
#### ♻️ Refactoring
|
|
76
|
-
|
|
77
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
78
|
-
|
|
79
|
-
# [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.0.0) (2023-04-08)
|
|
80
|
-
|
|
81
|
-
#### 🛑 Breaking changes
|
|
82
|
-
|
|
83
|
-
- update svgDoc() conversion handling ([f0e9092](https://github.com/thi-ng/umbrella/commit/f0e9092))
|
|
84
|
-
- BREAKING CHANGE: update svgDoc(), rename `convert` attrib => `__convert`
|
|
85
|
-
- for consistency, keep all control attribs prefixed as `__xxx`
|
|
86
|
-
|
|
87
|
-
#### 🚀 Features
|
|
88
|
-
|
|
89
|
-
- add support for precision attribute ([f81d0d8](https://github.com/thi-ng/umbrella/commit/f81d0d8))
|
|
90
|
-
- update convertTree() to allow dynamic floating point precision
|
|
91
|
-
handling via `__prec` control attrib
|
|
92
|
-
- update docs
|
|
93
|
-
- add tests
|
|
94
|
-
|
|
95
|
-
#### 🩹 Bug fixes
|
|
96
|
-
|
|
97
|
-
- update ff() to always return string ([ae1d844](https://github.com/thi-ng/umbrella/commit/ae1d844))
|
|
98
|
-
|
|
99
|
-
## [4.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.3.0) (2022-06-20)
|
|
100
|
-
|
|
101
|
-
#### 🚀 Features
|
|
102
|
-
|
|
103
|
-
- update default precision to .001 ([4e62c9d](https://github.com/thi-ng/umbrella/commit/4e62c9d))
|
|
104
|
-
|
|
105
|
-
### [4.2.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.13) (2022-06-09)
|
|
106
|
-
|
|
107
|
-
#### 🩹 Bug fixes
|
|
108
|
-
|
|
109
|
-
- fix [#351](https://github.com/thi-ng/umbrella/issues/351) convertTree() ([8dc0e86](https://github.com/thi-ng/umbrella/commit/8dc0e86))
|
|
110
|
-
- update gradientTreansform handling
|
|
111
|
-
|
|
112
|
-
### [4.2.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.9) (2022-04-07)
|
|
113
|
-
|
|
114
|
-
#### ♻️ Refactoring
|
|
115
|
-
|
|
116
|
-
- replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
|