@vitessce/json 3.8.1 → 3.8.2
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-DtzGaP17.js → deflate-wbIJjQvn.js} +1 -1
- package/dist/{index-CapS2RSL.js → index-C5QAFO8r.js} +24 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-BL8_21rL.js → jpeg-BZFSrYFl.js} +1 -1
- package/dist/{lerc-BQ84sPs1.js → lerc-CsaFLvsz.js} +1 -1
- package/dist/{lzw-Dla9hala.js → lzw-9SxeqSou.js} +1 -1
- package/dist/{packbits-Dk6_Ha38.js → packbits-BRvtT912.js} +1 -1
- package/dist/{raw-DEF4NOH4.js → raw-C2jlWuRY.js} +1 -1
- package/dist/{webimage-DP87mugq.js → webimage-MhonL167.js} +1 -1
- package/package.json +13 -13
|
@@ -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-C5QAFO8r.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -227,6 +227,9 @@ const FileType$1 = {
|
|
|
227
227
|
OBS_SEGMENTATIONS_OME_TIFF: "obsSegmentations.ome-tiff",
|
|
228
228
|
// GLB
|
|
229
229
|
OBS_SEGMENTATIONS_GLB: "obsSegmentations.glb",
|
|
230
|
+
// Neuroglancer
|
|
231
|
+
// Precomputed (mesh) format
|
|
232
|
+
OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
|
|
230
233
|
// New file types to support old file types:
|
|
231
234
|
// - cells.json
|
|
232
235
|
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
@@ -451,6 +454,7 @@ const CoordinationType$1 = {
|
|
|
451
454
|
[FileType$1.OBS_LABELS_MUDATA_ZARR]: DataType$2.OBS_LABELS,
|
|
452
455
|
[FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$2.FEATURE_LABELS,
|
|
453
456
|
[FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
|
|
457
|
+
[FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
|
|
454
458
|
[FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
|
|
455
459
|
[FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
|
|
456
460
|
[FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
|
|
@@ -9981,6 +9985,18 @@ z.object({
|
|
|
9981
9985
|
sceneScaleZ: z.number(),
|
|
9982
9986
|
materialSide: z.enum(["front", "back"])
|
|
9983
9987
|
}).partial().nullable();
|
|
9988
|
+
z.object({
|
|
9989
|
+
// TODO: Should this explicitly specify sharded vs. unsharded?
|
|
9990
|
+
// Or can/should that be inferred from the data?
|
|
9991
|
+
dimensionX: z.number(),
|
|
9992
|
+
dimensionY: z.number(),
|
|
9993
|
+
dimensionZ: z.number(),
|
|
9994
|
+
dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
|
|
9995
|
+
// TODO: should the following be passed via coordination types instead?
|
|
9996
|
+
projectionScale: z.number(),
|
|
9997
|
+
position: z.array(z.number()).length(3),
|
|
9998
|
+
projectionOrientation: z.array(z.number()).length(4)
|
|
9999
|
+
}).partial().nullable();
|
|
9984
10000
|
z.object({
|
|
9985
10001
|
obsIndex: z.string(),
|
|
9986
10002
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -137094,22 +137110,22 @@ async function getDecoder(fileDirectory) {
|
|
|
137094
137110
|
const Decoder = await importFn();
|
|
137095
137111
|
return new Decoder(fileDirectory);
|
|
137096
137112
|
}
|
|
137097
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
137098
|
-
addDecoder(5, () => import("./lzw-
|
|
137113
|
+
addDecoder([void 0, 1], () => import("./raw-C2jlWuRY.js").then((m) => m.default));
|
|
137114
|
+
addDecoder(5, () => import("./lzw-9SxeqSou.js").then((m) => m.default));
|
|
137099
137115
|
addDecoder(6, () => {
|
|
137100
137116
|
throw new Error("old style JPEG compression is not supported.");
|
|
137101
137117
|
});
|
|
137102
|
-
addDecoder(7, () => import("./jpeg-
|
|
137103
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
137104
|
-
addDecoder(32773, () => import("./packbits-
|
|
137118
|
+
addDecoder(7, () => import("./jpeg-BZFSrYFl.js").then((m) => m.default));
|
|
137119
|
+
addDecoder([8, 32946], () => import("./deflate-wbIJjQvn.js").then((m) => m.default));
|
|
137120
|
+
addDecoder(32773, () => import("./packbits-BRvtT912.js").then((m) => m.default));
|
|
137105
137121
|
addDecoder(
|
|
137106
137122
|
34887,
|
|
137107
|
-
() => import("./lerc-
|
|
137123
|
+
() => import("./lerc-CsaFLvsz.js").then(async (m) => {
|
|
137108
137124
|
await m.zstd.init();
|
|
137109
137125
|
return m;
|
|
137110
137126
|
}).then((m) => m.default)
|
|
137111
137127
|
);
|
|
137112
|
-
addDecoder(50001, () => import("./webimage-
|
|
137128
|
+
addDecoder(50001, () => import("./webimage-MhonL167.js").then((m) => m.default));
|
|
137113
137129
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
137114
137130
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
137115
137131
|
}
|
|
@@ -155072,7 +155088,7 @@ class Location {
|
|
|
155072
155088
|
}
|
|
155073
155089
|
resolve(path) {
|
|
155074
155090
|
let root2 = new URL(`file://${this.path.endsWith("/") ? this.path : `${this.path}/`}`);
|
|
155075
|
-
return new Location(this.store, new URL(path, root2).pathname);
|
|
155091
|
+
return new Location(this.store, decodeURIComponent(new URL(path, root2).pathname));
|
|
155076
155092
|
}
|
|
155077
155093
|
}
|
|
155078
155094
|
function root(store) {
|
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-C5QAFO8r.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.8.
|
|
3
|
+
"version": "3.8.2",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
|
-
"zarrita": "0.5.
|
|
21
|
+
"zarrita": "0.5.4",
|
|
22
22
|
"zod": "^3.21.4",
|
|
23
|
-
"@vitessce/constants-internal": "3.8.
|
|
24
|
-
"@vitessce/gl": "3.8.
|
|
25
|
-
"@vitessce/globals": "3.8.
|
|
26
|
-
"@vitessce/schemas": "3.8.
|
|
27
|
-
"@vitessce/sets-utils": "3.8.
|
|
28
|
-
"@vitessce/spatial-utils": "3.8.
|
|
29
|
-
"@vitessce/utils": "3.8.
|
|
30
|
-
"@vitessce/abstract": "3.8.
|
|
31
|
-
"@vitessce/error": "3.8.
|
|
32
|
-
"@vitessce/zarr-utils": "3.8.
|
|
33
|
-
"@vitessce/config": "3.8.
|
|
23
|
+
"@vitessce/constants-internal": "3.8.2",
|
|
24
|
+
"@vitessce/gl": "3.8.2",
|
|
25
|
+
"@vitessce/globals": "3.8.2",
|
|
26
|
+
"@vitessce/schemas": "3.8.2",
|
|
27
|
+
"@vitessce/sets-utils": "3.8.2",
|
|
28
|
+
"@vitessce/spatial-utils": "3.8.2",
|
|
29
|
+
"@vitessce/utils": "3.8.2",
|
|
30
|
+
"@vitessce/abstract": "3.8.2",
|
|
31
|
+
"@vitessce/error": "3.8.2",
|
|
32
|
+
"@vitessce/zarr-utils": "3.8.2",
|
|
33
|
+
"@vitessce/config": "3.8.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|