@thi.ng/geom 5.2.12 → 5.2.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-10-30T14:31:56Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [5.2.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@5.2.13) (2023-10-27)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update vector imports ([5884c2b](https://github.com/thi-ng/umbrella/commit/5884c2b))
17
+
12
18
  ## [5.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@5.2.0) (2023-08-29)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -200,7 +200,7 @@ For Node.js REPL:
200
200
  const geom = await import("@thi.ng/geom");
201
201
  ```
202
202
 
203
- Package sizes (brotli'd, pre-treeshake): ESM: 12.78 KB
203
+ Package sizes (brotli'd, pre-treeshake): ESM: 12.76 KB
204
204
 
205
205
  ## Dependencies
206
206
 
@@ -234,14 +234,13 @@ Package sizes (brotli'd, pre-treeshake): ESM: 12.78 KB
234
234
 
235
235
  ## Usage examples
236
236
 
237
- Several demos in this repo's
237
+ Several projects in this repo's
238
238
  [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
239
- directory are using this package.
240
-
241
- A selection:
239
+ directory are using this package:
242
240
 
243
241
  | Screenshot | Description | Live demo | Source |
244
242
  |:-----------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:------------------------------------------------------------|:-----------------------------------------------------------------------------------------|
243
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/boid-basics.png" width="240"/> | Basic 2D boid simulation and spatial indexing neighbor lookups | [Demo](https://demo.thi.ng/umbrella/boid-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/boid-basics) |
245
244
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/canvas-recorder.png" width="240"/> | Self-modifying, animated typographic grid with emergent complex patterns | [Demo](https://demo.thi.ng/umbrella/canvas-recorder/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/canvas-recorder) |
246
245
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/fiber-basics.png" width="240"/> | Fiber-based cooperative multitasking basics | [Demo](https://demo.thi.ng/umbrella/fiber-basics/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/fiber-basics) |
247
246
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/geom-convex-hull.png" width="240"/> | Convex hull & shape clipping of 2D polygons | [Demo](https://demo.thi.ng/umbrella/geom-convex-hull/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/geom-convex-hull) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "5.2.12",
3
+ "version": "5.2.14",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,32 +36,32 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@thi.ng/api": "^8.9.6",
39
- "@thi.ng/arrays": "^2.6.5",
40
- "@thi.ng/associative": "^6.3.14",
39
+ "@thi.ng/arrays": "^2.7.1",
40
+ "@thi.ng/associative": "^6.3.16",
41
41
  "@thi.ng/checks": "^3.4.6",
42
- "@thi.ng/defmulti": "^3.0.2",
42
+ "@thi.ng/defmulti": "^3.0.3",
43
43
  "@thi.ng/equiv": "^2.1.31",
44
44
  "@thi.ng/errors": "^2.4.0",
45
- "@thi.ng/geom-api": "^3.4.40",
46
- "@thi.ng/geom-arc": "^2.1.83",
47
- "@thi.ng/geom-clip-line": "^2.3.40",
48
- "@thi.ng/geom-clip-poly": "^2.1.82",
49
- "@thi.ng/geom-closest-point": "^2.1.78",
50
- "@thi.ng/geom-hull": "^2.1.78",
51
- "@thi.ng/geom-isec": "^2.1.82",
52
- "@thi.ng/geom-poly-utils": "^2.3.66",
53
- "@thi.ng/geom-resample": "^2.3.4",
54
- "@thi.ng/geom-splines": "^2.2.57",
55
- "@thi.ng/geom-subdiv-curve": "^2.1.82",
56
- "@thi.ng/geom-tessellate": "^2.1.82",
57
- "@thi.ng/hiccup": "^5.0.3",
58
- "@thi.ng/hiccup-svg": "^5.0.28",
59
- "@thi.ng/math": "^5.6.3",
60
- "@thi.ng/matrices": "^2.2.2",
61
- "@thi.ng/random": "^3.6.10",
62
- "@thi.ng/strings": "^3.6.2",
63
- "@thi.ng/transducers": "^8.8.5",
64
- "@thi.ng/vectors": "^7.7.22"
45
+ "@thi.ng/geom-api": "^3.4.42",
46
+ "@thi.ng/geom-arc": "^2.1.85",
47
+ "@thi.ng/geom-clip-line": "^2.3.42",
48
+ "@thi.ng/geom-clip-poly": "^2.1.84",
49
+ "@thi.ng/geom-closest-point": "^2.1.80",
50
+ "@thi.ng/geom-hull": "^2.1.80",
51
+ "@thi.ng/geom-isec": "^2.1.84",
52
+ "@thi.ng/geom-poly-utils": "^2.3.68",
53
+ "@thi.ng/geom-resample": "^2.3.6",
54
+ "@thi.ng/geom-splines": "^2.2.59",
55
+ "@thi.ng/geom-subdiv-curve": "^2.1.84",
56
+ "@thi.ng/geom-tessellate": "^2.1.84",
57
+ "@thi.ng/hiccup": "^5.0.4",
58
+ "@thi.ng/hiccup-svg": "^5.0.30",
59
+ "@thi.ng/math": "^5.7.1",
60
+ "@thi.ng/matrices": "^2.2.4",
61
+ "@thi.ng/random": "^3.6.11",
62
+ "@thi.ng/strings": "^3.6.3",
63
+ "@thi.ng/transducers": "^8.8.7",
64
+ "@thi.ng/vectors": "^7.8.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@microsoft/api-extractor": "^7.38.0",
@@ -398,5 +398,5 @@
398
398
  ],
399
399
  "year": 2013
400
400
  },
401
- "gitHead": "fc6e14052ed24bf9196896980ceb9f398b6ea6c1\n"
401
+ "gitHead": "bfa16829786146bd24df3cdbd44649a45a603e44\n"
402
402
  }
package/scatter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SYSTEM } from "@thi.ng/random/system";
2
- import { randMinMax } from "@thi.ng/vectors/random";
2
+ import { randMinMax } from "@thi.ng/vectors/rand-minmax";
3
3
  import { bounds } from "./bounds.js";
4
4
  import { pointInside } from "./point-inside.js";
5
5
  /**