@dtour/scatter 0.2.0 → 0.4.0
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/LICENSE +201 -0
- package/dist/data/analyze.d.ts +1 -0
- package/dist/data/analyze.d.ts.map +1 -1
- package/dist/data/colormaps2d.d.ts +24 -0
- package/dist/data/colormaps2d.d.ts.map +1 -0
- package/dist/data/messages.d.ts +19 -0
- package/dist/data/messages.d.ts.map +1 -1
- package/dist/data/parquet.d.ts +3 -0
- package/dist/data/parquet.d.ts.map +1 -1
- package/dist/data/parse.d.ts +1 -1
- package/dist/data/types.d.ts +2 -0
- package/dist/data/types.d.ts.map +1 -1
- package/dist/gpu/client.d.ts +30 -1
- package/dist/gpu/client.d.ts.map +1 -1
- package/dist/gpu/color-pipeline.d.ts.map +1 -1
- package/dist/gpu/messages.d.ts +29 -0
- package/dist/gpu/messages.d.ts.map +1 -1
- package/dist/gpu/pipeline.d.ts +9 -2
- package/dist/gpu/pipeline.d.ts.map +1 -1
- package/dist/gpu/projection.d.ts +1 -1
- package/dist/gpu/projection.d.ts.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/scatter.js +1417 -613
- package/dist/tour/arc-length.d.ts +5 -2
- package/dist/tour/arc-length.d.ts.map +1 -1
- package/dist/tour/geodesic.d.ts +6 -1
- package/dist/tour/geodesic.d.ts.map +1 -1
- package/dist/webgl/client.d.ts.map +1 -1
- package/package.json +11 -9
|
@@ -12,8 +12,11 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @param bases - array of p×2 column-major basis matrices
|
|
14
14
|
* @param p - number of dimensions
|
|
15
|
+
* @param orthonormalize - passed through to interpolateBases. When false,
|
|
16
|
+
* geodesic distance is unreliable on non-orthonormal intermediates, so
|
|
17
|
+
* uniform segment lengths are used instead.
|
|
15
18
|
*/
|
|
16
|
-
export declare const computeArcLengths: (bases: Float32Array[], p: number) => Float32Array;
|
|
19
|
+
export declare const computeArcLengths: (bases: Float32Array[], p: number, orthonormalize?: boolean) => Float32Array;
|
|
17
20
|
export type ResolvedPosition = {
|
|
18
21
|
segment: number;
|
|
19
22
|
localT: number;
|
|
@@ -28,5 +31,5 @@ export declare const resolvePosition: (arcLengths: Float32Array, t: number) => R
|
|
|
28
31
|
/**
|
|
29
32
|
* Convenience: resolve position and compute the interpolated basis in one call.
|
|
30
33
|
*/
|
|
31
|
-
export declare const interpolateAtPosition: (out: Float32Array, bases: Float32Array[], arcLengths: Float32Array, p: number, t: number) => Float32Array;
|
|
34
|
+
export declare const interpolateAtPosition: (out: Float32Array, bases: Float32Array[], arcLengths: Float32Array, p: number, t: number, orthonormalize?: boolean) => Float32Array;
|
|
32
35
|
//# sourceMappingURL=arc-length.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arc-length.d.ts","sourceRoot":"","sources":["../../src/tour/arc-length.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"arc-length.d.ts","sourceRoot":"","sources":["../../src/tour/arc-length.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,YAAY,EAAE,EACrB,GAAG,MAAM,EACT,wBAAqB,KACpB,YAgDF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,YAAY,EAAE,GAAG,MAAM,KAAG,gBAsBrE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,KAAK,YAAY,EACjB,OAAO,YAAY,EAAE,EACrB,YAAY,YAAY,EACxB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,wBAAqB,KACpB,YAiBF,CAAC"}
|
package/dist/tour/geodesic.d.ts
CHANGED
|
@@ -17,8 +17,13 @@
|
|
|
17
17
|
* @param P3 - next basis (neighbor after end)
|
|
18
18
|
* @param p - number of dimensions
|
|
19
19
|
* @param t - interpolation parameter [0, 1]
|
|
20
|
+
* @param orthonormalize - when true (default), apply Gram-Schmidt after
|
|
21
|
+
* blending. Set to false for parameter tours where bases are selectors
|
|
22
|
+
* into a stacked embedding — skipping GS yields direct Catmull-Rom
|
|
23
|
+
* interpolation of the 2D coordinates, avoiding the "breathing" artifact
|
|
24
|
+
* caused by GS renormalization inflating the projection mid-transition.
|
|
20
25
|
*/
|
|
21
|
-
export declare const interpolateBases: (out: Float32Array, P0: Float32Array, P1: Float32Array, P2: Float32Array, P3: Float32Array, p: number, t: number) => Float32Array;
|
|
26
|
+
export declare const interpolateBases: (out: Float32Array, P0: Float32Array, P1: Float32Array, P2: Float32Array, P3: Float32Array, p: number, t: number, orthonormalize?: boolean) => Float32Array;
|
|
22
27
|
/**
|
|
23
28
|
* Geodesic distance between two p×2 basis matrices.
|
|
24
29
|
* Distance = sqrt(tau_0^2 + tau_1^2) where tau_i are principal angles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geodesic.d.ts","sourceRoot":"","sources":["../../src/tour/geodesic.ts"],"names":[],"mappings":"AAyCA
|
|
1
|
+
{"version":3,"file":"geodesic.d.ts","sourceRoot":"","sources":["../../src/tour/geodesic.ts"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,GAC3B,KAAK,YAAY,EACjB,IAAI,YAAY,EAChB,IAAI,YAAY,EAChB,IAAI,YAAY,EAChB,IAAI,YAAY,EAChB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,wBAAqB,KACpB,YAmBF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,IAAI,YAAY,EAAE,IAAI,YAAY,EAAE,GAAG,MAAM,KAAG,MAkBhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/webgl/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/webgl/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAiB,MAAM,kBAAkB,CAAC;AAYvF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,cAAc,KAAG,eA6W5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtour/scatter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/scatter.js",
|
|
6
6
|
"module": "./dist/scatter.js",
|
|
@@ -16,18 +16,20 @@
|
|
|
16
16
|
"url": "https://github.com/flekschas/dtour",
|
|
17
17
|
"directory": "packages/scatter"
|
|
18
18
|
},
|
|
19
|
-
"files": [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"dev": "vite build --watch"
|
|
23
|
-
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
24
22
|
"dependencies": {
|
|
25
|
-
"@uwdata/flechette": "
|
|
23
|
+
"@uwdata/flechette": "^2.3.0",
|
|
26
24
|
"hyparquet": "^1.25.0",
|
|
27
25
|
"hyparquet-compressors": "^1.1.1"
|
|
28
26
|
},
|
|
29
27
|
"devDependencies": {
|
|
30
28
|
"@webgpu/types": "^0.1.54",
|
|
31
|
-
"vite": "
|
|
29
|
+
"vite": "^8.0.0"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "vite build && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
33
|
+
"dev": "vite build --watch"
|
|
32
34
|
}
|
|
33
|
-
}
|
|
35
|
+
}
|