@thi.ng/geom-clip-poly 2.1.120 → 2.1.122

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-03-13T14:04:31Z
3
+ - **Last updated**: 2024-03-21T16:11:49Z
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.121](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-poly@2.1.121) (2024-03-21)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - minor updates ([1a38846](https://github.com/thi-ng/umbrella/commit/1a38846))
17
+
12
18
  ### [2.1.86](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-poly@2.1.86) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -60,7 +60,7 @@ For Node.js REPL:
60
60
  const geomClipPoly = await import("@thi.ng/geom-clip-poly");
61
61
  ```
62
62
 
63
- Package sizes (brotli'd, pre-treeshake): ESM: 321 bytes
63
+ Package sizes (brotli'd, pre-treeshake): ESM: 317 bytes
64
64
 
65
65
  ## Dependencies
66
66
 
package/index.js CHANGED
@@ -15,10 +15,10 @@ const sutherlandHodgeman = (pts, bounds, bc, eps = EPS) => {
15
15
  const cqsign = corner2(ca, cb, q, eps);
16
16
  if (corner2(ca, cb, p, eps) === sign) {
17
17
  clipped.push(
18
- cqsign !== sign ? intersectLineLine(ca, cb, p, q).isec : q
18
+ cqsign !== sign ? intersectLineLine(ca, cb, p, q).isec[0] : q
19
19
  );
20
20
  } else if (cqsign === sign) {
21
- clipped.push(intersectLineLine(ca, cb, p, q).isec, q);
21
+ clipped.push(intersectLineLine(ca, cb, p, q).isec[0], q);
22
22
  }
23
23
  }
24
24
  if (clipped.length < 2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-clip-poly",
3
- "version": "2.1.120",
3
+ "version": "2.1.122",
4
4
  "description": "2D polygon clipping / offsetting (Sutherland-Hodgeman, Grainer-Hormann)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,10 +36,10 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/geom-isec": "^2.1.120",
40
- "@thi.ng/geom-poly-utils": "^2.3.104",
39
+ "@thi.ng/geom-isec": "^3.0.1",
40
+ "@thi.ng/geom-poly-utils": "^2.3.106",
41
41
  "@thi.ng/math": "^5.10.7",
42
- "@thi.ng/vectors": "^7.10.20"
42
+ "@thi.ng/vectors": "^7.10.22"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.42.3",
@@ -84,5 +84,5 @@
84
84
  ],
85
85
  "year": 2013
86
86
  },
87
- "gitHead": "4b3d4ab6ce373ca817ad780f679572169a9ed733\n"
87
+ "gitHead": "16686bb40f7bd7a14a5d1304e353a82cb0069a1a\n"
88
88
  }