@thi.ng/geom-sdf 0.4.6 → 0.4.7
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 +4 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 198 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -183,6 +183,8 @@ Package sizes (brotli'd, pre-treeshake): ESM: 3.76 KB
|
|
|
183
183
|
- [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers)
|
|
184
184
|
- [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
|
|
185
185
|
|
|
186
|
+
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
187
|
+
|
|
186
188
|
## Usage examples
|
|
187
189
|
|
|
188
190
|
Two projects in this repo's
|
|
@@ -203,7 +205,7 @@ import { asSvg, bounds, circle, group, svgDoc } from "@thi.ng/geom";
|
|
|
203
205
|
import { asPolygons, asSDF, sample2d } from "@thi.ng/geom-sdf";
|
|
204
206
|
import { range, repeatedly } from "@thi.ng/transducers";
|
|
205
207
|
import { randMinMax2 } from "@thi.ng/vectors";
|
|
206
|
-
import { writeFileSync }
|
|
208
|
+
import { writeFileSync } "node:fs";
|
|
207
209
|
|
|
208
210
|
const RES = [256, 256];
|
|
209
211
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-sdf",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "2D Signed Distance Field creation from @thi.ng/geom shapes, conversions, sampling, combinators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.11.
|
|
40
|
-
"@thi.ng/checks": "^3.6.
|
|
41
|
-
"@thi.ng/defmulti": "^3.0.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
43
|
-
"@thi.ng/geom": "^8.0.
|
|
44
|
-
"@thi.ng/geom-isoline": "^2.1.
|
|
45
|
-
"@thi.ng/geom-poly-utils": "^3.0.
|
|
46
|
-
"@thi.ng/geom-resample": "^3.0.
|
|
47
|
-
"@thi.ng/math": "^5.11.
|
|
48
|
-
"@thi.ng/transducers": "^9.0.
|
|
49
|
-
"@thi.ng/vectors": "^7.11.
|
|
39
|
+
"@thi.ng/api": "^8.11.7",
|
|
40
|
+
"@thi.ng/checks": "^3.6.9",
|
|
41
|
+
"@thi.ng/defmulti": "^3.0.45",
|
|
42
|
+
"@thi.ng/errors": "^2.5.13",
|
|
43
|
+
"@thi.ng/geom": "^8.0.5",
|
|
44
|
+
"@thi.ng/geom-isoline": "^2.1.133",
|
|
45
|
+
"@thi.ng/geom-poly-utils": "^3.0.5",
|
|
46
|
+
"@thi.ng/geom-resample": "^3.0.5",
|
|
47
|
+
"@thi.ng/math": "^5.11.5",
|
|
48
|
+
"@thi.ng/transducers": "^9.0.11",
|
|
49
|
+
"@thi.ng/vectors": "^7.11.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"status": "alpha",
|
|
128
128
|
"year": 2022
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
|
|
131
131
|
}
|