@thi.ng/geom-sdf 1.0.8 → 1.0.10
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/as-sdf.d.ts +3 -4
- package/dist.d.ts +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
package/as-sdf.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import type { MultiFn1 } from "@thi.ng/defmulti";
|
|
|
2
2
|
import type { IShape } from "@thi.ng/geom";
|
|
3
3
|
import type { SDFn } from "./api.js";
|
|
4
4
|
/**
|
|
5
|
-
* Takes an
|
|
6
|
-
* [`IShape`](https://docs.thi.ng/umbrella/geom/interfaces/IShape.html)
|
|
5
|
+
* Takes an [`IShape`](https://docs.thi.ng/umbrella/geom/interfaces/IShape.html)
|
|
7
6
|
* instance (possibly a tree, e.g. via
|
|
8
|
-
* [`group
|
|
7
|
+
* [`group`](https://docs.thi.ng/umbrella/geom/functions/group.html)) and
|
|
9
8
|
* converts it into a {@link SDFn}.
|
|
10
9
|
*
|
|
11
10
|
* @remarks
|
|
@@ -29,7 +28,7 @@ import type { SDFn } from "./api.js";
|
|
|
29
28
|
* number of vertices. If not specified
|
|
30
29
|
* [`DEFAULT_SAMPLES`](https://docs.thi.ng/umbrella/geom-resample/variables/DEFAULT_SAMPLES.html)
|
|
31
30
|
* will be used (which can be globally set via
|
|
32
|
-
* [`setDefaultSamples
|
|
31
|
+
* [`setDefaultSamples`](https://docs.thi.ng/umbrella/geom-resample/functions/setDefaultSamples.html)).
|
|
33
32
|
*/
|
|
34
33
|
export declare const asSDF: MultiFn1<IShape, SDFn>;
|
|
35
34
|
//# sourceMappingURL=as-sdf.d.ts.map
|
package/dist.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const distPolyline2: (p: ReadonlyVec, pts: ReadonlyVec[]) => numb
|
|
|
62
62
|
* https://iquilezles.org/articles/distfunctions2d/
|
|
63
63
|
*
|
|
64
64
|
* @param p
|
|
65
|
-
* @param apert - pre-computed vec2 of [sin,
|
|
65
|
+
* @param apert - pre-computed vec2 of `[sin,cos]` of aperture angle
|
|
66
66
|
* @param ra - inner radius
|
|
67
67
|
* @param rb - outer radius offset (thickness)
|
|
68
68
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-sdf",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
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",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.11.
|
|
43
|
-
"@thi.ng/checks": "^3.6.
|
|
44
|
-
"@thi.ng/defmulti": "^3.0.
|
|
45
|
-
"@thi.ng/errors": "^2.5.
|
|
46
|
-
"@thi.ng/geom": "^8.1.
|
|
47
|
-
"@thi.ng/geom-isoline": "^2.1.
|
|
48
|
-
"@thi.ng/geom-poly-utils": "^3.0.
|
|
49
|
-
"@thi.ng/geom-resample": "^3.0.
|
|
50
|
-
"@thi.ng/math": "^5.11.
|
|
51
|
-
"@thi.ng/transducers": "^9.2.
|
|
52
|
-
"@thi.ng/vectors": "^7.12.
|
|
42
|
+
"@thi.ng/api": "^8.11.20",
|
|
43
|
+
"@thi.ng/checks": "^3.6.23",
|
|
44
|
+
"@thi.ng/defmulti": "^3.0.60",
|
|
45
|
+
"@thi.ng/errors": "^2.5.26",
|
|
46
|
+
"@thi.ng/geom": "^8.1.30",
|
|
47
|
+
"@thi.ng/geom-isoline": "^2.1.160",
|
|
48
|
+
"@thi.ng/geom-poly-utils": "^3.0.32",
|
|
49
|
+
"@thi.ng/geom-resample": "^3.0.32",
|
|
50
|
+
"@thi.ng/math": "^5.11.20",
|
|
51
|
+
"@thi.ng/transducers": "^9.2.18",
|
|
52
|
+
"@thi.ng/vectors": "^7.12.20"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"esbuild": "^0.
|
|
56
|
-
"typedoc": "^0.27.
|
|
55
|
+
"esbuild": "^0.25.0",
|
|
56
|
+
"typedoc": "^0.27.7",
|
|
57
57
|
"typescript": "^5.7.3"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"status": "alpha",
|
|
130
130
|
"year": 2022
|
|
131
131
|
},
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "9a0b33253fef092aaf301decf6ecd54317874d4c\n"
|
|
133
133
|
}
|