@thi.ng/geom 8.3.24 → 8.3.26

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/README.md CHANGED
@@ -452,7 +452,7 @@ For Node.js REPL:
452
452
  const geom = await import("@thi.ng/geom");
453
453
  ```
454
454
 
455
- Package sizes (brotli'd, pre-treeshake): ESM: 17.53 KB
455
+ Package sizes (brotli'd, pre-treeshake): ESM: 17.61 KB
456
456
 
457
457
  ## Dependencies
458
458
 
package/api/aabb.js CHANGED
@@ -12,6 +12,8 @@ class AABB {
12
12
  this.attribs = attribs;
13
13
  this.size = max3(null, __asVec(size, 3), ZERO3);
14
14
  }
15
+ pos;
16
+ attribs;
15
17
  type = "aabb";
16
18
  dim = 3;
17
19
  size;
package/api/apc.js CHANGED
@@ -4,6 +4,7 @@ class APC {
4
4
  this.attribs = attribs;
5
5
  this.points = points ? ensureArray(points) : [];
6
6
  }
7
+ attribs;
7
8
  points;
8
9
  *[Symbol.iterator]() {
9
10
  yield* this.points;
package/api/arc.js CHANGED
@@ -16,6 +16,14 @@ class Arc {
16
16
  this.cw = cw;
17
17
  this.attribs = attribs;
18
18
  }
19
+ pos;
20
+ r;
21
+ axis;
22
+ start;
23
+ end;
24
+ xl;
25
+ cw;
26
+ attribs;
19
27
  type = "arc";
20
28
  dim = 2;
21
29
  copy() {
package/api/circle.js CHANGED
@@ -6,6 +6,9 @@ class Circle {
6
6
  this.r = r;
7
7
  this.attribs = attribs;
8
8
  }
9
+ pos;
10
+ r;
11
+ attribs;
9
12
  type = "circle";
10
13
  dim = 2;
11
14
  copy() {
@@ -7,6 +7,8 @@ class ComplexPolygon {
7
7
  this.attribs = attribs;
8
8
  this.children = children ? ensureArray(children) : [];
9
9
  }
10
+ boundary;
11
+ attribs;
10
12
  type = "complexpoly";
11
13
  dim = 2;
12
14
  children;
package/api/ellipse.js CHANGED
@@ -7,6 +7,8 @@ class Ellipse {
7
7
  this.attribs = attribs;
8
8
  this.r = __asVec(r);
9
9
  }
10
+ pos;
11
+ attribs;
10
12
  type = "ellipse";
11
13
  dim = 2;
12
14
  r;
package/api/extra.js CHANGED
@@ -2,6 +2,7 @@ class Extra {
2
2
  constructor(body) {
3
3
  this.body = body;
4
4
  }
5
+ body;
5
6
  type = "extra";
6
7
  dim = 2;
7
8
  copy() {
package/api/group.js CHANGED
@@ -6,6 +6,7 @@ class Group {
6
6
  this.attribs = attribs;
7
7
  this.children = children ? ensureArray(children) : [];
8
8
  }
9
+ attribs;
9
10
  type = "group";
10
11
  dim = 2;
11
12
  children;
package/api/group3.js CHANGED
@@ -6,6 +6,7 @@ class Group3 {
6
6
  this.attribs = attribs;
7
7
  this.children = children ? ensureArray(children) : [];
8
8
  }
9
+ attribs;
9
10
  type = "group3";
10
11
  dim = 3;
11
12
  children;
package/api/path.js CHANGED
@@ -10,6 +10,7 @@ class Path {
10
10
  this.segments = segments ? ensureArray(segments) : [];
11
11
  this.subPaths = subPaths ? ensureArray(subPaths) : [];
12
12
  }
13
+ attribs;
13
14
  type = "path";
14
15
  dim = 2;
15
16
  segments;
package/api/path3.js CHANGED
@@ -10,6 +10,7 @@ class Path3 {
10
10
  this.segments = segments ? ensureArray(segments) : [];
11
11
  this.subPaths = subPaths ? ensureArray(subPaths) : [];
12
12
  }
13
+ attribs;
13
14
  type = "path3";
14
15
  dim = 3;
15
16
  segments;
package/api/plane.js CHANGED
@@ -6,6 +6,9 @@ class Plane {
6
6
  this.w = w;
7
7
  this.attribs = attribs;
8
8
  }
9
+ normal;
10
+ w;
11
+ attribs;
9
12
  type = "plane";
10
13
  dim = 3;
11
14
  copy() {
package/api/ray.js CHANGED
@@ -7,6 +7,9 @@ class Ray {
7
7
  this.dir = dir;
8
8
  this.attribs = attribs;
9
9
  }
10
+ pos;
11
+ dir;
12
+ attribs;
10
13
  type = "ray";
11
14
  dim = 2;
12
15
  copy() {
package/api/ray3.js CHANGED
@@ -7,6 +7,9 @@ class Ray3 {
7
7
  this.dir = dir;
8
8
  this.attribs = attribs;
9
9
  }
10
+ pos;
11
+ dir;
12
+ attribs;
10
13
  type = "ray3";
11
14
  dim = 3;
12
15
  copy() {
package/api/rect.js CHANGED
@@ -12,6 +12,8 @@ class Rect {
12
12
  this.attribs = attribs;
13
13
  this.size = max2(null, __asVec(size), ZERO2);
14
14
  }
15
+ pos;
16
+ attribs;
15
17
  type = "rect";
16
18
  dim = 2;
17
19
  size;
package/api/sphere.js CHANGED
@@ -6,6 +6,9 @@ class Sphere {
6
6
  this.r = r;
7
7
  this.attribs = attribs;
8
8
  }
9
+ pos;
10
+ r;
11
+ attribs;
9
12
  type = "sphere";
10
13
  dim = 3;
11
14
  copy() {
package/api/text.js CHANGED
@@ -6,6 +6,9 @@ class Text {
6
6
  this.body = body;
7
7
  this.attribs = attribs;
8
8
  }
9
+ pos;
10
+ body;
11
+ attribs;
9
12
  type = "text";
10
13
  dim = 2;
11
14
  copy() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "8.3.24",
3
+ "version": "8.3.26",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,37 +41,37 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/adjacency": "^3.0.78",
45
- "@thi.ng/api": "^8.12.18",
46
- "@thi.ng/arrays": "^2.14.14",
47
- "@thi.ng/checks": "^3.8.8",
48
- "@thi.ng/defmulti": "^3.0.95",
49
- "@thi.ng/equiv": "^2.1.107",
50
- "@thi.ng/errors": "^2.6.7",
51
- "@thi.ng/geom-arc": "^2.1.215",
52
- "@thi.ng/geom-clip-line": "^2.3.172",
53
- "@thi.ng/geom-clip-poly": "^2.1.214",
54
- "@thi.ng/geom-closest-point": "^2.1.210",
55
- "@thi.ng/geom-hull": "^2.1.210",
56
- "@thi.ng/geom-isec": "^4.0.82",
57
- "@thi.ng/geom-poly-utils": "^3.1.19",
58
- "@thi.ng/geom-resample": "^3.0.82",
59
- "@thi.ng/geom-splines": "^2.3.82",
60
- "@thi.ng/geom-subdiv-curve": "^3.0.92",
61
- "@thi.ng/geom-tessellate": "^3.0.92",
62
- "@thi.ng/hiccup": "^5.4.2",
63
- "@thi.ng/hiccup-svg": "^5.6.9",
64
- "@thi.ng/math": "^5.15.7",
65
- "@thi.ng/matrices": "^3.0.41",
66
- "@thi.ng/object-utils": "^1.3.10",
67
- "@thi.ng/random": "^4.1.43",
68
- "@thi.ng/strings": "^3.11.1",
69
- "@thi.ng/transducers": "^9.6.31",
70
- "@thi.ng/vectors": "^8.6.26"
44
+ "@thi.ng/adjacency": "^3.0.80",
45
+ "@thi.ng/api": "^8.12.19",
46
+ "@thi.ng/arrays": "^2.14.15",
47
+ "@thi.ng/checks": "^3.8.9",
48
+ "@thi.ng/defmulti": "^3.0.96",
49
+ "@thi.ng/equiv": "^2.1.108",
50
+ "@thi.ng/errors": "^2.6.8",
51
+ "@thi.ng/geom-arc": "^2.1.217",
52
+ "@thi.ng/geom-clip-line": "^2.3.174",
53
+ "@thi.ng/geom-clip-poly": "^2.1.216",
54
+ "@thi.ng/geom-closest-point": "^2.1.212",
55
+ "@thi.ng/geom-hull": "^2.1.212",
56
+ "@thi.ng/geom-isec": "^4.0.84",
57
+ "@thi.ng/geom-poly-utils": "^3.1.21",
58
+ "@thi.ng/geom-resample": "^3.0.84",
59
+ "@thi.ng/geom-splines": "^2.3.84",
60
+ "@thi.ng/geom-subdiv-curve": "^3.0.94",
61
+ "@thi.ng/geom-tessellate": "^3.0.94",
62
+ "@thi.ng/hiccup": "^5.4.4",
63
+ "@thi.ng/hiccup-svg": "^5.6.11",
64
+ "@thi.ng/math": "^5.15.8",
65
+ "@thi.ng/matrices": "^3.0.43",
66
+ "@thi.ng/object-utils": "^1.3.11",
67
+ "@thi.ng/random": "^4.1.44",
68
+ "@thi.ng/strings": "^3.12.1",
69
+ "@thi.ng/transducers": "^9.6.32",
70
+ "@thi.ng/vectors": "^8.6.28"
71
71
  },
72
72
  "devDependencies": {
73
- "esbuild": "^0.27.2",
74
- "typedoc": "^0.28.16",
73
+ "esbuild": "^0.28.0",
74
+ "typedoc": "^0.28.18",
75
75
  "typescript": "^5.9.3"
76
76
  },
77
77
  "keywords": [
@@ -534,5 +534,5 @@
534
534
  "tag": "geometry",
535
535
  "year": 2013
536
536
  },
537
- "gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
537
+ "gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
538
538
  }
package/path-builder.js CHANGED
@@ -39,6 +39,9 @@ class PathBuilder {
39
39
  this.attribs = attribs;
40
40
  this.newPath();
41
41
  }
42
+ ctors;
43
+ attribs;
44
+ opts;
42
45
  /**
43
46
  * Array of all paths which have been built already (incl. the current)
44
47
  */