@vitessce/spatial-utils 3.9.1 → 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-17wEy8YO.js → deflate-BCS26n3C.js} +1 -1
- package/dist/{index-DNsBrv1H.js → index-Dp7z3eFU.js} +15 -12
- package/dist/index.js +1 -1
- package/dist/{jpeg-xJ6Umj-K.js → jpeg-D0pcgCKy.js} +1 -1
- package/dist/{lerc-ZPzZ-TED.js → lerc-BHh6dW9L.js} +1 -1
- package/dist/{lzw-DDMDpaDH.js → lzw-4pgnm1Eb.js} +1 -1
- package/dist/{packbits-ChA5ROs-.js → packbits-Qp-2JQzP.js} +1 -1
- package/dist/{raw-BSNdYeN5.js → raw-Dz5RhSxu.js} +1 -1
- package/dist/{webimage-DJbgtHMf.js → webimage-C7H_-PrH.js} +1 -1
- package/package.json +8 -8
|
@@ -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-Dp7z3eFU.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -120380,22 +120380,22 @@ function addDecoder(cases, importFn) {
|
|
|
120380
120380
|
}
|
|
120381
120381
|
cases.forEach((c) => registry$2.set(c, importFn));
|
|
120382
120382
|
}
|
|
120383
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
120384
|
-
addDecoder(5, () => import("./lzw-
|
|
120383
|
+
addDecoder([void 0, 1], () => import("./raw-Dz5RhSxu.js").then((m) => m.default));
|
|
120384
|
+
addDecoder(5, () => import("./lzw-4pgnm1Eb.js").then((m) => m.default));
|
|
120385
120385
|
addDecoder(6, () => {
|
|
120386
120386
|
throw new Error("old style JPEG compression is not supported.");
|
|
120387
120387
|
});
|
|
120388
|
-
addDecoder(7, () => import("./jpeg-
|
|
120389
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
120390
|
-
addDecoder(32773, () => import("./packbits-
|
|
120388
|
+
addDecoder(7, () => import("./jpeg-D0pcgCKy.js").then((m) => m.default));
|
|
120389
|
+
addDecoder([8, 32946], () => import("./deflate-BCS26n3C.js").then((m) => m.default));
|
|
120390
|
+
addDecoder(32773, () => import("./packbits-Qp-2JQzP.js").then((m) => m.default));
|
|
120391
120391
|
addDecoder(
|
|
120392
120392
|
34887,
|
|
120393
|
-
() => import("./lerc-
|
|
120393
|
+
() => import("./lerc-BHh6dW9L.js").then(async (m) => {
|
|
120394
120394
|
await m.zstd.init();
|
|
120395
120395
|
return m;
|
|
120396
120396
|
}).then((m) => m.default)
|
|
120397
120397
|
);
|
|
120398
|
-
addDecoder(50001, () => import("./webimage-
|
|
120398
|
+
addDecoder(50001, () => import("./webimage-C7H_-PrH.js").then((m) => m.default));
|
|
120399
120399
|
function decodeRowAcc(row, stride) {
|
|
120400
120400
|
let length2 = row.length - stride;
|
|
120401
120401
|
let offset = 0;
|
|
@@ -138437,6 +138437,9 @@ function get_ctr(data_type) {
|
|
|
138437
138437
|
let [, kind, chars] = match;
|
|
138438
138438
|
return (kind === "U" ? UnicodeStringArray : ByteStringArray).bind(null, Number(chars));
|
|
138439
138439
|
}
|
|
138440
|
+
if (data_type === "string") {
|
|
138441
|
+
return globalThis.Array;
|
|
138442
|
+
}
|
|
138440
138443
|
let ctr = {
|
|
138441
138444
|
int8: Int8Array,
|
|
138442
138445
|
int16: Int16Array,
|
|
@@ -138558,7 +138561,7 @@ function is_dtype(dtype, query) {
|
|
|
138558
138561
|
let is_boolean = dtype === "bool";
|
|
138559
138562
|
if (query === "boolean")
|
|
138560
138563
|
return is_boolean;
|
|
138561
|
-
let is_string = dtype.startsWith("v2:U") || dtype.startsWith("v2:S");
|
|
138564
|
+
let is_string = dtype.startsWith("v2:U") || dtype.startsWith("v2:S") || dtype === "string";
|
|
138562
138565
|
if (query === "string")
|
|
138563
138566
|
return is_string;
|
|
138564
138567
|
let is_bigint = dtype === "int64" || dtype === "uint64";
|
|
@@ -139008,7 +139011,7 @@ async function load_codecs(chunk_meta) {
|
|
|
139008
139011
|
return { array_to_array, array_to_bytes, bytes_to_bytes };
|
|
139009
139012
|
}
|
|
139010
139013
|
function is_typed_array_like_meta(meta) {
|
|
139011
|
-
return meta.data_type !== "v2:object";
|
|
139014
|
+
return meta.data_type !== "v2:object" && meta.data_type !== "string";
|
|
139012
139015
|
}
|
|
139013
139016
|
class NodeNotFoundError extends Error {
|
|
139014
139017
|
constructor(context, options = {}) {
|
|
@@ -139033,7 +139036,7 @@ function create_sharded_chunk_getter(location, shard_shape, encode_shard_key, sh
|
|
|
139033
139036
|
codecs: sharding_config.index_codecs
|
|
139034
139037
|
});
|
|
139035
139038
|
let cache2 = {};
|
|
139036
|
-
return async (chunk_coord) => {
|
|
139039
|
+
return async (chunk_coord, options) => {
|
|
139037
139040
|
let shard_coord = chunk_coord.map((d, i2) => Math.floor(d / index_shape[i2]));
|
|
139038
139041
|
let shard_path = location.resolve(encode_shard_key(shard_coord)).path;
|
|
139039
139042
|
let index2;
|
|
@@ -139044,7 +139047,7 @@ function create_sharded_chunk_getter(location, shard_shape, encode_shard_key, sh
|
|
|
139044
139047
|
let index_size = 16 * index_shape.reduce((a2, b) => a2 * b, 1);
|
|
139045
139048
|
let bytes = await get_range(shard_path, {
|
|
139046
139049
|
suffixLength: index_size + checksum_size
|
|
139047
|
-
});
|
|
139050
|
+
}, options);
|
|
139048
139051
|
index2 = cache2[shard_path] = bytes ? await index_codec.decode(bytes) : null;
|
|
139049
139052
|
}
|
|
139050
139053
|
if (index2 === null) {
|
|
@@ -139060,7 +139063,7 @@ function create_sharded_chunk_getter(location, shard_shape, encode_shard_key, sh
|
|
|
139060
139063
|
return get_range(shard_path, {
|
|
139061
139064
|
offset: Number(offset),
|
|
139062
139065
|
length: Number(length2)
|
|
139063
|
-
});
|
|
139066
|
+
}, options);
|
|
139064
139067
|
};
|
|
139065
139068
|
}
|
|
139066
139069
|
var _a;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, e, a, b, c, d, H, G, Z, E, s, n, o, F, C, z, l, m, A, y, h, r, w, q, i, f, j, k, v, u, t, p, x } from "./index-
|
|
1
|
+
import { D, e, a, b, c, d, H, G, Z, E, s, n, o, F, C, z, l, m, A, y, h, r, w, q, i, f, j, k, v, u, t, p, x } from "./index-Dp7z3eFU.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEFAULT_CELLS_LAYER,
|
|
4
4
|
e as DEFAULT_LAYER_TYPE_ORDERING,
|
|
@@ -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-Dp7z3eFU.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/spatial-utils",
|
|
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": {
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
|
-
"zarrita": "0.
|
|
20
|
+
"zarrita": "0.6.1",
|
|
21
21
|
"math.gl": "^3.5.6",
|
|
22
22
|
"mathjs": "^9.2.0",
|
|
23
23
|
"internmap": "^2.0.3",
|
|
24
|
-
"@vitessce/gl": "3.9.
|
|
25
|
-
"@vitessce/utils": "3.9.
|
|
26
|
-
"@vitessce/zarr-utils": "3.9.
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/error": "3.9.
|
|
29
|
-
"@vitessce/
|
|
24
|
+
"@vitessce/gl": "3.9.3",
|
|
25
|
+
"@vitessce/utils": "3.9.3",
|
|
26
|
+
"@vitessce/zarr-utils": "3.9.3",
|
|
27
|
+
"@vitessce/globals": "3.9.3",
|
|
28
|
+
"@vitessce/error": "3.9.3",
|
|
29
|
+
"@vitessce/constants-internal": "3.9.3"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|