@thi.ng/geom 6.0.4 → 6.0.6

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**: 2023-11-09T10:28:19Z
3
+ - **Last updated**: 2023-12-03T12:13:31Z
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,13 @@ 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
+ ### [6.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@6.0.6) (2023-12-03)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - fix [#431](https://github.com/thi-ng/umbrella/issues/431) update Path.withAttribs() impl ([eaad1cd](https://github.com/thi-ng/umbrella/commit/eaad1cd))
17
+ - keep closed state of new path the same as original
18
+
12
19
  ### [6.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@6.0.2) (2023-11-09)
13
20
 
14
21
  #### ♻️ Refactoring
package/api/path.js CHANGED
@@ -32,7 +32,7 @@ export class Path {
32
32
  }
33
33
  withAttribs(attribs) {
34
34
  const res = new Path(this.segments, attribs);
35
- res.closed = true;
35
+ res.closed = this.closed;
36
36
  return res;
37
37
  }
38
38
  equiv(o) {
package/edges.js CHANGED
@@ -59,13 +59,13 @@ export const edges = defmulti(__dispatch, {
59
59
  [a, b],
60
60
  [b, c],
61
61
  [c, d],
62
- [d, a],
62
+ [d, a], // bottom
63
63
  [e, f],
64
64
  [f, g],
65
65
  [g, h],
66
- [h, e],
66
+ [h, e], // top
67
67
  [a, e],
68
- [b, f],
68
+ [b, f], // left
69
69
  [c, g],
70
70
  [d, h], // right
71
71
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,41 +34,41 @@
34
34
  "tool:bpatch": "tools:node-esm tools/bpatch.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.9.8",
38
- "@thi.ng/arrays": "^2.7.4",
39
- "@thi.ng/associative": "^6.3.20",
40
- "@thi.ng/checks": "^3.4.8",
41
- "@thi.ng/defmulti": "^3.0.6",
42
- "@thi.ng/equiv": "^2.1.33",
43
- "@thi.ng/errors": "^2.4.2",
44
- "@thi.ng/geom-api": "^3.4.46",
45
- "@thi.ng/geom-arc": "^2.1.89",
46
- "@thi.ng/geom-clip-line": "^2.3.46",
47
- "@thi.ng/geom-clip-poly": "^2.1.88",
48
- "@thi.ng/geom-closest-point": "^2.1.84",
49
- "@thi.ng/geom-hull": "^2.1.84",
50
- "@thi.ng/geom-isec": "^2.1.88",
51
- "@thi.ng/geom-poly-utils": "^2.3.72",
52
- "@thi.ng/geom-resample": "^2.3.10",
53
- "@thi.ng/geom-splines": "^2.2.63",
54
- "@thi.ng/geom-subdiv-curve": "^2.1.88",
55
- "@thi.ng/geom-tessellate": "^2.1.89",
56
- "@thi.ng/hiccup": "^5.0.7",
57
- "@thi.ng/hiccup-svg": "^5.0.34",
58
- "@thi.ng/math": "^5.7.3",
59
- "@thi.ng/matrices": "^2.2.9",
60
- "@thi.ng/random": "^3.6.14",
61
- "@thi.ng/strings": "^3.6.6",
62
- "@thi.ng/transducers": "^8.8.11",
63
- "@thi.ng/vectors": "^7.8.5"
37
+ "@thi.ng/api": "^8.9.10",
38
+ "@thi.ng/arrays": "^2.7.6",
39
+ "@thi.ng/associative": "^6.3.22",
40
+ "@thi.ng/checks": "^3.4.10",
41
+ "@thi.ng/defmulti": "^3.0.8",
42
+ "@thi.ng/equiv": "^2.1.35",
43
+ "@thi.ng/errors": "^2.4.4",
44
+ "@thi.ng/geom-api": "^3.4.48",
45
+ "@thi.ng/geom-arc": "^2.1.91",
46
+ "@thi.ng/geom-clip-line": "^2.3.48",
47
+ "@thi.ng/geom-clip-poly": "^2.1.90",
48
+ "@thi.ng/geom-closest-point": "^2.1.86",
49
+ "@thi.ng/geom-hull": "^2.1.86",
50
+ "@thi.ng/geom-isec": "^2.1.90",
51
+ "@thi.ng/geom-poly-utils": "^2.3.74",
52
+ "@thi.ng/geom-resample": "^2.3.12",
53
+ "@thi.ng/geom-splines": "^2.2.65",
54
+ "@thi.ng/geom-subdiv-curve": "^2.1.90",
55
+ "@thi.ng/geom-tessellate": "^2.1.91",
56
+ "@thi.ng/hiccup": "^5.0.9",
57
+ "@thi.ng/hiccup-svg": "^5.0.36",
58
+ "@thi.ng/math": "^5.7.5",
59
+ "@thi.ng/matrices": "^2.2.11",
60
+ "@thi.ng/random": "^3.6.16",
61
+ "@thi.ng/strings": "^3.7.1",
62
+ "@thi.ng/transducers": "^8.8.13",
63
+ "@thi.ng/vectors": "^7.8.7"
64
64
  },
65
65
  "devDependencies": {
66
- "@microsoft/api-extractor": "^7.38.2",
67
- "@thi.ng/testament": "^0.4.1",
66
+ "@microsoft/api-extractor": "^7.38.3",
67
+ "@thi.ng/testament": "^0.4.3",
68
68
  "rimraf": "^5.0.5",
69
69
  "tools": "^0.0.1",
70
- "typedoc": "^0.25.3",
71
- "typescript": "^5.2.2"
70
+ "typedoc": "^0.25.4",
71
+ "typescript": "^5.3.2"
72
72
  },
73
73
  "keywords": [
74
74
  "2d",
@@ -397,5 +397,5 @@
397
397
  ],
398
398
  "year": 2013
399
399
  },
400
- "gitHead": "2be4c38c9680da929339bd164acfb69ebb1fd3d0\n"
400
+ "gitHead": "04d1de79f256d7a53c6b5fd157b37f49bc88e11d\n"
401
401
  }
package/vertices.js CHANGED
@@ -80,13 +80,13 @@ export const vertices = defmulti(__dispatch, {
80
80
  const [px, py, pz] = pos;
81
81
  const [qx, qy, qz] = add3([], pos, size);
82
82
  return [
83
- [px, py, pz],
84
- [px, py, qz],
85
- [qx, py, qz],
86
- [qx, py, pz],
87
- [px, qy, pz],
88
- [px, qy, qz],
89
- [qx, qy, qz],
83
+ [px, py, pz], // a
84
+ [px, py, qz], // b
85
+ [qx, py, qz], // c
86
+ [qx, py, pz], // d
87
+ [px, qy, pz], // e
88
+ [px, qy, qz], // f
89
+ [qx, qy, qz], // g
90
90
  [qx, qy, pz], // h
91
91
  ];
92
92
  },