@thi.ng/geom 8.1.53 → 8.1.55

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**: 2025-07-10T14:20:23Z
3
+ - **Last updated**: 2025-07-11T22:07: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/api/aabb.d.ts CHANGED
@@ -12,6 +12,6 @@ export declare class AABB implements AABBLike, IHiccupShape3<AABB> {
12
12
  min(): Vec<number>;
13
13
  max(): Vec<number>;
14
14
  offset(offset: number): this;
15
- toHiccup(): (string | Attribs | Vec<number> | undefined)[];
15
+ toHiccup(): (string | Vec<number> | Attribs | undefined)[];
16
16
  }
17
17
  //# sourceMappingURL=aabb.d.ts.map
package/api/circle.d.ts CHANGED
@@ -9,6 +9,6 @@ export declare class Circle implements IHiccupShape2<Circle> {
9
9
  constructor(pos?: Vec, r?: number, attribs?: Attribs | undefined);
10
10
  copy(): Circle;
11
11
  withAttribs(attribs: Attribs): Circle;
12
- toHiccup(): (string | number | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | number | Vec<number> | Attribs | undefined)[];
13
13
  }
14
14
  //# sourceMappingURL=circle.d.ts.map
package/api/ellipse.d.ts CHANGED
@@ -9,6 +9,6 @@ export declare class Ellipse implements IHiccupShape2<Ellipse> {
9
9
  constructor(pos?: Vec, r?: number | Vec, attribs?: Attribs | undefined);
10
10
  copy(): Ellipse;
11
11
  withAttribs(attribs: Attribs): Ellipse;
12
- toHiccup(): (string | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | Vec<number> | Attribs | undefined)[];
13
13
  }
14
14
  //# sourceMappingURL=ellipse.d.ts.map
package/api/line.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class Line extends APC implements IHiccupShape2<Line>, IHiccupPat
9
9
  copy(): Line;
10
10
  copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Line;
11
11
  withAttribs(attribs: Attribs): Line;
12
- toHiccup(): (string | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | Vec<number> | Attribs | undefined)[];
13
13
  toHiccupPathSegments(): import("../api.js").HiccupPathSegment[];
14
14
  }
15
15
  //# sourceMappingURL=line.d.ts.map
package/api/line3.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class Line3 extends APC implements IHiccupShape3<Line3>, IHiccupP
9
9
  copy(): Line3;
10
10
  copyTransformed(fn: Fn<ReadonlyVec[], Vec[]>): Line3;
11
11
  withAttribs(attribs: Attribs): Line3;
12
- toHiccup(): (string | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | Vec<number> | Attribs | undefined)[];
13
13
  toHiccupPathSegments(): HiccupPathSegment[];
14
14
  }
15
15
  //# sourceMappingURL=line3.d.ts.map
package/api/plane.d.ts CHANGED
@@ -9,6 +9,6 @@ export declare class Plane implements IHiccupShape3<Plane> {
9
9
  constructor(normal?: Vec, w?: number, attribs?: Attribs | undefined);
10
10
  copy(): Plane;
11
11
  withAttribs(attribs: Attribs): Plane;
12
- toHiccup(): (string | number | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | number | Vec<number> | Attribs | undefined)[];
13
13
  }
14
14
  //# sourceMappingURL=plane.d.ts.map
package/api/ray.d.ts CHANGED
@@ -9,6 +9,6 @@ export declare class Ray implements IHiccupShape2<Ray> {
9
9
  constructor(pos: Vec, dir: Vec, attribs?: Attribs | undefined);
10
10
  copy(): Ray;
11
11
  withAttribs(attribs: Attribs): Ray;
12
- toHiccup(): (string | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | Vec<number> | Attribs | undefined)[];
13
13
  }
14
14
  //# sourceMappingURL=ray.d.ts.map
package/api/ray3.d.ts CHANGED
@@ -9,6 +9,6 @@ export declare class Ray3 implements IHiccupShape3<Ray3> {
9
9
  constructor(pos: Vec, dir: Vec, attribs?: Attribs | undefined);
10
10
  copy(): Ray3;
11
11
  withAttribs(attribs: Attribs): Ray3;
12
- toHiccup(): (string | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | Vec<number> | Attribs | undefined)[];
13
13
  }
14
14
  //# sourceMappingURL=ray3.d.ts.map
package/api/rect.d.ts CHANGED
@@ -12,6 +12,6 @@ export declare class Rect implements AABBLike, IHiccupShape2<Rect> {
12
12
  min(): Vec<number>;
13
13
  max(): Vec<number>;
14
14
  offset(offset: number): this;
15
- toHiccup(): (string | number | Attribs | Vec<number> | undefined)[];
15
+ toHiccup(): (string | number | Vec<number> | Attribs | undefined)[];
16
16
  }
17
17
  //# sourceMappingURL=rect.d.ts.map
package/api/sphere.d.ts CHANGED
@@ -9,6 +9,6 @@ export declare class Sphere implements IHiccupShape3<Sphere> {
9
9
  constructor(pos?: Vec, r?: number, attribs?: Attribs | undefined);
10
10
  copy(): Sphere;
11
11
  withAttribs(attribs: Attribs): Sphere;
12
- toHiccup(): (string | number | Attribs | Vec<number> | undefined)[];
12
+ toHiccup(): (string | number | Vec<number> | Attribs | undefined)[];
13
13
  }
14
14
  //# sourceMappingURL=sphere.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "8.1.53",
3
+ "version": "8.1.55",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,7 +40,7 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/adjacency": "^3.0.43",
43
+ "@thi.ng/adjacency": "^3.0.44",
44
44
  "@thi.ng/api": "^8.11.30",
45
45
  "@thi.ng/arrays": "^2.13.2",
46
46
  "@thi.ng/checks": "^3.7.10",
@@ -56,16 +56,16 @@
56
56
  "@thi.ng/geom-poly-utils": "^3.0.49",
57
57
  "@thi.ng/geom-resample": "^3.0.49",
58
58
  "@thi.ng/geom-splines": "^2.3.49",
59
- "@thi.ng/geom-subdiv-curve": "^3.0.52",
60
- "@thi.ng/geom-tessellate": "^3.0.53",
59
+ "@thi.ng/geom-subdiv-curve": "^3.0.54",
60
+ "@thi.ng/geom-tessellate": "^3.0.54",
61
61
  "@thi.ng/hiccup": "^5.3.16",
62
- "@thi.ng/hiccup-svg": "^5.4.40",
62
+ "@thi.ng/hiccup-svg": "^5.4.41",
63
63
  "@thi.ng/math": "^5.11.30",
64
64
  "@thi.ng/matrices": "^3.0.8",
65
65
  "@thi.ng/object-utils": "^1.2.2",
66
66
  "@thi.ng/random": "^4.1.21",
67
67
  "@thi.ng/strings": "^3.9.16",
68
- "@thi.ng/transducers": "^9.5.1",
68
+ "@thi.ng/transducers": "^9.6.0",
69
69
  "@thi.ng/vectors": "^8.3.2"
70
70
  },
71
71
  "devDependencies": {
@@ -533,5 +533,5 @@
533
533
  "tag": "geometry",
534
534
  "year": 2013
535
535
  },
536
- "gitHead": "56d8f088389b22192a06e9a395b5eecebf47697a\n"
536
+ "gitHead": "a81765bd79046980463c56a8bd187f9aaa88dd65\n"
537
537
  }
package/subdiv-curve.d.ts CHANGED
@@ -82,10 +82,10 @@ export type SubdivCurveFn = {
82
82
  *
83
83
  * @example
84
84
  * ```ts tangle:../export/subdiv-curve.ts
85
- * import { asSvg, rect, subdivCurve, SUBDIV_CHAIKIN_CLOSED } from "@thi.ng/geom";
85
+ * import { asSvg, rect, subdivCurve, SUBDIV_CHAIKIN } from "@thi.ng/geom";
86
86
  *
87
87
  * console.log(
88
- * asSvg(subdivCurve(rect(100), SUBDIV_CHAIKIN_CLOSED))
88
+ * asSvg(subdivCurve(rect(100), SUBDIV_CHAIKIN))
89
89
  * );
90
90
  * // <polygon points="0,25 25,0 75,0 100,25 100,75 75,100 25,100 0,75"/>
91
91
  * ```