@thi.ng/geom-splines 2.1.12 → 2.1.13
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/cubic-closest-point.d.ts +1 -1
- package/cubic-sample.d.ts +2 -2
- package/cubic-split.d.ts +1 -1
- package/internal/sample.d.ts +1 -1
- package/package.json +13 -13
- package/quadratic-closest-point.d.ts +1 -1
- package/quadratic-sample.d.ts +2 -2
- package/quadratic-split.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/cubic-closest-point.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
|
|
|
17
17
|
* @param iter - iterations
|
|
18
18
|
* @param eps - epsilon value
|
|
19
19
|
*/
|
|
20
|
-
export declare const closestPointCubic: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec, out?: Vec, res?: number
|
|
20
|
+
export declare const closestPointCubic: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec, out?: Vec, res?: number, iter?: number, eps?: number) => Vec;
|
|
21
21
|
//# sourceMappingURL=cubic-closest-point.d.ts.map
|
package/cubic-sample.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const sampleCubic: (pts: import("@thi.ng/vectors").ReadonlyVec[], opts?: number | Partial<import("@thi.ng/geom-api/sample").SamplingOpts> | undefined) => import("@thi.ng/vectors").Vec[];
|
|
2
|
-
export declare const sampleCubicArray: (segments: import("@thi.ng/vectors").ReadonlyVec[][], closed: boolean | undefined, opts: number | Partial<import("@thi.ng/geom-api/sample").SamplingOpts>) => any[];
|
|
1
|
+
export declare const sampleCubic: (pts: import("@thi.ng/vectors").ReadonlyVec[], opts?: number | Partial<import("@thi.ng/geom-api/sample.js").SamplingOpts> | undefined) => import("@thi.ng/vectors").Vec[];
|
|
2
|
+
export declare const sampleCubicArray: (segments: import("@thi.ng/vectors").ReadonlyVec[][], closed: boolean | undefined, opts: number | Partial<import("@thi.ng/geom-api/sample.js").SamplingOpts>) => any[];
|
|
3
3
|
//# sourceMappingURL=cubic-sample.d.ts.map
|
package/cubic-split.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReadonlyVec } from "@thi.ng/vectors";
|
|
2
2
|
export declare const cubicSplitAt: (a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec, t: number) => import("@thi.ng/vectors").Vec[][];
|
|
3
|
-
export declare const splitCubicNearPoint: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec, res?: number
|
|
3
|
+
export declare const splitCubicNearPoint: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec, res?: number, iter?: number) => import("@thi.ng/vectors").Vec[][];
|
|
4
4
|
//# sourceMappingURL=cubic-split.d.ts.map
|
package/internal/sample.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Fn2, Fn3 } from "@thi.ng/api";
|
|
2
2
|
import { SamplingOpts } from "@thi.ng/geom-api/sample";
|
|
3
3
|
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
|
|
4
|
-
export declare const __sample: (sample: Fn3<Vec[], ReadonlyVec[], number, void>) => (pts: ReadonlyVec[], opts?: number | Partial<SamplingOpts>
|
|
4
|
+
export declare const __sample: (sample: Fn3<Vec[], ReadonlyVec[], number, void>) => (pts: ReadonlyVec[], opts?: number | Partial<SamplingOpts>) => Vec[];
|
|
5
5
|
export declare const __sampleArray: (fn: Fn2<ReadonlyVec[], Partial<SamplingOpts>, Vec[]>) => (segments: ReadonlyVec[][], closed: boolean | undefined, opts: number | Partial<SamplingOpts>) => any[];
|
|
6
6
|
//# sourceMappingURL=sample.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-splines",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
4
4
|
"description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/checks": "^3.
|
|
39
|
-
"@thi.ng/geom-api": "^3.1.
|
|
40
|
-
"@thi.ng/geom-arc": "^2.1.
|
|
41
|
-
"@thi.ng/geom-resample": "^2.1.
|
|
42
|
-
"@thi.ng/math": "^5.3.
|
|
43
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.3.7",
|
|
38
|
+
"@thi.ng/checks": "^3.2.0",
|
|
39
|
+
"@thi.ng/geom-api": "^3.1.13",
|
|
40
|
+
"@thi.ng/geom-arc": "^2.1.13",
|
|
41
|
+
"@thi.ng/geom-resample": "^2.1.13",
|
|
42
|
+
"@thi.ng/math": "^5.3.3",
|
|
43
|
+
"@thi.ng/vectors": "^7.5.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@microsoft/api-extractor": "^7.
|
|
47
|
-
"@thi.ng/testament": "^0.2.
|
|
46
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
47
|
+
"@thi.ng/testament": "^0.2.8",
|
|
48
48
|
"rimraf": "^3.0.2",
|
|
49
49
|
"tools": "^0.0.1",
|
|
50
|
-
"typedoc": "^0.22.
|
|
51
|
-
"typescript": "^4.
|
|
50
|
+
"typedoc": "^0.22.17",
|
|
51
|
+
"typescript": "^4.7.3"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"2d",
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"geom-subdiv-curve"
|
|
145
145
|
]
|
|
146
146
|
},
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
148
148
|
}
|
|
@@ -16,5 +16,5 @@ import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
|
|
|
16
16
|
* @param iter - iterations
|
|
17
17
|
* @param eps - epsilon value
|
|
18
18
|
*/
|
|
19
|
-
export declare const closestPointQuadratic: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, out?: Vec, res?: number
|
|
19
|
+
export declare const closestPointQuadratic: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, out?: Vec, res?: number, iter?: number, eps?: number) => Vec;
|
|
20
20
|
//# sourceMappingURL=quadratic-closest-point.d.ts.map
|
package/quadratic-sample.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const sampleQuadratic: (pts: import("@thi.ng/vectors").ReadonlyVec[], opts?: number | Partial<import("@thi.ng/geom-api/sample").SamplingOpts> | undefined) => import("@thi.ng/vectors").Vec[];
|
|
2
|
-
export declare const sampleQuadraticArray: (segments: import("@thi.ng/vectors").ReadonlyVec[][], closed: boolean | undefined, opts: number | Partial<import("@thi.ng/geom-api/sample").SamplingOpts>) => any[];
|
|
1
|
+
export declare const sampleQuadratic: (pts: import("@thi.ng/vectors").ReadonlyVec[], opts?: number | Partial<import("@thi.ng/geom-api/sample.js").SamplingOpts> | undefined) => import("@thi.ng/vectors").Vec[];
|
|
2
|
+
export declare const sampleQuadraticArray: (segments: import("@thi.ng/vectors").ReadonlyVec[][], closed: boolean | undefined, opts: number | Partial<import("@thi.ng/geom-api/sample.js").SamplingOpts>) => any[];
|
|
3
3
|
//# sourceMappingURL=quadratic-sample.d.ts.map
|
package/quadratic-split.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReadonlyVec } from "@thi.ng/vectors";
|
|
2
2
|
export declare const quadraticSplitAt: (a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, t: number) => import("@thi.ng/vectors").Vec[][];
|
|
3
|
-
export declare const quadraticSplitNearPoint: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, res?: number
|
|
3
|
+
export declare const quadraticSplitNearPoint: (p: ReadonlyVec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, res?: number, iter?: number) => import("@thi.ng/vectors").Vec[][];
|
|
4
4
|
//# sourceMappingURL=quadratic-split.d.ts.map
|