@vitessce/dev 3.8.6 → 3.8.7

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-CjaAGVsZ.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-CnvMcPM6.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-CjaAGVsZ.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-CnvMcPM6.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-CjaAGVsZ.js";
2
+ import { aY as BaseDecoder } from "./index-CnvMcPM6.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-CjaAGVsZ.js";
4
+ import { a$ as commonjsGlobal$1, b0 as requireObjectAssign, aH as getDefaultExportFromCjs$1, b1 as earcut } from "./index-CnvMcPM6.js";
5
5
  var promise = {};
6
6
  var hasRequiredPromise;
7
7
  function requirePromise() {
@@ -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-CjaAGVsZ.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-CnvMcPM6.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-DSrlNsWT.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-CbFN7juj.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-DsxLD2q8.js"), []);
5030
+ } = suspend(async () => import("./troika-three-text.esm-DMd5zm_P.js"), []);
5031
5031
  const invalidate = useThree(({
5032
5032
  invalidate: invalidate2
5033
5033
  }) => invalidate2);
@@ -1338,7 +1338,7 @@ const COMPONENT_COORDINATION_TYPES = {
1338
1338
  CoordinationType$2.HIERARCHY_LEVELS
1339
1339
  ]
1340
1340
  };
1341
- const version$6 = "3.8.6";
1341
+ const version$6 = "3.8.7";
1342
1342
  const META_VERSION = {
1343
1343
  version: version$6
1344
1344
  };
@@ -90239,7 +90239,7 @@ After: ${JSON.stringify(coordinationValuesWithDefaults)}`);
90239
90239
  }
90240
90240
  return coordinationValuesWithDefaults;
90241
90241
  }
90242
- function createLoaders(datasets, configDescription, fileTypes, coordinationTypes, stores) {
90242
+ function createLoaders(datasets, configDescription, fileTypes, coordinationTypes, stores, queryClient) {
90243
90243
  const result = {};
90244
90244
  const dataSources = new InternMap$1([], JSON.stringify);
90245
90245
  const defaultCoordinationValues = Object.fromEntries(coordinationTypes.map((ct) => [ct.name, ct.defaultValue]));
@@ -90266,7 +90266,8 @@ function createLoaders(datasets, configDescription, fileTypes, coordinationTypes
90266
90266
  refSpecUrl: options?.refSpecUrl,
90267
90267
  // Optionally, pass a Zarrita store to the data source,
90268
90268
  // if one was mapped to this URL.
90269
- store: stores?.[url]
90269
+ store: stores?.[url],
90270
+ queryClient
90270
90271
  }));
90271
90272
  }
90272
90273
  const loader2 = new LoaderClass(dataSources.get(dataSourceKey), file);
@@ -91183,10 +91184,10 @@ function getAltText(config3) {
91183
91184
  const padding$2 = 10;
91184
91185
  const margin = 5;
91185
91186
  function VitessceGrid(props) {
91186
- const { success, configKey, rowHeight: initialRowHeight, config: config3, theme, height: height2, isBounded, viewTypes, fileTypes, coordinationTypes, stores, pageMode, children: children3 } = props;
91187
+ const { success, configKey, rowHeight: initialRowHeight, config: config3, theme, height: height2, isBounded, viewTypes, fileTypes, coordinationTypes, stores, pageMode, children: children3, queryClient } = props;
91187
91188
  const [rowHeight, containerRef] = useRowHeight(config3, initialRowHeight, height2, margin, padding$2);
91188
91189
  const onResize4 = useEmitGridResize();
91189
- const [componentWidth] = useClosestVitessceContainerSize(containerRef, 0);
91190
+ const [componentWidth] = useClosestVitessceContainerSize(containerRef);
91190
91191
  const { classes: classes2 } = useVitessceContainerStyles();
91191
91192
  const { classes: titleClasses } = useTitleStyles();
91192
91193
  const altText = useMemo$1(() => getAltText(config3), [configKey]);
@@ -91208,7 +91209,7 @@ function VitessceGrid(props) {
91208
91209
  let newLoaders = null;
91209
91210
  let newConfig = null;
91210
91211
  if (success) {
91211
- newLoaders = createLoaders(config3.datasets, config3.description, fileTypes, coordinationTypes, stores);
91212
+ newLoaders = createLoaders(config3.datasets, config3.description, fileTypes, coordinationTypes, stores, queryClient);
91212
91213
  newConfig = config3;
91213
91214
  }
91214
91215
  setViewConfig(newConfig);
@@ -91548,7 +91549,7 @@ function VitS(props) {
91548
91549
  }, [success, configKey, configOrWarning, onConfigChange]);
91549
91550
  const createViewConfigStoreClosure = useCallback(() => {
91550
91551
  if (success) {
91551
- const loaders = createLoaders(configOrWarning.datasets, configOrWarning.description, fileTypes, coordinationTypes, stores);
91552
+ const loaders = createLoaders(configOrWarning.datasets, configOrWarning.description, fileTypes, coordinationTypes, stores, queryClient);
91552
91553
  return createViewConfigStore(loaders, configOrWarning);
91553
91554
  }
91554
91555
  return createViewConfigStore(null, null);
@@ -91556,7 +91557,7 @@ function VitS(props) {
91556
91557
  if (debugMode && debugErrors.length > 0) {
91557
91558
  return jsxRuntimeExports.jsx(CacheProvider, { value: muiCache, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(DebugWindow, { debugErrors }) }) });
91558
91559
  }
91559
- return success ? jsxRuntimeExports.jsx(CacheProvider, { value: muiCache, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: jsxRuntimeExports.jsx(ViewConfigProvider, { createStore: createViewConfigStoreClosure, children: jsxRuntimeExports.jsx(AuxiliaryProvider, { createStore: createAuxiliaryStore, children: jsxRuntimeExports.jsxs(AsyncFunctionsContext.Provider, { value: asyncFunctions, children: [jsxRuntimeExports.jsx(VitessceGrid, { pageMode, success, configKey, viewTypes, fileTypes, coordinationTypes, config: configOrWarning, rowHeight, height: height2, theme, isBounded, stores, children: children3 }), jsxRuntimeExports.jsx(CallbackPublisher, { onWarn, onConfigChange, onLoaderChange, validateOnConfigChange, pluginSpecificConfigSchema })] }) }) }, remountOnUidChange ? configKey : void 0) }) }) }) : jsxRuntimeExports.jsx(CacheProvider, { value: muiCache, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(Warning, { ...configOrWarning }) }) });
91560
+ return success ? jsxRuntimeExports.jsx(CacheProvider, { value: muiCache, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(QueryClientProvider, { client: queryClient, children: jsxRuntimeExports.jsx(ViewConfigProvider, { createStore: createViewConfigStoreClosure, children: jsxRuntimeExports.jsx(AuxiliaryProvider, { createStore: createAuxiliaryStore, children: jsxRuntimeExports.jsxs(AsyncFunctionsContext.Provider, { value: asyncFunctions, children: [jsxRuntimeExports.jsx(VitessceGrid, { pageMode, success, configKey, viewTypes, fileTypes, coordinationTypes, config: configOrWarning, rowHeight, height: height2, theme, isBounded, stores, queryClient, children: children3 }), jsxRuntimeExports.jsx(CallbackPublisher, { onWarn, onConfigChange, onLoaderChange, validateOnConfigChange, pluginSpecificConfigSchema })] }) }) }, remountOnUidChange ? configKey : void 0) }) }) }) : jsxRuntimeExports.jsx(CacheProvider, { value: muiCache, children: jsxRuntimeExports.jsx(ThemeProvider, { theme: muiTheme[theme], children: jsxRuntimeExports.jsx(Warning, { ...configOrWarning }) }) });
91560
91561
  }
91561
91562
  function FallbackForVitS(props) {
91562
91563
  const {
@@ -228937,22 +228938,22 @@ async function getDecoder(fileDirectory) {
228937
228938
  const Decoder = await importFn();
228938
228939
  return new Decoder(fileDirectory);
228939
228940
  }
228940
- addDecoder([void 0, 1], () => import("./raw-CYPWrsax.js").then((m2) => m2.default));
228941
- addDecoder(5, () => import("./lzw-Co2kZJlv.js").then((m2) => m2.default));
228941
+ addDecoder([void 0, 1], () => import("./raw-CVVlCDxo.js").then((m2) => m2.default));
228942
+ addDecoder(5, () => import("./lzw-BWUrJAeN.js").then((m2) => m2.default));
228942
228943
  addDecoder(6, () => {
228943
228944
  throw new Error("old style JPEG compression is not supported.");
228944
228945
  });
228945
- addDecoder(7, () => import("./jpeg-DMBNSkhh.js").then((m2) => m2.default));
228946
- addDecoder([8, 32946], () => import("./deflate-BZNydjIa.js").then((m2) => m2.default));
228947
- addDecoder(32773, () => import("./packbits-CmsZTbfr.js").then((m2) => m2.default));
228946
+ addDecoder(7, () => import("./jpeg-CE5L_Cxt.js").then((m2) => m2.default));
228947
+ addDecoder([8, 32946], () => import("./deflate-CaCVD00v.js").then((m2) => m2.default));
228948
+ addDecoder(32773, () => import("./packbits-DNzaQQCb.js").then((m2) => m2.default));
228948
228949
  addDecoder(
228949
228950
  34887,
228950
- () => import("./lerc-CvZVt9Jn.js").then(async (m2) => {
228951
+ () => import("./lerc-w-bwN3SA.js").then(async (m2) => {
228951
228952
  await m2.zstd.init();
228952
228953
  return m2;
228953
228954
  }).then((m2) => m2.default)
228954
228955
  );
228955
- addDecoder(50001, () => import("./webimage-D6YqXqvM.js").then((m2) => m2.default));
228956
+ addDecoder(50001, () => import("./webimage-oGT2TTKJ.js").then((m2) => m2.default));
228956
228957
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
228957
228958
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
228958
228959
  }
@@ -246846,11 +246847,11 @@ function TooltipContent(props) {
246846
246847
  return jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(mappedInfo).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { children: key2 }), jsxRuntimeExports.jsx("td", { children: value2 })] }, key2)) }) });
246847
246848
  }
246848
246849
  function ScatterplotTooltipSubscriber(props) {
246849
- const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo, featureType, featureLabelsMap } = props;
246850
+ const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, featureType, featureLabelsMap } = props;
246850
246851
  const sourceUuid = useComponentHover();
246851
246852
  const viewInfo = useComponentViewInfo(parentUuid);
246852
- const [cellInfo, x2, y2] = obsHighlight && getObsInfo ? [
246853
- getObsInfo(obsHighlight),
246853
+ const [cellInfo, x2, y2] = obsHighlight && getObsInfo2 ? [
246854
+ getObsInfo2(obsHighlight),
246854
246855
  ...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight) : [null, null]
246855
246856
  ] : [null, null, null];
246856
246857
  return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo, featureType, featureLabelsMap }) }) : null;
@@ -251262,7 +251263,7 @@ function EmbeddingScatterplotSubscriber(props) {
251262
251263
  initialTargetY,
251263
251264
  averageFillDensity
251264
251265
  ]);
251265
- const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
251266
+ const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
251266
251267
  const cellSelectionSet = useMemo$1(() => new Set(cellSelection), [cellSelection]);
251267
251268
  const getCellIsSelected = useCallback((object2, { index: index2 }) => (cellSelectionSet || /* @__PURE__ */ new Set([])).has(obsEmbeddingIndex[index2]) ? 1 : 0, [cellSelectionSet, obsEmbeddingIndex]);
251268
251269
  const cellRadius = cellRadiusMode === "manual" ? cellRadiusFixed : dynamicCellRadius;
@@ -251419,7 +251420,7 @@ function EmbeddingScatterplotSubscriber(props) {
251419
251420
  embeddingContoursVisible,
251420
251421
  circleInfo,
251421
251422
  featureSelection: geneSelection
251422
- }), tooltipsVisible && width2 && height2 ? jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo, featureType, featureLabelsMap }) : null, jsxRuntimeExports.jsx(Legend, {
251423
+ }), tooltipsVisible && width2 && height2 ? jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, featureType, featureLabelsMap }) : null, jsxRuntimeExports.jsx(Legend, {
251423
251424
  visible: true,
251424
251425
  theme,
251425
251426
  featureType,
@@ -251699,7 +251700,7 @@ function GatingSubscriber(props) {
251699
251700
  matrixObsIndex: obsIndex,
251700
251701
  expressionData: uint8ExpressionData
251701
251702
  });
251702
- const getObsInfo = useCallback((obsId) => {
251703
+ const getObsInfo2 = useCallback((obsId) => {
251703
251704
  const selectedTransformName = VALUE_TRANSFORM_OPTIONS.find((o2) => o2.value === featureValueTransform)?.name;
251704
251705
  const genePrefix = featureValueTransform ? `${selectedTransformName} ` : "";
251705
251706
  const obsIdx = obsIndex?.indexOf(obsId);
@@ -251730,7 +251731,7 @@ function GatingSubscriber(props) {
251730
251731
  setZoom(null);
251731
251732
  }, gatingFeatureValueTransformCoefficient: featureValueTransformCoefficient, setGatingFeatureValueTransformCoefficient: setFeatureValueTransformCoefficient, geneSelectOptions: featureIndex, transformOptions: VALUE_TRANSFORM_OPTIONS }) }), children: [jsxRuntimeExports.jsx(EmptyMessage, { visible: !(gatingFeatureSelectionX && gatingFeatureSelectionY), message: `Select two ${pluralize(featureType, 2)} in the plot settings.` }), jsxRuntimeExports.jsx(ScatterplotWrapper, { ref: deckRef, uuid: uuid2, theme, hideTools: !(gatingFeatureSelectionX && gatingFeatureSelectionY), hideRecenter: !(gatingFeatureSelectionX && gatingFeatureSelectionY), viewState: { zoom: zoom2, target: [targetX2, targetY2, targetZ] }, setViewState, originalViewState, obsEmbeddingIndex: obsIndex, obsEmbedding: obsXY, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
251732
251733
  setComponentHover(uuid2);
251733
- }, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected, embeddingPointsVisible: true }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo })] });
251734
+ }, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected, embeddingPointsVisible: true }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 })] });
251734
251735
  }
251735
251736
  var DEFAULT_CONFIG = {
251736
251737
  // minimum relative difference between two compared values,
@@ -268026,8 +268027,8 @@ function SpatialOptions(props) {
268026
268027
  return `${labelPrefix} for spatial gene expression colormap range`;
268027
268028
  }, id: `gene-expression-colormap-range-${spatialOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] }) : null] });
268028
268029
  }
268029
- function SpatialTooltipSubscriber(props) {
268030
- const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo, hoverData, hoverCoord, hoverMode, useHoverInfoForTooltip, getObsIdFromHoverData, featureType, featureLabelsMap } = props;
268030
+ function SpatialTooltipSubscriber$1(props) {
268031
+ const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, hoverData, hoverCoord, hoverMode, useHoverInfoForTooltip, getObsIdFromHoverData, featureType, featureLabelsMap } = props;
268031
268032
  const sourceUuid = useComponentHover();
268032
268033
  const viewInfo = useComponentViewInfo(parentUuid);
268033
268034
  let [cellInfo, x2, y2] = [null, null, null];
@@ -268035,7 +268036,7 @@ function SpatialTooltipSubscriber(props) {
268035
268036
  const obsId = getObsIdFromHoverData(hoverData);
268036
268037
  if (obsId) {
268037
268038
  [cellInfo, x2, y2] = [
268038
- getObsInfo(obsId, hoverMode),
268039
+ getObsInfo2(obsId, hoverMode),
268039
268040
  ...hoverCoord || [null, null]
268040
268041
  ];
268041
268042
  }
@@ -268043,14 +268044,14 @@ function SpatialTooltipSubscriber(props) {
268043
268044
  const obsId = getObsIdFromHoverData(hoverData);
268044
268045
  if (obsId) {
268045
268046
  [cellInfo, x2, y2] = [
268046
- getObsInfo(obsId, hoverMode),
268047
+ getObsInfo2(obsId, hoverMode),
268047
268048
  ...hoverCoord || [null, null]
268048
268049
  ];
268049
268050
  }
268050
- } else if (!useHoverInfoForTooltip && getObsInfo && obsHighlight) {
268051
+ } else if (!useHoverInfoForTooltip && getObsInfo2 && obsHighlight) {
268051
268052
  const obsId = obsHighlight;
268052
268053
  [cellInfo, x2, y2] = [
268053
- getObsInfo(obsId, hoverMode),
268054
+ getObsInfo2(obsId, hoverMode),
268054
268055
  ...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsId) : [null, null]
268055
268056
  ];
268056
268057
  }
@@ -268224,7 +268225,7 @@ function SpatialSubscriber$1(props) {
268224
268225
  matrixObsIndex
268225
268226
  ]);
268226
268227
  const cellSelection = useMemo$1(() => Array.from(cellColors.keys()), [cellColors]);
268227
- const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
268228
+ const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
268228
268229
  const getTooltipObsInfo = useCallback((tooltipObsId, tooltipObsType) => {
268229
268230
  if (tooltipObsType === HOVER_MODE.MOLECULE_LAYER) {
268230
268231
  return {
@@ -268232,8 +268233,8 @@ function SpatialSubscriber$1(props) {
268232
268233
  "Molecule Name": obsLocationsLabels[tooltipObsId]
268233
268234
  };
268234
268235
  }
268235
- return getObsInfo(tooltipObsId);
268236
- }, [getObsInfo, obsLocationsLabels]);
268236
+ return getObsInfo2(tooltipObsId);
268237
+ }, [getObsInfo2, obsLocationsLabels]);
268237
268238
  const [hoverData, setHoverData] = useState(null);
268238
268239
  const [hoverCoord, setHoverCoord] = useState(null);
268239
268240
  const [hoverMode, setHoverMode] = useState(null);
@@ -268361,7 +268362,7 @@ function SpatialSubscriber$1(props) {
268361
268362
  orbitAxis
268362
268363
  }, setViewState, originalViewState, imageLayerDefs: imageLayers, obsSegmentationsLayerDefs: cellsLayer, obsLocationsLayerDefs: moleculesLayer, neighborhoodLayerDefs: neighborhoodsLayer, obsLocationsIndex, obsSegmentationsIndex, obsLocations, obsLocationsLabels, obsLocationsFeatureIndex, hasSegmentations: hasSegmentationsData, obsSegmentations, obsSegmentationsType, obsCentroids, obsCentroidsIndex, cellFilter, cellSelection, cellHighlight, cellColors, neighborhoods, imageLayerLoaders: resolutionFilteredImageLayerLoaders, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, setHoverInfo, setMoleculeHighlight, setComponentHover: () => {
268363
268364
  setComponentHover(uuid2);
268364
- }, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage, photometricInterpretation }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight || moleculeHighlight, width: width2, height: height2, getObsInfo: getTooltipObsInfo, useHoverInfoForTooltip, hoverData, hoverCoord, hoverMode, getObsIdFromHoverData, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, {
268365
+ }, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage, photometricInterpretation }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid2, obsHighlight: cellHighlight || moleculeHighlight, width: width2, height: height2, getObsInfo: getTooltipObsInfo, useHoverInfoForTooltip, hoverData, hoverCoord, hoverMode, getObsIdFromHoverData, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, {
268365
268366
  visible: true,
268366
268367
  // Fix to dark theme due to black background of spatial plot.
268367
268368
  theme: "dark",
@@ -269622,6 +269623,117 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
269622
269623
  }
269623
269624
  }
269624
269625
  const SpatialWrapper = forwardRef$1((props, deckRef) => jsxRuntimeExports.jsx(Spatial2, { ...props, deckRef }));
269626
+ function TooltipChild(props) {
269627
+ const { x: x2, y: y2, parentUuid, sourceUuid, width: width2, height: height2, info: info2, tooltipsVisible, tooltipCrosshairsVisible, featureType, featureLabelsMap } = props;
269628
+ const visible = parentUuid === sourceUuid ? tooltipsVisible : tooltipCrosshairsVisible;
269629
+ return visible ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: info2, featureType, featureLabelsMap }) }) : null;
269630
+ }
269631
+ function getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord) {
269632
+ const hasObsCoordinates = useHoverInfoForTooltip ? true : obsIndex && obsLocations;
269633
+ if (!hasObsCoordinates)
269634
+ return null;
269635
+ const obsI = obsIndex?.indexOf(obsHighlight);
269636
+ if (obsI < 0)
269637
+ return null;
269638
+ if (useHoverInfoForTooltip) {
269639
+ return [projectedHoverCoord?.[0], projectedHoverCoord?.[1]];
269640
+ }
269641
+ const obsCoord = [obsLocations?.data[0][obsI] || 0, obsLocations?.data[1][obsI] || 0, 0];
269642
+ const projectedObsCoord = viewInfo?.project(obsCoord);
269643
+ return [projectedObsCoord?.[0], projectedObsCoord?.[1]];
269644
+ }
269645
+ function getObsInfo(obsSetsData, obsType, obsId) {
269646
+ let result = {
269647
+ [`${capitalize$3(obsType)} ID`]: obsId
269648
+ };
269649
+ if (obsSetsData?.obsSetsMembership) {
269650
+ const obsMembership = obsSetsData.obsSetsMembership.get(obsId) || [];
269651
+ if (obsMembership) {
269652
+ result = {
269653
+ ...result,
269654
+ ...Object.fromEntries(obsMembership.flatMap((path2) => path2.slice(1).map((pathEl, elLevel) => [
269655
+ `${path2[0]}${path2.length > 2 ? ` L${elLevel + 1}` : ""}`,
269656
+ pathEl
269657
+ ])))
269658
+ };
269659
+ }
269660
+ }
269661
+ return result;
269662
+ }
269663
+ function SpatialTooltipSubscriber(props) {
269664
+ const {
269665
+ parentUuid,
269666
+ width: width2,
269667
+ height: height2,
269668
+ hoverCoord,
269669
+ featureType,
269670
+ featureLabelsMap,
269671
+ // Points
269672
+ obsPoints,
269673
+ pointLayerScopes,
269674
+ pointLayerCoordination,
269675
+ // Spots
269676
+ obsSpots,
269677
+ spotLayerScopes,
269678
+ spotLayerCoordination,
269679
+ // Segmentations
269680
+ obsSegmentationsLocations,
269681
+ segmentationLayerScopes,
269682
+ segmentationChannelScopesByLayer,
269683
+ segmentationChannelCoordination,
269684
+ obsSegmentationsSetsData,
269685
+ // Images
269686
+ imageLayerScopes,
269687
+ imageLayerCoordination
269688
+ } = props;
269689
+ const sourceUuid = useComponentHover();
269690
+ const viewInfo = useComponentViewInfo(parentUuid);
269691
+ const useHoverInfoForTooltip = sourceUuid === parentUuid && hoverCoord;
269692
+ const projectedHoverCoord = useHoverInfoForTooltip ? viewInfo?.project(hoverCoord) : null;
269693
+ let yOffset = -30;
269694
+ return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [projectedHoverCoord && imageLayerScopes?.map((layerScope) => {
269695
+ const { pixelHighlight, tooltipsVisible, spatialLayerVisible } = imageLayerCoordination?.[0]?.[layerScope] || {};
269696
+ return tooltipsVisible && pixelHighlight && spatialLayerVisible ? jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, width: width2, height: height2, info: {
269697
+ "Pixel Value": JSON.stringify(pixelHighlight)
269698
+ }, x: projectedHoverCoord?.[0], y: projectedHoverCoord?.[1] + (yOffset += 30), featureType, featureLabelsMap }, layerScope) : null;
269699
+ }), segmentationLayerScopes?.flatMap((layerScope) => segmentationChannelScopesByLayer?.[layerScope]?.map((channelScope) => {
269700
+ const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialChannelVisible } = segmentationChannelCoordination?.[0]?.[layerScope]?.[channelScope] || {};
269701
+ const obsSetsData = obsSegmentationsSetsData?.[layerScope]?.[channelScope];
269702
+ const obsInfo = getObsInfo(obsSetsData, obsType, obsHighlight);
269703
+ if (!obsHighlight || !spatialChannelVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
269704
+ return null;
269705
+ const { obsIndex, obsLocations } = obsSegmentationsLocations?.[layerScope]?.[channelScope] || {};
269706
+ const xy = getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord);
269707
+ if (!xy)
269708
+ return null;
269709
+ const [x2, y2] = xy;
269710
+ return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: obsInfo, x: x2, y: y2 + (yOffset += 20 + 15 * Object.keys(obsInfo).length), featureType, featureLabelsMap }, `${layerScope}-${channelScope}`);
269711
+ })), spotLayerScopes?.map((layerScope) => {
269712
+ const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialLayerVisible } = spotLayerCoordination?.[0]?.[layerScope] || {};
269713
+ if (!obsHighlight || !spatialLayerVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
269714
+ return null;
269715
+ const { obsIndex, obsSpots: obsLocations } = obsSpots?.[layerScope] || {};
269716
+ const xy = getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord);
269717
+ if (!xy)
269718
+ return null;
269719
+ const [x2, y2] = xy;
269720
+ return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: {
269721
+ [`${capitalize$3(obsType)} ID`]: obsHighlight
269722
+ }, x: x2, y: y2 + (yOffset += 30), featureType, featureLabelsMap }, layerScope);
269723
+ }), pointLayerScopes?.map((layerScope) => {
269724
+ const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialLayerVisible } = pointLayerCoordination?.[0]?.[layerScope] || {};
269725
+ if (!obsHighlight || !spatialLayerVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
269726
+ return null;
269727
+ const { obsIndex, obsPoints: obsLocations } = obsPoints?.[layerScope] || {};
269728
+ const xy = getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord);
269729
+ if (!xy)
269730
+ return null;
269731
+ const [x2, y2] = xy;
269732
+ return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: {
269733
+ [`${capitalize$3(obsType)} ID`]: obsHighlight
269734
+ }, x: x2, y: y2 + (yOffset += 30), featureType, featureLabelsMap }, layerScope);
269735
+ })] });
269736
+ }
269625
269737
  class ErrorBoundary2 extends React__default.Component {
269626
269738
  constructor(props) {
269627
269739
  super(props);
@@ -269640,12 +269752,12 @@ class ErrorBoundary2 extends React__default.Component {
269640
269752
  }
269641
269753
  }
269642
269754
  const LazySpatialThree = React__default.lazy(async () => {
269643
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-zMZ9jc4W.js");
269755
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-BLSTyNqn.js");
269644
269756
  return { default: SpatialWrapper2 };
269645
269757
  });
269646
269758
  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 }) }) }) }));
269647
269759
  const LazySpatialAccelerated = React__default.lazy(async () => {
269648
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-_YChnsZn.js");
269760
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-mSIiFEa9.js");
269649
269761
  return { default: SpatialWrapper2 };
269650
269762
  });
269651
269763
  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 }) }) }) }));
@@ -270134,7 +270246,29 @@ function SpatialSubscriber(props) {
270134
270246
  target: [targetX2, targetY2, targetZ],
270135
270247
  rotationX,
270136
270248
  rotationOrbit
270137
- } : DEFAULT_VIEW_STATE, orbitAxis, spatialAxisFixed, setViewState: isValidViewState ? setViewState : SET_VIEW_STATE_NOOP, originalViewState, spatialRenderingMode, updateViewInfo: setComponentViewInfo, delegateHover, obsPoints: obsPointsData, pointLayerScopes, pointLayerCoordination, pointMultiObsLabels: pointMultiObsLabelsData, obsSpots: obsSpotsData, spotLayerScopes, spotLayerCoordination, obsSpotsSets: obsSpotsSetsData, spotMatrixIndices: spotMultiIndicesData, spotMultiExpressionData: spotMultiExpressionNormData, segmentationLayerScopes, segmentationLayerCoordination, segmentationChannelScopesByLayer, segmentationChannelCoordination, obsSegmentations: obsSegmentationsData, obsSegmentationsLocations: obsSegmentationsLocationsData, obsSegmentationsSets: obsSegmentationsSetsData, segmentationMatrixIndices: segmentationMultiIndicesData, segmentationMultiExpressionData: segmentationMultiExpressionNormData, bitmaskValueIsIndex, images: imageData, imageLayerScopes, imageLayerCoordination, imageChannelScopesByLayer, imageChannelCoordination }), jsxRuntimeExports.jsx(
270249
+ } : DEFAULT_VIEW_STATE, orbitAxis, spatialAxisFixed, setViewState: isValidViewState ? setViewState : SET_VIEW_STATE_NOOP, originalViewState, spatialRenderingMode, updateViewInfo: setComponentViewInfo, delegateHover, obsPoints: obsPointsData, pointLayerScopes, pointLayerCoordination, pointMultiObsLabels: pointMultiObsLabelsData, obsSpots: obsSpotsData, spotLayerScopes, spotLayerCoordination, obsSpotsSets: obsSpotsSetsData, spotMatrixIndices: spotMultiIndicesData, spotMultiExpressionData: spotMultiExpressionNormData, segmentationLayerScopes, segmentationLayerCoordination, segmentationChannelScopesByLayer, segmentationChannelCoordination, obsSegmentations: obsSegmentationsData, obsSegmentationsLocations: obsSegmentationsLocationsData, obsSegmentationsSets: obsSegmentationsSetsData, segmentationMatrixIndices: segmentationMultiIndicesData, segmentationMultiExpressionData: segmentationMultiExpressionNormData, bitmaskValueIsIndex, images: imageData, imageLayerScopes, imageLayerCoordination, imageChannelScopesByLayer, imageChannelCoordination }), !disableTooltip && jsxRuntimeExports.jsx(SpatialTooltipSubscriber, {
270250
+ parentUuid: uuid2,
270251
+ width: width2,
270252
+ height: height2,
270253
+ hoverCoord,
270254
+ // Points
270255
+ obsPoints: obsPointsData,
270256
+ pointLayerScopes,
270257
+ pointLayerCoordination,
270258
+ // Spots
270259
+ obsSpots: obsSpotsData,
270260
+ spotLayerScopes,
270261
+ spotLayerCoordination,
270262
+ // Segmentations
270263
+ obsSegmentationsLocations: obsSegmentationsLocationsData,
270264
+ segmentationLayerScopes,
270265
+ segmentationChannelScopesByLayer,
270266
+ segmentationChannelCoordination,
270267
+ obsSegmentationsSetsData,
270268
+ // Images
270269
+ imageLayerScopes,
270270
+ imageLayerCoordination
270271
+ }), jsxRuntimeExports.jsx(
270138
270272
  MultiLegend,
270139
270273
  {
270140
270274
  // Fix to dark theme due to black background of spatial plot.
@@ -270969,11 +271103,11 @@ const Heatmap$1 = forwardRef$1((props, deckRef) => {
270969
271103
  });
270970
271104
  Heatmap$1.displayName = "Heatmap";
270971
271105
  function HeatmapTooltipSubscriber(props) {
270972
- const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight, featureHighlight, featureType, featureLabelsMap } = props;
271106
+ const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight, featureHighlight, featureType, featureLabelsMap } = props;
270973
271107
  const sourceUuid = useComponentHover();
270974
271108
  const viewInfo = useComponentViewInfo(parentUuid);
270975
- const [cellInfo, cellCoord] = obsHighlight && getObsInfo ? [
270976
- getObsInfo(obsHighlight),
271109
+ const [cellInfo, cellCoord] = obsHighlight && getObsInfo2 ? [
271110
+ getObsInfo2(obsHighlight),
270977
271111
  viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight, null)[transpose2 ? 0 : 1] : null
270978
271112
  ] : [null, null];
270979
271113
  const [geneInfo, geneCoord] = featureHighlight && getFeatureInfo ? [
@@ -271081,7 +271215,7 @@ function HeatmapSubscriber(props) {
271081
271215
  cellSetSelection,
271082
271216
  obsIndex
271083
271217
  ]);
271084
- const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
271218
+ const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
271085
271219
  const getObsMembership = useGetObsMembership(obsSetsMembership);
271086
271220
  const getFeatureInfo = useCallback((featureId2) => {
271087
271221
  if (featureId2) {
@@ -271121,7 +271255,7 @@ function HeatmapSubscriber(props) {
271121
271255
  setTargetY(target2[1]);
271122
271256
  }, colormapRange: geneExpressionColormapRange, setColormapRange: setGeneExpressionColormapRange, height: height2, width: width2, theme, uuid: uuid2, uint8ObsFeatureMatrix: uint8ObsFeatureMatrix?.data, cellColors, colormap: geneExpressionColormap, setIsRendering, setCellHighlight, setGeneHighlight, featureLabelsMap, obsIndex, featureIndex, setTrackHighlight, setComponentHover: () => {
271123
271257
  setComponentHover(uuid2);
271124
- }, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid2, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
271258
+ }, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid2, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
271125
271259
  }
271126
271260
  function _classCallCheck(a2, n3) {
271127
271261
  if (!(a2 instanceof n3)) throw new TypeError("Cannot call a class as a function");
@@ -281529,7 +281663,7 @@ function HiglassGlobalStyles(props) {
281529
281663
  }
281530
281664
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
281531
281665
  const LazyHiGlassComponent = React__default.lazy(async () => {
281532
- const { HiGlassComponent } = await import("./higlass-LPrp90_a.js");
281666
+ const { HiGlassComponent } = await import("./higlass-9Hi5QkEy.js");
281533
281667
  return { default: HiGlassComponent };
281534
281668
  });
281535
281669
  const HG_SIZE = 800;
@@ -284476,7 +284610,7 @@ function NeuroglancerGlobalStyles(props) {
284476
284610
  const { classes: classes2 } = props;
284477
284611
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
284478
284612
  }
284479
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-B2MAbOt0.js"));
284613
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-Bz4zpu7y.js"));
284480
284614
  function createWorker() {
284481
284615
  return new WorkerFactory();
284482
284616
  }
@@ -388200,6 +388334,36 @@ function getDataView(source2) {
388200
388334
  }
388201
388335
  return null;
388202
388336
  }
388337
+ function toFloat32Array(input) {
388338
+ if (input instanceof Float32Array) {
388339
+ return input;
388340
+ }
388341
+ if (input instanceof BigInt64Array) {
388342
+ const floats = new Float32Array(input.length);
388343
+ for (let i2 = 0; i2 < input.length; i2++) {
388344
+ floats[i2] = Number(input[i2]);
388345
+ }
388346
+ return floats;
388347
+ }
388348
+ if (input instanceof Float64Array) {
388349
+ return new Float32Array(input);
388350
+ }
388351
+ if (input instanceof Array) {
388352
+ return new Float32Array(input);
388353
+ }
388354
+ log$c.warn("toFloat32Array expected Float32Array, Float64Array, BigInt64Array, or Array input");
388355
+ return new Float32Array(input);
388356
+ }
388357
+ function downcastIfBigIntArray(input) {
388358
+ if (input instanceof BigInt64Array) {
388359
+ const downcasted = new Int32Array(input.length);
388360
+ for (let i2 = 0; i2 < input.length; i2++) {
388361
+ downcasted[i2] = Number(input[i2]);
388362
+ }
388363
+ return downcasted;
388364
+ }
388365
+ return input;
388366
+ }
388203
388367
  const shapesElementRegex = /^shapes\/([^/]*)$/;
388204
388368
  const shapesSubElementRegex = /^shapes\/([^/]*)\/(.*)$/;
388205
388369
  function getShapesElementPath(arrPath) {
@@ -388225,26 +388389,6 @@ function getParquetPath$1(arrPath) {
388225
388389
  }
388226
388390
  throw new Error(`Cannot determine parquet path for shapes array path: ${arrPath}`);
388227
388391
  }
388228
- function toFloat32Array(input) {
388229
- if (input instanceof Float32Array) {
388230
- return input;
388231
- }
388232
- if (input instanceof BigInt64Array) {
388233
- const floats = new Float32Array(input.length);
388234
- for (let i2 = 0; i2 < input.length; i2++) {
388235
- floats[i2] = Number(input[i2]);
388236
- }
388237
- return floats;
388238
- }
388239
- if (input instanceof Float64Array) {
388240
- return new Float32Array(input);
388241
- }
388242
- if (input instanceof Array) {
388243
- return new Float32Array(input);
388244
- }
388245
- log$c.warn("toFloat32Array expected Float32Array, Float64Array, BigInt64Array, or Array input");
388246
- return new Float32Array(input);
388247
- }
388248
388392
  class SpatialDataShapesSource extends SpatialDataTableSource {
388249
388393
  /**
388250
388394
  *
@@ -388332,11 +388476,17 @@ class SpatialDataShapesSource extends SpatialDataTableSource {
388332
388476
  _decodeWkbColumnFlat(geometryColumn) {
388333
388477
  const wkb = new WKB();
388334
388478
  const arr = geometryColumn.toArray();
388335
- return arr.map((geom) => (
388336
- /** @type {[number, number]} */
388337
- /** @type {any} */
388338
- wkb.readGeometry(geom).getFlatCoordinates()
388339
- ));
388479
+ return arr.map((geom) => {
388480
+ const coords = (
388481
+ /** @type {any} */
388482
+ wkb.readGeometry(geom).getFlatCoordinates()
388483
+ );
388484
+ const downcastedCoords = (
388485
+ /** @type {[number, number]} */
388486
+ coords.map((coord) => Number(coord))
388487
+ );
388488
+ return downcastedCoords;
388489
+ });
388340
388490
  }
388341
388491
  /**
388342
388492
  * Helper to decode WKB geometry column as nested coordinates (for polygons).
@@ -388353,7 +388503,12 @@ class SpatialDataShapesSource extends SpatialDataTableSource {
388353
388503
  /** @type {any} */
388354
388504
  wkb.readGeometry(geom).getCoordinates()
388355
388505
  );
388356
- return coords[0];
388506
+ const firstPolygon = coords[0];
388507
+ for (let i2 = 0; i2 < firstPolygon.length; i2++) {
388508
+ firstPolygon[i2] = /** @type {[number, number]} */
388509
+ firstPolygon[i2].map((coord) => Number(coord));
388510
+ }
388511
+ return firstPolygon;
388357
388512
  });
388358
388513
  }
388359
388514
  /**
@@ -388513,7 +388668,7 @@ class SpatialDataPointsSource extends SpatialDataTableSource {
388513
388668
  if (!column2) {
388514
388669
  throw new Error(`Column "${name2}" not found in the arrow table.`);
388515
388670
  }
388516
- return column2.toArray();
388671
+ return downcastIfBigIntArray(column2.toArray());
388517
388672
  });
388518
388673
  return {
388519
388674
  shape: [axisColumnArrs.length, arrowTable.numRows],
@@ -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-CjaAGVsZ.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-CnvMcPM6.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-DSrlNsWT.js";
3
+ import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-CbFN7juj.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, cf, cd, cb, ce, cc, bT, ca, bY, bS, bR, c1, c7, c0, c2, c6, c5, b_, c8, c9, ck, cn, ch, co, cp, ci, cl, cm, cj, bZ, cg } from "./index-CjaAGVsZ.js";
1
+ import { b$, bW, bU, bV, c3, c4, bX, cf, cd, cb, ce, cc, bT, ca, bY, bS, bR, c1, c7, c0, c2, c6, c5, b_, c8, c9, ck, cn, ch, co, cp, ci, cl, cm, cj, bZ, cg } from "./index-CnvMcPM6.js";
2
2
  import "react";
3
3
  export {
4
4
  b$ as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { aY as BaseDecoder } from "./index-CjaAGVsZ.js";
1
+ import { aY as BaseDecoder } from "./index-CnvMcPM6.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-CjaAGVsZ.js";
2
+ import { aH as getDefaultExportFromCjs, aY as BaseDecoder, aZ as LercParameters, a_ as LercAddCompression } from "./index-CnvMcPM6.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-CjaAGVsZ.js";
1
+ import { aY as BaseDecoder } from "./index-CnvMcPM6.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-CjaAGVsZ.js";
1
+ import { aY as BaseDecoder } from "./index-CnvMcPM6.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-CjaAGVsZ.js";
1
+ import { aY as BaseDecoder } from "./index-CnvMcPM6.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-CjaAGVsZ.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-CnvMcPM6.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-CjaAGVsZ.js";
1
+ import { aY as BaseDecoder } from "./index-CnvMcPM6.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.6",
3
+ "version": "3.8.7",
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.6",
20
- "@vitessce/config": "3.8.6",
21
- "@vitessce/constants": "3.8.6",
22
- "@vitessce/export-utils": "3.8.6"
19
+ "@vitessce/all": "3.8.7",
20
+ "@vitessce/config": "3.8.7",
21
+ "@vitessce/constants": "3.8.7",
22
+ "@vitessce/export-utils": "3.8.7"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",