@thi.ng/geom 8.1.20 → 8.1.22
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 +7 -1
- package/README.md +2 -2
- package/api/bpatch.js +1 -1
- package/clip-convex.js +1 -1
- package/package.json +29 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**:
|
|
3
|
+
- **Last updated**: 2025-01-14T12:23:33Z
|
|
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
|
+
### [8.1.22](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@8.1.22) (2025-01-14)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
|
|
17
|
+
|
|
12
18
|
### [8.1.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@8.1.11) (2024-10-05)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -451,7 +451,7 @@ For Node.js REPL:
|
|
|
451
451
|
const geom = await import("@thi.ng/geom");
|
|
452
452
|
```
|
|
453
453
|
|
|
454
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 17.
|
|
454
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 17.42 KB
|
|
455
455
|
|
|
456
456
|
## Dependencies
|
|
457
457
|
|
|
@@ -552,4 +552,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
552
552
|
|
|
553
553
|
## License
|
|
554
554
|
|
|
555
|
-
© 2013 -
|
|
555
|
+
© 2013 - 2025 Karsten Schmidt // Apache License 2.0
|
package/api/bpatch.js
CHANGED
|
@@ -62,7 +62,7 @@ class BPatch extends APC {
|
|
|
62
62
|
toHiccup() {
|
|
63
63
|
const attribs = this.attribs;
|
|
64
64
|
const acc = ["g", { fill: "none", ...attribs }];
|
|
65
|
-
if (attribs
|
|
65
|
+
if (attribs?.res) {
|
|
66
66
|
const res = attribs.res - 1;
|
|
67
67
|
const delta = 1 / res;
|
|
68
68
|
for (let u = 0; u <= res; u++) {
|
package/clip-convex.js
CHANGED
|
@@ -71,7 +71,7 @@ const clipConvex = defmulti(
|
|
|
71
71
|
$.points[1],
|
|
72
72
|
ensureVertices(boundary)
|
|
73
73
|
);
|
|
74
|
-
return segments
|
|
74
|
+
return segments?.length ? [new Line(segments[0], __copyAttribs($.attribs))] : void 0;
|
|
75
75
|
},
|
|
76
76
|
path: ($, boundary) => {
|
|
77
77
|
boundary = ensureVertices(boundary);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.22",
|
|
4
4
|
"description": "Functional, polymorphic API for 2D geometry types & SVG generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -41,33 +41,33 @@
|
|
|
41
41
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thi.ng/adjacency": "^3.0.
|
|
45
|
-
"@thi.ng/api": "^8.11.
|
|
46
|
-
"@thi.ng/arrays": "^2.10.
|
|
47
|
-
"@thi.ng/checks": "^3.6.
|
|
48
|
-
"@thi.ng/defmulti": "^3.0.
|
|
49
|
-
"@thi.ng/equiv": "^2.1.
|
|
50
|
-
"@thi.ng/errors": "^2.5.
|
|
51
|
-
"@thi.ng/geom-arc": "^2.1.
|
|
52
|
-
"@thi.ng/geom-clip-line": "^2.3.
|
|
53
|
-
"@thi.ng/geom-clip-poly": "^2.1.
|
|
54
|
-
"@thi.ng/geom-closest-point": "^2.1.
|
|
55
|
-
"@thi.ng/geom-hull": "^2.1.
|
|
56
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
57
|
-
"@thi.ng/geom-poly-utils": "^3.0.
|
|
58
|
-
"@thi.ng/geom-resample": "^3.0.
|
|
59
|
-
"@thi.ng/geom-splines": "^2.3.
|
|
60
|
-
"@thi.ng/geom-subdiv-curve": "^3.0.
|
|
61
|
-
"@thi.ng/geom-tessellate": "^3.0.
|
|
62
|
-
"@thi.ng/hiccup": "^5.2.
|
|
63
|
-
"@thi.ng/hiccup-svg": "^5.4.
|
|
64
|
-
"@thi.ng/math": "^5.11.
|
|
65
|
-
"@thi.ng/matrices": "^2.4.
|
|
66
|
-
"@thi.ng/object-utils": "^1.1.
|
|
67
|
-
"@thi.ng/random": "^4.1.
|
|
68
|
-
"@thi.ng/strings": "^3.
|
|
69
|
-
"@thi.ng/transducers": "^9.2.
|
|
70
|
-
"@thi.ng/vectors": "^7.12.
|
|
44
|
+
"@thi.ng/adjacency": "^3.0.21",
|
|
45
|
+
"@thi.ng/api": "^8.11.16",
|
|
46
|
+
"@thi.ng/arrays": "^2.10.10",
|
|
47
|
+
"@thi.ng/checks": "^3.6.19",
|
|
48
|
+
"@thi.ng/defmulti": "^3.0.55",
|
|
49
|
+
"@thi.ng/equiv": "^2.1.72",
|
|
50
|
+
"@thi.ng/errors": "^2.5.22",
|
|
51
|
+
"@thi.ng/geom-arc": "^2.1.159",
|
|
52
|
+
"@thi.ng/geom-clip-line": "^2.3.116",
|
|
53
|
+
"@thi.ng/geom-clip-poly": "^2.1.158",
|
|
54
|
+
"@thi.ng/geom-closest-point": "^2.1.154",
|
|
55
|
+
"@thi.ng/geom-hull": "^2.1.154",
|
|
56
|
+
"@thi.ng/geom-isec": "^4.0.26",
|
|
57
|
+
"@thi.ng/geom-poly-utils": "^3.0.26",
|
|
58
|
+
"@thi.ng/geom-resample": "^3.0.26",
|
|
59
|
+
"@thi.ng/geom-splines": "^2.3.26",
|
|
60
|
+
"@thi.ng/geom-subdiv-curve": "^3.0.26",
|
|
61
|
+
"@thi.ng/geom-tessellate": "^3.0.26",
|
|
62
|
+
"@thi.ng/hiccup": "^5.2.23",
|
|
63
|
+
"@thi.ng/hiccup-svg": "^5.4.13",
|
|
64
|
+
"@thi.ng/math": "^5.11.16",
|
|
65
|
+
"@thi.ng/matrices": "^2.4.26",
|
|
66
|
+
"@thi.ng/object-utils": "^1.1.10",
|
|
67
|
+
"@thi.ng/random": "^4.1.7",
|
|
68
|
+
"@thi.ng/strings": "^3.9.0",
|
|
69
|
+
"@thi.ng/transducers": "^9.2.13",
|
|
70
|
+
"@thi.ng/vectors": "^7.12.14"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@microsoft/api-extractor": "^7.48.1",
|
|
@@ -534,5 +534,5 @@
|
|
|
534
534
|
],
|
|
535
535
|
"year": 2013
|
|
536
536
|
},
|
|
537
|
-
"gitHead": "
|
|
537
|
+
"gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
|
|
538
538
|
}
|