@thi.ng/geom-sdf 1.0.67 → 1.0.69
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/README.md +1 -1
- package/as-sdf.js +2 -2
- package/package.json +15 -14
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 214 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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT, defmulti } from "@thi.ng/defmulti/defmulti";
|
|
2
2
|
import { assert } from "@thi.ng/errors/assert";
|
|
3
|
-
import {
|
|
3
|
+
import { unsupportedOp } from "@thi.ng/errors/unsupported";
|
|
4
4
|
import { Path } from "@thi.ng/geom/api/path";
|
|
5
5
|
import { Polygon } from "@thi.ng/geom/api/polygon";
|
|
6
6
|
import { asPolygon } from "@thi.ng/geom/as-polygon";
|
|
@@ -46,7 +46,7 @@ const asSDF = defmulti(
|
|
|
46
46
|
tri: "poly"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
[DEFAULT]: ($) =>
|
|
49
|
+
[DEFAULT]: ($) => unsupportedOp(`shape type: ${$.type}`),
|
|
50
50
|
circle: ($) => circle2($.pos, $.r, __sdfAttribs($.attribs)),
|
|
51
51
|
complexpoly: ($) => diff(
|
|
52
52
|
[$.boundary, ...$.children].map(
|
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.69",
|
|
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",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/thi-ng/umbrella.git"
|
|
11
|
+
"url": "git+https://github.com/thi-ng/umbrella.git",
|
|
12
|
+
"directory": "packages/geom-sdf"
|
|
12
13
|
},
|
|
13
14
|
"homepage": "https://thi.ng/geom-sdf",
|
|
14
15
|
"funding": [
|
|
@@ -39,17 +40,17 @@
|
|
|
39
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
-
"@thi.ng/checks": "^3.8.
|
|
44
|
-
"@thi.ng/defmulti": "^3.0.
|
|
45
|
-
"@thi.ng/errors": "^2.6.
|
|
46
|
-
"@thi.ng/geom": "^8.3.
|
|
47
|
-
"@thi.ng/geom-isoline": "^2.1.
|
|
48
|
-
"@thi.ng/geom-poly-utils": "^3.1.
|
|
49
|
-
"@thi.ng/geom-resample": "^3.0.
|
|
50
|
-
"@thi.ng/math": "^5.15.
|
|
51
|
-
"@thi.ng/transducers": "^9.6.
|
|
52
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.14",
|
|
44
|
+
"@thi.ng/checks": "^3.8.4",
|
|
45
|
+
"@thi.ng/defmulti": "^3.0.90",
|
|
46
|
+
"@thi.ng/errors": "^2.6.3",
|
|
47
|
+
"@thi.ng/geom": "^8.3.15",
|
|
48
|
+
"@thi.ng/geom-isoline": "^2.1.210",
|
|
49
|
+
"@thi.ng/geom-poly-utils": "^3.1.13",
|
|
50
|
+
"@thi.ng/geom-resample": "^3.0.76",
|
|
51
|
+
"@thi.ng/math": "^5.15.3",
|
|
52
|
+
"@thi.ng/transducers": "^9.6.23",
|
|
53
|
+
"@thi.ng/vectors": "^8.6.20"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"esbuild": "^0.27.2",
|
|
@@ -130,5 +131,5 @@
|
|
|
130
131
|
"tag": "sdf",
|
|
131
132
|
"year": 2022
|
|
132
133
|
},
|
|
133
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "952667d049058f7b344fb63a2abcff2a0ac147b5\n"
|
|
134
135
|
}
|