@vitessce/scatterplot-gating 4.1.0 → 4.1.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/dist/{deflate-CfNBNYi5.js → deflate-JUEQzJkq.js} +1 -1
- package/dist/{index-akBJNq42.js → index-1jegsa3I.js} +29 -11
- package/dist/index.js +1 -1
- package/dist/{jpeg-DCw3XODW.js → jpeg-UCjBagAu.js} +1 -1
- package/dist/{lerc-BjcPtzUW.js → lerc-DLgOKOI7.js} +1 -1
- package/dist/{lzw-tR0mWMHy.js → lzw-C1WHSHiP.js} +1 -1
- package/dist/{packbits-CclrQvQl.js → packbits-BfOCijEg.js} +1 -1
- package/dist/{raw-CYqSaUMO.js → raw-D2n5u3_F.js} +1 -1
- package/dist/{webimage-WopRi6u3.js → webimage-BSwLfMSv.js} +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-1jegsa3I.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -9753,6 +9753,7 @@ const CoordinationType$1 = {
|
|
|
9753
9753
|
PIXEL_HIGHLIGHT: "pixelHighlight",
|
|
9754
9754
|
// Per-image-layer
|
|
9755
9755
|
TOOLTIP_CROSSHAIRS_VISIBLE: "tooltipCrosshairsVisible",
|
|
9756
|
+
TOOLTIP_OBS_SETS_MODE: "tooltipObsSetsMode",
|
|
9756
9757
|
LEGEND_VISIBLE: "legendVisible",
|
|
9757
9758
|
SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
|
|
9758
9759
|
SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
|
|
@@ -10084,6 +10085,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10084
10085
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
10085
10086
|
CoordinationType$1.SPATIAL_ZOOM,
|
|
10086
10087
|
CoordinationType$1.SPATIAL_CAMERA_SNAPSHOT,
|
|
10088
|
+
CoordinationType$1.SPATIAL_RENDERING_MODE,
|
|
10087
10089
|
CoordinationType$1.OBS_FILTER,
|
|
10088
10090
|
CoordinationType$1.OBS_HIGHLIGHT,
|
|
10089
10091
|
CoordinationType$1.OBS_SET_SELECTION,
|
|
@@ -10151,6 +10153,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10151
10153
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
10152
10154
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10153
10155
|
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
10156
|
+
CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
|
|
10154
10157
|
CoordinationType$1.SAMPLE_TYPE,
|
|
10155
10158
|
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
10156
10159
|
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
@@ -10202,6 +10205,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10202
10205
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
10203
10206
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10204
10207
|
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
10208
|
+
CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
|
|
10205
10209
|
CoordinationType$1.SAMPLE_TYPE,
|
|
10206
10210
|
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
10207
10211
|
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
@@ -10283,6 +10287,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10283
10287
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10284
10288
|
CoordinationType$1.MOLECULE_HIGHLIGHT,
|
|
10285
10289
|
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
10290
|
+
CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
|
|
10286
10291
|
CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
|
|
10287
10292
|
CoordinationType$1.ANNOTATION_STORY,
|
|
10288
10293
|
CoordinationType$1.ANNOTATION_SHAPES,
|
|
@@ -10332,6 +10337,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10332
10337
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10333
10338
|
CoordinationType$1.MOLECULE_HIGHLIGHT,
|
|
10334
10339
|
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
10340
|
+
CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
|
|
10335
10341
|
CoordinationType$1.FILE_UID,
|
|
10336
10342
|
CoordinationType$1.SPATIAL_TARGET_C,
|
|
10337
10343
|
CoordinationType$1.SPATIAL_LAYER_VISIBLE,
|
|
@@ -10415,7 +10421,8 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10415
10421
|
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
10416
10422
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
10417
10423
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10418
|
-
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
10424
|
+
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
10425
|
+
CoordinationType$1.TOOLTIP_OBS_SETS_MODE
|
|
10419
10426
|
],
|
|
10420
10427
|
[ViewType$1.OBS_SETS]: [
|
|
10421
10428
|
CoordinationType$1.DATASET,
|
|
@@ -116246,22 +116253,22 @@ function addDecoder(cases, importFn) {
|
|
|
116246
116253
|
}
|
|
116247
116254
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
116248
116255
|
}
|
|
116249
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
116250
|
-
addDecoder(5, () => import("./lzw-
|
|
116256
|
+
addDecoder([void 0, 1], () => import("./raw-D2n5u3_F.js").then((m2) => m2.default));
|
|
116257
|
+
addDecoder(5, () => import("./lzw-C1WHSHiP.js").then((m2) => m2.default));
|
|
116251
116258
|
addDecoder(6, () => {
|
|
116252
116259
|
throw new Error("old style JPEG compression is not supported.");
|
|
116253
116260
|
});
|
|
116254
|
-
addDecoder(7, () => import("./jpeg-
|
|
116255
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
116256
|
-
addDecoder(32773, () => import("./packbits-
|
|
116261
|
+
addDecoder(7, () => import("./jpeg-UCjBagAu.js").then((m2) => m2.default));
|
|
116262
|
+
addDecoder([8, 32946], () => import("./deflate-JUEQzJkq.js").then((m2) => m2.default));
|
|
116263
|
+
addDecoder(32773, () => import("./packbits-BfOCijEg.js").then((m2) => m2.default));
|
|
116257
116264
|
addDecoder(
|
|
116258
116265
|
34887,
|
|
116259
|
-
() => import("./lerc-
|
|
116266
|
+
() => import("./lerc-DLgOKOI7.js").then(async (m2) => {
|
|
116260
116267
|
await m2.zstd.init();
|
|
116261
116268
|
return m2;
|
|
116262
116269
|
}).then((m2) => m2.default)
|
|
116263
116270
|
);
|
|
116264
|
-
addDecoder(50001, () => import("./webimage-
|
|
116271
|
+
addDecoder(50001, () => import("./webimage-BSwLfMSv.js").then((m2) => m2.default));
|
|
116265
116272
|
function decodeRowAcc(row, stride) {
|
|
116266
116273
|
let length2 = row.length - stride;
|
|
116267
116274
|
let offset2 = 0;
|
|
@@ -158639,6 +158646,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
158639
158646
|
};
|
|
158640
158647
|
this.lastApplied = null;
|
|
158641
158648
|
this.transitionEndViewState = null;
|
|
158649
|
+
this.finishedTransitionEndViewState = null;
|
|
158642
158650
|
this.viewport = null;
|
|
158643
158651
|
this.threeCamera = null;
|
|
158644
158652
|
this.orbitControls = null;
|
|
@@ -158715,6 +158723,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
158715
158723
|
* Called by DeckGL when a viewState transition ends.
|
|
158716
158724
|
*/
|
|
158717
158725
|
onTransitionEnd() {
|
|
158726
|
+
this.finishedTransitionEndViewState = this.transitionEndViewState;
|
|
158718
158727
|
this.transitionEndViewState = null;
|
|
158719
158728
|
this.setState({ transitionViewState: null });
|
|
158720
158729
|
}
|
|
@@ -158725,6 +158734,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
158725
158734
|
* Instead, the stale transitionViewState is ignored by getDeckViewState.
|
|
158726
158735
|
*/
|
|
158727
158736
|
onTransitionInterrupt() {
|
|
158737
|
+
this.finishedTransitionEndViewState = this.transitionEndViewState;
|
|
158728
158738
|
this.transitionEndViewState = null;
|
|
158729
158739
|
}
|
|
158730
158740
|
/**
|
|
@@ -158737,6 +158747,13 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
158737
158747
|
if (transitionViewState && transitionViewState.endViewState === this.transitionEndViewState && isSameZoomAndTarget(viewState, this.transitionEndViewState)) {
|
|
158738
158748
|
return transitionViewState.viewState;
|
|
158739
158749
|
}
|
|
158750
|
+
if (!isSameZoomAndTarget(viewState, this.finishedTransitionEndViewState)) {
|
|
158751
|
+
this.finishedTransitionEndViewState = null;
|
|
158752
|
+
}
|
|
158753
|
+
if (this.finishedTransitionEndViewState) {
|
|
158754
|
+
const { transitionDuration, transitionInterpolator, ...viewStateWithoutTransition } = viewState;
|
|
158755
|
+
return viewStateWithoutTransition;
|
|
158756
|
+
}
|
|
158740
158757
|
if (viewState.transitionDuration) {
|
|
158741
158758
|
return {
|
|
158742
158759
|
...viewState,
|
|
@@ -158893,7 +158910,8 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
158893
158910
|
const canvas = deckRef?.current?.deck?.canvas;
|
|
158894
158911
|
if (!canvas || !spatialCameraSnapshot)
|
|
158895
158912
|
return;
|
|
158896
|
-
const
|
|
158913
|
+
const { fovDegrees, projectionScale } = spatialCameraSnapshot;
|
|
158914
|
+
const camera = new PerspectiveCamera(fovDegrees, 1, Math.max(projectionScale * 1e-4, 1e-3), Math.max(projectionScale * 100, 1e5));
|
|
158897
158915
|
camera.updateProjectionMatrix();
|
|
158898
158916
|
const eventTarget = canvas.parentElement ?? canvas;
|
|
158899
158917
|
const controls = new OrbitControls(camera, eventTarget);
|
|
@@ -159048,8 +159066,8 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
159048
159066
|
viewState: {
|
|
159049
159067
|
viewMatrix: rawViewMatrix,
|
|
159050
159068
|
fovy: fovDegrees,
|
|
159051
|
-
near:
|
|
159052
|
-
far: 1e5
|
|
159069
|
+
near: Math.max(projectionScale * 1e-4, 1e-3),
|
|
159070
|
+
far: Math.max(projectionScale * 100, 1e5)
|
|
159053
159071
|
}
|
|
159054
159072
|
});
|
|
159055
159073
|
} else if (use3d) {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-1jegsa3I.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-gating",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"react-aria": "^3.47.0",
|
|
22
|
-
"@vitessce/
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
22
|
+
"@vitessce/styles": "4.1.1",
|
|
23
|
+
"@vitessce/constants-internal": "4.1.1",
|
|
24
|
+
"@vitessce/scatterplot": "4.1.1",
|
|
25
|
+
"@vitessce/vit-s": "4.1.1",
|
|
26
|
+
"@vitessce/utils": "4.1.1",
|
|
27
|
+
"@vitessce/sets-utils": "4.1.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "19.2.6",
|