@vitessce/json 3.6.12 → 3.6.14
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-BB-_i4AV.js → deflate-RA5GBsWY.js} +1 -1
- package/dist/{index-Dk8azeqY.js → index-C7YXFoIv.js} +25 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-CgKC8pvg.js → jpeg-BQGtNkBb.js} +1 -1
- package/dist/{lerc-DHkuo7TO.js → lerc-FyRDMldG.js} +1 -1
- package/dist/{lzw-CT-xPuVt.js → lzw-D5xWNXHf.js} +1 -1
- package/dist/{packbits-CxU7_ENa.js → packbits-C7fkYHsO.js} +1 -1
- package/dist/{raw-BkEHccvG.js → raw-BT28vB2m.js} +1 -1
- package/dist/{webimage-BsYePjn2.js → webimage-A55WzWd4.js} +1 -1
- package/package.json +12 -12
|
@@ -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-C7YXFoIv.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -210,6 +210,7 @@ const FileType$1 = {
|
|
|
210
210
|
OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
|
|
211
211
|
FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
|
|
212
212
|
OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
|
|
213
|
+
OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
|
|
213
214
|
// SpatialData - zipped
|
|
214
215
|
IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
|
|
215
216
|
LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
|
|
@@ -219,6 +220,7 @@ const FileType$1 = {
|
|
|
219
220
|
OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
|
|
220
221
|
FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
|
|
221
222
|
OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
|
|
223
|
+
OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
|
|
222
224
|
// MuData
|
|
223
225
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
224
226
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -466,6 +468,7 @@ const CoordinationType$1 = {
|
|
|
466
468
|
[FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$2.OBS_SETS,
|
|
467
469
|
[FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$2.FEATURE_LABELS,
|
|
468
470
|
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$2.OBS_POINTS,
|
|
471
|
+
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$2.OBS_EMBEDDING,
|
|
469
472
|
// For new file types to support old file types
|
|
470
473
|
[FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$2.OBS_EMBEDDING,
|
|
471
474
|
[FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$2.OBS_LOCATIONS,
|
|
@@ -642,6 +645,9 @@ const CoordinationType$1 = {
|
|
|
642
645
|
},
|
|
643
646
|
[FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
|
|
644
647
|
zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
|
|
648
|
+
},
|
|
649
|
+
[FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
|
|
650
|
+
zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
|
|
645
651
|
}
|
|
646
652
|
});
|
|
647
653
|
[
|
|
@@ -9956,6 +9962,16 @@ const obsSetsSpatialdataSchema = z.object({
|
|
|
9956
9962
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
9957
9963
|
obsSets: annDataObsSetsArr
|
|
9958
9964
|
});
|
|
9965
|
+
annDataObsEmbedding.extend({
|
|
9966
|
+
// We extend anndataObsEmbedding which already has properties like `dims` and `path`.
|
|
9967
|
+
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
9968
|
+
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
|
|
9969
|
+
});
|
|
9970
|
+
const obsEmbeddingSpatialdataSchemaConvenience = z.union([
|
|
9971
|
+
annDataObsEmbedding,
|
|
9972
|
+
// For convenience, allow an array of items with `embeddingType` properties.
|
|
9973
|
+
z.array(annDataConvenienceObsEmbeddingItem)
|
|
9974
|
+
]);
|
|
9959
9975
|
z.object({
|
|
9960
9976
|
targetX: z.number(),
|
|
9961
9977
|
targetY: z.number(),
|
|
@@ -10064,9 +10080,10 @@ z.object({
|
|
|
10064
10080
|
// TODO: obsPoints
|
|
10065
10081
|
// TODO: obsLocations
|
|
10066
10082
|
obsSets: obsSetsSpatialdataSchema,
|
|
10067
|
-
|
|
10083
|
+
obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
|
|
10068
10084
|
// TODO: obsLabels
|
|
10069
10085
|
// TODO: featureLabels
|
|
10086
|
+
// TODO: allow specifying tablePath and region at the top-level here.
|
|
10070
10087
|
coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
|
|
10071
10088
|
}).partial();
|
|
10072
10089
|
z.object({
|
|
@@ -137096,22 +137113,22 @@ async function getDecoder(fileDirectory) {
|
|
|
137096
137113
|
const Decoder = await importFn();
|
|
137097
137114
|
return new Decoder(fileDirectory);
|
|
137098
137115
|
}
|
|
137099
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
137100
|
-
addDecoder(5, () => import("./lzw-
|
|
137116
|
+
addDecoder([void 0, 1], () => import("./raw-BT28vB2m.js").then((m) => m.default));
|
|
137117
|
+
addDecoder(5, () => import("./lzw-D5xWNXHf.js").then((m) => m.default));
|
|
137101
137118
|
addDecoder(6, () => {
|
|
137102
137119
|
throw new Error("old style JPEG compression is not supported.");
|
|
137103
137120
|
});
|
|
137104
|
-
addDecoder(7, () => import("./jpeg-
|
|
137105
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
137106
|
-
addDecoder(32773, () => import("./packbits-
|
|
137121
|
+
addDecoder(7, () => import("./jpeg-BQGtNkBb.js").then((m) => m.default));
|
|
137122
|
+
addDecoder([8, 32946], () => import("./deflate-RA5GBsWY.js").then((m) => m.default));
|
|
137123
|
+
addDecoder(32773, () => import("./packbits-C7fkYHsO.js").then((m) => m.default));
|
|
137107
137124
|
addDecoder(
|
|
137108
137125
|
34887,
|
|
137109
|
-
() => import("./lerc-
|
|
137126
|
+
() => import("./lerc-FyRDMldG.js").then(async (m) => {
|
|
137110
137127
|
await m.zstd.init();
|
|
137111
137128
|
return m;
|
|
137112
137129
|
}).then((m) => m.default)
|
|
137113
137130
|
);
|
|
137114
|
-
addDecoder(50001, () => import("./webimage-
|
|
137131
|
+
addDecoder(50001, () => import("./webimage-A55WzWd4.js").then((m) => m.default));
|
|
137115
137132
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
137116
137133
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
137117
137134
|
}
|
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, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-C7YXFoIv.js";
|
|
3
3
|
var LercDecode = { exports: {} };
|
|
4
4
|
var hasRequiredLercDecode;
|
|
5
5
|
function requireLercDecode() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/json",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.14",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"zarrita": "0.5.2",
|
|
22
22
|
"zod": "^3.21.4",
|
|
23
|
-
"@vitessce/constants-internal": "3.6.
|
|
24
|
-
"@vitessce/gl": "3.6.
|
|
25
|
-
"@vitessce/globals": "3.6.
|
|
26
|
-
"@vitessce/schemas": "3.6.
|
|
27
|
-
"@vitessce/sets-utils": "3.6.
|
|
28
|
-
"@vitessce/spatial-utils": "3.6.
|
|
29
|
-
"@vitessce/utils": "3.6.
|
|
30
|
-
"@vitessce/abstract": "3.6.
|
|
31
|
-
"@vitessce/error": "3.6.
|
|
32
|
-
"@vitessce/zarr-utils": "3.6.
|
|
33
|
-
"@vitessce/config": "3.6.
|
|
23
|
+
"@vitessce/constants-internal": "3.6.14",
|
|
24
|
+
"@vitessce/gl": "3.6.14",
|
|
25
|
+
"@vitessce/globals": "3.6.14",
|
|
26
|
+
"@vitessce/schemas": "3.6.14",
|
|
27
|
+
"@vitessce/sets-utils": "3.6.14",
|
|
28
|
+
"@vitessce/spatial-utils": "3.6.14",
|
|
29
|
+
"@vitessce/utils": "3.6.14",
|
|
30
|
+
"@vitessce/abstract": "3.6.14",
|
|
31
|
+
"@vitessce/error": "3.6.14",
|
|
32
|
+
"@vitessce/zarr-utils": "3.6.14",
|
|
33
|
+
"@vitessce/config": "3.6.14"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|