@thi.ng/geom-sdf 1.0.9 → 1.0.11
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 +1 -1
- package/as-sdf.d.ts +3 -4
- package/dist.d.ts +1 -1
- package/package.json +16 -15
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 202 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
|
>
|
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.11",
|
|
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.21",
|
|
43
|
+
"@thi.ng/checks": "^3.6.24",
|
|
44
|
+
"@thi.ng/defmulti": "^3.0.61",
|
|
45
|
+
"@thi.ng/errors": "^2.5.27",
|
|
46
|
+
"@thi.ng/geom": "^8.1.31",
|
|
47
|
+
"@thi.ng/geom-isoline": "^2.1.161",
|
|
48
|
+
"@thi.ng/geom-poly-utils": "^3.0.33",
|
|
49
|
+
"@thi.ng/geom-resample": "^3.0.33",
|
|
50
|
+
"@thi.ng/math": "^5.11.21",
|
|
51
|
+
"@thi.ng/transducers": "^9.2.19",
|
|
52
|
+
"@thi.ng/vectors": "^7.12.21"
|
|
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": [
|
|
@@ -127,7 +127,8 @@
|
|
|
127
127
|
"shader-ast-stdlib"
|
|
128
128
|
],
|
|
129
129
|
"status": "alpha",
|
|
130
|
+
"tag": "sdf",
|
|
130
131
|
"year": 2022
|
|
131
132
|
},
|
|
132
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "bee617702ac61d093465b967f8f973dc566faa6b\n"
|
|
133
134
|
}
|