@vitessce/json 3.9.2 → 3.9.3
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-DBGHWmLO.js → deflate-C28--pD_.js} +1 -1
- package/dist/{index-D-9lDyoy.js → index-J0PKutT7.js} +27 -12
- package/dist/index.js +1 -1
- package/dist/{jpeg-D6lzBVpH.js → jpeg-BkNknj82.js} +1 -1
- package/dist/{lerc-CH7-yTFe.js → lerc-DCQhwywO.js} +1 -1
- package/dist/{lzw-Bqw8_gwL.js → lzw-B0fxie31.js} +1 -1
- package/dist/{packbits-BG83n6hr.js → packbits-Dibwx2dV.js} +1 -1
- package/dist/{raw-Dw6hNFOi.js → raw-kLFs8YzW.js} +1 -1
- package/dist/{webimage-D0I5RF8i.js → webimage-DJW01emx.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-J0PKutT7.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -86,6 +86,7 @@ const ViewType$1 = {
|
|
|
86
86
|
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
87
87
|
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
88
88
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
89
|
+
BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
|
|
89
90
|
COMPARATIVE_HEADING: "comparativeHeading",
|
|
90
91
|
LINK_CONTROLLER: "linkController",
|
|
91
92
|
NEUROGLANCER: "neuroglancer",
|
|
@@ -1280,6 +1281,17 @@ const CoordinationType$1 = {
|
|
|
1280
1281
|
CoordinationType$1.OBS_SET_FILTER
|
|
1281
1282
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
1282
1283
|
],
|
|
1284
|
+
[ViewType$1.BIOMARKER_SELECT_ALT]: [
|
|
1285
|
+
CoordinationType$1.DATASET,
|
|
1286
|
+
CoordinationType$1.OBS_TYPE,
|
|
1287
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
1288
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
1289
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
1290
|
+
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
1291
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
1292
|
+
CoordinationType$1.OBS_SET_FILTER
|
|
1293
|
+
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
1294
|
+
],
|
|
1283
1295
|
[ViewType$1.COMPARATIVE_HEADING]: [
|
|
1284
1296
|
CoordinationType$1.DATASET,
|
|
1285
1297
|
CoordinationType$1.OBS_TYPE,
|
|
@@ -10566,6 +10578,9 @@ function get_ctr(data_type) {
|
|
|
10566
10578
|
let [, kind, chars] = match;
|
|
10567
10579
|
return (kind === "U" ? UnicodeStringArray : ByteStringArray).bind(null, Number(chars));
|
|
10568
10580
|
}
|
|
10581
|
+
if (data_type === "string") {
|
|
10582
|
+
return globalThis.Array;
|
|
10583
|
+
}
|
|
10569
10584
|
let ctr = {
|
|
10570
10585
|
int8: Int8Array,
|
|
10571
10586
|
int16: Int16Array,
|
|
@@ -10687,7 +10702,7 @@ function is_dtype(dtype, query) {
|
|
|
10687
10702
|
let is_boolean = dtype === "bool";
|
|
10688
10703
|
if (query === "boolean")
|
|
10689
10704
|
return is_boolean;
|
|
10690
|
-
let is_string = dtype.startsWith("v2:U") || dtype.startsWith("v2:S");
|
|
10705
|
+
let is_string = dtype.startsWith("v2:U") || dtype.startsWith("v2:S") || dtype === "string";
|
|
10691
10706
|
if (query === "string")
|
|
10692
10707
|
return is_string;
|
|
10693
10708
|
let is_bigint = dtype === "int64" || dtype === "uint64";
|
|
@@ -11137,7 +11152,7 @@ async function load_codecs(chunk_meta) {
|
|
|
11137
11152
|
return { array_to_array, array_to_bytes, bytes_to_bytes };
|
|
11138
11153
|
}
|
|
11139
11154
|
function is_typed_array_like_meta(meta) {
|
|
11140
|
-
return meta.data_type !== "v2:object";
|
|
11155
|
+
return meta.data_type !== "v2:object" && meta.data_type !== "string";
|
|
11141
11156
|
}
|
|
11142
11157
|
class NodeNotFoundError extends Error {
|
|
11143
11158
|
constructor(context, options = {}) {
|
|
@@ -11162,7 +11177,7 @@ function create_sharded_chunk_getter(location, shard_shape, encode_shard_key, sh
|
|
|
11162
11177
|
codecs: sharding_config.index_codecs
|
|
11163
11178
|
});
|
|
11164
11179
|
let cache2 = {};
|
|
11165
|
-
return async (chunk_coord) => {
|
|
11180
|
+
return async (chunk_coord, options) => {
|
|
11166
11181
|
let shard_coord = chunk_coord.map((d, i2) => Math.floor(d / index_shape[i2]));
|
|
11167
11182
|
let shard_path = location.resolve(encode_shard_key(shard_coord)).path;
|
|
11168
11183
|
let index2;
|
|
@@ -11173,7 +11188,7 @@ function create_sharded_chunk_getter(location, shard_shape, encode_shard_key, sh
|
|
|
11173
11188
|
let index_size = 16 * index_shape.reduce((a2, b) => a2 * b, 1);
|
|
11174
11189
|
let bytes = await get_range(shard_path, {
|
|
11175
11190
|
suffixLength: index_size + checksum_size
|
|
11176
|
-
});
|
|
11191
|
+
}, options);
|
|
11177
11192
|
index2 = cache2[shard_path] = bytes ? await index_codec.decode(bytes) : null;
|
|
11178
11193
|
}
|
|
11179
11194
|
if (index2 === null) {
|
|
@@ -11189,7 +11204,7 @@ function create_sharded_chunk_getter(location, shard_shape, encode_shard_key, sh
|
|
|
11189
11204
|
return get_range(shard_path, {
|
|
11190
11205
|
offset: Number(offset),
|
|
11191
11206
|
length: Number(length2)
|
|
11192
|
-
});
|
|
11207
|
+
}, options);
|
|
11193
11208
|
};
|
|
11194
11209
|
}
|
|
11195
11210
|
var _a$3;
|
|
@@ -138921,22 +138936,22 @@ async function getDecoder(fileDirectory) {
|
|
|
138921
138936
|
const Decoder = await importFn();
|
|
138922
138937
|
return new Decoder(fileDirectory);
|
|
138923
138938
|
}
|
|
138924
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
138925
|
-
addDecoder(5, () => import("./lzw-
|
|
138939
|
+
addDecoder([void 0, 1], () => import("./raw-kLFs8YzW.js").then((m) => m.default));
|
|
138940
|
+
addDecoder(5, () => import("./lzw-B0fxie31.js").then((m) => m.default));
|
|
138926
138941
|
addDecoder(6, () => {
|
|
138927
138942
|
throw new Error("old style JPEG compression is not supported.");
|
|
138928
138943
|
});
|
|
138929
|
-
addDecoder(7, () => import("./jpeg-
|
|
138930
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
138931
|
-
addDecoder(32773, () => import("./packbits-
|
|
138944
|
+
addDecoder(7, () => import("./jpeg-BkNknj82.js").then((m) => m.default));
|
|
138945
|
+
addDecoder([8, 32946], () => import("./deflate-C28--pD_.js").then((m) => m.default));
|
|
138946
|
+
addDecoder(32773, () => import("./packbits-Dibwx2dV.js").then((m) => m.default));
|
|
138932
138947
|
addDecoder(
|
|
138933
138948
|
34887,
|
|
138934
|
-
() => import("./lerc-
|
|
138949
|
+
() => import("./lerc-DCQhwywO.js").then(async (m) => {
|
|
138935
138950
|
await m.zstd.init();
|
|
138936
138951
|
return m;
|
|
138937
138952
|
}).then((m) => m.default)
|
|
138938
138953
|
);
|
|
138939
|
-
addDecoder(50001, () => import("./webimage-
|
|
138954
|
+
addDecoder(50001, () => import("./webimage-DJW01emx.js").then((m) => m.default));
|
|
138940
138955
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
138941
138956
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
138942
138957
|
}
|
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-J0PKutT7.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.9.
|
|
3
|
+
"version": "3.9.3",
|
|
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.
|
|
21
|
+
"zarrita": "0.6.1",
|
|
22
22
|
"zod": "^3.21.4",
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/globals": "3.9.
|
|
26
|
-
"@vitessce/schemas": "3.9.
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
31
|
-
"@vitessce/error": "3.9.
|
|
32
|
-
"@vitessce/
|
|
33
|
-
"@vitessce/
|
|
23
|
+
"@vitessce/gl": "3.9.3",
|
|
24
|
+
"@vitessce/constants-internal": "3.9.3",
|
|
25
|
+
"@vitessce/globals": "3.9.3",
|
|
26
|
+
"@vitessce/schemas": "3.9.3",
|
|
27
|
+
"@vitessce/sets-utils": "3.9.3",
|
|
28
|
+
"@vitessce/spatial-utils": "3.9.3",
|
|
29
|
+
"@vitessce/abstract": "3.9.3",
|
|
30
|
+
"@vitessce/utils": "3.9.3",
|
|
31
|
+
"@vitessce/error": "3.9.3",
|
|
32
|
+
"@vitessce/zarr-utils": "3.9.3",
|
|
33
|
+
"@vitessce/config": "3.9.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|