@thi.ng/geom-subdiv-curve 3.0.39 → 3.0.41
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/kernels.d.ts +10 -9
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/kernels.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { SubdivKernel } from "./api.js";
|
|
|
7
7
|
* @param u - split coeffs
|
|
8
8
|
* @param v - split coeffs
|
|
9
9
|
*/
|
|
10
|
-
export declare const kernel2: ([ua, ub]: number[], [va, vb]: number[]) => ([a, b]: ReadonlyVec[]) => import("@thi.ng/vectors").Vec[];
|
|
10
|
+
export declare const kernel2: ([ua, ub]: number[], [va, vb]: number[]) => ([a, b]: ReadonlyVec[]) => import("@thi.ng/vectors").Vec<number>[];
|
|
11
11
|
/**
|
|
12
12
|
* HOF subdiv kernel function for computing 2 split points from 3 source
|
|
13
13
|
* points, using weighted summation (thi.ng/vectors/addW3)
|
|
@@ -15,7 +15,7 @@ export declare const kernel2: ([ua, ub]: number[], [va, vb]: number[]) => ([a, b
|
|
|
15
15
|
* @param u - split coeffs
|
|
16
16
|
* @param v - split coeffs
|
|
17
17
|
*/
|
|
18
|
-
export declare const kernel3: ([ua, ub, uc]: number[], [va, vb, vc]: number[]) => ([a, b, c]: ReadonlyVec[]) => import("@thi.ng/vectors").Vec[];
|
|
18
|
+
export declare const kernel3: ([ua, ub, uc]: number[], [va, vb, vc]: number[]) => ([a, b, c]: ReadonlyVec[]) => import("@thi.ng/vectors").Vec<number>[];
|
|
19
19
|
/**
|
|
20
20
|
* HOF subdiv kernel function for computing 2 split points from 5 source
|
|
21
21
|
* points, using weighted summation (thi.ng/vectors/addW5)
|
|
@@ -23,7 +23,7 @@ export declare const kernel3: ([ua, ub, uc]: number[], [va, vb, vc]: number[]) =
|
|
|
23
23
|
* @param u - split coeffs
|
|
24
24
|
* @param v - split coeffs
|
|
25
25
|
*/
|
|
26
|
-
export declare const kernel5: ([ua, ub, uc, ud, ue]: number[], [va, vb, vc, vd, ve]: number[]) => ([a, b, c, d, e]: ReadonlyVec[]) => import("@thi.ng/vectors").Vec[];
|
|
26
|
+
export declare const kernel5: ([ua, ub, uc, ud, ue]: number[], [va, vb, vc, vd, ve]: number[]) => ([a, b, c, d, e]: ReadonlyVec[]) => import("@thi.ng/vectors").Vec<number>[];
|
|
27
27
|
/**
|
|
28
28
|
* Splits each curve / line segment into halves at midpoint.
|
|
29
29
|
*/
|
|
@@ -50,12 +50,13 @@ export declare const SUBDIV_CUBIC: SubdivKernel;
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const SUBDIV_DLG: SubdivKernel;
|
|
52
52
|
/**
|
|
53
|
-
* Higher-order subdiv kernel. Takes an array of 2-tuples of `[t,x]`
|
|
54
|
-
* is the normalized split position (along each edge) and `x` is the
|
|
55
|
-
* displacement amount (relative to edge length). The `closed` flag
|
|
56
|
-
* to be used for open/closed curves. Returns a
|
|
57
|
-
* results in `displace.length` points for each
|
|
58
|
-
* point by `displace[i][1] * edgeLength` units
|
|
53
|
+
* Higher-order 2D only subdiv kernel. Takes an array of 2-tuples of `[t,x]`
|
|
54
|
+
* where `t` is the normalized split position (along each edge) and `x` is the
|
|
55
|
+
* normalized displacement amount (relative to edge length). The `closed` flag
|
|
56
|
+
* indicates if to be used for open/closed curves. Returns a
|
|
57
|
+
* {@link SubdivKernel} which results in `displace.length` points for each
|
|
58
|
+
* original edge and displaces each point by `displace[i][1] * edgeLength` units
|
|
59
|
+
* along the normal of the edge.
|
|
59
60
|
*
|
|
60
61
|
* @remarks
|
|
61
62
|
* The original edge end points are always remaining in place. The normalized
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-subdiv-curve",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.41",
|
|
4
4
|
"description": "Freely customizable, iterative nD subdivision curves for open / closed geometries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"tool:viz": "bun tools/visualize.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/transducers": "^9.2.
|
|
44
|
-
"@thi.ng/vectors": "^
|
|
43
|
+
"@thi.ng/transducers": "^9.2.26",
|
|
44
|
+
"@thi.ng/vectors": "^8.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"esbuild": "^0.25.2",
|
|
48
|
-
"typedoc": "^0.28.
|
|
49
|
-
"typescript": "^5.8.
|
|
48
|
+
"typedoc": "^0.28.2",
|
|
49
|
+
"typescript": "^5.8.3"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"2d",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
],
|
|
94
94
|
"tag": "subdivision"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "c464b6948f92cba90c2ea75b59203dad894fb450\n"
|
|
97
97
|
}
|