@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.
Files changed (3) hide show
  1. package/README.md +5 -3
  2. package/as-polygon.js +1 -1
  3. 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 216 standalone projects. LLM-free, human-made and
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.61 KB
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
- 40 projects in this repo's
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
@@ -30,7 +30,7 @@ const asPolygon = defmulti(
30
30
  return [
31
31
  [f, g, h, e],
32
32
  // n
33
- [d, a, b, c],
33
+ [a, d, c, b],
34
34
  // s
35
35
  [c, d, h, g],
36
36
  // e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "8.3.35",
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.89",
45
- "@thi.ng/api": "^8.12.27",
46
- "@thi.ng/arrays": "^2.14.24",
47
- "@thi.ng/checks": "^3.10.1",
48
- "@thi.ng/defmulti": "^3.0.104",
49
- "@thi.ng/equiv": "^2.1.116",
50
- "@thi.ng/errors": "^2.6.16",
51
- "@thi.ng/geom-arc": "^2.1.226",
52
- "@thi.ng/geom-clip-line": "^2.3.183",
53
- "@thi.ng/geom-clip-poly": "^2.1.225",
54
- "@thi.ng/geom-closest-point": "^2.1.221",
55
- "@thi.ng/geom-hull": "^2.1.221",
56
- "@thi.ng/geom-isec": "^4.0.93",
57
- "@thi.ng/geom-poly-utils": "^3.1.30",
58
- "@thi.ng/geom-resample": "^3.0.93",
59
- "@thi.ng/geom-splines": "^2.3.93",
60
- "@thi.ng/geom-subdiv-curve": "^3.0.103",
61
- "@thi.ng/geom-tessellate": "^3.0.103",
62
- "@thi.ng/hiccup": "^5.4.12",
63
- "@thi.ng/hiccup-svg": "^5.6.20",
64
- "@thi.ng/math": "^5.15.16",
65
- "@thi.ng/matrices": "^3.0.52",
66
- "@thi.ng/object-utils": "^1.3.19",
67
- "@thi.ng/random": "^4.1.53",
68
- "@thi.ng/strings": "^3.12.9",
69
- "@thi.ng/transducers": "^9.6.41",
70
- "@thi.ng/vectors": "^8.6.37"
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.1",
74
- "typedoc": "^0.28.19",
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": "febee81fd8b59e5e330a6e6521a2667ed5401a3d"
537
+ "gitHead": "57ce96457ee0b8de5b17f9d371e6707780c64bd7"
538
538
  }