@thi.ng/hiccup-svg 4.3.23 → 4.3.24
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 +1 -1
- package/README.md +8 -11
- package/api.d.ts +13 -13
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/hiccup-svg)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -25,7 +25,7 @@ This project is part of the
|
|
|
25
25
|
|
|
26
26
|
## About
|
|
27
27
|
|
|
28
|
-
SVG element functions for
|
|
28
|
+
SVG element functions for @thi.ng/hiccup & related tooling
|
|
29
29
|
|
|
30
30
|
### Important
|
|
31
31
|
|
|
@@ -155,11 +155,8 @@ ES module import:
|
|
|
155
155
|
|
|
156
156
|
For Node.js REPL:
|
|
157
157
|
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
node --experimental-repl-await
|
|
161
|
-
|
|
162
|
-
> const hiccupSvg = await import("@thi.ng/hiccup-svg");
|
|
158
|
+
```js
|
|
159
|
+
const hiccupSvg = await import("@thi.ng/hiccup-svg");
|
|
163
160
|
```
|
|
164
161
|
|
|
165
162
|
Package sizes (brotli'd, pre-treeshake): ESM: 2.31 KB
|
|
@@ -244,7 +241,7 @@ Result:
|
|
|
244
241
|
|
|
245
242
|
```xml
|
|
246
243
|
<svg version="1.1"
|
|
247
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
244
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
248
245
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300">
|
|
249
246
|
<defs>
|
|
250
247
|
<radialGradient id="bg" fx="150.00" fy="280.00" cx="150.00" cy="300.00" fr="300.00" r="100.00" gradientUnits="userSpaceOnUse">
|
|
@@ -265,7 +262,7 @@ Result:
|
|
|
265
262
|
|
|
266
263
|
## Authors
|
|
267
264
|
|
|
268
|
-
Karsten Schmidt
|
|
265
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
269
266
|
|
|
270
267
|
If this project contributes to an academic publication, please cite it as:
|
|
271
268
|
|
|
@@ -280,4 +277,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
280
277
|
|
|
281
278
|
## License
|
|
282
279
|
|
|
283
|
-
© 2016 - 2022 Karsten Schmidt // Apache
|
|
280
|
+
© 2016 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
1
|
+
export type Vec2Like = ArrayLike<number>;
|
|
2
|
+
export type PathSegmentMove = ["M" | "m", Vec2Like];
|
|
3
|
+
export type PathSegmentLine = ["L" | "l", Vec2Like];
|
|
4
|
+
export type PathSegmentHLine = ["H" | "h", number];
|
|
5
|
+
export type PathSegmentVLine = ["V" | "v", number];
|
|
6
|
+
export type PathSegmentCubic = ["C" | "c", Vec2Like, Vec2Like, Vec2Like];
|
|
7
|
+
export type PathSegmentQuadratic = ["Q" | "q", Vec2Like, Vec2Like];
|
|
8
|
+
export type PathSegmentCubicChain = ["S" | "s", Vec2Like, Vec2Like];
|
|
9
|
+
export type PathSegmentQuadraticChain = ["T" | "t", Vec2Like];
|
|
10
|
+
export type PathSegmentArc = [
|
|
11
11
|
"A" | "a",
|
|
12
12
|
number,
|
|
13
13
|
number,
|
|
@@ -16,7 +16,7 @@ export declare type PathSegmentArc = [
|
|
|
16
16
|
boolean,
|
|
17
17
|
Vec2Like
|
|
18
18
|
];
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type PathSegmentClose = ["Z" | "z"];
|
|
20
|
+
export type PathSegment = PathSegmentMove | PathSegmentLine | PathSegmentHLine | PathSegmentVLine | PathSegmentCubic | PathSegmentQuadratic | PathSegmentCubicChain | PathSegmentQuadraticChain | PathSegmentArc | PathSegmentClose;
|
|
21
|
+
export type GradientStop = [string | number, string];
|
|
22
22
|
//# sourceMappingURL=api.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-svg",
|
|
3
|
-
"version": "4.3.
|
|
4
|
-
"description": "SVG element functions for @thi.ng/hiccup &
|
|
3
|
+
"version": "4.3.24",
|
|
4
|
+
"description": "SVG element functions for @thi.ng/hiccup & related tooling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
7
7
|
"typings": "./index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/checks": "^3.3.
|
|
38
|
-
"@thi.ng/color": "^5.2.
|
|
39
|
-
"@thi.ng/prefixes": "^2.1.
|
|
37
|
+
"@thi.ng/checks": "^3.3.5",
|
|
38
|
+
"@thi.ng/color": "^5.2.13",
|
|
39
|
+
"@thi.ng/prefixes": "^2.1.15"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.33.
|
|
43
|
-
"@thi.ng/testament": "^0.3.
|
|
42
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
43
|
+
"@thi.ng/testament": "^0.3.7",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.23.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"typedoc": "^0.23.22",
|
|
47
|
+
"typescript": "^4.9.4"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"arc",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"parent": "@thi.ng/hiccup",
|
|
136
136
|
"year": 2016
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
139
139
|
}
|