@thi.ng/geom 4.4.0 → 4.4.1
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 +1 -1
- package/aabb.d.ts +1 -1
- package/api/aabb.d.ts +1 -1
- package/api/rect.d.ts +1 -1
- package/bpatch.d.ts +1 -1
- package/bpatch.js +1 -1
- package/center.d.ts +1 -1
- package/internal/vertices.d.ts +1 -1
- package/package.json +33 -33
- package/quad.d.ts +1 -1
- package/rect.d.ts +1 -1
- package/vertices.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/aabb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attribs } from "@thi.ng/geom-api";
|
|
2
|
-
import { ReadonlyVec, Vec } from "@thi.ng/vectors/api";
|
|
2
|
+
import { type ReadonlyVec, type Vec } from "@thi.ng/vectors/api";
|
|
3
3
|
import { AABB } from "./api/aabb.js";
|
|
4
4
|
import type { Sphere } from "./api/sphere.js";
|
|
5
5
|
export declare function aabb(pos: Vec, size: number | Vec, attribs?: Attribs): AABB;
|
package/api/aabb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IToHiccup } from "@thi.ng/api";
|
|
2
2
|
import type { AABBLike, Attribs } from "@thi.ng/geom-api";
|
|
3
|
-
import { Vec } from "@thi.ng/vectors/api";
|
|
3
|
+
import { type Vec } from "@thi.ng/vectors/api";
|
|
4
4
|
export declare class AABB implements AABBLike, IToHiccup {
|
|
5
5
|
pos: Vec;
|
|
6
6
|
attribs?: Attribs | undefined;
|
package/api/rect.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AABBLike, Attribs, IHiccupShape } from "@thi.ng/geom-api";
|
|
2
|
-
import { Vec } from "@thi.ng/vectors/api";
|
|
2
|
+
import { type Vec } from "@thi.ng/vectors/api";
|
|
3
3
|
export declare class Rect implements AABBLike, IHiccupShape {
|
|
4
4
|
pos: Vec;
|
|
5
5
|
attribs?: Attribs | undefined;
|
package/bpatch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attribs } from "@thi.ng/geom-api";
|
|
2
|
-
import { Vec } from "@thi.ng/vectors";
|
|
2
|
+
import type { Vec } from "@thi.ng/vectors";
|
|
3
3
|
import { BPatch } from "./api/bpatch.js";
|
|
4
4
|
export declare const bpatch: (pts: Vec[], attribs?: Attribs) => BPatch;
|
|
5
5
|
export declare const bpatchFromQuad: (pts: Vec[], attribs?: Attribs) => BPatch;
|
package/bpatch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assert } from "@thi.ng/errors/assert";
|
|
2
|
-
import { mixBilinear } from "@thi.ng/vectors";
|
|
2
|
+
import { mixBilinear } from "@thi.ng/vectors/mix-bilinear";
|
|
3
3
|
import { BPatch } from "./api/bpatch.js";
|
|
4
4
|
export const bpatch = (pts, attribs) => new BPatch(pts, attribs);
|
|
5
5
|
export const bpatchFromQuad = (pts, attribs) => {
|
package/center.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MultiFn1O } from "@thi.ng/defmulti";
|
|
2
2
|
import type { IShape } from "@thi.ng/geom-api";
|
|
3
|
-
import { ReadonlyVec } from "@thi.ng/vectors/api";
|
|
3
|
+
import { type ReadonlyVec } from "@thi.ng/vectors/api";
|
|
4
4
|
/**
|
|
5
5
|
* Returns copy of given shape centered around optionally provided point `p`
|
|
6
6
|
* (default: worldspace origin).
|
package/internal/vertices.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attribs } from "@thi.ng/geom-api";
|
|
2
|
-
import { SamplingOpts } from "@thi.ng/geom-api/sample";
|
|
2
|
+
import { type SamplingOpts } from "@thi.ng/geom-api/sample";
|
|
3
3
|
/** @internal */
|
|
4
4
|
export declare const __circleOpts: (opts: number | Partial<SamplingOpts>, r: number) => [number, number, boolean];
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Functional, polymorphic API for 2D geometry types & SVG generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,41 +35,41 @@
|
|
|
35
35
|
"tool:bpatch": "tools:node-esm tools/bpatch.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.7.
|
|
39
|
-
"@thi.ng/arrays": "^2.5.
|
|
40
|
-
"@thi.ng/associative": "^6.2.
|
|
41
|
-
"@thi.ng/checks": "^3.3.
|
|
42
|
-
"@thi.ng/defmulti": "^2.1.
|
|
43
|
-
"@thi.ng/equiv": "^2.1.
|
|
44
|
-
"@thi.ng/errors": "^2.2.
|
|
45
|
-
"@thi.ng/geom-api": "^3.4.
|
|
46
|
-
"@thi.ng/geom-arc": "^2.1.
|
|
47
|
-
"@thi.ng/geom-clip-line": "^2.3.
|
|
48
|
-
"@thi.ng/geom-clip-poly": "^2.1.
|
|
49
|
-
"@thi.ng/geom-closest-point": "^2.1.
|
|
50
|
-
"@thi.ng/geom-hull": "^2.1.
|
|
51
|
-
"@thi.ng/geom-isec": "^2.1.
|
|
52
|
-
"@thi.ng/geom-poly-utils": "^2.3.
|
|
53
|
-
"@thi.ng/geom-resample": "^2.2.
|
|
54
|
-
"@thi.ng/geom-splines": "^2.2.
|
|
55
|
-
"@thi.ng/geom-subdiv-curve": "^2.1.
|
|
56
|
-
"@thi.ng/geom-tessellate": "^2.1.
|
|
57
|
-
"@thi.ng/hiccup": "^4.2.
|
|
58
|
-
"@thi.ng/hiccup-svg": "^4.3.
|
|
59
|
-
"@thi.ng/math": "^5.4.
|
|
60
|
-
"@thi.ng/matrices": "^2.1.
|
|
61
|
-
"@thi.ng/random": "^3.3.
|
|
62
|
-
"@thi.ng/strings": "^3.4.
|
|
63
|
-
"@thi.ng/transducers": "^8.4.
|
|
64
|
-
"@thi.ng/vectors": "^7.6.
|
|
38
|
+
"@thi.ng/api": "^8.7.5",
|
|
39
|
+
"@thi.ng/arrays": "^2.5.9",
|
|
40
|
+
"@thi.ng/associative": "^6.2.33",
|
|
41
|
+
"@thi.ng/checks": "^3.3.11",
|
|
42
|
+
"@thi.ng/defmulti": "^2.1.34",
|
|
43
|
+
"@thi.ng/equiv": "^2.1.21",
|
|
44
|
+
"@thi.ng/errors": "^2.2.14",
|
|
45
|
+
"@thi.ng/geom-api": "^3.4.12",
|
|
46
|
+
"@thi.ng/geom-arc": "^2.1.55",
|
|
47
|
+
"@thi.ng/geom-clip-line": "^2.3.12",
|
|
48
|
+
"@thi.ng/geom-clip-poly": "^2.1.54",
|
|
49
|
+
"@thi.ng/geom-closest-point": "^2.1.50",
|
|
50
|
+
"@thi.ng/geom-hull": "^2.1.50",
|
|
51
|
+
"@thi.ng/geom-isec": "^2.1.54",
|
|
52
|
+
"@thi.ng/geom-poly-utils": "^2.3.38",
|
|
53
|
+
"@thi.ng/geom-resample": "^2.2.12",
|
|
54
|
+
"@thi.ng/geom-splines": "^2.2.29",
|
|
55
|
+
"@thi.ng/geom-subdiv-curve": "^2.1.54",
|
|
56
|
+
"@thi.ng/geom-tessellate": "^2.1.54",
|
|
57
|
+
"@thi.ng/hiccup": "^4.2.38",
|
|
58
|
+
"@thi.ng/hiccup-svg": "^4.3.40",
|
|
59
|
+
"@thi.ng/math": "^5.4.6",
|
|
60
|
+
"@thi.ng/matrices": "^2.1.51",
|
|
61
|
+
"@thi.ng/random": "^3.3.28",
|
|
62
|
+
"@thi.ng/strings": "^3.4.3",
|
|
63
|
+
"@thi.ng/transducers": "^8.4.1",
|
|
64
|
+
"@thi.ng/vectors": "^7.6.10"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@microsoft/api-extractor": "^7.34.4",
|
|
68
|
-
"@thi.ng/testament": "^0.3.
|
|
69
|
-
"rimraf": "^4.4.
|
|
68
|
+
"@thi.ng/testament": "^0.3.14",
|
|
69
|
+
"rimraf": "^4.4.1",
|
|
70
70
|
"tools": "^0.0.1",
|
|
71
|
-
"typedoc": "^0.23.
|
|
72
|
-
"typescript": "^
|
|
71
|
+
"typedoc": "^0.23.28",
|
|
72
|
+
"typescript": "^5.0.2"
|
|
73
73
|
},
|
|
74
74
|
"keywords": [
|
|
75
75
|
"2d",
|
|
@@ -398,5 +398,5 @@
|
|
|
398
398
|
],
|
|
399
399
|
"year": 2013
|
|
400
400
|
},
|
|
401
|
-
"gitHead": "
|
|
401
|
+
"gitHead": "83b15b34326d480cbca0472b20390d4d3bbb792a\n"
|
|
402
402
|
}
|
package/quad.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attribs } from "@thi.ng/geom-api";
|
|
2
|
-
import { ReadonlyVec, Vec } from "@thi.ng/vectors/api";
|
|
2
|
+
import { type ReadonlyVec, type Vec } from "@thi.ng/vectors/api";
|
|
3
3
|
import type { Plane } from "./api/plane.js";
|
|
4
4
|
import { Quad } from "./api/quad.js";
|
|
5
5
|
import { Quad3 } from "./api/quad3.js";
|
package/rect.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attribs } from "@thi.ng/geom-api";
|
|
2
|
-
import { ReadonlyVec, Vec } from "@thi.ng/vectors/api";
|
|
2
|
+
import { type ReadonlyVec, type Vec } from "@thi.ng/vectors/api";
|
|
3
3
|
import type { Circle } from "./api/circle.js";
|
|
4
4
|
import type { Polygon } from "./api/polygon.js";
|
|
5
5
|
import { Rect } from "./api/rect.js";
|
package/vertices.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MultiFn1O } from "@thi.ng/defmulti";
|
|
2
2
|
import type { IShape } from "@thi.ng/geom-api";
|
|
3
|
-
import { SamplingOpts } from "@thi.ng/geom-api/sample";
|
|
3
|
+
import { type SamplingOpts } from "@thi.ng/geom-api/sample";
|
|
4
4
|
import type { Vec } from "@thi.ng/vectors";
|
|
5
5
|
/**
|
|
6
6
|
* Extracts/samples vertices from given shape's boundary and returns them as
|