@thi.ng/geom-fuzz 2.1.40 → 2.1.42
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 +3 -3
- package/package.json +18 -18
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/geom-fuzz)
|
|
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.
|
|
@@ -21,7 +21,7 @@ This project is part of the
|
|
|
21
21
|
|
|
22
22
|
## About
|
|
23
23
|
|
|
24
|
-
Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support
|
|
24
|
+
Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support
|
|
25
25
|
|
|
26
26
|

|
|
27
27
|
|
|
@@ -34,7 +34,7 @@ Highly configurable, fuzzy line & polygon creation with presets and composable f
|
|
|
34
34
|
## Related packages
|
|
35
35
|
|
|
36
36
|
- [@thi.ng/hiccup-canvas](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-canvas) - Hiccup shape tree renderer for vanilla Canvas 2D contexts
|
|
37
|
-
- [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-svg) - SVG element functions for [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) &
|
|
37
|
+
- [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-svg) - SVG element functions for [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) & related tooling
|
|
38
38
|
|
|
39
39
|
## Installation
|
|
40
40
|
|
|
@@ -52,11 +52,8 @@ ES module import:
|
|
|
52
52
|
|
|
53
53
|
For Node.js REPL:
|
|
54
54
|
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
node --experimental-repl-await
|
|
58
|
-
|
|
59
|
-
> const geomFuzz = await import("@thi.ng/geom-fuzz");
|
|
55
|
+
```js
|
|
56
|
+
const geomFuzz = await import("@thi.ng/geom-fuzz");
|
|
60
57
|
```
|
|
61
58
|
|
|
62
59
|
Package sizes (brotli'd, pre-treeshake): ESM: 1.13 KB
|
|
@@ -94,7 +91,7 @@ TODO
|
|
|
94
91
|
|
|
95
92
|
## Authors
|
|
96
93
|
|
|
97
|
-
Karsten Schmidt
|
|
94
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
98
95
|
|
|
99
96
|
If this project contributes to an academic publication, please cite it as:
|
|
100
97
|
|
|
@@ -109,4 +106,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
109
106
|
|
|
110
107
|
## License
|
|
111
108
|
|
|
112
|
-
© 2020 - 2022 Karsten Schmidt // Apache
|
|
109
|
+
© 2020 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import type { Fn } from "@thi.ng/api";
|
|
|
2
2
|
import type { IColor } from "@thi.ng/color";
|
|
3
3
|
import type { Polygon } from "@thi.ng/geom";
|
|
4
4
|
import type { IHiccupShape } from "@thi.ng/geom-api";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export type Color = string | number[] | IColor;
|
|
6
|
+
export type FillFn = Fn<Polygon, IHiccupShape>;
|
|
7
|
+
export type HatchDir = "d" | "h" | "v";
|
|
8
8
|
export interface FuzzyPolygonOpts {
|
|
9
9
|
num: number;
|
|
10
10
|
jitter: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-fuzz",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.42",
|
|
4
4
|
"description": "Highly configurable, fuzzy line & polygon creation with presets and composable fill & stroke styles. Canvas & SVG support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/geom-fuzz#readme",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -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,24 +34,24 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/associative": "^6.2.
|
|
39
|
-
"@thi.ng/color": "^5.2.
|
|
40
|
-
"@thi.ng/geom": "^
|
|
41
|
-
"@thi.ng/geom-api": "^3.3.
|
|
42
|
-
"@thi.ng/geom-clip-line": "^2.1
|
|
43
|
-
"@thi.ng/geom-resample": "^2.1.
|
|
44
|
-
"@thi.ng/grid-iterators": "^2.3.
|
|
45
|
-
"@thi.ng/transducers": "^8.3.
|
|
46
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/associative": "^6.2.19",
|
|
39
|
+
"@thi.ng/color": "^5.2.13",
|
|
40
|
+
"@thi.ng/geom": "^4.0.1",
|
|
41
|
+
"@thi.ng/geom-api": "^3.3.21",
|
|
42
|
+
"@thi.ng/geom-clip-line": "^2.2.1",
|
|
43
|
+
"@thi.ng/geom-resample": "^2.1.39",
|
|
44
|
+
"@thi.ng/grid-iterators": "^2.3.25",
|
|
45
|
+
"@thi.ng/transducers": "^8.3.26",
|
|
46
|
+
"@thi.ng/vectors": "^7.5.27"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@microsoft/api-extractor": "^7.33.
|
|
50
|
-
"@thi.ng/testament": "^0.3.
|
|
49
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
50
|
+
"@thi.ng/testament": "^0.3.7",
|
|
51
51
|
"rimraf": "^3.0.2",
|
|
52
52
|
"tools": "^0.0.1",
|
|
53
|
-
"typedoc": "^0.23.
|
|
54
|
-
"typescript": "^4.
|
|
53
|
+
"typedoc": "^0.23.22",
|
|
54
|
+
"typescript": "^4.9.4"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"2d",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
],
|
|
121
121
|
"year": 2020
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
124
124
|
}
|