@vitessce/dev 3.6.2 → 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.
@@ -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-klVkXiXz.js";
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-klVkXiXz.js";
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-klVkXiXz.js";
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, _x, _y3, _z2, _metadata4, _A;
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.2";
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-wRFrb2B4.js").then((m2) => m2.default));
224925
- addDecoder(5, () => import("./lzw-BZy7adSL.js").then((m2) => m2.default));
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-BYGM34Gf.js").then((m2) => m2.default));
224930
- addDecoder([8, 32946], () => import("./deflate-DqOXPY2p.js").then((m2) => m2.default));
224931
- addDecoder(32773, () => import("./packbits-CsMAtNMQ.js").then((m2) => m2.default));
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-DgI5TVje.js").then(async (m2) => {
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-SnG_Zd5a.js").then((m2) => m2.default));
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
  }
@@ -247558,21 +247590,25 @@ const rectMarginY = 2;
247558
247590
  const rectMarginX = 2;
247559
247591
  function combineExtents(extents, featureAggregationStrategy) {
247560
247592
  if (Array.isArray(extents)) {
247561
- if (featureAggregationStrategy === "first") {
247562
- return extents[0];
247563
- }
247564
- if (featureAggregationStrategy === "last") {
247565
- return extents.at(-1);
247566
- }
247567
- if (typeof featureAggregationStrategy === "number") {
247568
- const i2 = featureAggregationStrategy;
247569
- return extents[i2];
247570
- }
247571
- if (featureAggregationStrategy === "sum") {
247572
- return extents.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]);
247573
- }
247574
- if (featureAggregationStrategy === "mean") {
247575
- return extents.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]).map((v) => v / extents.length);
247593
+ if (Array.isArray(extents?.[0])) {
247594
+ if (featureAggregationStrategy === "first") {
247595
+ return extents[0];
247596
+ }
247597
+ if (featureAggregationStrategy === "last") {
247598
+ return extents.at(-1);
247599
+ }
247600
+ if (typeof featureAggregationStrategy === "number") {
247601
+ const i2 = featureAggregationStrategy;
247602
+ return extents[i2];
247603
+ }
247604
+ if (featureAggregationStrategy === "sum") {
247605
+ return extents.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]);
247606
+ }
247607
+ if (featureAggregationStrategy === "mean") {
247608
+ return extents.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]).map((v) => v / extents.length);
247609
+ }
247610
+ } else {
247611
+ return extents;
247576
247612
  }
247577
247613
  }
247578
247614
  return null;
@@ -247796,13 +247832,13 @@ function MultiLegend(props) {
247796
247832
  }, layerScope) : null;
247797
247833
  }) : null, spotLayerScopes ? reversedSpotLayerScopes.flatMap((layerScope) => {
247798
247834
  const layerCoordination = spotLayerCoordination[0][layerScope];
247799
- const { spatialLayerVisible, obsColorEncoding, featureValueColormap, featureValueColormapRange, obsType, featureType, featureValueType, featureSelection, spatialLayerColor, legendVisible, obsSetSelection, obsSetColor } = layerCoordination;
247835
+ const { spatialLayerVisible, obsColorEncoding, featureValueColormap, featureValueColormapRange, obsType, featureType, featureValueType, featureSelection, featureAggregationStrategy, spatialLayerColor, legendVisible, obsSetSelection, obsSetColor } = layerCoordination;
247800
247836
  const expressionExtents = spotMultiExpressionExtents?.[layerScope];
247801
247837
  const firstExpressionExtent = expressionExtents?.[0];
247802
247838
  const isStaticColor = obsColorEncoding === "spatialLayerColor";
247803
247839
  const height2 = isStaticColor ? 20 : 36;
247804
247840
  const featureLabelsMap = spotMultiFeatureLabels?.[layerScope]?.featureLabelsMap;
247805
- return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, { positionRelative: true, highContrast: true, showObsLabel: true, visible: spatialLayerVisible, theme, obsType, featureType, featureValueType, obsColorEncoding, spatialLayerColor, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, extent: firstExpressionExtent, height: height2, obsSetSelection, obsSetColor }, layerScope) : null;
247841
+ return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, { positionRelative: true, highContrast: true, showObsLabel: true, visible: spatialLayerVisible, theme, obsType, featureType, featureValueType, obsColorEncoding, spatialLayerColor, featureSelection, featureAggregationStrategy, featureLabelsMap, featureValueColormap, featureValueColormapRange, extent: firstExpressionExtent, height: height2, obsSetSelection, obsSetColor }, layerScope) : null;
247806
247842
  }) : null, segmentationLayerScopes ? reversedSegmentationLayerScopes.flatMap((layerScope) => {
247807
247843
  const layerCoordination = segmentationLayerCoordination[0][layerScope];
247808
247844
  const channelScopes = segmentationChannelScopesByLayer[layerScope];
@@ -247810,7 +247846,7 @@ function MultiLegend(props) {
247810
247846
  const { spatialLayerVisible } = layerCoordination;
247811
247847
  const reversedChannelScopes = [...channelScopes || []].reverse();
247812
247848
  return channelCoordination && channelScopes ? reversedChannelScopes.map((cScope) => {
247813
- const { spatialChannelVisible, spatialChannelColor, obsColorEncoding, featureValueColormap, featureValueColormapRange, obsType, featureType, featureValueType, featureSelection, legendVisible, obsSetSelection, obsSetColor } = channelCoordination[cScope];
247849
+ const { spatialChannelVisible, spatialChannelColor, obsColorEncoding, featureValueColormap, featureValueColormapRange, obsType, featureType, featureValueType, featureSelection, featureAggregationStrategy, legendVisible, obsSetSelection, obsSetColor } = channelCoordination[cScope];
247814
247850
  const expressionExtents = segmentationMultiExpressionExtents?.[layerScope]?.[cScope];
247815
247851
  const firstExpressionExtent = expressionExtents?.[0];
247816
247852
  const isStaticColor = obsColorEncoding === "spatialChannelColor";
@@ -247826,6 +247862,7 @@ function MultiLegend(props) {
247826
247862
  featureValueType,
247827
247863
  obsColorEncoding,
247828
247864
  featureSelection,
247865
+ featureAggregationStrategy,
247829
247866
  // featureLabelsMap={featureLabelsMap} // TODO
247830
247867
  featureValueColormap,
247831
247868
  featureValueColormapRange,
@@ -264066,6 +264103,18 @@ function assert$4(expression2, msg = "") {
264066
264103
  throw new Error(msg);
264067
264104
  }
264068
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
+ }
264069
264118
  class BitroundCodec {
264070
264119
  constructor(configuration2, _meta2) {
264071
264120
  __publicField(this, "kind", "array_to_array");
@@ -264152,6 +264201,21 @@ let Crc32cCodec$1 = class Crc32cCodec {
264152
264201
  return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength - 4);
264153
264202
  }
264154
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
+ }
264155
264219
  function throw_on_nan_replacer$1(_key, value2) {
264156
264220
  assert$4(!Number.isNaN(value2), "JsonCodec allow_nan is false but NaN was encountered during encoding.");
264157
264221
  assert$4(value2 !== Number.POSITIVE_INFINITY, "JsonCodec allow_nan is false but Infinity was encountered during encoding.");
@@ -264383,8 +264447,23 @@ let VLenUTF8$1 = (_s = class {
264383
264447
  return { data: data2, shape: __privateGet(this, _shape2), stride: __privateGet(this, _strides) };
264384
264448
  }
264385
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
+ }
264386
264465
  function create_default_registry$1() {
264387
- return (/* @__PURE__ */ new Map()).set("blosc", () => import("./blosc-BGDKghio.js").then((m2) => m2.default)).set("gzip", () => import("./gzip-BcpOCWcu.js").then((m2) => m2.default)).set("lz4", () => import("./lz4-DTu7K31c.js").then((m2) => m2.default)).set("zlib", () => import("./zlib-ZTk3sZPP.js").then((m2) => m2.default)).set("zstd", () => import("./zstd-DNA9nISO.js").then((m2) => m2.default)).set("transpose", () => TransposeCodec$1).set("bytes", () => BytesCodec$1).set("crc32c", () => Crc32cCodec$1).set("vlen-utf8", () => VLenUTF8$1).set("json2", () => JsonCodec$1).set("bitround", () => BitroundCodec);
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);
264388
264467
  }
264389
264468
  const registry$1 = create_default_registry$1();
264390
264469
  function create_codec_pipeline$1(chunk_metadata) {
@@ -265133,7 +265212,7 @@ function uri2href(url) {
265133
265212
  }
265134
265213
  throw Error(`Protocol not supported, got: ${JSON.stringify(protocol)}`);
265135
265214
  }
265136
- function fetch_range(url, offset2, length2, opts2 = {}) {
265215
+ function fetch_range$1(url, offset2, length2, opts2 = {}) {
265137
265216
  if (offset2 !== void 0 && length2 !== void 0) {
265138
265217
  opts2 = {
265139
265218
  ...opts2,
@@ -265145,7 +265224,7 @@ function fetch_range(url, offset2, length2, opts2 = {}) {
265145
265224
  }
265146
265225
  return fetch(url, opts2);
265147
265226
  }
265148
- function merge_init(storeOverrides, requestOverrides) {
265227
+ function merge_init$1(storeOverrides, requestOverrides) {
265149
265228
  return {
265150
265229
  ...storeOverrides,
265151
265230
  ...requestOverrides,
@@ -265159,7 +265238,7 @@ function assert$3(expression2, msg = "") {
265159
265238
  if (!expression2)
265160
265239
  throw new Error(msg);
265161
265240
  }
265162
- function resolve$1(root2, path2) {
265241
+ function resolve$2(root2, path2) {
265163
265242
  const base2 = typeof root2 === "string" ? new URL(root2) : root2;
265164
265243
  if (!base2.pathname.endsWith("/")) {
265165
265244
  base2.pathname += "/";
@@ -265168,7 +265247,7 @@ function resolve$1(root2, path2) {
265168
265247
  resolved.search = base2.search;
265169
265248
  return resolved;
265170
265249
  }
265171
- async function handle_response(response) {
265250
+ async function handle_response$1(response) {
265172
265251
  if (response.status === 404) {
265173
265252
  return void 0;
265174
265253
  }
@@ -265177,7 +265256,7 @@ async function handle_response(response) {
265177
265256
  }
265178
265257
  throw new Error(`Unexpected response status ${response.status} ${response.statusText}`);
265179
265258
  }
265180
- async function fetch_suffix(url, suffix_length, init2, use_suffix_request) {
265259
+ async function fetch_suffix$1(url, suffix_length, init2, use_suffix_request) {
265181
265260
  if (use_suffix_request) {
265182
265261
  return fetch(url, {
265183
265262
  ...init2,
@@ -265190,9 +265269,9 @@ async function fetch_suffix(url, suffix_length, init2, use_suffix_request) {
265190
265269
  }
265191
265270
  let content_length = response.headers.get("Content-Length");
265192
265271
  let length2 = Number(content_length);
265193
- return fetch_range(url, length2 - suffix_length, length2, init2);
265272
+ return fetch_range$1(url, length2 - suffix_length, length2, init2);
265194
265273
  }
265195
- class FetchStore {
265274
+ let FetchStore$1 = (_x = class {
265196
265275
  constructor(url, options = {}) {
265197
265276
  __privateAdd(this, _FetchStore_instances);
265198
265277
  __publicField(this, "url");
@@ -265203,28 +265282,24 @@ class FetchStore {
265203
265282
  __privateSet(this, _use_suffix_request, options.useSuffixRequest ?? false);
265204
265283
  }
265205
265284
  async get(key2, options = {}) {
265206
- let href2 = resolve$1(this.url, key2).href;
265285
+ let href2 = resolve$2(this.url, key2).href;
265207
265286
  let response = await fetch(href2, __privateMethod(this, _FetchStore_instances, merge_init_fn).call(this, options));
265208
- return handle_response(response);
265287
+ return handle_response$1(response);
265209
265288
  }
265210
265289
  async getRange(key2, range2, options = {}) {
265211
- let url = resolve$1(this.url, key2);
265290
+ let url = resolve$2(this.url, key2);
265212
265291
  let init2 = __privateMethod(this, _FetchStore_instances, merge_init_fn).call(this, options);
265213
265292
  let response;
265214
265293
  if ("suffixLength" in range2) {
265215
- 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));
265216
265295
  } else {
265217
- response = await fetch_range(url, range2.offset, range2.length, init2);
265296
+ response = await fetch_range$1(url, range2.offset, range2.length, init2);
265218
265297
  }
265219
- return handle_response(response);
265298
+ return handle_response$1(response);
265220
265299
  }
265221
- }
265222
- _overrides = new WeakMap();
265223
- _use_suffix_request = new WeakMap();
265224
- _FetchStore_instances = new WeakSet();
265225
- merge_init_fn = function(overrides) {
265226
- return merge_init(__privateGet(this, _overrides), overrides);
265227
- };
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);
265228
265303
  function getV2DataType(dtype) {
265229
265304
  const mapping = {
265230
265305
  int8: "|i1",
@@ -265977,11 +266052,11 @@ async function readEntryDataHeader(reader, rawEntry) {
265977
266052
  const fileNameLength = getUint16LE(buffer2, 26);
265978
266053
  const extraFieldLength = getUint16LE(buffer2, 28);
265979
266054
  const localFileHeaderEnd = rawEntry.relativeOffsetOfLocalHeader + buffer2.length + fileNameLength + extraFieldLength;
265980
- let decompress;
266055
+ let decompress2;
265981
266056
  if (rawEntry.compressionMethod === 0) {
265982
- decompress = false;
266057
+ decompress2 = false;
265983
266058
  } else if (rawEntry.compressionMethod === 8) {
265984
- decompress = true;
266059
+ decompress2 = true;
265985
266060
  } else {
265986
266061
  throw new Error(`unsupported compression method: ${rawEntry.compressionMethod}`);
265987
266062
  }
@@ -265993,13 +266068,13 @@ async function readEntryDataHeader(reader, rawEntry) {
265993
266068
  }
265994
266069
  }
265995
266070
  return {
265996
- decompress,
266071
+ decompress: decompress2,
265997
266072
  fileDataStart
265998
266073
  };
265999
266074
  }
266000
266075
  async function readEntryDataAsArrayBuffer(reader, rawEntry) {
266001
- const { decompress, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
266002
- if (!decompress) {
266076
+ const { decompress: decompress2, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
266077
+ if (!decompress2) {
266003
266078
  const dataView = await readAs(reader, fileDataStart, rawEntry.compressedSize);
266004
266079
  return isTypedArraySameAsArrayBuffer(dataView) ? dataView.buffer : dataView.slice().buffer;
266005
266080
  }
@@ -266008,8 +266083,8 @@ async function readEntryDataAsArrayBuffer(reader, rawEntry) {
266008
266083
  return result;
266009
266084
  }
266010
266085
  async function readEntryDataAsBlob(reader, rawEntry, type2) {
266011
- const { decompress, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
266012
- if (!decompress) {
266086
+ const { decompress: decompress2, fileDataStart } = await readEntryDataHeader(reader, rawEntry);
266087
+ if (!decompress2) {
266013
266088
  const typedArrayOrBlob2 = await readAsBlobOrTypedArray(reader, fileDataStart, rawEntry.compressedSize, type2);
266014
266089
  if (isBlob(typedArrayOrBlob2)) {
266015
266090
  return typedArrayOrBlob2;
@@ -266092,7 +266167,7 @@ class HTTPRangeReader {
266092
266167
  if (size2 === 0) {
266093
266168
  return new Uint8Array(0);
266094
266169
  }
266095
- 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));
266096
266171
  assert$3(req.ok, `failed http request ${this.url}, status: ${req.status} offset: ${offset2} size: ${size2}: ${req.statusText}`);
266097
266172
  return new Uint8Array(await req.arrayBuffer());
266098
266173
  }
@@ -266357,7 +266432,7 @@ const _ReferenceStore = class _ReferenceStore {
266357
266432
  if (!url) {
266358
266433
  throw Error(`No url for key ${key2}, and no target url provided.`);
266359
266434
  }
266360
- 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));
266361
266436
  if (res.status === 200 || res.status === 206) {
266362
266437
  return new Uint8Array(await res.arrayBuffer());
266363
266438
  }
@@ -266376,7 +266451,7 @@ _refs = new WeakMap();
266376
266451
  _opts = new WeakMap();
266377
266452
  _overrides3 = new WeakMap();
266378
266453
  let ReferenceStore = _ReferenceStore;
266379
- class RelaxedFetchStore extends FetchStore {
266454
+ class RelaxedFetchStore extends FetchStore$1 {
266380
266455
  // This allows returning `undefined` for 403 responses,
266381
266456
  // as opposed to completely erroring.
266382
266457
  // Needed due to https://github.com/manzt/zarrita.js/pull/212
@@ -268979,7 +269054,7 @@ class ErrorBoundary2 extends React__default.Component {
268979
269054
  }
268980
269055
  }
268981
269056
  const LazySpatialThree = React__default.lazy(async () => {
268982
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-OgvPhv-B.js");
269057
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-C-3f0qqX.js");
268983
269058
  return { default: SpatialWrapper2 };
268984
269059
  });
268985
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 }) }) }) }));
@@ -269109,6 +269184,7 @@ function SpatialSubscriber(props) {
269109
269184
  CoordinationType$2.SPATIAL_SEGMENTATION_STROKE_WIDTH,
269110
269185
  CoordinationType$2.OBS_COLOR_ENCODING,
269111
269186
  CoordinationType$2.FEATURE_SELECTION,
269187
+ CoordinationType$2.FEATURE_AGGREGATION_STRATEGY,
269112
269188
  CoordinationType$2.FEATURE_VALUE_COLORMAP,
269113
269189
  CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
269114
269190
  CoordinationType$2.OBS_SET_COLOR,
@@ -269154,6 +269230,7 @@ function SpatialSubscriber(props) {
269154
269230
  CoordinationType$2.SPATIAL_SPOT_STROKE_WIDTH,
269155
269231
  CoordinationType$2.OBS_COLOR_ENCODING,
269156
269232
  CoordinationType$2.FEATURE_SELECTION,
269233
+ CoordinationType$2.FEATURE_AGGREGATION_STRATEGY,
269157
269234
  CoordinationType$2.FEATURE_VALUE_COLORMAP,
269158
269235
  CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
269159
269236
  CoordinationType$2.OBS_SET_COLOR,
@@ -280021,7 +280098,7 @@ class Location2 {
280021
280098
  function root(store) {
280022
280099
  return new Location2(store ?? /* @__PURE__ */ new Map());
280023
280100
  }
280024
- let Group$2 = (_x = class extends Location2 {
280101
+ let Group$2 = (_y = class extends Location2 {
280025
280102
  constructor(store, path2, metadata2) {
280026
280103
  super(store, path2);
280027
280104
  __publicField(this, "kind", "group");
@@ -280031,7 +280108,7 @@ let Group$2 = (_x = class extends Location2 {
280031
280108
  get attrs() {
280032
280109
  return __privateGet(this, _metadata3).attributes;
280033
280110
  }
280034
- }, _metadata3 = new WeakMap(), _x);
280111
+ }, _metadata3 = new WeakMap(), _y);
280035
280112
  const CONTEXT_MARKER = Symbol("zarrita.context");
280036
280113
  function get_context(obj) {
280037
280114
  return obj[CONTEXT_MARKER];
@@ -280080,12 +280157,12 @@ function create_context(location, metadata2) {
280080
280157
  }
280081
280158
  };
280082
280159
  }
280083
- let Array$1 = (_A = class extends (_z2 = Location2, _y3 = CONTEXT_MARKER, _z2) {
280160
+ let Array$1 = (_B = class extends (_A = Location2, _z2 = CONTEXT_MARKER, _A) {
280084
280161
  constructor(store, path2, metadata2) {
280085
280162
  super(store, path2);
280086
280163
  __publicField(this, "kind", "array");
280087
280164
  __privateAdd(this, _metadata4);
280088
- __publicField(this, _y3);
280165
+ __publicField(this, _z2);
280089
280166
  __privateSet(this, _metadata4, {
280090
280167
  ...metadata2,
280091
280168
  fill_value: ensure_correct_scalar(metadata2)
@@ -280139,7 +280216,7 @@ let Array$1 = (_A = class extends (_z2 = Location2, _y3 = CONTEXT_MARKER, _z2) {
280139
280216
  is(query) {
280140
280217
  return is_dtype(this.dtype, query);
280141
280218
  }
280142
- }, _metadata4 = new WeakMap(), _A);
280219
+ }, _metadata4 = new WeakMap(), _B);
280143
280220
  let VERSION_COUNTER = create_version_counter();
280144
280221
  function create_version_counter() {
280145
280222
  let version_counts = /* @__PURE__ */ new WeakMap();
@@ -280634,6 +280711,94 @@ function set_from_chunk_binary(dest, src, bytes_per_element2, projections2) {
280634
280711
  }, bytes_per_element2, projs);
280635
280712
  }
280636
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
+ };
280637
280802
  function multivecChunksToTileDenseArray(chunks, tileShape, isRow) {
280638
280803
  const fullTileLength = isRow ? tileShape[1] : tileShape[0] * tileShape[1];
280639
280804
  const fullTileArray = new Float32Array(fullTileLength);
@@ -280852,7 +281017,7 @@ function HiglassGlobalStyles(props) {
280852
281017
  }
280853
281018
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
280854
281019
  const LazyHiGlassComponent = React__default.lazy(async () => {
280855
- const { HiGlassComponent } = await import("./higlass-BWGk5Vo4.js");
281020
+ const { HiGlassComponent } = await import("./higlass-BwbSBxlY.js");
280856
281021
  return { default: HiGlassComponent };
280857
281022
  });
280858
281023
  const HG_SIZE = 800;
@@ -283788,7 +283953,7 @@ function NeuroglancerGlobalStyles(props) {
283788
283953
  const { classes: classes2 } = props;
283789
283954
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
283790
283955
  }
283791
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-QIxsKJha.js"));
283956
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-CV9SuARm.js"));
283792
283957
  function createWorker() {
283793
283958
  return new WorkerFactory();
283794
283959
  }
@@ -344000,7 +344165,13 @@ class SpatialDataTableSource extends AnnDataSource {
344000
344165
  * @returns
344001
344166
  */
344002
344167
  async loadSpatialDataAttrs(tablePath) {
344003
- return this._loadDict(`${tablePath}uns/spatialdata_attrs`, ["instance_key", "region", "region_key"]);
344168
+ const v0_4_0_attrs = await this.getJson(`${tablePath}.zattrs`);
344169
+ const attrsKeys = Object.keys(v0_4_0_attrs);
344170
+ if (["instance_key", "region", "region_key"].every((k) => attrsKeys.includes(k))) {
344171
+ return v0_4_0_attrs;
344172
+ }
344173
+ const pre_v0_4_0_attrs = await this._loadDict(`${tablePath}uns/spatialdata_attrs`, ["instance_key", "region", "region_key"]);
344174
+ return pre_v0_4_0_attrs;
344004
344175
  }
344005
344176
  /**
344006
344177
  * Class method for loading the obs index.
@@ -344017,7 +344188,9 @@ class SpatialDataTableSource extends AnnDataSource {
344017
344188
  // region_key: regionKey,
344018
344189
  // region,
344019
344190
  } = await this.loadSpatialDataAttrs(getTablePrefix(path2));
344020
- indexPath = `${obsPath}/${instanceKey}`;
344191
+ if (instanceKey !== void 0 && instanceKey !== null) {
344192
+ indexPath = `${obsPath}/${instanceKey}`;
344193
+ }
344021
344194
  if (indexPath in this.obsIndices) {
344022
344195
  return this.obsIndices[indexPath];
344023
344196
  }
@@ -363259,15 +363432,15 @@ class Matrix42 {
363259
363432
  _x3.crossVectors(up, _z);
363260
363433
  }
363261
363434
  _x3.normalize();
363262
- _y.crossVectors(_z, _x3);
363435
+ _y3.crossVectors(_z, _x3);
363263
363436
  te[0] = _x3.x;
363264
- te[4] = _y.x;
363437
+ te[4] = _y3.x;
363265
363438
  te[8] = _z.x;
363266
363439
  te[1] = _x3.y;
363267
- te[5] = _y.y;
363440
+ te[5] = _y3.y;
363268
363441
  te[9] = _z.y;
363269
363442
  te[2] = _x3.z;
363270
- te[6] = _y.z;
363443
+ te[6] = _y3.z;
363271
363444
  te[10] = _z.z;
363272
363445
  return this;
363273
363446
  }
@@ -363758,7 +363931,7 @@ const _m1$2 = /* @__PURE__ */ new Matrix42();
363758
363931
  const _zero = /* @__PURE__ */ new Vector32(0, 0, 0);
363759
363932
  const _one = /* @__PURE__ */ new Vector32(1, 1, 1);
363760
363933
  const _x3 = /* @__PURE__ */ new Vector32();
363761
- const _y = /* @__PURE__ */ new Vector32();
363934
+ const _y3 = /* @__PURE__ */ new Vector32();
363762
363935
  const _z = /* @__PURE__ */ new Vector32();
363763
363936
  const _matrix = /* @__PURE__ */ new Matrix42();
363764
363937
  const _quaternion$3 = /* @__PURE__ */ new Quaternion2();
@@ -394060,7 +394233,7 @@ Fuse.config = Config;
394060
394233
  Fuse.parseQuery = parse;
394061
394234
  }
394062
394235
  const KG_BASE_URL = "https://storage.googleapis.com/vitessce-demo-data/enrichr-kg-september-2023";
394063
- const ENSG_TO_GENE_SYMBOL_URL = "https://vitessce-resources.s3.us-east-2.amazonaws.com/genes_filtered.json";
394236
+ const ENSG_TO_GENE_SYMBOL_URL = "https://data-1.vitessce.io/genes_filtered.json";
394064
394237
  function loadGeneNodes() {
394065
394238
  return fetch(`${KG_BASE_URL}/Gene.nodes.csv`).then((res) => res.text()).then((res) => {
394066
394239
  const result = csvParse(res);
@@ -394287,6 +394460,23 @@ function expandAnndataZarr(fileDef) {
394287
394460
  featureValueType: baseFileDef.coordinationValues.featureValueType
394288
394461
  }
394289
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
+ }] : [],
394290
394480
  // obsSets
394291
394481
  ...options.obsSets ? [{
394292
394482
  ...baseFileDef,
@@ -394457,6 +394647,7 @@ function expandAnndataZarr(fileDef) {
394457
394647
  ];
394458
394648
  }
394459
394649
  function expandSpatialdataZarr(fileDef) {
394650
+ const getFileType2 = createGetFileType(fileDef.fileType);
394460
394651
  const baseFileDef = {
394461
394652
  url: fileDef.url,
394462
394653
  requestInit: fileDef.requestInit,
@@ -394480,7 +394671,7 @@ function expandSpatialdataZarr(fileDef) {
394480
394671
  // TODO: handle multiple obsFeatureMatrix?
394481
394672
  ...options.obsFeatureMatrix ? [{
394482
394673
  ...baseFileDef,
394483
- fileType: FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR,
394674
+ fileType: getFileType2(FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR),
394484
394675
  options: options.obsFeatureMatrix,
394485
394676
  coordinationValues: {
394486
394677
  ...extraCoordinationValues,
@@ -394493,7 +394684,7 @@ function expandSpatialdataZarr(fileDef) {
394493
394684
  // TODO: handle multiple obsSets?
394494
394685
  ...options.obsSets ? [{
394495
394686
  ...baseFileDef,
394496
- fileType: FileType$2.OBS_SETS_SPATIALDATA_ZARR,
394687
+ fileType: getFileType2(FileType$2.OBS_SETS_SPATIALDATA_ZARR),
394497
394688
  options: options.obsSets,
394498
394689
  coordinationValues: {
394499
394690
  ...extraCoordinationValues,
@@ -394504,7 +394695,7 @@ function expandSpatialdataZarr(fileDef) {
394504
394695
  // TODO: handle multiple obsSpots?
394505
394696
  ...options.obsSpots ? [{
394506
394697
  ...baseFileDef,
394507
- fileType: FileType$2.OBS_SPOTS_SPATIALDATA_ZARR,
394698
+ fileType: getFileType2(FileType$2.OBS_SPOTS_SPATIALDATA_ZARR),
394508
394699
  options: {
394509
394700
  coordinateSystem: defaultCoordinateSystem,
394510
394701
  ...options.obsSpots
@@ -394523,7 +394714,7 @@ function expandSpatialdataZarr(fileDef) {
394523
394714
  // TODO: handle multiple images
394524
394715
  ...options.image ? [{
394525
394716
  ...baseFileDef,
394526
- fileType: FileType$2.IMAGE_SPATIALDATA_ZARR,
394717
+ fileType: getFileType2(FileType$2.IMAGE_SPATIALDATA_ZARR),
394527
394718
  options: {
394528
394719
  coordinateSystem: defaultCoordinateSystem,
394529
394720
  ...options.image
@@ -394538,7 +394729,7 @@ function expandSpatialdataZarr(fileDef) {
394538
394729
  // TODO: handle multiple labels?
394539
394730
  ...options.labels ? [{
394540
394731
  ...baseFileDef,
394541
- fileType: FileType$2.LABELS_SPATIALDATA_ZARR,
394732
+ fileType: getFileType2(FileType$2.LABELS_SPATIALDATA_ZARR),
394542
394733
  options: {
394543
394734
  coordinateSystem: defaultCoordinateSystem,
394544
394735
  ...options.labels
@@ -394943,6 +395134,7 @@ const baseJointFileTypes = [
394943
395134
  new PluginJointFileType(FileType$2.ANNDATA_ZARR_ZIP, expandAnndataZarr, anndataZarrSchema),
394944
395135
  new PluginJointFileType(FileType$2.ANNDATA_H5AD, expandAnndataZarr, anndataH5adSchema),
394945
395136
  new PluginJointFileType(FileType$2.SPATIALDATA_ZARR, expandSpatialdataZarr, spatialdataZarrSchema),
395137
+ new PluginJointFileType(FileType$2.SPATIALDATA_ZARR_ZIP, expandSpatialdataZarr, spatialdataZarrSchema),
394946
395138
  // For legacy file types:
394947
395139
  new PluginJointFileType(FileType$2.ANNDATA_CELLS_ZARR, expandAnndataCellsZarr, anndataCellsZarrSchema),
394948
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-klVkXiXz.js";
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-C46nWpnf.js"), []);
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-klVkXiXz.js";
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,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-klVkXiXz.js";
1
+ import { aP as BaseDecoder } from "./index-B--lkeso.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -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-klVkXiXz.js";
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 { aP as BaseDecoder } from "./index-klVkXiXz.js";
1
+ import { aP as BaseDecoder } from "./index-B--lkeso.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-klVkXiXz.js";
1
+ import { aP as BaseDecoder } from "./index-B--lkeso.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-klVkXiXz.js";
1
+ import { aP as BaseDecoder } from "./index-B--lkeso.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -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-klVkXiXz.js";
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) {
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-klVkXiXz.js";
1
+ import { aP as BaseDecoder } from "./index-B--lkeso.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "3.6.2",
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.2",
20
- "@vitessce/config": "3.6.2",
21
- "@vitessce/constants": "3.6.2",
22
- "@vitessce/export-utils": "3.6.2"
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",