@thi.ng/geom 8.3.35 → 8.3.37
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 +5 -3
- package/as-polygon.js +1 -1
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
|
|
11
|
-
> This is one of
|
|
11
|
+
> This is one of 217 standalone projects. LLM-free, human-made and
|
|
12
12
|
> cared for software, maintained as part of the
|
|
13
13
|
> [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem and
|
|
14
14
|
> anti-framework.
|
|
@@ -402,6 +402,7 @@ packages (which are more low-level, lightweight and usable by themselves too):
|
|
|
402
402
|
- [@thi.ng/geom-io-obj](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-io-obj) - Wavefront OBJ parser (& exporter soon)
|
|
403
403
|
- [@thi.ng/geom-isec](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-isec) - 2D/3D shape intersection checks
|
|
404
404
|
- [@thi.ng/geom-isoline](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-isoline) - Fast 2D contour line extraction / generation
|
|
405
|
+
- [@thi.ng/geom-mesh](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-mesh) - Mesh data structures with support for incremental construction, spatial indexing, conversion/serialization for thi.ng/webgl
|
|
405
406
|
- [@thi.ng/geom-poly-utils](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-poly-utils) - 2D polygon/polyline analysis & processing utilities
|
|
406
407
|
- [@thi.ng/geom-resample](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-resample) - Customizable nD polyline interpolation, re-sampling, splitting & nearest point computation
|
|
407
408
|
- [@thi.ng/geom-sdf](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-sdf) - 2D Signed Distance Field creation from [@thi.ng/geom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom) shapes, conversions, sampling, combinators
|
|
@@ -454,7 +455,7 @@ For Node.js REPL:
|
|
|
454
455
|
const geom = await import("@thi.ng/geom");
|
|
455
456
|
```
|
|
456
457
|
|
|
457
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 17.
|
|
458
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 17.59 KB
|
|
458
459
|
|
|
459
460
|
## Dependencies
|
|
460
461
|
|
|
@@ -490,7 +491,7 @@ Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
|
490
491
|
|
|
491
492
|
## Usage examples
|
|
492
493
|
|
|
493
|
-
|
|
494
|
+
41 projects in this repo's
|
|
494
495
|
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
495
496
|
directory are using this package:
|
|
496
497
|
|
|
@@ -536,6 +537,7 @@ directory are using this package:
|
|
|
536
537
|
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/text-canvas.png" width="240"/> | 3D wireframe textmode demo | [Demo](https://demo.thi.ng/umbrella/text-canvas/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/text-canvas) |
|
|
537
538
|
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/trace-bitmap.jpg" width="240"/> | Multi-layer vectorization & dithering of bitmap images | [Demo](https://demo.thi.ng/umbrella/trace-bitmap/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/trace-bitmap) |
|
|
538
539
|
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/tsne-colors.avif" width="240"/> | Animated t-SNE visualization of 4D data | [Demo](https://demo.thi.ng/umbrella/tsne-colors/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/tsne-colors) |
|
|
540
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/webgl-mesh.avif" width="240"/> | Basic thi.ng/geom-mesh creation and conversion from OBJ import | [Demo](https://demo.thi.ng/umbrella/webgl-mesh/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/webgl-mesh) |
|
|
539
541
|
|
|
540
542
|
## API
|
|
541
543
|
|
package/as-polygon.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.37",
|
|
4
4
|
"description": "Functional, polymorphic API for 2D geometry types & SVG generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -41,37 +41,37 @@
|
|
|
41
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thi.ng/adjacency": "^3.0.
|
|
45
|
-
"@thi.ng/api": "^8.12.
|
|
46
|
-
"@thi.ng/arrays": "^2.14.
|
|
47
|
-
"@thi.ng/checks": "^3.
|
|
48
|
-
"@thi.ng/defmulti": "^3.0.
|
|
49
|
-
"@thi.ng/equiv": "^2.1.
|
|
50
|
-
"@thi.ng/errors": "^2.6.
|
|
51
|
-
"@thi.ng/geom-arc": "^2.1.
|
|
52
|
-
"@thi.ng/geom-clip-line": "^2.3.
|
|
53
|
-
"@thi.ng/geom-clip-poly": "^2.1.
|
|
54
|
-
"@thi.ng/geom-closest-point": "^2.1.
|
|
55
|
-
"@thi.ng/geom-hull": "^2.1.
|
|
56
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
57
|
-
"@thi.ng/geom-poly-utils": "^3.1.
|
|
58
|
-
"@thi.ng/geom-resample": "^3.0.
|
|
59
|
-
"@thi.ng/geom-splines": "^2.3.
|
|
60
|
-
"@thi.ng/geom-subdiv-curve": "^3.0.
|
|
61
|
-
"@thi.ng/geom-tessellate": "^3.0.
|
|
62
|
-
"@thi.ng/hiccup": "^5.4.
|
|
63
|
-
"@thi.ng/hiccup-svg": "^5.6.
|
|
64
|
-
"@thi.ng/math": "^5.15.
|
|
65
|
-
"@thi.ng/matrices": "^3.0.
|
|
66
|
-
"@thi.ng/object-utils": "^1.3.
|
|
67
|
-
"@thi.ng/random": "^4.1.
|
|
68
|
-
"@thi.ng/strings": "^3.12.
|
|
69
|
-
"@thi.ng/transducers": "^9.6.
|
|
70
|
-
"@thi.ng/vectors": "^8.
|
|
44
|
+
"@thi.ng/adjacency": "^3.0.91",
|
|
45
|
+
"@thi.ng/api": "^8.12.28",
|
|
46
|
+
"@thi.ng/arrays": "^2.14.26",
|
|
47
|
+
"@thi.ng/checks": "^3.11.1",
|
|
48
|
+
"@thi.ng/defmulti": "^3.0.105",
|
|
49
|
+
"@thi.ng/equiv": "^2.1.117",
|
|
50
|
+
"@thi.ng/errors": "^2.6.17",
|
|
51
|
+
"@thi.ng/geom-arc": "^2.1.228",
|
|
52
|
+
"@thi.ng/geom-clip-line": "^2.3.185",
|
|
53
|
+
"@thi.ng/geom-clip-poly": "^2.1.227",
|
|
54
|
+
"@thi.ng/geom-closest-point": "^2.1.223",
|
|
55
|
+
"@thi.ng/geom-hull": "^2.1.223",
|
|
56
|
+
"@thi.ng/geom-isec": "^4.0.95",
|
|
57
|
+
"@thi.ng/geom-poly-utils": "^3.1.32",
|
|
58
|
+
"@thi.ng/geom-resample": "^3.0.95",
|
|
59
|
+
"@thi.ng/geom-splines": "^2.3.95",
|
|
60
|
+
"@thi.ng/geom-subdiv-curve": "^3.0.105",
|
|
61
|
+
"@thi.ng/geom-tessellate": "^3.0.105",
|
|
62
|
+
"@thi.ng/hiccup": "^5.4.14",
|
|
63
|
+
"@thi.ng/hiccup-svg": "^5.6.22",
|
|
64
|
+
"@thi.ng/math": "^5.15.17",
|
|
65
|
+
"@thi.ng/matrices": "^3.0.54",
|
|
66
|
+
"@thi.ng/object-utils": "^1.3.21",
|
|
67
|
+
"@thi.ng/random": "^4.1.54",
|
|
68
|
+
"@thi.ng/strings": "^3.12.10",
|
|
69
|
+
"@thi.ng/transducers": "^9.6.43",
|
|
70
|
+
"@thi.ng/vectors": "^8.7.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"esbuild": "^0.28.
|
|
74
|
-
"typedoc": "^0.28.
|
|
73
|
+
"esbuild": "^0.28.2",
|
|
74
|
+
"typedoc": "^0.28.20",
|
|
75
75
|
"typescript": "^6.0.3"
|
|
76
76
|
},
|
|
77
77
|
"keywords": [
|
|
@@ -534,5 +534,5 @@
|
|
|
534
534
|
"tag": "geometry",
|
|
535
535
|
"year": 2013
|
|
536
536
|
},
|
|
537
|
-
"gitHead": "
|
|
537
|
+
"gitHead": "57ce96457ee0b8de5b17f9d371e6707780c64bd7"
|
|
538
538
|
}
|