@vitessce/dev 3.6.3 → 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/{ReactNeuroglancer-C7DHxNu8.js → ReactNeuroglancer-CV9SuARm.js} +1 -1
- package/dist/{deflate-LpgdLJ_w.js → deflate-BH89BV2F.js} +1 -1
- package/dist/{higlass-Dg7XuBGc.js → higlass-BwbSBxlY.js} +1 -1
- package/dist/{index-Dj2BYFIJ.js → index-B--lkeso.js} +236 -59
- package/dist/{index-Dq7p_t2F.js → index-C-3f0qqX.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{jpeg-CYH8Tz1R.js → jpeg-CctBgn1e.js} +1 -1
- package/dist/{lerc-BA5MYoOI.js → lerc-nGpkS5Hk.js} +1 -1
- package/dist/{lzw-CPWYNgqD.js → lzw-urIPTB6p.js} +1 -1
- package/dist/{packbits-Dmspv_T_.js → packbits-Cc7yAbnA.js} +1 -1
- package/dist/{raw-Bly_E_ye.js → raw-KsQbcEj3.js} +1 -1
- package/dist/{troika-three-text.esm-C_JyNXyh.js → troika-three-text.esm-aZI9D2Jx.js} +1 -1
- package/dist/{webimage-DcYrmJZv.js → webimage-EhWdNlXX.js} +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, aV as requireAssign, aW as require_export, aX as require_core, aY as require_fails, aZ as require_toObject, a_ as require_objectKeys, a$ as require_cof, b0 as require_wks, b1 as require_iterators, b2 as requireWeb_dom_iterable, b3 as requireEs6_string_iterator, b4 as require_anObject, b5 as require_hide, b6 as require_ctx, b7 as require_toLength, b8 as require_global, b9 as require_objectDp, ba as require_descriptors, bb as require_isObject, bc as require_objectCreate, bd as require_iterDefine, be as require_iterStep, bf as require_meta, bg as require_isArray, bh as require_iobject, bi as require_setToStringTag, bj as require_aFunction, bk as requireIterator, bl as require_propertyDesc, bm as require_root, bn as require_baseGetTag, bo as requireIsObjectLike, bp as requireIsObject, bq as requireEs6_symbol, br as requireDefineProperty, bs as require_toIobject, bt as require_objectGopd, bu as require_html, bv as require_domCreate, bw as require_library, bx as requireSymbol, by as require_objectPie, bz as require_has, bA as require_redefine, bB as require_objectAssign, bC as getAugmentedNamespace, bD as requirePropTypes, aI as jsxRuntimeExports } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, aV as requireAssign, aW as require_export, aX as require_core, aY as require_fails, aZ as require_toObject, a_ as require_objectKeys, a$ as require_cof, b0 as require_wks, b1 as require_iterators, b2 as requireWeb_dom_iterable, b3 as requireEs6_string_iterator, b4 as require_anObject, b5 as require_hide, b6 as require_ctx, b7 as require_toLength, b8 as require_global, b9 as require_objectDp, ba as require_descriptors, bb as require_isObject, bc as require_objectCreate, bd as require_iterDefine, be as require_iterStep, bf as require_meta, bg as require_isArray, bh as require_iobject, bi as require_setToStringTag, bj as require_aFunction, bk as requireIterator, bl as require_propertyDesc, bm as require_root, bn as require_baseGetTag, bo as requireIsObjectLike, bp as requireIsObject, bq as requireEs6_symbol, br as requireDefineProperty, bs as require_toIobject, bt as require_objectGopd, bu as require_html, bv as require_domCreate, bw as require_library, bx as requireSymbol, by as require_objectPie, bz as require_has, bA as require_redefine, bB as require_objectAssign, bC as getAugmentedNamespace, bD as requirePropTypes, aI as jsxRuntimeExports } from "./index-B--lkeso.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
var lib = {};
|
|
4
4
|
var assignExports = requireAssign();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { aP as BaseDecoder } from "./index-
|
|
2
|
+
import { aP as BaseDecoder } from "./index-B--lkeso.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { createElement, isValidElement, PureComponent, Component } from "react";
|
|
2
2
|
import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
|
|
3
|
-
import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-
|
|
3
|
+
import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-B--lkeso.js";
|
|
4
4
|
var promise = {};
|
|
5
5
|
var hasRequiredPromise;
|
|
6
6
|
function requirePromise() {
|
|
@@ -17,7 +17,7 @@ var __privateWrapper = (obj, member, setter2, getter2) => ({
|
|
|
17
17
|
return __privateGet(obj, member, getter2);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
var _focused, _cleanup, _setup, _a2, _online, _cleanup2, _setup2, _b2, _gcTimeout, _c2, _initialState, _revertState, _cache2, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f3, _mutations, _scopes, _mutationId, _g2, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h2, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i, _client3, _result, _queries2, _options, _observers2, _combinedResult, _lastCombine, _lastResult, _observerMatches, _QueriesObserver_instances, trackResult_fn, combineResult_fn, findMatchingObservers_fn, onUpdate_fn, notify_fn2, _j2, _k2, _l2, _bytes, _m, _encoder, _n, _data, _o, _stride, _TypedArray, _BYTES_PER_ELEMENT, _shape, _endian, _p, _encoder_config, _decoder_config, _q, _order, _inverseOrder, _r, _shape2, _strides, _s, _metadata, _t, _u2, _v4, _metadata2, _w, _overrides, _use_suffix_request, _FetchStore_instances, merge_init_fn, _overrides2, _refs, _opts, _overrides3, _bytes2, _encoder2, _data2, _strides2, _TypedArray2, _BYTES_PER_ELEMENT2, _shape3, _endian2, _encoder_config2, _decoder_config2, _shape4, _strides3, _metadata3,
|
|
20
|
+
var _focused, _cleanup, _setup, _a2, _online, _cleanup2, _setup2, _b2, _gcTimeout, _c2, _initialState, _revertState, _cache2, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f3, _mutations, _scopes, _mutationId, _g2, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h2, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i, _client3, _result, _queries2, _options, _observers2, _combinedResult, _lastCombine, _lastResult, _observerMatches, _QueriesObserver_instances, trackResult_fn, combineResult_fn, findMatchingObservers_fn, onUpdate_fn, notify_fn2, _j2, _k2, _l2, _bytes, _m, _encoder, _n, _data, _o, _stride, _TypedArray, _BYTES_PER_ELEMENT, _shape, _endian, _p, _encoder_config, _decoder_config, _q, _order, _inverseOrder, _r, _shape2, _strides, _s, _metadata, _t, _u2, _v4, _metadata2, _w, _overrides, _use_suffix_request, _FetchStore_instances, merge_init_fn, _x, _overrides2, _refs, _opts, _overrides3, _bytes2, _encoder2, _data2, _strides2, _TypedArray2, _BYTES_PER_ELEMENT2, _shape3, _endian2, _encoder_config2, _decoder_config2, _shape4, _strides3, _metadata3, _y, _z2, _A, _metadata4, _B, _overrides4, _use_suffix_request2, _FetchStore_instances2, merge_init_fn2;
|
|
21
21
|
import * as React from "react";
|
|
22
22
|
import React__default, { useContext, forwardRef as forwardRef$1, useRef, useMemo as useMemo$1, createContext, createElement, isValidElement, cloneElement, Children, useCallback, Component as Component$1, useState, useEffect, useLayoutEffect as useLayoutEffect$1, version as version$7, useImperativeHandle, PureComponent, Suspense, useReducer } from "react";
|
|
23
23
|
import * as ReactDOM from "react-dom";
|
|
@@ -107,6 +107,7 @@ const FileType$2 = {
|
|
|
107
107
|
ANNDATA_ZARR_ZIP: "anndata.zarr.zip",
|
|
108
108
|
ANNDATA_H5AD: "anndata.h5ad",
|
|
109
109
|
SPATIALDATA_ZARR: "spatialdata.zarr",
|
|
110
|
+
SPATIALDATA_ZARR_ZIP: "spatialdata.zarr.zip",
|
|
110
111
|
// Atomic file types
|
|
111
112
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
112
113
|
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
@@ -187,6 +188,14 @@ const FileType$2 = {
|
|
|
187
188
|
// TODO:
|
|
188
189
|
// OBS_POINTS_SPATIALDATA_ZARR: 'obsPoints.spatialdata.zarr',
|
|
189
190
|
// OBS_LOCATIONS_SPATIALDATA_ZARR: 'obsLocations.spatialdata.zarr',
|
|
191
|
+
// SpatialData - zipped
|
|
192
|
+
IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
|
|
193
|
+
LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
|
|
194
|
+
SHAPES_SPATIALDATA_ZARR_ZIP: "shapes.spatialdata.zarr.zip",
|
|
195
|
+
OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP: "obsFeatureMatrix.spatialdata.zarr.zip",
|
|
196
|
+
OBS_SETS_SPATIALDATA_ZARR_ZIP: "obsSets.spatialdata.zarr.zip",
|
|
197
|
+
OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
|
|
198
|
+
FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
|
|
190
199
|
// MuData
|
|
191
200
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
192
201
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
@@ -616,6 +625,28 @@ const ALT_ZARR_STORE_TYPES = {
|
|
|
616
625
|
},
|
|
617
626
|
[FileType$2.OBS_SEGMENTATIONS_OME_ZARR]: {
|
|
618
627
|
zip: FileType$2.OBS_SEGMENTATIONS_OME_ZARR_ZIP
|
|
628
|
+
},
|
|
629
|
+
// For SpatialData:
|
|
630
|
+
[FileType$2.IMAGE_SPATIALDATA_ZARR]: {
|
|
631
|
+
zip: FileType$2.IMAGE_SPATIALDATA_ZARR_ZIP
|
|
632
|
+
},
|
|
633
|
+
[FileType$2.LABELS_SPATIALDATA_ZARR]: {
|
|
634
|
+
zip: FileType$2.LABELS_SPATIALDATA_ZARR_ZIP
|
|
635
|
+
},
|
|
636
|
+
[FileType$2.SHAPES_SPATIALDATA_ZARR]: {
|
|
637
|
+
zip: FileType$2.SHAPES_SPATIALDATA_ZARR_ZIP
|
|
638
|
+
},
|
|
639
|
+
[FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR]: {
|
|
640
|
+
zip: FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR_ZIP
|
|
641
|
+
},
|
|
642
|
+
[FileType$2.OBS_SETS_SPATIALDATA_ZARR]: {
|
|
643
|
+
zip: FileType$2.OBS_SETS_SPATIALDATA_ZARR_ZIP
|
|
644
|
+
},
|
|
645
|
+
[FileType$2.OBS_SPOTS_SPATIALDATA_ZARR]: {
|
|
646
|
+
zip: FileType$2.OBS_SPOTS_SPATIALDATA_ZARR_ZIP
|
|
647
|
+
},
|
|
648
|
+
[FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR]: {
|
|
649
|
+
zip: FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR_ZIP
|
|
619
650
|
}
|
|
620
651
|
};
|
|
621
652
|
const AUTO_INDEPENDENT_COORDINATION_TYPES = [
|
|
@@ -1290,7 +1321,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1290
1321
|
CoordinationType$2.HIERARCHY_LEVELS
|
|
1291
1322
|
]
|
|
1292
1323
|
};
|
|
1293
|
-
const version$6 = "3.6.
|
|
1324
|
+
const version$6 = "3.6.4";
|
|
1294
1325
|
const META_VERSION = {
|
|
1295
1326
|
version: version$6
|
|
1296
1327
|
};
|
|
@@ -78360,6 +78391,7 @@ const anndataZarrSchema = z.object({
|
|
|
78360
78391
|
z.array(annDataConvenienceFeatureLabelsItem)
|
|
78361
78392
|
]),
|
|
78362
78393
|
obsFeatureMatrix: annDataObsFeatureMatrix,
|
|
78394
|
+
obsFeatureColumns: annDataObsFeatureColumnsArr,
|
|
78363
78395
|
obsSets: annDataObsSetsArr,
|
|
78364
78396
|
obsSpots: annDataObsSpots,
|
|
78365
78397
|
obsPoints: annDataObsPoints,
|
|
@@ -224921,22 +224953,22 @@ async function getDecoder(fileDirectory) {
|
|
|
224921
224953
|
const Decoder = await importFn();
|
|
224922
224954
|
return new Decoder(fileDirectory);
|
|
224923
224955
|
}
|
|
224924
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
224925
|
-
addDecoder(5, () => import("./lzw-
|
|
224956
|
+
addDecoder([void 0, 1], () => import("./raw-KsQbcEj3.js").then((m2) => m2.default));
|
|
224957
|
+
addDecoder(5, () => import("./lzw-urIPTB6p.js").then((m2) => m2.default));
|
|
224926
224958
|
addDecoder(6, () => {
|
|
224927
224959
|
throw new Error("old style JPEG compression is not supported.");
|
|
224928
224960
|
});
|
|
224929
|
-
addDecoder(7, () => import("./jpeg-
|
|
224930
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
224931
|
-
addDecoder(32773, () => import("./packbits-
|
|
224961
|
+
addDecoder(7, () => import("./jpeg-CctBgn1e.js").then((m2) => m2.default));
|
|
224962
|
+
addDecoder([8, 32946], () => import("./deflate-BH89BV2F.js").then((m2) => m2.default));
|
|
224963
|
+
addDecoder(32773, () => import("./packbits-Cc7yAbnA.js").then((m2) => m2.default));
|
|
224932
224964
|
addDecoder(
|
|
224933
224965
|
34887,
|
|
224934
|
-
() => import("./lerc-
|
|
224966
|
+
() => import("./lerc-nGpkS5Hk.js").then(async (m2) => {
|
|
224935
224967
|
await m2.zstd.init();
|
|
224936
224968
|
return m2;
|
|
224937
224969
|
}).then((m2) => m2.default)
|
|
224938
224970
|
);
|
|
224939
|
-
addDecoder(50001, () => import("./webimage-
|
|
224971
|
+
addDecoder(50001, () => import("./webimage-EhWdNlXX.js").then((m2) => m2.default));
|
|
224940
224972
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
224941
224973
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
224942
224974
|
}
|
|
@@ -264071,6 +264103,18 @@ function assert$4(expression2, msg = "") {
|
|
|
264071
264103
|
throw new Error(msg);
|
|
264072
264104
|
}
|
|
264073
264105
|
}
|
|
264106
|
+
async function decompress(data2, { format: format2, signal }) {
|
|
264107
|
+
const response = data2 instanceof Response ? data2 : new Response(data2);
|
|
264108
|
+
assert$4(response.body, "Response does not contain body.");
|
|
264109
|
+
try {
|
|
264110
|
+
const decompressedResponse = new Response(response.body.pipeThrough(new DecompressionStream(format2), { signal }));
|
|
264111
|
+
const buffer2 = await decompressedResponse.arrayBuffer();
|
|
264112
|
+
return buffer2;
|
|
264113
|
+
} catch {
|
|
264114
|
+
signal?.throwIfAborted();
|
|
264115
|
+
throw new Error(`Failed to decode ${format2}`);
|
|
264116
|
+
}
|
|
264117
|
+
}
|
|
264074
264118
|
class BitroundCodec {
|
|
264075
264119
|
constructor(configuration2, _meta2) {
|
|
264076
264120
|
__publicField(this, "kind", "array_to_array");
|
|
@@ -264157,6 +264201,21 @@ let Crc32cCodec$1 = class Crc32cCodec {
|
|
|
264157
264201
|
return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength - 4);
|
|
264158
264202
|
}
|
|
264159
264203
|
};
|
|
264204
|
+
class GzipCodec {
|
|
264205
|
+
constructor() {
|
|
264206
|
+
__publicField(this, "kind", "bytes_to_bytes");
|
|
264207
|
+
}
|
|
264208
|
+
static fromConfig(_) {
|
|
264209
|
+
return new GzipCodec();
|
|
264210
|
+
}
|
|
264211
|
+
encode(_bytes3) {
|
|
264212
|
+
throw new Error("Gzip encoding is not enabled by default. Please register a custom codec with `numcodecs/gzip`.");
|
|
264213
|
+
}
|
|
264214
|
+
async decode(bytes) {
|
|
264215
|
+
const buffer2 = await decompress(bytes, { format: "gzip" });
|
|
264216
|
+
return new Uint8Array(buffer2);
|
|
264217
|
+
}
|
|
264218
|
+
}
|
|
264160
264219
|
function throw_on_nan_replacer$1(_key, value2) {
|
|
264161
264220
|
assert$4(!Number.isNaN(value2), "JsonCodec allow_nan is false but NaN was encountered during encoding.");
|
|
264162
264221
|
assert$4(value2 !== Number.POSITIVE_INFINITY, "JsonCodec allow_nan is false but Infinity was encountered during encoding.");
|
|
@@ -264388,8 +264447,23 @@ let VLenUTF8$1 = (_s = class {
|
|
|
264388
264447
|
return { data: data2, shape: __privateGet(this, _shape2), stride: __privateGet(this, _strides) };
|
|
264389
264448
|
}
|
|
264390
264449
|
}, _shape2 = new WeakMap(), _strides = new WeakMap(), _s);
|
|
264450
|
+
class ZlibCodec {
|
|
264451
|
+
constructor() {
|
|
264452
|
+
__publicField(this, "kind", "bytes_to_bytes");
|
|
264453
|
+
}
|
|
264454
|
+
static fromConfig(_) {
|
|
264455
|
+
return new ZlibCodec();
|
|
264456
|
+
}
|
|
264457
|
+
encode(_bytes3) {
|
|
264458
|
+
throw new Error("Zlib encoding is not enabled by default. Please register a codec with `numcodecs/zlib`.");
|
|
264459
|
+
}
|
|
264460
|
+
async decode(bytes) {
|
|
264461
|
+
const buffer2 = await decompress(bytes, { format: "deflate" });
|
|
264462
|
+
return new Uint8Array(buffer2);
|
|
264463
|
+
}
|
|
264464
|
+
}
|
|
264391
264465
|
function create_default_registry$1() {
|
|
264392
|
-
return (/* @__PURE__ */ new Map()).set("blosc", () => import("./blosc-BGDKghio.js").then((m2) => m2.default)).set("
|
|
264466
|
+
return (/* @__PURE__ */ new Map()).set("blosc", () => import("./blosc-BGDKghio.js").then((m2) => m2.default)).set("lz4", () => import("./lz4-DTu7K31c.js").then((m2) => m2.default)).set("zstd", () => import("./zstd-DNA9nISO.js").then((m2) => m2.default)).set("gzip", () => GzipCodec).set("zlib", () => ZlibCodec).set("transpose", () => TransposeCodec$1).set("bytes", () => BytesCodec$1).set("crc32c", () => Crc32cCodec$1).set("vlen-utf8", () => VLenUTF8$1).set("json2", () => JsonCodec$1).set("bitround", () => BitroundCodec);
|
|
264393
264467
|
}
|
|
264394
264468
|
const registry$1 = create_default_registry$1();
|
|
264395
264469
|
function create_codec_pipeline$1(chunk_metadata) {
|
|
@@ -265138,7 +265212,7 @@ function uri2href(url) {
|
|
|
265138
265212
|
}
|
|
265139
265213
|
throw Error(`Protocol not supported, got: ${JSON.stringify(protocol)}`);
|
|
265140
265214
|
}
|
|
265141
|
-
function fetch_range(url, offset2, length2, opts2 = {}) {
|
|
265215
|
+
function fetch_range$1(url, offset2, length2, opts2 = {}) {
|
|
265142
265216
|
if (offset2 !== void 0 && length2 !== void 0) {
|
|
265143
265217
|
opts2 = {
|
|
265144
265218
|
...opts2,
|
|
@@ -265150,7 +265224,7 @@ function fetch_range(url, offset2, length2, opts2 = {}) {
|
|
|
265150
265224
|
}
|
|
265151
265225
|
return fetch(url, opts2);
|
|
265152
265226
|
}
|
|
265153
|
-
function merge_init(storeOverrides, requestOverrides) {
|
|
265227
|
+
function merge_init$1(storeOverrides, requestOverrides) {
|
|
265154
265228
|
return {
|
|
265155
265229
|
...storeOverrides,
|
|
265156
265230
|
...requestOverrides,
|
|
@@ -265164,7 +265238,7 @@ function assert$3(expression2, msg = "") {
|
|
|
265164
265238
|
if (!expression2)
|
|
265165
265239
|
throw new Error(msg);
|
|
265166
265240
|
}
|
|
265167
|
-
function resolve$
|
|
265241
|
+
function resolve$2(root2, path2) {
|
|
265168
265242
|
const base2 = typeof root2 === "string" ? new URL(root2) : root2;
|
|
265169
265243
|
if (!base2.pathname.endsWith("/")) {
|
|
265170
265244
|
base2.pathname += "/";
|
|
@@ -265173,7 +265247,7 @@ function resolve$1(root2, path2) {
|
|
|
265173
265247
|
resolved.search = base2.search;
|
|
265174
265248
|
return resolved;
|
|
265175
265249
|
}
|
|
265176
|
-
async function handle_response(response) {
|
|
265250
|
+
async function handle_response$1(response) {
|
|
265177
265251
|
if (response.status === 404) {
|
|
265178
265252
|
return void 0;
|
|
265179
265253
|
}
|
|
@@ -265182,7 +265256,7 @@ async function handle_response(response) {
|
|
|
265182
265256
|
}
|
|
265183
265257
|
throw new Error(`Unexpected response status ${response.status} ${response.statusText}`);
|
|
265184
265258
|
}
|
|
265185
|
-
async function fetch_suffix(url, suffix_length, init2, use_suffix_request) {
|
|
265259
|
+
async function fetch_suffix$1(url, suffix_length, init2, use_suffix_request) {
|
|
265186
265260
|
if (use_suffix_request) {
|
|
265187
265261
|
return fetch(url, {
|
|
265188
265262
|
...init2,
|
|
@@ -265195,9 +265269,9 @@ async function fetch_suffix(url, suffix_length, init2, use_suffix_request) {
|
|
|
265195
265269
|
}
|
|
265196
265270
|
let content_length = response.headers.get("Content-Length");
|
|
265197
265271
|
let length2 = Number(content_length);
|
|
265198
|
-
return fetch_range(url, length2 - suffix_length, length2, init2);
|
|
265272
|
+
return fetch_range$1(url, length2 - suffix_length, length2, init2);
|
|
265199
265273
|
}
|
|
265200
|
-
|
|
265274
|
+
let FetchStore$1 = (_x = class {
|
|
265201
265275
|
constructor(url, options = {}) {
|
|
265202
265276
|
__privateAdd(this, _FetchStore_instances);
|
|
265203
265277
|
__publicField(this, "url");
|
|
@@ -265208,28 +265282,24 @@ class FetchStore {
|
|
|
265208
265282
|
__privateSet(this, _use_suffix_request, options.useSuffixRequest ?? false);
|
|
265209
265283
|
}
|
|
265210
265284
|
async get(key2, options = {}) {
|
|
265211
|
-
let href2 = resolve$
|
|
265285
|
+
let href2 = resolve$2(this.url, key2).href;
|
|
265212
265286
|
let response = await fetch(href2, __privateMethod(this, _FetchStore_instances, merge_init_fn).call(this, options));
|
|
265213
|
-
return handle_response(response);
|
|
265287
|
+
return handle_response$1(response);
|
|
265214
265288
|
}
|
|
265215
265289
|
async getRange(key2, range2, options = {}) {
|
|
265216
|
-
let url = resolve$
|
|
265290
|
+
let url = resolve$2(this.url, key2);
|
|
265217
265291
|
let init2 = __privateMethod(this, _FetchStore_instances, merge_init_fn).call(this, options);
|
|
265218
265292
|
let response;
|
|
265219
265293
|
if ("suffixLength" in range2) {
|
|
265220
|
-
response = await fetch_suffix(url, range2.suffixLength, init2, __privateGet(this, _use_suffix_request));
|
|
265294
|
+
response = await fetch_suffix$1(url, range2.suffixLength, init2, __privateGet(this, _use_suffix_request));
|
|
265221
265295
|
} else {
|
|
265222
|
-
response = await fetch_range(url, range2.offset, range2.length, init2);
|
|
265296
|
+
response = await fetch_range$1(url, range2.offset, range2.length, init2);
|
|
265223
265297
|
}
|
|
265224
|
-
return handle_response(response);
|
|
265298
|
+
return handle_response$1(response);
|
|
265225
265299
|
}
|
|
265226
|
-
}
|
|
265227
|
-
|
|
265228
|
-
|
|
265229
|
-
_FetchStore_instances = new WeakSet();
|
|
265230
|
-
merge_init_fn = function(overrides) {
|
|
265231
|
-
return merge_init(__privateGet(this, _overrides), overrides);
|
|
265232
|
-
};
|
|
265300
|
+
}, _overrides = new WeakMap(), _use_suffix_request = new WeakMap(), _FetchStore_instances = new WeakSet(), merge_init_fn = function(overrides) {
|
|
265301
|
+
return merge_init$1(__privateGet(this, _overrides), overrides);
|
|
265302
|
+
}, _x);
|
|
265233
265303
|
function getV2DataType(dtype) {
|
|
265234
265304
|
const mapping = {
|
|
265235
265305
|
int8: "|i1",
|
|
@@ -265982,11 +266052,11 @@ async function readEntryDataHeader(reader, rawEntry) {
|
|
|
265982
266052
|
const fileNameLength = getUint16LE(buffer2, 26);
|
|
265983
266053
|
const extraFieldLength = getUint16LE(buffer2, 28);
|
|
265984
266054
|
const localFileHeaderEnd = rawEntry.relativeOffsetOfLocalHeader + buffer2.length + fileNameLength + extraFieldLength;
|
|
265985
|
-
let
|
|
266055
|
+
let decompress2;
|
|
265986
266056
|
if (rawEntry.compressionMethod === 0) {
|
|
265987
|
-
|
|
266057
|
+
decompress2 = false;
|
|
265988
266058
|
} else if (rawEntry.compressionMethod === 8) {
|
|
265989
|
-
|
|
266059
|
+
decompress2 = true;
|
|
265990
266060
|
} else {
|
|
265991
266061
|
throw new Error(`unsupported compression method: ${rawEntry.compressionMethod}`);
|
|
265992
266062
|
}
|
|
@@ -265998,13 +266068,13 @@ async function readEntryDataHeader(reader, rawEntry) {
|
|
|
265998
266068
|
}
|
|
265999
266069
|
}
|
|
266000
266070
|
return {
|
|
266001
|
-
decompress,
|
|
266071
|
+
decompress: decompress2,
|
|
266002
266072
|
fileDataStart
|
|
266003
266073
|
};
|
|
266004
266074
|
}
|
|
266005
266075
|
async function readEntryDataAsArrayBuffer(reader, rawEntry) {
|
|
266006
|
-
const { decompress, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
|
|
266007
|
-
if (!
|
|
266076
|
+
const { decompress: decompress2, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
|
|
266077
|
+
if (!decompress2) {
|
|
266008
266078
|
const dataView = await readAs(reader, fileDataStart, rawEntry.compressedSize);
|
|
266009
266079
|
return isTypedArraySameAsArrayBuffer(dataView) ? dataView.buffer : dataView.slice().buffer;
|
|
266010
266080
|
}
|
|
@@ -266013,8 +266083,8 @@ async function readEntryDataAsArrayBuffer(reader, rawEntry) {
|
|
|
266013
266083
|
return result;
|
|
266014
266084
|
}
|
|
266015
266085
|
async function readEntryDataAsBlob(reader, rawEntry, type2) {
|
|
266016
|
-
const { decompress, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
|
|
266017
|
-
if (!
|
|
266086
|
+
const { decompress: decompress2, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
|
|
266087
|
+
if (!decompress2) {
|
|
266018
266088
|
const typedArrayOrBlob2 = await readAsBlobOrTypedArray(reader, fileDataStart, rawEntry.compressedSize, type2);
|
|
266019
266089
|
if (isBlob(typedArrayOrBlob2)) {
|
|
266020
266090
|
return typedArrayOrBlob2;
|
|
@@ -266097,7 +266167,7 @@ class HTTPRangeReader {
|
|
|
266097
266167
|
if (size2 === 0) {
|
|
266098
266168
|
return new Uint8Array(0);
|
|
266099
266169
|
}
|
|
266100
|
-
const req = await fetch_range(this.url, offset2, size2, __privateGet(this, _overrides2));
|
|
266170
|
+
const req = await fetch_range$1(this.url, offset2, size2, __privateGet(this, _overrides2));
|
|
266101
266171
|
assert$3(req.ok, `failed http request ${this.url}, status: ${req.status} offset: ${offset2} size: ${size2}: ${req.statusText}`);
|
|
266102
266172
|
return new Uint8Array(await req.arrayBuffer());
|
|
266103
266173
|
}
|
|
@@ -266362,7 +266432,7 @@ const _ReferenceStore = class _ReferenceStore {
|
|
|
266362
266432
|
if (!url) {
|
|
266363
266433
|
throw Error(`No url for key ${key2}, and no target url provided.`);
|
|
266364
266434
|
}
|
|
266365
|
-
let res = await fetch_range(uri2href(url), offset2, size2, merge_init(__privateGet(this, _overrides3), opts2));
|
|
266435
|
+
let res = await fetch_range$1(uri2href(url), offset2, size2, merge_init$1(__privateGet(this, _overrides3), opts2));
|
|
266366
266436
|
if (res.status === 200 || res.status === 206) {
|
|
266367
266437
|
return new Uint8Array(await res.arrayBuffer());
|
|
266368
266438
|
}
|
|
@@ -266381,7 +266451,7 @@ _refs = new WeakMap();
|
|
|
266381
266451
|
_opts = new WeakMap();
|
|
266382
266452
|
_overrides3 = new WeakMap();
|
|
266383
266453
|
let ReferenceStore = _ReferenceStore;
|
|
266384
|
-
class RelaxedFetchStore extends FetchStore {
|
|
266454
|
+
class RelaxedFetchStore extends FetchStore$1 {
|
|
266385
266455
|
// This allows returning `undefined` for 403 responses,
|
|
266386
266456
|
// as opposed to completely erroring.
|
|
266387
266457
|
// Needed due to https://github.com/manzt/zarrita.js/pull/212
|
|
@@ -268984,7 +269054,7 @@ class ErrorBoundary2 extends React__default.Component {
|
|
|
268984
269054
|
}
|
|
268985
269055
|
}
|
|
268986
269056
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
268987
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
269057
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-C-3f0qqX.js");
|
|
268988
269058
|
return { default: SpatialWrapper2 };
|
|
268989
269059
|
});
|
|
268990
269060
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
@@ -280028,7 +280098,7 @@ class Location2 {
|
|
|
280028
280098
|
function root(store) {
|
|
280029
280099
|
return new Location2(store ?? /* @__PURE__ */ new Map());
|
|
280030
280100
|
}
|
|
280031
|
-
let Group$2 = (
|
|
280101
|
+
let Group$2 = (_y = class extends Location2 {
|
|
280032
280102
|
constructor(store, path2, metadata2) {
|
|
280033
280103
|
super(store, path2);
|
|
280034
280104
|
__publicField(this, "kind", "group");
|
|
@@ -280038,7 +280108,7 @@ let Group$2 = (_x = class extends Location2 {
|
|
|
280038
280108
|
get attrs() {
|
|
280039
280109
|
return __privateGet(this, _metadata3).attributes;
|
|
280040
280110
|
}
|
|
280041
|
-
}, _metadata3 = new WeakMap(),
|
|
280111
|
+
}, _metadata3 = new WeakMap(), _y);
|
|
280042
280112
|
const CONTEXT_MARKER = Symbol("zarrita.context");
|
|
280043
280113
|
function get_context(obj) {
|
|
280044
280114
|
return obj[CONTEXT_MARKER];
|
|
@@ -280087,12 +280157,12 @@ function create_context(location, metadata2) {
|
|
|
280087
280157
|
}
|
|
280088
280158
|
};
|
|
280089
280159
|
}
|
|
280090
|
-
let Array$1 = (
|
|
280160
|
+
let Array$1 = (_B = class extends (_A = Location2, _z2 = CONTEXT_MARKER, _A) {
|
|
280091
280161
|
constructor(store, path2, metadata2) {
|
|
280092
280162
|
super(store, path2);
|
|
280093
280163
|
__publicField(this, "kind", "array");
|
|
280094
280164
|
__privateAdd(this, _metadata4);
|
|
280095
|
-
__publicField(this,
|
|
280165
|
+
__publicField(this, _z2);
|
|
280096
280166
|
__privateSet(this, _metadata4, {
|
|
280097
280167
|
...metadata2,
|
|
280098
280168
|
fill_value: ensure_correct_scalar(metadata2)
|
|
@@ -280146,7 +280216,7 @@ let Array$1 = (_A = class extends (_z2 = Location2, _y3 = CONTEXT_MARKER, _z2) {
|
|
|
280146
280216
|
is(query) {
|
|
280147
280217
|
return is_dtype(this.dtype, query);
|
|
280148
280218
|
}
|
|
280149
|
-
}, _metadata4 = new WeakMap(),
|
|
280219
|
+
}, _metadata4 = new WeakMap(), _B);
|
|
280150
280220
|
let VERSION_COUNTER = create_version_counter();
|
|
280151
280221
|
function create_version_counter() {
|
|
280152
280222
|
let version_counts = /* @__PURE__ */ new WeakMap();
|
|
@@ -280641,6 +280711,94 @@ function set_from_chunk_binary(dest, src, bytes_per_element2, projections2) {
|
|
|
280641
280711
|
}, bytes_per_element2, projs);
|
|
280642
280712
|
}
|
|
280643
280713
|
}
|
|
280714
|
+
function fetch_range(url, offset2, length2, opts2 = {}) {
|
|
280715
|
+
if (offset2 !== void 0 && length2 !== void 0) {
|
|
280716
|
+
opts2 = {
|
|
280717
|
+
...opts2,
|
|
280718
|
+
headers: {
|
|
280719
|
+
...opts2.headers,
|
|
280720
|
+
Range: `bytes=${offset2}-${offset2 + length2 - 1}`
|
|
280721
|
+
}
|
|
280722
|
+
};
|
|
280723
|
+
}
|
|
280724
|
+
return fetch(url, opts2);
|
|
280725
|
+
}
|
|
280726
|
+
function merge_init(storeOverrides, requestOverrides) {
|
|
280727
|
+
return {
|
|
280728
|
+
...storeOverrides,
|
|
280729
|
+
...requestOverrides,
|
|
280730
|
+
headers: {
|
|
280731
|
+
...storeOverrides.headers,
|
|
280732
|
+
...requestOverrides.headers
|
|
280733
|
+
}
|
|
280734
|
+
};
|
|
280735
|
+
}
|
|
280736
|
+
function resolve$1(root2, path2) {
|
|
280737
|
+
const base2 = typeof root2 === "string" ? new URL(root2) : root2;
|
|
280738
|
+
if (!base2.pathname.endsWith("/")) {
|
|
280739
|
+
base2.pathname += "/";
|
|
280740
|
+
}
|
|
280741
|
+
const resolved = new URL(path2.slice(1), base2);
|
|
280742
|
+
resolved.search = base2.search;
|
|
280743
|
+
return resolved;
|
|
280744
|
+
}
|
|
280745
|
+
async function handle_response(response) {
|
|
280746
|
+
if (response.status === 404) {
|
|
280747
|
+
return void 0;
|
|
280748
|
+
}
|
|
280749
|
+
if (response.status === 200 || response.status === 206) {
|
|
280750
|
+
return new Uint8Array(await response.arrayBuffer());
|
|
280751
|
+
}
|
|
280752
|
+
throw new Error(`Unexpected response status ${response.status} ${response.statusText}`);
|
|
280753
|
+
}
|
|
280754
|
+
async function fetch_suffix(url, suffix_length, init2, use_suffix_request) {
|
|
280755
|
+
if (use_suffix_request) {
|
|
280756
|
+
return fetch(url, {
|
|
280757
|
+
...init2,
|
|
280758
|
+
headers: { ...init2.headers, Range: `bytes=-${suffix_length}` }
|
|
280759
|
+
});
|
|
280760
|
+
}
|
|
280761
|
+
let response = await fetch(url, { ...init2, method: "HEAD" });
|
|
280762
|
+
if (!response.ok) {
|
|
280763
|
+
return response;
|
|
280764
|
+
}
|
|
280765
|
+
let content_length = response.headers.get("Content-Length");
|
|
280766
|
+
let length2 = Number(content_length);
|
|
280767
|
+
return fetch_range(url, length2 - suffix_length, length2, init2);
|
|
280768
|
+
}
|
|
280769
|
+
class FetchStore {
|
|
280770
|
+
constructor(url, options = {}) {
|
|
280771
|
+
__privateAdd(this, _FetchStore_instances2);
|
|
280772
|
+
__publicField(this, "url");
|
|
280773
|
+
__privateAdd(this, _overrides4);
|
|
280774
|
+
__privateAdd(this, _use_suffix_request2);
|
|
280775
|
+
this.url = url;
|
|
280776
|
+
__privateSet(this, _overrides4, options.overrides ?? {});
|
|
280777
|
+
__privateSet(this, _use_suffix_request2, options.useSuffixRequest ?? false);
|
|
280778
|
+
}
|
|
280779
|
+
async get(key2, options = {}) {
|
|
280780
|
+
let href2 = resolve$1(this.url, key2).href;
|
|
280781
|
+
let response = await fetch(href2, __privateMethod(this, _FetchStore_instances2, merge_init_fn2).call(this, options));
|
|
280782
|
+
return handle_response(response);
|
|
280783
|
+
}
|
|
280784
|
+
async getRange(key2, range2, options = {}) {
|
|
280785
|
+
let url = resolve$1(this.url, key2);
|
|
280786
|
+
let init2 = __privateMethod(this, _FetchStore_instances2, merge_init_fn2).call(this, options);
|
|
280787
|
+
let response;
|
|
280788
|
+
if ("suffixLength" in range2) {
|
|
280789
|
+
response = await fetch_suffix(url, range2.suffixLength, init2, __privateGet(this, _use_suffix_request2));
|
|
280790
|
+
} else {
|
|
280791
|
+
response = await fetch_range(url, range2.offset, range2.length, init2);
|
|
280792
|
+
}
|
|
280793
|
+
return handle_response(response);
|
|
280794
|
+
}
|
|
280795
|
+
}
|
|
280796
|
+
_overrides4 = new WeakMap();
|
|
280797
|
+
_use_suffix_request2 = new WeakMap();
|
|
280798
|
+
_FetchStore_instances2 = new WeakSet();
|
|
280799
|
+
merge_init_fn2 = function(overrides) {
|
|
280800
|
+
return merge_init(__privateGet(this, _overrides4), overrides);
|
|
280801
|
+
};
|
|
280644
280802
|
function multivecChunksToTileDenseArray(chunks, tileShape, isRow) {
|
|
280645
280803
|
const fullTileLength = isRow ? tileShape[1] : tileShape[0] * tileShape[1];
|
|
280646
280804
|
const fullTileArray = new Float32Array(fullTileLength);
|
|
@@ -280859,7 +281017,7 @@ function HiglassGlobalStyles(props) {
|
|
|
280859
281017
|
}
|
|
280860
281018
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
280861
281019
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
280862
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
281020
|
+
const { HiGlassComponent } = await import("./higlass-BwbSBxlY.js");
|
|
280863
281021
|
return { default: HiGlassComponent };
|
|
280864
281022
|
});
|
|
280865
281023
|
const HG_SIZE = 800;
|
|
@@ -283795,7 +283953,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
283795
283953
|
const { classes: classes2 } = props;
|
|
283796
283954
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
|
|
283797
283955
|
}
|
|
283798
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
283956
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-CV9SuARm.js"));
|
|
283799
283957
|
function createWorker() {
|
|
283800
283958
|
return new WorkerFactory();
|
|
283801
283959
|
}
|
|
@@ -363274,15 +363432,15 @@ class Matrix42 {
|
|
|
363274
363432
|
_x3.crossVectors(up, _z);
|
|
363275
363433
|
}
|
|
363276
363434
|
_x3.normalize();
|
|
363277
|
-
|
|
363435
|
+
_y3.crossVectors(_z, _x3);
|
|
363278
363436
|
te[0] = _x3.x;
|
|
363279
|
-
te[4] =
|
|
363437
|
+
te[4] = _y3.x;
|
|
363280
363438
|
te[8] = _z.x;
|
|
363281
363439
|
te[1] = _x3.y;
|
|
363282
|
-
te[5] =
|
|
363440
|
+
te[5] = _y3.y;
|
|
363283
363441
|
te[9] = _z.y;
|
|
363284
363442
|
te[2] = _x3.z;
|
|
363285
|
-
te[6] =
|
|
363443
|
+
te[6] = _y3.z;
|
|
363286
363444
|
te[10] = _z.z;
|
|
363287
363445
|
return this;
|
|
363288
363446
|
}
|
|
@@ -363773,7 +363931,7 @@ const _m1$2 = /* @__PURE__ */ new Matrix42();
|
|
|
363773
363931
|
const _zero = /* @__PURE__ */ new Vector32(0, 0, 0);
|
|
363774
363932
|
const _one = /* @__PURE__ */ new Vector32(1, 1, 1);
|
|
363775
363933
|
const _x3 = /* @__PURE__ */ new Vector32();
|
|
363776
|
-
const
|
|
363934
|
+
const _y3 = /* @__PURE__ */ new Vector32();
|
|
363777
363935
|
const _z = /* @__PURE__ */ new Vector32();
|
|
363778
363936
|
const _matrix = /* @__PURE__ */ new Matrix42();
|
|
363779
363937
|
const _quaternion$3 = /* @__PURE__ */ new Quaternion2();
|
|
@@ -394302,6 +394460,23 @@ function expandAnndataZarr(fileDef) {
|
|
|
394302
394460
|
featureValueType: baseFileDef.coordinationValues.featureValueType
|
|
394303
394461
|
}
|
|
394304
394462
|
}] : [],
|
|
394463
|
+
// obsFeatureColumns
|
|
394464
|
+
...options.obsFeatureColumns ? [{
|
|
394465
|
+
...baseFileDef,
|
|
394466
|
+
fileType: getFileType2(FileType$2.OBS_FEATURE_COLUMNS_ANNDATA_ZARR),
|
|
394467
|
+
options: {
|
|
394468
|
+
...sharedOptions,
|
|
394469
|
+
obsFeatureColumns: options.obsFeatureColumns
|
|
394470
|
+
},
|
|
394471
|
+
coordinationValues: {
|
|
394472
|
+
...extraCoordinationValues,
|
|
394473
|
+
obsType: baseFileDef.coordinationValues.obsType,
|
|
394474
|
+
// TODO: allow providing a featureType that is scoped to each `obsFeatureColumns` item
|
|
394475
|
+
// (rather than always using the featureType from the file definition).
|
|
394476
|
+
featureType: baseFileDef.coordinationValues.featureType,
|
|
394477
|
+
featureValueType: baseFileDef.coordinationValues.featureValueType
|
|
394478
|
+
}
|
|
394479
|
+
}] : [],
|
|
394305
394480
|
// obsSets
|
|
394306
394481
|
...options.obsSets ? [{
|
|
394307
394482
|
...baseFileDef,
|
|
@@ -394472,6 +394647,7 @@ function expandAnndataZarr(fileDef) {
|
|
|
394472
394647
|
];
|
|
394473
394648
|
}
|
|
394474
394649
|
function expandSpatialdataZarr(fileDef) {
|
|
394650
|
+
const getFileType2 = createGetFileType(fileDef.fileType);
|
|
394475
394651
|
const baseFileDef = {
|
|
394476
394652
|
url: fileDef.url,
|
|
394477
394653
|
requestInit: fileDef.requestInit,
|
|
@@ -394495,7 +394671,7 @@ function expandSpatialdataZarr(fileDef) {
|
|
|
394495
394671
|
// TODO: handle multiple obsFeatureMatrix?
|
|
394496
394672
|
...options.obsFeatureMatrix ? [{
|
|
394497
394673
|
...baseFileDef,
|
|
394498
|
-
fileType: FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR,
|
|
394674
|
+
fileType: getFileType2(FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR),
|
|
394499
394675
|
options: options.obsFeatureMatrix,
|
|
394500
394676
|
coordinationValues: {
|
|
394501
394677
|
...extraCoordinationValues,
|
|
@@ -394508,7 +394684,7 @@ function expandSpatialdataZarr(fileDef) {
|
|
|
394508
394684
|
// TODO: handle multiple obsSets?
|
|
394509
394685
|
...options.obsSets ? [{
|
|
394510
394686
|
...baseFileDef,
|
|
394511
|
-
fileType: FileType$2.OBS_SETS_SPATIALDATA_ZARR,
|
|
394687
|
+
fileType: getFileType2(FileType$2.OBS_SETS_SPATIALDATA_ZARR),
|
|
394512
394688
|
options: options.obsSets,
|
|
394513
394689
|
coordinationValues: {
|
|
394514
394690
|
...extraCoordinationValues,
|
|
@@ -394519,7 +394695,7 @@ function expandSpatialdataZarr(fileDef) {
|
|
|
394519
394695
|
// TODO: handle multiple obsSpots?
|
|
394520
394696
|
...options.obsSpots ? [{
|
|
394521
394697
|
...baseFileDef,
|
|
394522
|
-
fileType: FileType$2.OBS_SPOTS_SPATIALDATA_ZARR,
|
|
394698
|
+
fileType: getFileType2(FileType$2.OBS_SPOTS_SPATIALDATA_ZARR),
|
|
394523
394699
|
options: {
|
|
394524
394700
|
coordinateSystem: defaultCoordinateSystem,
|
|
394525
394701
|
...options.obsSpots
|
|
@@ -394538,7 +394714,7 @@ function expandSpatialdataZarr(fileDef) {
|
|
|
394538
394714
|
// TODO: handle multiple images
|
|
394539
394715
|
...options.image ? [{
|
|
394540
394716
|
...baseFileDef,
|
|
394541
|
-
fileType: FileType$2.IMAGE_SPATIALDATA_ZARR,
|
|
394717
|
+
fileType: getFileType2(FileType$2.IMAGE_SPATIALDATA_ZARR),
|
|
394542
394718
|
options: {
|
|
394543
394719
|
coordinateSystem: defaultCoordinateSystem,
|
|
394544
394720
|
...options.image
|
|
@@ -394553,7 +394729,7 @@ function expandSpatialdataZarr(fileDef) {
|
|
|
394553
394729
|
// TODO: handle multiple labels?
|
|
394554
394730
|
...options.labels ? [{
|
|
394555
394731
|
...baseFileDef,
|
|
394556
|
-
fileType: FileType$2.LABELS_SPATIALDATA_ZARR,
|
|
394732
|
+
fileType: getFileType2(FileType$2.LABELS_SPATIALDATA_ZARR),
|
|
394557
394733
|
options: {
|
|
394558
394734
|
coordinateSystem: defaultCoordinateSystem,
|
|
394559
394735
|
...options.labels
|
|
@@ -394958,6 +395134,7 @@ const baseJointFileTypes = [
|
|
|
394958
395134
|
new PluginJointFileType(FileType$2.ANNDATA_ZARR_ZIP, expandAnndataZarr, anndataZarrSchema),
|
|
394959
395135
|
new PluginJointFileType(FileType$2.ANNDATA_H5AD, expandAnndataZarr, anndataH5adSchema),
|
|
394960
395136
|
new PluginJointFileType(FileType$2.SPATIALDATA_ZARR, expandSpatialdataZarr, spatialdataZarrSchema),
|
|
395137
|
+
new PluginJointFileType(FileType$2.SPATIALDATA_ZARR_ZIP, expandSpatialdataZarr, spatialdataZarrSchema),
|
|
394961
395138
|
// For legacy file types:
|
|
394962
395139
|
new PluginJointFileType(FileType$2.ANNDATA_CELLS_ZARR, expandAnndataCellsZarr, anndataCellsZarrSchema),
|
|
394963
395140
|
new PluginJointFileType(FileType$2.ANNDATA_CELL_SETS_ZARR, expandAnndataCellSetsZarr, anndataCellSetsZarrSchema),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, V as VSMShadowMap, b as PCFShadowMap, B as BasicShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, c as Vector3, d as Vector2, C as Clock, W as WebGLRenderer, e as Camera, f as BufferGeometry, M as Material, L as Layers, T as Texture, h as RGBAFormat, U as UnsignedByteType, i as Color, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, E as EventDispatcher, p as MOUSE, q as TOUCH, r as Spherical, Q as Quaternion, s as Ray$1, t as Plane, u as Loader, v as LoaderUtils, F as FileLoader, w as MeshPhysicalMaterial, x as SpotLight, y as PointLight, D as DirectionalLight, I as InstancedMesh, z as Object3D, H as TextureLoader, J as ImageBitmapLoader, K as BufferAttribute, X as InterleavedBuffer, Y as LinearMipmapLinearFilter, Z as NearestMipmapLinearFilter, $ as LinearMipmapNearestFilter, a0 as NearestMipmapNearestFilter, a1 as LinearFilter, a2 as NearestFilter, a3 as RepeatWrapping, a4 as MirroredRepeatWrapping, a5 as ClampToEdgeWrapping, a6 as PointsMaterial, a7 as LineBasicMaterial, a8 as MeshStandardMaterial, a9 as DoubleSide, aa as MeshBasicMaterial, ab as PropertyBinding, ac as SkinnedMesh, ad as Mesh, ae as LineSegments, af as Line$1, ag as LineLoop, ah as Points, ai as MathUtils, aj as Skeleton, ak as InterpolateDiscrete, al as InterpolateLinear, am as AnimationClip, an as Bone, ao as InterleavedBufferAttribute, ap as VectorKeyframeTrack, aq as QuaternionKeyframeTrack, ar as NumberKeyframeTrack, as as FrontSide, at as Interpolant, au as Box3, av as Sphere, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, V as VSMShadowMap, b as PCFShadowMap, B as BasicShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, c as Vector3, d as Vector2, C as Clock, W as WebGLRenderer, e as Camera, f as BufferGeometry, M as Material, L as Layers, T as Texture, h as RGBAFormat, U as UnsignedByteType, i as Color, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, E as EventDispatcher, p as MOUSE, q as TOUCH, r as Spherical, Q as Quaternion, s as Ray$1, t as Plane, u as Loader, v as LoaderUtils, F as FileLoader, w as MeshPhysicalMaterial, x as SpotLight, y as PointLight, D as DirectionalLight, I as InstancedMesh, z as Object3D, H as TextureLoader, J as ImageBitmapLoader, K as BufferAttribute, X as InterleavedBuffer, Y as LinearMipmapLinearFilter, Z as NearestMipmapLinearFilter, $ as LinearMipmapNearestFilter, a0 as NearestMipmapNearestFilter, a1 as LinearFilter, a2 as NearestFilter, a3 as RepeatWrapping, a4 as MirroredRepeatWrapping, a5 as ClampToEdgeWrapping, a6 as PointsMaterial, a7 as LineBasicMaterial, a8 as MeshStandardMaterial, a9 as DoubleSide, aa as MeshBasicMaterial, ab as PropertyBinding, ac as SkinnedMesh, ad as Mesh, ae as LineSegments, af as Line$1, ag as LineLoop, ah as Points, ai as MathUtils, aj as Skeleton, ak as InterpolateDiscrete, al as InterpolateLinear, am as AnimationClip, an as Bone, ao as InterleavedBufferAttribute, ap as VectorKeyframeTrack, aq as QuaternionKeyframeTrack, ar as NumberKeyframeTrack, as as FrontSide, at as Interpolant, au as Box3, av as Sphere, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-B--lkeso.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo, forwardRef } from "react";
|
|
4
4
|
var constants = { exports: {} };
|
|
@@ -23637,7 +23637,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
|
|
|
23637
23637
|
const {
|
|
23638
23638
|
Text: TextMeshImpl,
|
|
23639
23639
|
preloadFont
|
|
23640
|
-
} = suspend(async () => import("./troika-three-text.esm-
|
|
23640
|
+
} = suspend(async () => import("./troika-three-text.esm-aZI9D2Jx.js"), []);
|
|
23641
23641
|
const invalidate2 = useThree(({
|
|
23642
23642
|
invalidate: invalidate3
|
|
23643
23643
|
}) => invalidate3);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bU, bP, bN, bO, bY, bZ, bQ, c5, c3, c1, c4, c2, bM, c0, bR, bL, bK, bW, bV, bX, b$, b_, bT, ca, cd, c7, ce, cf, c8, cb, cc, c9, bS, c6 } from "./index-
|
|
1
|
+
import { bU, bP, bN, bO, bY, bZ, bQ, c5, c3, c1, c4, c2, bM, c0, bR, bL, bK, bW, bV, bX, b$, b_, bT, ca, cd, c7, ce, cf, c8, cb, cc, c9, bS, c6 } from "./index-B--lkeso.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
bU as CoordinationLevel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-B--lkeso.js";
|
|
3
3
|
var LercDecode = { exports: {} };
|
|
4
4
|
var hasRequiredLercDecode;
|
|
5
5
|
function requireLercDecode() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bE as MeshDistanceMaterial, bF as MeshDepthMaterial, bG as RGBADepthPacking, aB as UniformsUtils, bH as ShaderChunk, aw as InstancedBufferGeometry, av as Sphere, au as Box3, aH as BackSide, a9 as DoubleSide, ad as Mesh, as as FrontSide, aa as MeshBasicMaterial, i as Color, c as Vector3, k as Matrix4, d as Vector2, aJ as Matrix3, aD as Vector4, T as Texture, a1 as LinearFilter, bI as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, bJ as InstancedBufferAttribute } from "./index-
|
|
1
|
+
import { bE as MeshDistanceMaterial, bF as MeshDepthMaterial, bG as RGBADepthPacking, aB as UniformsUtils, bH as ShaderChunk, aw as InstancedBufferGeometry, av as Sphere, au as Box3, aH as BackSide, a9 as DoubleSide, ad as Mesh, as as FrontSide, aa as MeshBasicMaterial, i as Color, c as Vector3, k as Matrix4, d as Vector2, aJ as Matrix3, aD as Vector4, T as Texture, a1 as LinearFilter, bI as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, bJ as InstancedBufferAttribute } from "./index-B--lkeso.js";
|
|
2
2
|
function workerBootstrap() {
|
|
3
3
|
var modules = /* @__PURE__ */ Object.create(null);
|
|
4
4
|
function registerModule(ref, callback) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/dev",
|
|
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": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dist-tsc"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vitessce/all": "3.6.
|
|
20
|
-
"@vitessce/config": "3.6.
|
|
21
|
-
"@vitessce/constants": "3.6.
|
|
22
|
-
"@vitessce/export-utils": "3.6.
|
|
19
|
+
"@vitessce/all": "3.6.4",
|
|
20
|
+
"@vitessce/config": "3.6.4",
|
|
21
|
+
"@vitessce/constants": "3.6.4",
|
|
22
|
+
"@vitessce/export-utils": "3.6.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@vitejs/plugin-react": "^4.5.0",
|