@thi.ng/geom 8.0.1 → 8.0.3
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 +18 -20
- package/package.json +32 -32
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 188 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
|
>
|
|
@@ -333,14 +333,12 @@ but the package provides presets for common options/implementations:
|
|
|
333
333
|
|
|
334
334
|
To be used with [`subdivideCurve()`](https://docs.thi.ng/umbrella/geom/functions/subdivCurve.html):
|
|
335
335
|
|
|
336
|
-
- [
|
|
337
|
-
- [
|
|
338
|
-
- [
|
|
339
|
-
- [
|
|
340
|
-
- [
|
|
341
|
-
- [
|
|
342
|
-
- [SUBDIV_THIRDS_CLOSED](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_THIRDS_CLOSED.html)
|
|
343
|
-
- [SUBDIV_THIRDS_OPEN](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_THIRDS_OPEN.html)
|
|
336
|
+
- [SUBDIV_CHAIKIN](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_CHAIKIN.html)
|
|
337
|
+
- [SUBDIV_CUBIC](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_CUBIC.html)
|
|
338
|
+
- [SUBDIV_DISPLACE](https://docs.thi.ng/umbrella/geom/functions/SUBDIV_DISPLACE.html)
|
|
339
|
+
- [SUBDIV_DLG](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_DLG.html)
|
|
340
|
+
- [SUBDIV_MID](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_MID.html)
|
|
341
|
+
- [SUBDIV_THIRDS](https://docs.thi.ng/umbrella/geom/variables/SUBDIV_THIRDS.html)
|
|
344
342
|
|
|
345
343
|
#### Polygon tessellation algorithms
|
|
346
344
|
|
|
@@ -350,21 +348,21 @@ See [thi.ng/geom-tessellate
|
|
|
350
348
|
readme](https://github.com/thi-ng/umbrella/blob/develop/packages/geom-tessellate/README.md#tessellators)
|
|
351
349
|
for diagrams/illustrations of each algorithm!
|
|
352
350
|
|
|
353
|
-
- [TESSELLATE_EARCUT](https://docs.thi.ng/umbrella/geom/
|
|
354
|
-
- [TESSELLATE_EARCUT_COMPLEX](https://docs.thi.ng/umbrella/geom/
|
|
355
|
-
- [TESSELLATE_EDGE_SPLIT](https://docs.thi.ng/umbrella/geom/
|
|
356
|
-
- [TESSELLATE_INSET](https://docs.thi.ng/umbrella/geom/
|
|
357
|
-
- [TESSELLATE_QUAD_FAN](https://docs.thi.ng/umbrella/geom/
|
|
358
|
-
- [TESSELLATE_RIM_TRIS](https://docs.thi.ng/umbrella/geom/
|
|
359
|
-
- [TESSELLATE_TRI_FAN](https://docs.thi.ng/umbrella/geom/
|
|
360
|
-
- [TESSELLATE_TRI_FAN_BOUNDARY](https://docs.thi.ng/umbrella/geom/
|
|
361
|
-
- [TESSELLATE_TRI_FAN_SPLIT](https://docs.thi.ng/umbrella/geom/
|
|
351
|
+
- [TESSELLATE_EARCUT](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_EARCUT.html)
|
|
352
|
+
- [TESSELLATE_EARCUT_COMPLEX](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_EARCUT_COMPLEX.html)
|
|
353
|
+
- [TESSELLATE_EDGE_SPLIT](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_EDGE_SPLIT.html)
|
|
354
|
+
- [TESSELLATE_INSET](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_INSET.html)
|
|
355
|
+
- [TESSELLATE_QUAD_FAN](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_QUAD_FAN.html)
|
|
356
|
+
- [TESSELLATE_RIM_TRIS](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_RIM_TRIS.html)
|
|
357
|
+
- [TESSELLATE_TRI_FAN](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_TRI_FAN.html)
|
|
358
|
+
- [TESSELLATE_TRI_FAN_BOUNDARY](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_TRI_FAN_BOUNDARY.html)
|
|
359
|
+
- [TESSELLATE_TRI_FAN_SPLIT](https://docs.thi.ng/umbrella/geom/functions/TESSELLATE_TRI_FAN_SPLIT.html)
|
|
362
360
|
|
|
363
361
|
Tessellation behaviors:
|
|
364
362
|
|
|
365
|
-
- [
|
|
363
|
+
- [basicTessellation()](https://docs.thi.ng/umbrella/geom/functions/basicTessellation.html):
|
|
366
364
|
default impl
|
|
367
|
-
- [
|
|
365
|
+
- [meshTessellation()](https://docs.thi.ng/umbrella/geom/functions/meshTessellation.html):
|
|
368
366
|
uses kD-tree to deduplicate result points
|
|
369
367
|
|
|
370
368
|
Tessellation post-processing:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "Functional, polymorphic API for 2D geometry types & SVG generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,39 +37,39 @@
|
|
|
37
37
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/adjacency": "^2.5.
|
|
41
|
-
"@thi.ng/api": "^8.11.
|
|
42
|
-
"@thi.ng/arrays": "^2.9.
|
|
43
|
-
"@thi.ng/associative": "^6.3.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/defmulti": "^3.0.
|
|
46
|
-
"@thi.ng/equiv": "^2.1.
|
|
47
|
-
"@thi.ng/errors": "^2.5.
|
|
48
|
-
"@thi.ng/geom-arc": "^2.1.
|
|
49
|
-
"@thi.ng/geom-clip-line": "^2.3.
|
|
50
|
-
"@thi.ng/geom-clip-poly": "^2.1.
|
|
51
|
-
"@thi.ng/geom-closest-point": "^2.1.
|
|
52
|
-
"@thi.ng/geom-hull": "^2.1.
|
|
53
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
54
|
-
"@thi.ng/geom-poly-utils": "^3.0.
|
|
55
|
-
"@thi.ng/geom-resample": "^3.0.
|
|
56
|
-
"@thi.ng/geom-splines": "^2.3.
|
|
57
|
-
"@thi.ng/geom-subdiv-curve": "^3.0.
|
|
58
|
-
"@thi.ng/geom-tessellate": "^3.0.
|
|
59
|
-
"@thi.ng/hiccup": "^5.2.
|
|
60
|
-
"@thi.ng/hiccup-svg": "^5.3.
|
|
61
|
-
"@thi.ng/math": "^5.11.
|
|
62
|
-
"@thi.ng/matrices": "^2.4.
|
|
63
|
-
"@thi.ng/random": "^3.8.
|
|
64
|
-
"@thi.ng/strings": "^3.7.
|
|
65
|
-
"@thi.ng/transducers": "^9.0.
|
|
66
|
-
"@thi.ng/vectors": "^7.11.
|
|
40
|
+
"@thi.ng/adjacency": "^2.5.55",
|
|
41
|
+
"@thi.ng/api": "^8.11.5",
|
|
42
|
+
"@thi.ng/arrays": "^2.9.10",
|
|
43
|
+
"@thi.ng/associative": "^6.3.64",
|
|
44
|
+
"@thi.ng/checks": "^3.6.7",
|
|
45
|
+
"@thi.ng/defmulti": "^3.0.43",
|
|
46
|
+
"@thi.ng/equiv": "^2.1.61",
|
|
47
|
+
"@thi.ng/errors": "^2.5.11",
|
|
48
|
+
"@thi.ng/geom-arc": "^2.1.136",
|
|
49
|
+
"@thi.ng/geom-clip-line": "^2.3.93",
|
|
50
|
+
"@thi.ng/geom-clip-poly": "^2.1.135",
|
|
51
|
+
"@thi.ng/geom-closest-point": "^2.1.131",
|
|
52
|
+
"@thi.ng/geom-hull": "^2.1.131",
|
|
53
|
+
"@thi.ng/geom-isec": "^4.0.3",
|
|
54
|
+
"@thi.ng/geom-poly-utils": "^3.0.3",
|
|
55
|
+
"@thi.ng/geom-resample": "^3.0.3",
|
|
56
|
+
"@thi.ng/geom-splines": "^2.3.3",
|
|
57
|
+
"@thi.ng/geom-subdiv-curve": "^3.0.3",
|
|
58
|
+
"@thi.ng/geom-tessellate": "^3.0.3",
|
|
59
|
+
"@thi.ng/hiccup": "^5.2.5",
|
|
60
|
+
"@thi.ng/hiccup-svg": "^5.3.3",
|
|
61
|
+
"@thi.ng/math": "^5.11.3",
|
|
62
|
+
"@thi.ng/matrices": "^2.4.3",
|
|
63
|
+
"@thi.ng/random": "^3.8.4",
|
|
64
|
+
"@thi.ng/strings": "^3.7.37",
|
|
65
|
+
"@thi.ng/transducers": "^9.0.9",
|
|
66
|
+
"@thi.ng/vectors": "^7.11.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@microsoft/api-extractor": "^7.47.0",
|
|
70
|
-
"esbuild": "^0.
|
|
71
|
-
"typedoc": "^0.
|
|
72
|
-
"typescript": "^5.5.
|
|
70
|
+
"esbuild": "^0.23.0",
|
|
71
|
+
"typedoc": "^0.26.3",
|
|
72
|
+
"typescript": "^5.5.3"
|
|
73
73
|
},
|
|
74
74
|
"keywords": [
|
|
75
75
|
"2d",
|
|
@@ -527,5 +527,5 @@
|
|
|
527
527
|
],
|
|
528
528
|
"year": 2013
|
|
529
529
|
},
|
|
530
|
-
"gitHead": "
|
|
530
|
+
"gitHead": "ba4f2cd15eeb0cae30efe222524da4fed2a57267\n"
|
|
531
531
|
}
|