@vitessce/heatmap 3.6.2 → 3.6.4
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-BVibX3Uq.js → deflate-w__udh-B.js} +1 -1
- package/dist/{index-BNko92Yi.js → index-DU_8cT8W.js} +58 -22
- package/dist/index.js +1 -1
- package/dist/{jpeg-DwLtkwvP.js → jpeg-B-5_7L9w.js} +1 -1
- package/dist/{lerc-D_5wOo-k.js → lerc-BHhU86Dn.js} +1 -1
- package/dist/{lzw-D3bPG8e2.js → lzw-DybK6JHW.js} +1 -1
- package/dist/{packbits-CFQqWTBP.js → packbits-B29YGzCg.js} +1 -1
- package/dist/{raw-DYPRCwoj.js → raw-B5s0amXm.js} +1 -1
- package/dist/{webimage-B4Bpj0Mc.js → webimage-77A_wjHi.js} +1 -1
- package/package.json +10 -10
|
@@ -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-DU_8cT8W.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -9487,6 +9487,7 @@ const FileType$1 = {
|
|
|
9487
9487
|
ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
|
|
9488
9488
|
ANNDATA_H5AD: "anndata.h5ad",
|
|
9489
9489
|
SPATIALDATA_ZARR: "spatialdata.zarr",
|
|
9490
|
+
SPATIALDATA_ZARR_ZIP: "spatialdata.zarr.zip",
|
|
9490
9491
|
// Atomic file types
|
|
9491
9492
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
9492
9493
|
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
@@ -9567,6 +9568,14 @@ const FileType$1 = {
|
|
|
9567
9568
|
// TODO:
|
|
9568
9569
|
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
9569
9570
|
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
9571
|
+
// SpatialData - zipped
|
|
9572
|
+
IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
|
|
9573
|
+
LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
|
|
9574
|
+
SHAPES_SPATIALDATA_ZARR_ZIP: "shapes.spatialdata.zarr.zip",
|
|
9575
|
+
OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP: "obsFeatureMatrix.spatialdata.zarr.zip",
|
|
9576
|
+
OBS_SETS_SPATIALDATA_ZARR_ZIP: "obsSets.spatialdata.zarr.zip",
|
|
9577
|
+
OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
|
|
9578
|
+
FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
|
|
9570
9579
|
// MuData
|
|
9571
9580
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
9572
9581
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -9967,6 +9976,28 @@ const ViewHelpMapping = {
|
|
|
9967
9976
|
},
|
|
9968
9977
|
[FileType$1.OBS_SEGMENTATIONS_OME_ZARR]: {
|
|
9969
9978
|
zip: FileType$1.OBS_SEGMENTATIONS_OME_ZARR_ZIP
|
|
9979
|
+
},
|
|
9980
|
+
// For SpatialData:
|
|
9981
|
+
[FileType$1.IMAGE_SPATIALDATA_ZARR]: {
|
|
9982
|
+
zip: FileType$1.IMAGE_SPATIALDATA_ZARR_ZIP
|
|
9983
|
+
},
|
|
9984
|
+
[FileType$1.LABELS_SPATIALDATA_ZARR]: {
|
|
9985
|
+
zip: FileType$1.LABELS_SPATIALDATA_ZARR_ZIP
|
|
9986
|
+
},
|
|
9987
|
+
[FileType$1.SHAPES_SPATIALDATA_ZARR]: {
|
|
9988
|
+
zip: FileType$1.SHAPES_SPATIALDATA_ZARR_ZIP
|
|
9989
|
+
},
|
|
9990
|
+
[FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR]: {
|
|
9991
|
+
zip: FileType$1.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP
|
|
9992
|
+
},
|
|
9993
|
+
[FileType$1.OBS_SETS_SPATIALDATA_ZARR]: {
|
|
9994
|
+
zip: FileType$1.OBS_SETS_SPATIALDATA_ZARR_ZIP
|
|
9995
|
+
},
|
|
9996
|
+
[FileType$1.OBS_SPOTS_SPATIALDATA_ZARR]: {
|
|
9997
|
+
zip: FileType$1.OBS_SPOTS_SPATIALDATA_ZARR_ZIP
|
|
9998
|
+
},
|
|
9999
|
+
[FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: {
|
|
10000
|
+
zip: FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR_ZIP
|
|
9970
10001
|
}
|
|
9971
10002
|
});
|
|
9972
10003
|
[
|
|
@@ -11087,6 +11118,7 @@ const anndataZarrSchema = z.object({
|
|
|
11087
11118
|
z.array(annDataConvenienceFeatureLabelsItem)
|
|
11088
11119
|
]),
|
|
11089
11120
|
obsFeatureMatrix: annDataObsFeatureMatrix,
|
|
11121
|
+
obsFeatureColumns: annDataObsFeatureColumnsArr,
|
|
11090
11122
|
obsSets: annDataObsSetsArr,
|
|
11091
11123
|
obsSpots: annDataObsSpots,
|
|
11092
11124
|
obsPoints: annDataObsPoints,
|
|
@@ -34223,21 +34255,25 @@ const rectMarginY = 2;
|
|
|
34223
34255
|
const rectMarginX = 2;
|
|
34224
34256
|
function combineExtents(extents, featureAggregationStrategy) {
|
|
34225
34257
|
if (Array.isArray(extents)) {
|
|
34226
|
-
if (
|
|
34227
|
-
|
|
34228
|
-
|
|
34229
|
-
|
|
34230
|
-
|
|
34231
|
-
|
|
34232
|
-
|
|
34233
|
-
|
|
34234
|
-
|
|
34235
|
-
|
|
34236
|
-
|
|
34237
|
-
|
|
34238
|
-
|
|
34239
|
-
|
|
34240
|
-
|
|
34258
|
+
if (Array.isArray(extents == null ? void 0 : extents[0])) {
|
|
34259
|
+
if (featureAggregationStrategy === "first") {
|
|
34260
|
+
return extents[0];
|
|
34261
|
+
}
|
|
34262
|
+
if (featureAggregationStrategy === "last") {
|
|
34263
|
+
return extents.at(-1);
|
|
34264
|
+
}
|
|
34265
|
+
if (typeof featureAggregationStrategy === "number") {
|
|
34266
|
+
const i2 = featureAggregationStrategy;
|
|
34267
|
+
return extents[i2];
|
|
34268
|
+
}
|
|
34269
|
+
if (featureAggregationStrategy === "sum") {
|
|
34270
|
+
return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]);
|
|
34271
|
+
}
|
|
34272
|
+
if (featureAggregationStrategy === "mean") {
|
|
34273
|
+
return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]).map((v) => v / extents.length);
|
|
34274
|
+
}
|
|
34275
|
+
} else {
|
|
34276
|
+
return extents;
|
|
34241
34277
|
}
|
|
34242
34278
|
}
|
|
34243
34279
|
return null;
|
|
@@ -138426,22 +138462,22 @@ function addDecoder(cases, importFn) {
|
|
|
138426
138462
|
}
|
|
138427
138463
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
138428
138464
|
}
|
|
138429
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
138430
|
-
addDecoder(5, () => import("./lzw-
|
|
138465
|
+
addDecoder([void 0, 1], () => import("./raw-B5s0amXm.js").then((m) => m.default));
|
|
138466
|
+
addDecoder(5, () => import("./lzw-DybK6JHW.js").then((m) => m.default));
|
|
138431
138467
|
addDecoder(6, () => {
|
|
138432
138468
|
throw new Error("old style JPEG compression is not supported.");
|
|
138433
138469
|
});
|
|
138434
|
-
addDecoder(7, () => import("./jpeg-
|
|
138435
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
138436
|
-
addDecoder(32773, () => import("./packbits-
|
|
138470
|
+
addDecoder(7, () => import("./jpeg-B-5_7L9w.js").then((m) => m.default));
|
|
138471
|
+
addDecoder([8, 32946], () => import("./deflate-w__udh-B.js").then((m) => m.default));
|
|
138472
|
+
addDecoder(32773, () => import("./packbits-B29YGzCg.js").then((m) => m.default));
|
|
138437
138473
|
addDecoder(
|
|
138438
138474
|
34887,
|
|
138439
|
-
() => import("./lerc-
|
|
138475
|
+
() => import("./lerc-BHhU86Dn.js").then(async (m) => {
|
|
138440
138476
|
await m.zstd.init();
|
|
138441
138477
|
return m;
|
|
138442
138478
|
}).then((m) => m.default)
|
|
138443
138479
|
);
|
|
138444
|
-
addDecoder(50001, () => import("./webimage-
|
|
138480
|
+
addDecoder(50001, () => import("./webimage-77A_wjHi.js").then((m) => m.default));
|
|
138445
138481
|
function decodeRowAcc(row, stride) {
|
|
138446
138482
|
let length2 = row.length - stride;
|
|
138447
138483
|
let offset2 = 0;
|
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-DU_8cT8W.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/heatmap",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.4",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"uuid": "^9.0.0",
|
|
21
21
|
"react-aria": "^3.28.0",
|
|
22
|
-
"@vitessce/styles": "3.6.
|
|
23
|
-
"@vitessce/constants-internal": "3.6.
|
|
24
|
-
"@vitessce/gl": "3.6.
|
|
25
|
-
"@vitessce/legend": "3.6.
|
|
26
|
-
"@vitessce/sets-utils": "3.6.
|
|
27
|
-
"@vitessce/tooltip": "3.6.
|
|
28
|
-
"@vitessce/utils": "3.6.
|
|
29
|
-
"@vitessce/vit-s": "3.6.
|
|
30
|
-
"@vitessce/workers": "3.6.
|
|
22
|
+
"@vitessce/styles": "3.6.4",
|
|
23
|
+
"@vitessce/constants-internal": "3.6.4",
|
|
24
|
+
"@vitessce/gl": "3.6.4",
|
|
25
|
+
"@vitessce/legend": "3.6.4",
|
|
26
|
+
"@vitessce/sets-utils": "3.6.4",
|
|
27
|
+
"@vitessce/tooltip": "3.6.4",
|
|
28
|
+
"@vitessce/utils": "3.6.4",
|
|
29
|
+
"@vitessce/vit-s": "3.6.4",
|
|
30
|
+
"@vitessce/workers": "3.6.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/jest-dom": "^6.6.3",
|