@vitessce/dev 3.8.3 → 3.8.5

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 { aH as getDefaultExportFromCjs, aI as Raycaster, W as OrthographicCamera, K as PerspectiveCamera, av as Scene, aJ as PCFSoftShadowMap, aK as VSMShadowMap, aL as PCFShadowMap, aM as BasicShadowMap, aN as NoToneMapping, aO as ACESFilmicToneMapping, e as Vector3, V as Vector2, aP as Clock, aQ as WebGLRenderer, aR as Camera, x as BufferGeometry, r as Material, aS as Layers, a1 as Texture, aE as RGBAFormat, az as UnsignedByteType, C as Color, aj as _extends, aT as THREE, aU as EventDispatcher, aV as MOUSE, aW as TOUCH, aX as Spherical, Q as Quaternion, an as Ray, ak as Plane } from "./index-Dmst1Qlc.js";
1
+ import { aH as getDefaultExportFromCjs, aI as Raycaster, W as OrthographicCamera, K as PerspectiveCamera, av as Scene, aJ as PCFSoftShadowMap, aK as VSMShadowMap, aL as PCFShadowMap, aM as BasicShadowMap, aN as NoToneMapping, aO as ACESFilmicToneMapping, e as Vector3, V as Vector2, aP as Clock, aQ as WebGLRenderer, aR as Camera, x as BufferGeometry, r as Material, aS as Layers, a1 as Texture, aE as RGBAFormat, az as UnsignedByteType, C as Color, aj as _extends, aT as THREE, aU as EventDispatcher, aV as MOUSE, aW as TOUCH, aX as Spherical, Q as Quaternion, an as Ray, ak as Plane } from "./index-COS5slCL.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo } from "react";
4
4
  var constants = { exports: {} };
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { aH as getDefaultExportFromCjs, b2 as requireAssign, b3 as require_export, b4 as require_core, b5 as require_fails, b6 as require_toObject, b7 as require_objectKeys, b8 as require_cof, b9 as require_wks, ba as require_iterators, bb as requireWeb_dom_iterable, bc as requireEs6_string_iterator, bd as require_anObject, be as require_hide, bf as require_ctx, bg as require_toLength, bh as require_global, bi as require_objectDp, bj as require_descriptors, bk as require_isObject, bl as require_objectCreate, bm as require_iterDefine, bn as require_iterStep, bo as require_meta, bp as require_isArray, bq as require_iobject, br as require_setToStringTag, bs as require_aFunction, bt as requireIterator, bu as require_propertyDesc, bv as require_root, bw as require_baseGetTag, bx as requireIsObjectLike, by as requireIsObject, bz as requireEs6_symbol, bA as requireDefineProperty, bB as require_toIobject, bC as require_objectGopd, bD as require_html, bE as require_domCreate, bF as require_library, bG as requireSymbol, bH as require_objectPie, bI as require_has, bJ as require_redefine, bK as require_objectAssign, bL as diffCameraState, ao as jsxRuntimeExports } from "./index-Dmst1Qlc.js";
4
+ import { aH as getDefaultExportFromCjs, b2 as requireAssign, b3 as require_export, b4 as require_core, b5 as require_fails, b6 as require_toObject, b7 as require_objectKeys, b8 as require_cof, b9 as require_wks, ba as require_iterators, bb as requireWeb_dom_iterable, bc as requireEs6_string_iterator, bd as require_anObject, be as require_hide, bf as require_ctx, bg as require_toLength, bh as require_global, bi as require_objectDp, bj as require_descriptors, bk as require_isObject, bl as require_objectCreate, bm as require_iterDefine, bn as require_iterStep, bo as require_meta, bp as require_isArray, bq as require_iobject, br as require_setToStringTag, bs as require_aFunction, bt as requireIterator, bu as require_propertyDesc, bv as require_root, bw as require_baseGetTag, bx as requireIsObjectLike, by as requireIsObject, bz as requireEs6_symbol, bA as requireDefineProperty, bB as require_toIobject, bC as require_objectGopd, bD as require_html, bE as require_domCreate, bF as require_library, bG as requireSymbol, bH as require_objectPie, bI as require_has, bJ as require_redefine, bK as require_objectAssign, bL as diffCameraState, ao as jsxRuntimeExports } from "./index-COS5slCL.js";
5
5
  import React__default from "react";
6
6
  var assignExports = requireAssign();
7
7
  const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assignExports);
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { aY as BaseDecoder } from "./index-Dmst1Qlc.js";
2
+ import { aY as BaseDecoder } from "./index-COS5slCL.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -1,7 +1,7 @@
1
1
  import * as React$7 from "react";
2
2
  import React__default, { isValidElement, PureComponent, Component, createElement, createContext, createRef } from "react";
3
3
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
4
- import { a$ as commonjsGlobal$1, b0 as requireObjectAssign, aH as getDefaultExportFromCjs$1, b1 as earcut } from "./index-Dmst1Qlc.js";
4
+ import { a$ as commonjsGlobal$1, b0 as requireObjectAssign, aH as getDefaultExportFromCjs$1, b1 as earcut } from "./index-COS5slCL.js";
5
5
  var promise = {};
6
6
  var hasRequiredPromise;
7
7
  function requirePromise() {
@@ -1243,6 +1243,7 @@ const COMPONENT_COORDINATION_TYPES = {
1243
1243
  CoordinationType$2.FEATURE_SELECTION,
1244
1244
  CoordinationType$2.FEATURE_VALUE_COLORMAP,
1245
1245
  CoordinationType$2.FEATURE_VALUE_COLORMAP_RANGE,
1246
+ CoordinationType$2.FEATURE_AGGREGATION_STRATEGY,
1246
1247
  // TODO: CoordinationType.FEATURE_COLOR_ENCODING,
1247
1248
  // TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
1248
1249
  CoordinationType$2.TOOLTIPS_VISIBLE,
@@ -1337,7 +1338,7 @@ const COMPONENT_COORDINATION_TYPES = {
1337
1338
  CoordinationType$2.HIERARCHY_LEVELS
1338
1339
  ]
1339
1340
  };
1340
- const version$6 = "3.8.3";
1341
+ const version$6 = "3.8.5";
1341
1342
  const META_VERSION = {
1342
1343
  version: version$6
1343
1344
  };
@@ -78900,7 +78901,10 @@ const spatialdataZarrSchema = z.object({
78900
78901
  obsSets: obsSetsSpatialdataSchema,
78901
78902
  obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
78902
78903
  // TODO: obsLabels
78903
- // TODO: featureLabels
78904
+ featureLabels: z.union([
78905
+ annDataFeatureLabels,
78906
+ z.array(annDataConvenienceFeatureLabelsItem)
78907
+ ]),
78904
78908
  // TODO: allow specifying tablePath and region at the top-level here.
78905
78909
  coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
78906
78910
  }).partial();
@@ -225719,22 +225723,22 @@ async function getDecoder(fileDirectory) {
225719
225723
  const Decoder = await importFn();
225720
225724
  return new Decoder(fileDirectory);
225721
225725
  }
225722
- addDecoder([void 0, 1], () => import("./raw-DzFPh4tW.js").then((m2) => m2.default));
225723
- addDecoder(5, () => import("./lzw-dGbX7M1_.js").then((m2) => m2.default));
225726
+ addDecoder([void 0, 1], () => import("./raw-BzPGqMFf.js").then((m2) => m2.default));
225727
+ addDecoder(5, () => import("./lzw-C6m15d4c.js").then((m2) => m2.default));
225724
225728
  addDecoder(6, () => {
225725
225729
  throw new Error("old style JPEG compression is not supported.");
225726
225730
  });
225727
- addDecoder(7, () => import("./jpeg-3Bg6qHc7.js").then((m2) => m2.default));
225728
- addDecoder([8, 32946], () => import("./deflate-Bbjnwo5Q.js").then((m2) => m2.default));
225729
- addDecoder(32773, () => import("./packbits-DuRBLAv0.js").then((m2) => m2.default));
225731
+ addDecoder(7, () => import("./jpeg-B3zGzlAu.js").then((m2) => m2.default));
225732
+ addDecoder([8, 32946], () => import("./deflate-zjO0Ca5L.js").then((m2) => m2.default));
225733
+ addDecoder(32773, () => import("./packbits-ec1qCW4L.js").then((m2) => m2.default));
225730
225734
  addDecoder(
225731
225735
  34887,
225732
- () => import("./lerc-CPKkCqqN.js").then(async (m2) => {
225736
+ () => import("./lerc-BB4fNcS6.js").then(async (m2) => {
225733
225737
  await m2.zstd.init();
225734
225738
  return m2;
225735
225739
  }).then((m2) => m2.default)
225736
225740
  );
225737
- addDecoder(50001, () => import("./webimage-BtfuLHdH.js").then((m2) => m2.default));
225741
+ addDecoder(50001, () => import("./webimage-tJEWb4Uk.js").then((m2) => m2.default));
225738
225742
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
225739
225743
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
225740
225744
  }
@@ -247875,7 +247879,9 @@ function EmbeddingScatterplotSubscriber(props) {
247875
247879
  // Average fill density for dynamic opacity calculation.
247876
247880
  averageFillDensity,
247877
247881
  // For the dual scatterplot:
247878
- sampleSetSelection: sampleSetSelectionFromProps
247882
+ sampleSetSelection: sampleSetSelectionFromProps,
247883
+ // Circle scale factor:
247884
+ circleScaleFactor = 0.8
247879
247885
  } = props;
247880
247886
  const loaders = useLoaders();
247881
247887
  const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
@@ -248080,7 +248086,7 @@ function EmbeddingScatterplotSubscriber(props) {
248080
248086
  return null;
248081
248087
  }
248082
248088
  const size2 = Math.max(xRange, yRange);
248083
- const radius2 = size2 * Math.sqrt(2) / 2 * 0.8;
248089
+ const radius2 = size2 * Math.sqrt(2) / 2 * circleScaleFactor;
248084
248090
  const numPoints = 96;
248085
248091
  const options = { steps: numPoints, units: "degrees" };
248086
248092
  const circlePolygon = circle$5(center2, radius2, options);
@@ -248090,7 +248096,7 @@ function EmbeddingScatterplotSubscriber(props) {
248090
248096
  polygon: circlePolygon,
248091
248097
  steps: numPoints
248092
248098
  };
248093
- }, [originalViewState, width2, height2, xRange, yRange]);
248099
+ }, [originalViewState, width2, height2, xRange, yRange, circleScaleFactor]);
248094
248100
  const [alignedEmbeddingIndex, alignedEmbeddingData] = useMemo$1(() => {
248095
248101
  if (obsEmbedding?.data && obsEmbeddingIndex && matrixObsIndex) {
248096
248102
  const matrixIndexMap = new Map(matrixObsIndex.map((key2, i2) => [key2, i2]));
@@ -269190,12 +269196,12 @@ class ErrorBoundary2 extends React__default.Component {
269190
269196
  }
269191
269197
  }
269192
269198
  const LazySpatialThree = React__default.lazy(async () => {
269193
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-C9daXQxF.js");
269199
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-Csg3LcXP.js");
269194
269200
  return { default: SpatialWrapper2 };
269195
269201
  });
269196
269202
  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 }) }) }) }));
269197
269203
  const LazySpatialAccelerated = React__default.lazy(async () => {
269198
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-P4AgKZBq.js");
269204
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-XJ2_CWLT.js");
269199
269205
  return { default: SpatialWrapper2 };
269200
269206
  });
269201
269207
  const SpatialAcceleratedAdapter = 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(LazySpatialAccelerated, { ...props }) }) }) }));
@@ -281167,7 +281173,7 @@ function HiglassGlobalStyles(props) {
281167
281173
  }
281168
281174
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
281169
281175
  const LazyHiGlassComponent = React__default.lazy(async () => {
281170
- const { HiGlassComponent } = await import("./higlass-DYYDCxCf.js");
281176
+ const { HiGlassComponent } = await import("./higlass-bNAxKTAf.js");
281171
281177
  return { default: HiGlassComponent };
281172
281178
  });
281173
281179
  const HG_SIZE = 800;
@@ -284114,7 +284120,7 @@ function NeuroglancerGlobalStyles(props) {
284114
284120
  const { classes: classes2 } = props;
284115
284121
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
284116
284122
  }
284117
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-DXSQCyEw.js"));
284123
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-Cm9GyuIH.js"));
284118
284124
  function createWorker() {
284119
284125
  return new WorkerFactory();
284120
284126
  }
@@ -314367,6 +314373,7 @@ accessor$1(() => 0, [], "zero");
314367
314373
  accessor$1(() => 1, [], "one");
314368
314374
  accessor$1(() => true, [], "true");
314369
314375
  accessor$1(() => false, [], "false");
314376
+ /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((name2) => typeof Object.prototype[name2] === "function"), "__proto__"]);
314370
314377
  var isArray$2 = Array.isArray;
314371
314378
  function peek$2(array2) {
314372
314379
  return array2[array2.length - 1];
@@ -316649,8 +316656,7 @@ function splitAccessPath(p) {
316649
316656
  for (i2 = j = 0; j < n3; ++j) {
316650
316657
  c2 = p[j];
316651
316658
  if (c2 === "\\") {
316652
- s2 += p.substring(i2, j);
316653
- s2 += p.substring(++j, ++j);
316659
+ s2 += p.substring(i2, j++);
316654
316660
  i2 = j;
316655
316661
  } else if (c2 === q) {
316656
316662
  push2();
@@ -316708,7 +316714,8 @@ const Error$1 = 1;
316708
316714
  const Warn = 2;
316709
316715
  const Info2 = 3;
316710
316716
  const Debug = 4;
316711
- function logger(_, method2, handler = log$1$1) {
316717
+ function logger(_, method2) {
316718
+ let handler = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : log$1$1;
316712
316719
  let level = _ || None$2;
316713
316720
  return {
316714
316721
  level(_2) {
@@ -316742,7 +316749,10 @@ function isObject$2(_) {
316742
316749
  return _ === Object(_);
316743
316750
  }
316744
316751
  const isLegalKey = (key2) => key2 !== "__proto__";
316745
- function mergeConfig(...configs) {
316752
+ function mergeConfig() {
316753
+ for (var _len = arguments.length, configs = new Array(_len), _key = 0; _key < _len; _key++) {
316754
+ configs[_key] = arguments[_key];
316755
+ }
316746
316756
  return configs.reduce((out, source2) => {
316747
316757
  for (const key2 in source2) {
316748
316758
  if (key2 === "signals") {
@@ -316980,9 +316990,8 @@ function extentIndex(array2, f2) {
316980
316990
  }
316981
316991
  return [u2, v];
316982
316992
  }
316983
- const hop = Object.prototype.hasOwnProperty;
316984
316993
  function has$1(object2, property2) {
316985
- return hop.call(object2, property2);
316994
+ return Object.hasOwn(object2, property2);
316986
316995
  }
316987
316996
  const NULL = {};
316988
316997
  function fastmap(input) {
@@ -368780,7 +368789,7 @@ const initialState$1 = {
368780
368789
  };
368781
368790
  const pageSizeOptions$1 = [10];
368782
368791
  function FeatureStatsTable(props) {
368783
- const { obsType, featureType, obsSetsColumnNameMappingReversed, sampleSetsColumnNameMappingReversed, sampleSetSelection, data: data2, setFeatureSelection, featurePointSignificanceThreshold, featurePointFoldChangeThreshold } = props;
368792
+ const { obsType, featureType, obsSetsColumnNameMappingReversed, sampleSetsColumnNameMappingReversed, sampleSetSelection, data: data2, setFeatureSelection, setFeatureAggregationStrategy, featurePointSignificanceThreshold, featurePointFoldChangeThreshold } = props;
368784
368793
  const [
368785
368794
  // eslint-disable-next-line no-unused-vars
368786
368795
  computedData,
@@ -368840,6 +368849,7 @@ function FeatureStatsTable(props) {
368840
368849
  }, [filteredData, obsSetsColumnNameMappingReversed]);
368841
368850
  const onSelectionModelChange = useCallback((rowIds) => {
368842
368851
  const featureIds = Array.from(rowIds.ids).map((rowId) => rowId.split(ROW_ID_DELIMITER)[0]);
368852
+ setFeatureAggregationStrategy(null);
368843
368853
  setFeatureSelection(featureIds);
368844
368854
  }, []);
368845
368855
  const rowSelectionModel = useMemo$1(() => ({ ids: /* @__PURE__ */ new Set([]), type: "include" }), []);
@@ -368863,7 +368873,7 @@ function FeatureStatsTableSubscriber(props) {
368863
368873
  const { title: title2 = "Differential Expression Results", coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_STATS_TABLE } = props;
368864
368874
  const loaders = useLoaders();
368865
368875
  const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
368866
- const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_STATS_TABLE], coordinationScopes);
368876
+ const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, featureAggregationStrategy, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setFeatureAggregationStrategy, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_STATS_TABLE], coordinationScopes);
368867
368877
  const obsSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.OBS_SETS, { obsType });
368868
368878
  const sampleSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.SAMPLE_SETS, { sampleType });
368869
368879
  const obsSetsColumnNameMapping = useColumnNameMapping(obsSetsLoader);
@@ -368886,7 +368896,7 @@ function FeatureStatsTableSubscriber(props) {
368886
368896
  const isReady = useReady([
368887
368897
  featureStatsStatus
368888
368898
  ]);
368889
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, theme, isReady, helpText, errors, withPadding: false, children: featureStats ? jsxRuntimeExports.jsx(FeatureStatsTable, { theme, obsType, featureType, obsSetsColumnNameMapping, obsSetsColumnNameMappingReversed, sampleSetsColumnNameMapping, sampleSetsColumnNameMappingReversed, sampleSetSelection, obsSetSelection, obsSetColor, sampleSetColor, data: featureStats, featureSelection, setFeatureSelection, featurePointSignificanceThreshold, featurePointFoldChangeThreshold }) : jsxRuntimeExports.jsxs("p", { style: { padding: "12px" }, children: ["Select at least one ", obsType, " set."] }) });
368899
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, theme, isReady, helpText, errors, withPadding: false, children: featureStats ? jsxRuntimeExports.jsx(FeatureStatsTable, { theme, obsType, featureType, obsSetsColumnNameMapping, obsSetsColumnNameMappingReversed, sampleSetsColumnNameMapping, sampleSetsColumnNameMappingReversed, sampleSetSelection, obsSetSelection, obsSetColor, sampleSetColor, data: featureStats, featureSelection, setFeatureSelection, setFeatureAggregationStrategy, featurePointSignificanceThreshold, featurePointFoldChangeThreshold }) : jsxRuntimeExports.jsxs("p", { style: { padding: "12px" }, children: ["Select at least one ", obsType, " set."] }) });
368890
368900
  }
368891
368901
  class CsvSource {
368892
368902
  constructor({ url, requestInit: requestInit2 }) {
@@ -372344,6 +372354,13 @@ class SpatialDataObsEmbeddingLoader extends ObsEmbeddingAnndataLoader {
372344
372354
  this.tablePath = this.options.tablePath;
372345
372355
  }
372346
372356
  }
372357
+ class SpatialDataFeatureLabelsLoader extends FeatureLabelsAnndataLoader {
372358
+ constructor(dataSource, params2) {
372359
+ super(dataSource, params2);
372360
+ this.region = this.options.region;
372361
+ this.tablePath = this.options.tablePath;
372362
+ }
372363
+ }
372347
372364
  class PrecomputedMeshSource {
372348
372365
  constructor({ url, requestInit: requestInit2 }) {
372349
372366
  this.url = url;
@@ -393692,7 +393709,20 @@ function expandSpatialdataZarr(fileDef) {
393692
393709
  // TODO: obsPoints?
393693
393710
  // TODO: obsLocations?
393694
393711
  // TODO: obsLabels
393695
- // TODO: featureLabels
393712
+ // featureLabels
393713
+ ...options.featureLabels ? [{
393714
+ ...baseFileDef,
393715
+ fileType: getFileType2(FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR),
393716
+ options: {
393717
+ ...options.featureLabels,
393718
+ tablePath: options.tablePath,
393719
+ region: options.region
393720
+ },
393721
+ coordinationValues: {
393722
+ ...extraCoordinationValues,
393723
+ featureType: baseFileDef.coordinationValues.featureType
393724
+ }
393725
+ }] : [],
393696
393726
  // obsEmbedding
393697
393727
  // eslint-disable-next-line no-nested-ternary
393698
393728
  ...options.obsEmbedding ? Array.isArray(options.obsEmbedding) ? options.obsEmbedding.map((oe) => ({
@@ -394145,7 +394175,7 @@ const baseFileTypes = [
394145
394175
  ...makeZarrFileTypes(FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR, DataType$4.OBS_FEATURE_MATRIX, ObsFeatureMatrixAnndataLoader, SpatialDataTableSource, obsFeatureMatrixSpatialdataSchema),
394146
394176
  ...makeZarrFileTypes(FileType$2.OBS_SETS_SPATIALDATA_ZARR, DataType$4.OBS_SETS, SpatialDataObsSetsLoader, SpatialDataTableSource, obsSetsSpatialdataSchema),
394147
394177
  ...makeZarrFileTypes(FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR, DataType$4.OBS_EMBEDDING, SpatialDataObsEmbeddingLoader, SpatialDataTableSource, obsEmbeddingSpatialdataSchema),
394148
- ...makeZarrFileTypes(FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR, DataType$4.FEATURE_LABELS, FeatureLabelsAnndataLoader, SpatialDataTableSource, featureLabelsAnndataSchema),
394178
+ ...makeZarrFileTypes(FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR, DataType$4.FEATURE_LABELS, SpatialDataFeatureLabelsLoader, SpatialDataTableSource, featureLabelsAnndataSchema),
394149
394179
  makeFileType(FileType$2.OBS_SEGMENTATIONS_GLB, DataType$4.OBS_SEGMENTATIONS, GlbDataLoader, GlbSource, meshGlbSchema),
394150
394180
  makeFileType(FileType$2.OBS_SEGMENTATIONS_NG_PRECOMPUTED, DataType$4.OBS_SEGMENTATIONS, PrecomputedMeshDataLoader, PrecomputedMeshSource, ngSchema),
394151
394181
  // All legacy file types
@@ -1,7 +1,7 @@
1
- import { G as Group, M as Matrix4, T as TrianglesDrawMode, a as TriangleFanDrawMode, b as TriangleStripDrawMode, R as REVISION, L as Loader, c as LoaderUtils, F as FileLoader, d as MeshPhysicalMaterial, V as Vector2, C as Color, S as SpotLight, P as PointLight, D as DirectionalLight, e as Vector3, I as InstancedMesh, Q as Quaternion, O as Object3D, f as TextureLoader, g as ImageBitmapLoader, B as BufferAttribute, h as InterleavedBuffer, i as LinearMipmapLinearFilter, N as NearestMipmapLinearFilter, j as LinearMipmapNearestFilter, k as NearestMipmapNearestFilter, l as LinearFilter, m as NearestFilter, n as RepeatWrapping, o as MirroredRepeatWrapping, p as ClampToEdgeWrapping, q as PointsMaterial, r as Material, s as LineBasicMaterial, t as MeshStandardMaterial, u as DoubleSide, v as MeshBasicMaterial, w as PropertyBinding, x as BufferGeometry, y as SkinnedMesh, z as Mesh, A as LineSegments, E as Line$1, H as LineLoop, J as Points, K as PerspectiveCamera, U as MathUtils, W as OrthographicCamera, X as Skeleton, Y as InterpolateDiscrete, Z as InterpolateLinear, _ as AnimationClip, $ as Bone, a0 as InterleavedBufferAttribute, a1 as Texture, a2 as VectorKeyframeTrack, a3 as QuaternionKeyframeTrack, a4 as NumberKeyframeTrack, a5 as FrontSide, a6 as Interpolant, a7 as Box3, a8 as Sphere, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as WireframeGeometry, ad as ShaderMaterial, ae as UniformsUtils, af as UniformsLib, ag as Vector4, ah as Line3, ai as SphereGeometry, aj as _extends, ak as Plane, al as Triangle, am as BackSide, an as Ray$1, ao as jsxRuntimeExports, ap as Matrix3, aq as CoordinationType, ar as Data3DTexture, as as RedFormat, at as FloatType, au as getImageSize, av as Scene } from "./index-Dmst1Qlc.js";
1
+ import { G as Group, M as Matrix4, T as TrianglesDrawMode, a as TriangleFanDrawMode, b as TriangleStripDrawMode, R as REVISION, L as Loader, c as LoaderUtils, F as FileLoader, d as MeshPhysicalMaterial, V as Vector2, C as Color, S as SpotLight, P as PointLight, D as DirectionalLight, e as Vector3, I as InstancedMesh, Q as Quaternion, O as Object3D, f as TextureLoader, g as ImageBitmapLoader, B as BufferAttribute, h as InterleavedBuffer, i as LinearMipmapLinearFilter, N as NearestMipmapLinearFilter, j as LinearMipmapNearestFilter, k as NearestMipmapNearestFilter, l as LinearFilter, m as NearestFilter, n as RepeatWrapping, o as MirroredRepeatWrapping, p as ClampToEdgeWrapping, q as PointsMaterial, r as Material, s as LineBasicMaterial, t as MeshStandardMaterial, u as DoubleSide, v as MeshBasicMaterial, w as PropertyBinding, x as BufferGeometry, y as SkinnedMesh, z as Mesh, A as LineSegments, E as Line$1, H as LineLoop, J as Points, K as PerspectiveCamera, U as MathUtils, W as OrthographicCamera, X as Skeleton, Y as InterpolateDiscrete, Z as InterpolateLinear, _ as AnimationClip, $ as Bone, a0 as InterleavedBufferAttribute, a1 as Texture, a2 as VectorKeyframeTrack, a3 as QuaternionKeyframeTrack, a4 as NumberKeyframeTrack, a5 as FrontSide, a6 as Interpolant, a7 as Box3, a8 as Sphere, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as WireframeGeometry, ad as ShaderMaterial, ae as UniformsUtils, af as UniformsLib, ag as Vector4, ah as Line3, ai as SphereGeometry, aj as _extends, ak as Plane, al as Triangle, am as BackSide, an as Ray$1, ao as jsxRuntimeExports, ap as Matrix3, aq as CoordinationType, ar as Data3DTexture, as as RedFormat, at as FloatType, au as getImageSize, av as Scene } from "./index-COS5slCL.js";
2
2
  import * as React from "react";
3
3
  import { useRef, useEffect, useState, forwardRef } from "react";
4
- import { u as useThree, a as useFrame, c as create, e as extend, b as createPortal, O as OrbitControls, C as Canvas } from "./OrbitControls-BXmqSs8k.js";
4
+ import { u as useThree, a as useFrame, c as create, e as extend, b as createPortal, O as OrbitControls, C as Canvas } from "./OrbitControls-Cbe7_IQ9.js";
5
5
  const isPromise = (promise) => typeof promise === "object" && typeof promise.then === "function";
6
6
  const globalCache = [];
7
7
  function shallowEqualArrays(arrA, arrB, equal = (a, b) => a === b) {
@@ -5027,7 +5027,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
5027
5027
  const {
5028
5028
  Text: TextMeshImpl,
5029
5029
  preloadFont
5030
- } = suspend(async () => import("./troika-three-text.esm-CvnPemn8.js"), []);
5030
+ } = suspend(async () => import("./troika-three-text.esm-BPmD8MJH.js"), []);
5031
5031
  const invalidate = useThree(({
5032
5032
  invalidate: invalidate2
5033
5033
  }) => invalidate2);
@@ -1,6 +1,6 @@
1
- import { aw as log, ax as isEqual, ay as atLeastLogLevel, ar as Data3DTexture, as as RedFormat, az as UnsignedByteType, l as LinearFilter, aA as RedIntegerFormat, aB as UnsignedIntType, m as NearestFilter, aC as LogLevel, e as Vector3, V as Vector2, ag as Vector4, ae as UniformsUtils, aq as CoordinationType, aD as WebGLMultipleRenderTargets, aE as RGBAFormat, av as Scene, W as OrthographicCamera, ad as ShaderMaterial, z as Mesh, aF as PlaneGeometry, ao as jsxRuntimeExports, aG as GLSL3, am as BackSide } from "./index-Dmst1Qlc.js";
1
+ import { aw as log, ax as isEqual, ay as atLeastLogLevel, ar as Data3DTexture, as as RedFormat, az as UnsignedByteType, l as LinearFilter, aA as RedIntegerFormat, aB as UnsignedIntType, m as NearestFilter, aC as LogLevel, e as Vector3, V as Vector2, ag as Vector4, ae as UniformsUtils, aq as CoordinationType, aD as WebGLMultipleRenderTargets, aE as RGBAFormat, av as Scene, W as OrthographicCamera, ad as ShaderMaterial, z as Mesh, aF as PlaneGeometry, ao as jsxRuntimeExports, aG as GLSL3, am as BackSide } from "./index-COS5slCL.js";
2
2
  import { useRef, useState, useMemo, useEffect, useCallback } from "react";
3
- import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-BXmqSs8k.js";
3
+ import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-Cbe7_IQ9.js";
4
4
  const BRICK_SIZE = 32;
5
5
  const BRICK_CACHE_SIZE_X = 64;
6
6
  const BRICK_CACHE_SIZE_Y = 64;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b$, bW, bU, bV, c3, c4, bX, cc, ca, c8, cb, c9, bT, c7, bY, bS, bR, c1, c0, c2, c6, c5, b_, ch, ck, ce, cl, cm, cf, ci, cj, cg, bZ, cd } from "./index-Dmst1Qlc.js";
1
+ import { b$, bW, bU, bV, c3, c4, bX, cc, ca, c8, cb, c9, bT, c7, bY, bS, bR, c1, c0, c2, c6, c5, b_, ch, ck, ce, cl, cm, cf, ci, cj, cg, bZ, cd } from "./index-COS5slCL.js";
2
2
  import "react";
3
3
  export {
4
4
  b$ as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { aY as BaseDecoder } from "./index-Dmst1Qlc.js";
1
+ import { aY as BaseDecoder } from "./index-COS5slCL.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 { aH as getDefaultExportFromCjs, aY as BaseDecoder, aZ as LercParameters, a_ as LercAddCompression } from "./index-Dmst1Qlc.js";
2
+ import { aH as getDefaultExportFromCjs, aY as BaseDecoder, aZ as LercParameters, a_ as LercAddCompression } from "./index-COS5slCL.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { aY as BaseDecoder } from "./index-Dmst1Qlc.js";
1
+ import { aY as BaseDecoder } from "./index-COS5slCL.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 { aY as BaseDecoder } from "./index-Dmst1Qlc.js";
1
+ import { aY as BaseDecoder } from "./index-COS5slCL.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { aY as BaseDecoder } from "./index-Dmst1Qlc.js";
1
+ import { aY as BaseDecoder } from "./index-COS5slCL.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { bM as MeshDistanceMaterial, bN as MeshDepthMaterial, bO as RGBADepthPacking, ae as UniformsUtils, bP as ShaderChunk, a9 as InstancedBufferGeometry, a8 as Sphere, a7 as Box3, am as BackSide, u as DoubleSide, z as Mesh, a5 as FrontSide, v as MeshBasicMaterial, C as Color, e as Vector3, M as Matrix4, V as Vector2, ap as Matrix3, ag as Vector4, a1 as Texture, l as LinearFilter, aF as PlaneGeometry, x as BufferGeometry, aa as Float32BufferAttribute, bQ as InstancedBufferAttribute } from "./index-Dmst1Qlc.js";
1
+ import { bM as MeshDistanceMaterial, bN as MeshDepthMaterial, bO as RGBADepthPacking, ae as UniformsUtils, bP as ShaderChunk, a9 as InstancedBufferGeometry, a8 as Sphere, a7 as Box3, am as BackSide, u as DoubleSide, z as Mesh, a5 as FrontSide, v as MeshBasicMaterial, C as Color, e as Vector3, M as Matrix4, V as Vector2, ap as Matrix3, ag as Vector4, a1 as Texture, l as LinearFilter, aF as PlaneGeometry, x as BufferGeometry, aa as Float32BufferAttribute, bQ as InstancedBufferAttribute } from "./index-COS5slCL.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 { aY as BaseDecoder } from "./index-Dmst1Qlc.js";
1
+ import { aY as BaseDecoder } from "./index-COS5slCL.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.8.3",
3
+ "version": "3.8.5",
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.8.3",
20
- "@vitessce/config": "3.8.3",
21
- "@vitessce/constants": "3.8.3",
22
- "@vitessce/export-utils": "3.8.3"
19
+ "@vitessce/all": "3.8.5",
20
+ "@vitessce/constants": "3.8.5",
21
+ "@vitessce/export-utils": "3.8.5",
22
+ "@vitessce/config": "3.8.5"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",