@thi.ng/geom-hull 2.1.127 → 2.1.128

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**: 2024-05-08T18:24:32Z
3
+ - **Last updated**: 2024-06-21T19:34:38Z
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
+ ### [2.1.128](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@2.1.128) (2024-06-21)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
17
+
12
18
  ### [2.1.82](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-hull@2.1.82) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 192 standalone projects, maintained as part
10
+ > This is one of 193 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
  >
@@ -62,7 +62,7 @@ For Node.js REPL:
62
62
  const hull = await import("@thi.ng/geom-hull");
63
63
  ```
64
64
 
65
- Package sizes (brotli'd, pre-treeshake): ESM: 414 bytes
65
+ Package sizes (brotli'd, pre-treeshake): ESM: 417 bytes
66
66
 
67
67
  ## Dependencies
68
68
 
package/graham-scan.js CHANGED
@@ -10,7 +10,7 @@ const grahamScan2 = (pts, eps = EPS) => {
10
10
  let r;
11
11
  let rx;
12
12
  let ry;
13
- const min = findMin(pts);
13
+ const min = __findMin(pts);
14
14
  [rx, ry] = pts[min];
15
15
  const sorted = [];
16
16
  for (i = 0; i < num; i++) {
@@ -25,7 +25,7 @@ const grahamScan2 = (pts, eps = EPS) => {
25
25
  r = sorted[i].p;
26
26
  rx = r[0];
27
27
  ry = r[1];
28
- while (h > 1 && notCCW(p[0], p[1], q[0], q[1], rx, ry, eps) || h === 1 && q[0] === rx && q[1] === ry) {
28
+ while (h > 1 && __notCCW(p[0], p[1], q[0], q[1], rx, ry, eps) || h === 1 && q[0] === rx && q[1] === ry) {
29
29
  h--;
30
30
  q = p;
31
31
  p = hull[h - 2];
@@ -35,8 +35,8 @@ const grahamScan2 = (pts, eps = EPS) => {
35
35
  hull.length = h;
36
36
  return hull;
37
37
  };
38
- const notCCW = (ax, ay, bx, by, cx, cy, eps) => (by - ay) * (cx - ax) >= (bx - ax) * (cy - ay) - eps;
39
- const findMin = (pts) => {
38
+ const __notCCW = (ax, ay, bx, by, cx, cy, eps) => (by - ay) * (cx - ax) >= (bx - ax) * (cy - ay) - eps;
39
+ const __findMin = (pts) => {
40
40
  let n = pts.length - 1;
41
41
  let minID = n;
42
42
  let [minX, minY] = pts[n];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-hull",
3
- "version": "2.1.127",
3
+ "version": "2.1.128",
4
4
  "description": "Fast 2D convex hull (Graham Scan)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/geom-hull#readme",
13
+ "homepage": "https://thi.ng/geom-hull",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -36,14 +36,14 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/math": "^5.10.13",
40
- "@thi.ng/vectors": "^7.10.31"
39
+ "@thi.ng/math": "^5.11.0",
40
+ "@thi.ng/vectors": "^7.11.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.43.2",
44
- "esbuild": "^0.21.1",
43
+ "@microsoft/api-extractor": "^7.47.0",
44
+ "esbuild": "^0.21.5",
45
45
  "typedoc": "^0.25.13",
46
- "typescript": "^5.4.5"
46
+ "typescript": "^5.5.2"
47
47
  },
48
48
  "keywords": [
49
49
  "2d",
@@ -77,5 +77,5 @@
77
77
  "parent": "@thi.ng/geom",
78
78
  "year": 2013
79
79
  },
80
- "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
80
+ "gitHead": "154c95cf9d6bab32174498ec3b5b5d87e42be7f9\n"
81
81
  }