@thi.ng/geom-clip-poly 2.1.38 → 2.1.40

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-12-16T12:52:25Z
3
+ - **Last updated**: 2022-12-22T21:47:07Z
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
@@ -20,7 +20,7 @@ This project is part of the
20
20
 
21
21
  ## About
22
22
 
23
- 2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)
23
+ 2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann). This is a support package for [@thi.ng/geom](https://github.com/thi-ng/umbrella/tree/develop/packages/geom).
24
24
 
25
25
  Current implementations are based on [toxiclibs](http://toxiclibs.org)
26
26
  (Java) and Clojure versions [thi.ng/geom-clj](http://thi.ng/geom-clj).
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { ReadonlyVec } from "@thi.ng/vectors";
2
2
  /**
3
- * Extended version of Sutherland-Hodgeman convex polygon clipping
4
- * supporting any convex boundary polygon (not only rects). Returns new
5
- * array of clipped vertices.
3
+ * Extended version of Sutherland-Hodgeman convex polygon clipping supporting
4
+ * any convex boundary polygon (not only rects). Returns new array of clipped
5
+ * vertices.
6
6
  *
7
- * {@link https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm}
7
+ * https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm
8
8
  *
9
9
  * @param pts - subject poly vertices
10
10
  * @param bounds - clipping boundary vertices
package/index.js CHANGED
@@ -3,11 +3,11 @@ import { centroid } from "@thi.ng/geom-poly-utils/centroid";
3
3
  import { EPS } from "@thi.ng/math/api";
4
4
  import { corner2 } from "@thi.ng/vectors/clockwise";
5
5
  /**
6
- * Extended version of Sutherland-Hodgeman convex polygon clipping
7
- * supporting any convex boundary polygon (not only rects). Returns new
8
- * array of clipped vertices.
6
+ * Extended version of Sutherland-Hodgeman convex polygon clipping supporting
7
+ * any convex boundary polygon (not only rects). Returns new array of clipped
8
+ * vertices.
9
9
  *
10
- * {@link https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm}
10
+ * https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm
11
11
  *
12
12
  * @param pts - subject poly vertices
13
13
  * @param bounds - clipping boundary vertices
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-clip-poly",
3
- "version": "2.1.38",
3
+ "version": "2.1.40",
4
4
  "description": "2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,14 +34,14 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/geom-isec": "^2.1.38",
38
- "@thi.ng/geom-poly-utils": "^2.3.22",
39
- "@thi.ng/math": "^5.3.16",
40
- "@thi.ng/vectors": "^7.5.27"
37
+ "@thi.ng/geom-isec": "^2.1.40",
38
+ "@thi.ng/geom-poly-utils": "^2.3.24",
39
+ "@thi.ng/math": "^5.3.18",
40
+ "@thi.ng/vectors": "^7.5.29"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.33.7",
44
- "@thi.ng/testament": "^0.3.7",
44
+ "@thi.ng/testament": "^0.3.8",
45
45
  "rimraf": "^3.0.2",
46
46
  "tools": "^0.0.1",
47
47
  "typedoc": "^0.23.22",
@@ -83,5 +83,5 @@
83
83
  ],
84
84
  "year": 2013
85
85
  },
86
- "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
86
+ "gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
87
87
  }