@dtour/scatter 0.4.4 → 0.5.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/README.md +127 -0
- package/dist/data/analyze.d.ts.map +1 -1
- package/dist/data/arrow.d.ts.map +1 -1
- package/dist/data/colormaps2d.d.ts +1 -1
- package/dist/data/colormaps2d.d.ts.map +1 -1
- package/dist/data/detect.d.ts.map +1 -1
- package/dist/data/messages.d.ts +5 -0
- package/dist/data/messages.d.ts.map +1 -1
- package/dist/data/parquet.d.ts.map +1 -1
- package/dist/data/parse.d.ts.map +1 -1
- package/dist/data/types.d.ts +11 -0
- package/dist/data/types.d.ts.map +1 -1
- package/dist/gpu/client.d.ts +42 -7
- 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 +18 -0
- package/dist/gpu/messages.d.ts.map +1 -1
- package/dist/gpu/pipeline.d.ts.map +1 -1
- package/dist/gpu/projection.d.ts +2 -2
- package/dist/gpu/projection.d.ts.map +1 -1
- package/dist/gpu/residual-pc-pipeline.d.ts.map +1 -1
- package/dist/pca/jacobi.d.ts.map +1 -1
- package/dist/pca/pipeline.d.ts.map +1 -1
- package/dist/renderer.d.ts.map +1 -1
- package/dist/scatter.js +276 -257
- package/dist/selection-requests.d.ts +22 -0
- package/dist/selection-requests.d.ts.map +1 -0
- package/dist/selection.d.ts.map +1 -1
- package/dist/tour/arc-length.d.ts.map +1 -1
- package/dist/tour/geodesic.d.ts.map +1 -1
- package/dist/tour/svd2x2.d.ts.map +1 -1
- package/dist/webgl/client.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MainToData } from './data/messages.ts';
|
|
2
|
+
import type { MainToGpu } from './gpu/messages.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Selection requests of a scatter instance. Each request gets an increasing id
|
|
5
|
+
* that its `selectionResult` or `columnSelectionResult` repeats, so a result
|
|
6
|
+
* whose id is below `latestSelectionId()` belongs to a replaced selection.
|
|
7
|
+
* Selecting the same column values again without another selection request in
|
|
8
|
+
* between changes nothing and returns the id of the earlier request.
|
|
9
|
+
*/
|
|
10
|
+
export declare const createSelectionRequests: (sendToData: (msg: MainToData, transfers?: Transferable[]) => void, sendToGpu: (msg: MainToGpu, transfers?: Transferable[]) => void) => {
|
|
11
|
+
selectByColumn: (column: string, opts: {
|
|
12
|
+
labelIndices?: number[];
|
|
13
|
+
valueRanges?: Float32Array;
|
|
14
|
+
}) => number;
|
|
15
|
+
setSelectionMask: (mask: Uint32Array) => number;
|
|
16
|
+
lassoSelect: (polygon: Float32Array) => number;
|
|
17
|
+
clearSelection: () => number;
|
|
18
|
+
latestSelectionId: () => number;
|
|
19
|
+
/** New data starts without a selection, so pending results become outdated. */
|
|
20
|
+
reset: () => void;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=selection-requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-requests.d.ts","sourceRoot":"","sources":["../src/selection-requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,eACtB,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI,aACtD,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI;IAa7D,cAAc,WACJ,MAAM,QACR;QAAE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,CAAC,EAAE,YAAY,CAAA;KAAE,KAC5D,MAAM;IAkBT,gBAAgB,SAAS,WAAW,KAAG,MAAM;IAK7C,WAAW,YAAY,YAAY,KAAG,MAAM;IAK5C,cAAc,QAAM,MAAM;IAK1B,iBAAiB,QAAM,MAAM;IAC7B,+EAA+E;IAC/E,KAAK,QAAM,IAAI;CAIlB,CAAC"}
|
package/dist/selection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../src/selection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../src/selection.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,YAAa,SAAS,CAAC,MAAM,CAAC,aAAa,MAAM,KAAG,WAU9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arc-length.d.ts","sourceRoot":"","sources":["../../src/tour/arc-length.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"arc-length.d.ts","sourceRoot":"","sources":["../../src/tour/arc-length.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB,UACrB,YAAY,EAAE,KAClB,MAAM,+BAER,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,eAAgB,YAAY,KAAK,MAAM,KAAG,gBAsBrE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAC3B,YAAY,SACV,YAAY,EAAE,cACT,YAAY,KACrB,MAAM,KACN,MAAM,+BAER,YAiBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geodesic.d.ts","sourceRoot":"","sources":["../../src/tour/geodesic.ts"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"geodesic.d.ts","sourceRoot":"","sources":["../../src/tour/geodesic.ts"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,QACtB,YAAY,MACb,YAAY,MACZ,YAAY,MACZ,YAAY,MACZ,YAAY,KACb,MAAM,KACN,MAAM,+BAER,YAmBF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,OAAQ,YAAY,MAAM,YAAY,KAAK,MAAM,KAAG,MAkBhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svd2x2.d.ts","sourceRoot":"","sources":["../../src/tour/svd2x2.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,EAAE,YAAY,CAAC;IAChB,CAAC,EAAE,YAAY,CAAC;IAChB,CAAC,EAAE,YAAY,CAAC;CACjB,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"svd2x2.d.ts","sourceRoot":"","sources":["../../src/tour/svd2x2.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,EAAE,YAAY,CAAC;IAChB,CAAC,EAAE,YAAY,CAAC;IAChB,CAAC,EAAE,YAAY,CAAC;CACjB,CAAC;AAIF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,MAAO,YAAY,KAAG,YAyExC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAavF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,YAAa,cAAc,KAAG,eA+V5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtour/scatter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/scatter.js",
|
|
6
6
|
"module": "./dist/scatter.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@uwdata/flechette": "^2.
|
|
24
|
-
"hyparquet": "^1.
|
|
25
|
-
"hyparquet-compressors": "^1.1.
|
|
23
|
+
"@uwdata/flechette": "^2.6.0",
|
|
24
|
+
"hyparquet": "^1.31.3",
|
|
25
|
+
"hyparquet-compressors": "^1.1.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@webgpu/types": "^0.1.
|
|
29
|
-
"vite": "^8.
|
|
28
|
+
"@webgpu/types": "^0.1.74",
|
|
29
|
+
"vite": "^8.3.4"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "vite build && tsc --emitDeclarationOnly --declaration --outDir dist",
|