@vitessce/layer-controller 3.7.1 → 3.8.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-D2IuNnTJ.js → deflate-BD1LWOKM.js} +1 -1
- package/dist/{index-Cg8VJ2KT.js → index-BSmclav7.js} +16 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-CtJBK85o.js → jpeg-Qso3AoLp.js} +1 -1
- package/dist/{lerc-BeaUIbpj.js → lerc-CK1Nii1x.js} +1 -1
- package/dist/{lzw-O8XnQHW3.js → lzw-BXPtXJbl.js} +1 -1
- package/dist/{packbits-0obvAeIX.js → packbits-Co12yEQv.js} +1 -1
- package/dist/{raw-BJ4Qj133.js → raw-S-anQW-F.js} +1 -1
- package/dist/{webimage-Dhg-pE0F.js → webimage-CVU2Pdma.js} +1 -1
- package/package.json +9 -9
|
@@ -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-BSmclav7.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -21683,6 +21683,7 @@ const ViewType = {
|
|
|
21683
21683
|
SCATTERPLOT: "scatterplot",
|
|
21684
21684
|
SPATIAL: "spatial",
|
|
21685
21685
|
SPATIAL_BETA: "spatialBeta",
|
|
21686
|
+
// SPATIAL_ACCELERATED: 'spatialAccelerated',
|
|
21686
21687
|
HEATMAP: "heatmap",
|
|
21687
21688
|
LAYER_CONTROLLER: "layerController",
|
|
21688
21689
|
LAYER_CONTROLLER_BETA: "layerControllerBeta",
|
|
@@ -21804,6 +21805,8 @@ const CoordinationType = {
|
|
|
21804
21805
|
// Could be per-image-layer
|
|
21805
21806
|
SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
|
|
21806
21807
|
// Per-spatial-layer
|
|
21808
|
+
SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
|
|
21809
|
+
// Per-image-channel (for spatial-accelerated)
|
|
21807
21810
|
// For clipping plane sliders
|
|
21808
21811
|
SPATIAL_SLICE_X: "spatialSliceX",
|
|
21809
21812
|
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
@@ -22092,6 +22095,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
22092
22095
|
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
22093
22096
|
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
22094
22097
|
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
22098
|
+
CoordinationType.SPATIAL_MAX_RESOLUTION,
|
|
22095
22099
|
CoordinationType.SPATIAL_SLICE_X,
|
|
22096
22100
|
CoordinationType.SPATIAL_SLICE_Y,
|
|
22097
22101
|
CoordinationType.SPATIAL_SLICE_Z,
|
|
@@ -22265,6 +22269,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
22265
22269
|
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
22266
22270
|
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
22267
22271
|
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
22272
|
+
CoordinationType.SPATIAL_MAX_RESOLUTION,
|
|
22268
22273
|
CoordinationType.SPATIAL_SLICE_X,
|
|
22269
22274
|
CoordinationType.SPATIAL_SLICE_Y,
|
|
22270
22275
|
CoordinationType.SPATIAL_SLICE_Z,
|
|
@@ -128043,22 +128048,22 @@ function addDecoder(cases, importFn) {
|
|
|
128043
128048
|
}
|
|
128044
128049
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
128045
128050
|
}
|
|
128046
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
128047
|
-
addDecoder(5, () => import("./lzw-
|
|
128051
|
+
addDecoder([void 0, 1], () => import("./raw-S-anQW-F.js").then((m) => m.default));
|
|
128052
|
+
addDecoder(5, () => import("./lzw-BXPtXJbl.js").then((m) => m.default));
|
|
128048
128053
|
addDecoder(6, () => {
|
|
128049
128054
|
throw new Error("old style JPEG compression is not supported.");
|
|
128050
128055
|
});
|
|
128051
|
-
addDecoder(7, () => import("./jpeg-
|
|
128052
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
128053
|
-
addDecoder(32773, () => import("./packbits-
|
|
128056
|
+
addDecoder(7, () => import("./jpeg-Qso3AoLp.js").then((m) => m.default));
|
|
128057
|
+
addDecoder([8, 32946], () => import("./deflate-BD1LWOKM.js").then((m) => m.default));
|
|
128058
|
+
addDecoder(32773, () => import("./packbits-Co12yEQv.js").then((m) => m.default));
|
|
128054
128059
|
addDecoder(
|
|
128055
128060
|
34887,
|
|
128056
|
-
() => import("./lerc-
|
|
128061
|
+
() => import("./lerc-CK1Nii1x.js").then(async (m) => {
|
|
128057
128062
|
await m.zstd.init();
|
|
128058
128063
|
return m;
|
|
128059
128064
|
}).then((m) => m.default)
|
|
128060
128065
|
);
|
|
128061
|
-
addDecoder(50001, () => import("./webimage-
|
|
128066
|
+
addDecoder(50001, () => import("./webimage-CVU2Pdma.js").then((m) => m.default));
|
|
128062
128067
|
function decodeRowAcc(row, stride) {
|
|
128063
128068
|
let length2 = row.length - stride;
|
|
128064
128069
|
let offset2 = 0;
|
|
@@ -145327,13 +145332,16 @@ const getStatsForResolution = (loader, resolution) => {
|
|
|
145327
145332
|
const height2 = shape2[labels.indexOf("y")];
|
|
145328
145333
|
const width2 = shape2[labels.indexOf("x")];
|
|
145329
145334
|
const depth = shape2[labels.indexOf("z")];
|
|
145335
|
+
const dims = Object.fromEntries(labels.map((label, i2) => [label, shape2[i2]]));
|
|
145330
145336
|
const depthDownsampled = Math.max(1, depth >> resolution);
|
|
145331
145337
|
const totalBytes = 4 * height2 * width2 * depthDownsampled;
|
|
145332
145338
|
return {
|
|
145333
145339
|
height: height2,
|
|
145334
145340
|
width: width2,
|
|
145341
|
+
depth,
|
|
145335
145342
|
depthDownsampled,
|
|
145336
|
-
totalBytes
|
|
145343
|
+
totalBytes,
|
|
145344
|
+
dims
|
|
145337
145345
|
};
|
|
145338
145346
|
};
|
|
145339
145347
|
const canLoadResolution = (loader, resolution) => {
|
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-BSmclav7.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/layer-controller",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"math.gl": "^3.5.6",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
|
-
"@vitessce/styles": "3.
|
|
23
|
-
"@vitessce/constants-internal": "3.
|
|
24
|
-
"@vitessce/gl": "3.
|
|
25
|
-
"@vitessce/spatial-utils": "3.
|
|
26
|
-
"@vitessce/utils": "3.
|
|
27
|
-
"@vitessce/vit-s": "3.
|
|
22
|
+
"@vitessce/styles": "3.8.1",
|
|
23
|
+
"@vitessce/constants-internal": "3.8.1",
|
|
24
|
+
"@vitessce/gl": "3.8.1",
|
|
25
|
+
"@vitessce/spatial-utils": "3.8.1",
|
|
26
|
+
"@vitessce/utils": "3.8.1",
|
|
27
|
+
"@vitessce/vit-s": "3.8.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"react": "
|
|
31
|
-
"react-dom": "
|
|
30
|
+
"react": "18.3.1",
|
|
31
|
+
"react-dom": "18.3.1",
|
|
32
32
|
"vite": "^7.0.0",
|
|
33
33
|
"vitest": "^3.1.4"
|
|
34
34
|
},
|