@thi.ng/geom-hull 2.1.34 → 2.1.36

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**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-20T16:33:11Z
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.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![geom-hull](https://media.thi.ng/umbrella/banners-20220914/thing-geom-hull.svg?430a47e9)
3
+ # ![@thi.ng/geom-hull](https://media.thi.ng/umbrella/banners-20220914/thing-geom-hull.svg?430a47e9)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-hull.svg)](https://www.npmjs.com/package/@thi.ng/geom-hull)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-hull.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
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
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -20,7 +20,7 @@ This project is part of the
20
20
 
21
21
  ## About
22
22
 
23
- Fast 2D convex hull (Graham Scan). This is a support package for [@thi.ng/geom](https://github.com/thi-ng/umbrella/tree/develop/packages/geom).
23
+ Fast 2D convex hull (Graham Scan)
24
24
 
25
25
  Current implementation is partially based on Clojure version of
26
26
  [thi.ng/geom](http://thi.ng/geom).
@@ -47,11 +47,8 @@ ES module import:
47
47
 
48
48
  For Node.js REPL:
49
49
 
50
- ```text
51
- # with flag only for < v16
52
- node --experimental-repl-await
53
-
54
- > const geomHull = await import("@thi.ng/geom-hull");
50
+ ```js
51
+ const geomHull = await import("@thi.ng/geom-hull");
55
52
  ```
56
53
 
57
54
  Package sizes (brotli'd, pre-treeshake): ESM: 414 bytes
@@ -86,7 +83,7 @@ grahamScan2([[0, 0], [50, 10], [100, 0], [80, 50], [100, 100], [50, 90], [0, 100
86
83
 
87
84
  ## Authors
88
85
 
89
- Karsten Schmidt
86
+ - [Karsten Schmidt](https://thi.ng)
90
87
 
91
88
  If this project contributes to an academic publication, please cite it as:
92
89
 
@@ -101,4 +98,4 @@ If this project contributes to an academic publication, please cite it as:
101
98
 
102
99
  ## License
103
100
 
104
- &copy; 2013 - 2022 Karsten Schmidt // Apache Software License 2.0
101
+ &copy; 2013 - 2022 Karsten Schmidt // Apache License 2.0
package/graham-scan.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { ReadonlyVec } from "@thi.ng/vectors";
2
2
  /**
3
- * Returns array of points defining the 2D Convex Hull of `pts` using
4
- * the Graham Scan method.
3
+ * Returns array of points defining the 2D Convex Hull of `pts` using the Graham
4
+ * Scan method.
5
5
  *
6
- * - {@link https://en.wikipedia.org/wiki/Graham_scan}
7
- * - {@link http://c.thi.ng/}
6
+ * - https://en.wikipedia.org/wiki/Graham_scan
7
+ * - http://c.thi.ng/
8
8
  *
9
9
  * @param pts - input points
10
10
  * @param eps - tolerance for colinear neighbor detection
package/graham-scan.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { EPS } from "@thi.ng/math/api";
2
2
  const atan2 = Math.atan2;
3
3
  /**
4
- * Returns array of points defining the 2D Convex Hull of `pts` using
5
- * the Graham Scan method.
4
+ * Returns array of points defining the 2D Convex Hull of `pts` using the Graham
5
+ * Scan method.
6
6
  *
7
- * - {@link https://en.wikipedia.org/wiki/Graham_scan}
8
- * - {@link http://c.thi.ng/}
7
+ * - https://en.wikipedia.org/wiki/Graham_scan
8
+ * - http://c.thi.ng/
9
9
  *
10
10
  * @param pts - input points
11
11
  * @param eps - tolerance for colinear neighbor detection
@@ -53,7 +53,7 @@ export const grahamScan2 = (pts, eps = EPS) => {
53
53
  * Returns true, if triangle defined by ABC is NOT counter clockwise,
54
54
  * i.e. clockwise or colinear.
55
55
  *
56
- * {@link @thi.ng/vectors#signedArea2}
56
+ * [`signedArea2()`](https://docs.thi.ng/umbrella/vectors/functions/signedArea2.html)
57
57
  *
58
58
  * @param ax -
59
59
  * @param ay -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-hull",
3
- "version": "2.1.34",
3
+ "version": "2.1.36",
4
4
  "description": "Fast 2D convex hull (Graham Scan)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,16 +34,16 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/math": "^5.3.15",
38
- "@thi.ng/vectors": "^7.5.26"
37
+ "@thi.ng/math": "^5.3.17",
38
+ "@thi.ng/vectors": "^7.5.28"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.33.5",
42
- "@thi.ng/testament": "^0.3.6",
41
+ "@microsoft/api-extractor": "^7.33.7",
42
+ "@thi.ng/testament": "^0.3.7",
43
43
  "rimraf": "^3.0.2",
44
44
  "tools": "^0.0.1",
45
- "typedoc": "^0.23.20",
46
- "typescript": "^4.8.4"
45
+ "typedoc": "^0.23.22",
46
+ "typescript": "^4.9.4"
47
47
  },
48
48
  "keywords": [
49
49
  "2d",
@@ -76,5 +76,5 @@
76
76
  "parent": "@thi.ng/geom",
77
77
  "year": 2013
78
78
  },
79
- "gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n"
79
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
80
80
  }