@vitessce/scatterplot-embedding 3.7.0 → 3.7.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-D_81Ious.js → deflate-BgSunY3u.js} +1 -1
- package/dist/{index-C-fHO-yW.js → index-FjD__8Hd.js} +30 -11
- package/dist/index.js +1 -1
- package/dist/{jpeg-BBthUkDM.js → jpeg-YYASIY-4.js} +1 -1
- package/dist/{lerc-CFLZifbF.js → lerc-DNPCSfFo.js} +1 -1
- package/dist/{lzw-DfvLVwpS.js → lzw-BlBBDcB3.js} +1 -1
- package/dist/{packbits-DsAbIEQN.js → packbits-uyBfUErz.js} +1 -1
- package/dist/{raw-DPiyC-FS.js → raw-DY_w4Euo.js} +1 -1
- package/dist/{webimage-BvW55TuC.js → webimage-Prgh99Ac.js} +1 -1
- package/package.json +8 -8
|
@@ -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-FjD__8Hd.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -10167,6 +10167,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10167
10167
|
CoordinationType$1.SPATIAL_ROTATION_Y,
|
|
10168
10168
|
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
10169
10169
|
CoordinationType$1.SPATIAL_AXIS_FIXED,
|
|
10170
|
+
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
10170
10171
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
10171
10172
|
CoordinationType$1.SPATIAL_ZOOM,
|
|
10172
10173
|
CoordinationType$1.OBS_FILTER,
|
|
@@ -10174,14 +10175,11 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10174
10175
|
CoordinationType$1.OBS_SET_SELECTION,
|
|
10175
10176
|
CoordinationType$1.OBS_SET_FILTER,
|
|
10176
10177
|
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
10177
|
-
CoordinationType$1.OBS_SET_COLOR,
|
|
10178
10178
|
CoordinationType$1.OBS_TYPE,
|
|
10179
|
-
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10180
10179
|
CoordinationType$1.OBS_SET_COLOR,
|
|
10181
10180
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
10182
|
-
CoordinationType$1.OBS_SET_SELECTION,
|
|
10183
10181
|
CoordinationType$1.EMBEDDING_TYPE,
|
|
10184
|
-
CoordinationType$1.
|
|
10182
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
10185
10183
|
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
10186
10184
|
],
|
|
10187
10185
|
[ViewType$1.SCATTERPLOT]: [
|
|
@@ -123325,22 +123323,22 @@ function addDecoder(cases, importFn) {
|
|
|
123325
123323
|
}
|
|
123326
123324
|
cases.forEach((c2) => registry$1.set(c2, importFn));
|
|
123327
123325
|
}
|
|
123328
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
123329
|
-
addDecoder(5, () => import("./lzw-
|
|
123326
|
+
addDecoder([void 0, 1], () => import("./raw-DY_w4Euo.js").then((m2) => m2.default));
|
|
123327
|
+
addDecoder(5, () => import("./lzw-BlBBDcB3.js").then((m2) => m2.default));
|
|
123330
123328
|
addDecoder(6, () => {
|
|
123331
123329
|
throw new Error("old style JPEG compression is not supported.");
|
|
123332
123330
|
});
|
|
123333
|
-
addDecoder(7, () => import("./jpeg-
|
|
123334
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
123335
|
-
addDecoder(32773, () => import("./packbits-
|
|
123331
|
+
addDecoder(7, () => import("./jpeg-YYASIY-4.js").then((m2) => m2.default));
|
|
123332
|
+
addDecoder([8, 32946], () => import("./deflate-BgSunY3u.js").then((m2) => m2.default));
|
|
123333
|
+
addDecoder(32773, () => import("./packbits-uyBfUErz.js").then((m2) => m2.default));
|
|
123336
123334
|
addDecoder(
|
|
123337
123335
|
34887,
|
|
123338
|
-
() => import("./lerc-
|
|
123336
|
+
() => import("./lerc-DNPCSfFo.js").then(async (m2) => {
|
|
123339
123337
|
await m2.zstd.init();
|
|
123340
123338
|
return m2;
|
|
123341
123339
|
}).then((m2) => m2.default)
|
|
123342
123340
|
);
|
|
123343
|
-
addDecoder(50001, () => import("./webimage-
|
|
123341
|
+
addDecoder(50001, () => import("./webimage-Prgh99Ac.js").then((m2) => m2.default));
|
|
123344
123342
|
function decodeRowAcc(row, stride) {
|
|
123345
123343
|
let length2 = row.length - stride;
|
|
123346
123344
|
let offset2 = 0;
|
|
@@ -150071,6 +150069,9 @@ function getOnHoverCallback(obsIndex, setObsHighlight, setComponentHover) {
|
|
|
150071
150069
|
}
|
|
150072
150070
|
};
|
|
150073
150071
|
}
|
|
150072
|
+
const ROTATION_THRESHOLD = 1;
|
|
150073
|
+
const ZOOM_THRESHOLD = 0.01;
|
|
150074
|
+
const TRANSLATION_THRESHOLD = 2;
|
|
150074
150075
|
class AbstractSpatialOrScatterplot extends PureComponent {
|
|
150075
150076
|
constructor(props) {
|
|
150076
150077
|
super(props);
|
|
@@ -150078,6 +150079,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
150078
150079
|
gl: null,
|
|
150079
150080
|
tool: null
|
|
150080
150081
|
};
|
|
150082
|
+
this.lastApplied = null;
|
|
150081
150083
|
this.viewport = null;
|
|
150082
150084
|
this.onViewStateChange = this.onViewStateChange.bind(this);
|
|
150083
150085
|
this.onInitializeViewInfo = this.onInitializeViewInfo.bind(this);
|
|
@@ -150097,6 +150099,23 @@ class AbstractSpatialOrScatterplot extends PureComponent {
|
|
|
150097
150099
|
onViewStateChange({ viewState: nextViewState }) {
|
|
150098
150100
|
const { setViewState, viewState, spatialAxisFixed } = this.props;
|
|
150099
150101
|
const use3d = this.use3d();
|
|
150102
|
+
let targetChanged = false;
|
|
150103
|
+
if (nextViewState.target && viewState.target) {
|
|
150104
|
+
const dx = Math.abs((nextViewState.target[0] ?? 0) - (viewState.target[0] ?? 0));
|
|
150105
|
+
const dy = Math.abs((nextViewState.target[1] ?? 0) - (viewState.target[1] ?? 0));
|
|
150106
|
+
const scale2 = 2 ** (nextViewState.zoom ?? 0);
|
|
150107
|
+
const dxPx = Math.abs(dx) * scale2;
|
|
150108
|
+
const dyPx = Math.abs(dy) * scale2;
|
|
150109
|
+
targetChanged = dxPx > TRANSLATION_THRESHOLD || dyPx > TRANSLATION_THRESHOLD;
|
|
150110
|
+
}
|
|
150111
|
+
const prev2 = this.lastApplied || viewState;
|
|
150112
|
+
const zoomChanged = Math.abs((nextViewState.zoom ?? 0) - (prev2.zoom ?? 0)) > ZOOM_THRESHOLD;
|
|
150113
|
+
const orbitChanged = Math.abs((nextViewState.rotationOrbit ?? 0) - (prev2.rotationOrbit ?? 0)) > ROTATION_THRESHOLD;
|
|
150114
|
+
const xChanged = Math.abs((nextViewState.rotationX ?? 0) - (prev2.rotationX ?? 0)) > ROTATION_THRESHOLD;
|
|
150115
|
+
if (!(zoomChanged || orbitChanged || xChanged || targetChanged)) {
|
|
150116
|
+
return;
|
|
150117
|
+
}
|
|
150118
|
+
this.lastApplied = nextViewState;
|
|
150100
150119
|
setViewState({
|
|
150101
150120
|
...nextViewState,
|
|
150102
150121
|
// If the axis is fixed, just use the current target in state i.e don't change target.
|
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-FjD__8Hd.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-embedding",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
22
|
"@turf/circle": "^7.2.0",
|
|
23
|
-
"@vitessce/styles": "3.7.
|
|
24
|
-
"@vitessce/constants-internal": "3.7.
|
|
25
|
-
"@vitessce/legend": "3.7.
|
|
26
|
-
"@vitessce/scatterplot": "3.7.
|
|
27
|
-
"@vitessce/sets-utils": "3.7.
|
|
28
|
-
"@vitessce/utils": "3.7.
|
|
29
|
-
"@vitessce/vit-s": "3.7.
|
|
23
|
+
"@vitessce/styles": "3.7.1",
|
|
24
|
+
"@vitessce/constants-internal": "3.7.1",
|
|
25
|
+
"@vitessce/legend": "3.7.1",
|
|
26
|
+
"@vitessce/scatterplot": "3.7.1",
|
|
27
|
+
"@vitessce/sets-utils": "3.7.1",
|
|
28
|
+
"@vitessce/utils": "3.7.1",
|
|
29
|
+
"@vitessce/vit-s": "3.7.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"react": "^18.0.0",
|