@vitessce/dev 3.7.1 → 3.8.1

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.
@@ -47,6 +47,7 @@ const ViewType$2 = {
47
47
  SCATTERPLOT: "scatterplot",
48
48
  SPATIAL: "spatial",
49
49
  SPATIAL_BETA: "spatialBeta",
50
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
50
51
  HEATMAP: "heatmap",
51
52
  LAYER_CONTROLLER: "layerController",
52
53
  LAYER_CONTROLLER_BETA: "layerControllerBeta",
@@ -350,6 +351,8 @@ const CoordinationType$2 = {
350
351
  // Could be per-image-layer
351
352
  SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
352
353
  // Per-spatial-layer
354
+ SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
355
+ // Per-image-channel (for spatial-accelerated)
353
356
  // For clipping plane sliders
354
357
  SPATIAL_SLICE_X: "spatialSliceX",
355
358
  SPATIAL_SLICE_Y: "spatialSliceY",
@@ -927,6 +930,7 @@ const COMPONENT_COORDINATION_TYPES = {
927
930
  CoordinationType$2.SPATIAL_RENDERING_MODE,
928
931
  CoordinationType$2.VOLUMETRIC_RENDERING_ALGORITHM,
929
932
  CoordinationType$2.SPATIAL_TARGET_RESOLUTION,
933
+ CoordinationType$2.SPATIAL_MAX_RESOLUTION,
930
934
  CoordinationType$2.SPATIAL_SLICE_X,
931
935
  CoordinationType$2.SPATIAL_SLICE_Y,
932
936
  CoordinationType$2.SPATIAL_SLICE_Z,
@@ -1100,6 +1104,7 @@ const COMPONENT_COORDINATION_TYPES = {
1100
1104
  CoordinationType$2.SPATIAL_RENDERING_MODE,
1101
1105
  CoordinationType$2.VOLUMETRIC_RENDERING_ALGORITHM,
1102
1106
  CoordinationType$2.SPATIAL_TARGET_RESOLUTION,
1107
+ CoordinationType$2.SPATIAL_MAX_RESOLUTION,
1103
1108
  CoordinationType$2.SPATIAL_SLICE_X,
1104
1109
  CoordinationType$2.SPATIAL_SLICE_Y,
1105
1110
  CoordinationType$2.SPATIAL_SLICE_Z,
@@ -1328,7 +1333,7 @@ const COMPONENT_COORDINATION_TYPES = {
1328
1333
  CoordinationType$2.HIERARCHY_LEVELS
1329
1334
  ]
1330
1335
  };
1331
- const version$6 = "3.7.1";
1336
+ const version$6 = "3.8.1";
1332
1337
  const META_VERSION = {
1333
1338
  version: version$6
1334
1339
  };
@@ -1656,7 +1661,7 @@ const OrderedLogLevels = [
1656
1661
  LogLevel.ERROR
1657
1662
  ];
1658
1663
  const DEFAULT_DEBUG_MODE = false;
1659
- const DEFAULT_LOG_LEVEL = LogLevel.TRACE;
1664
+ const DEFAULT_LOG_LEVEL = LogLevel.INFO;
1660
1665
  let GLOBAL_DEBUG_MODE = DEFAULT_DEBUG_MODE;
1661
1666
  function getDebugMode() {
1662
1667
  return GLOBAL_DEBUG_MODE;
@@ -79295,6 +79300,7 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
79295
79300
  const nextWindowScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$2.SPATIAL_CHANNEL_WINDOW] || {}));
79296
79301
  const nextVisibleScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$2.SPATIAL_CHANNEL_VISIBLE] || {}));
79297
79302
  const nextOpacityScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$2.SPATIAL_CHANNEL_OPACITY] || {}));
79303
+ const nextMaxResolutionScope = getNextScope(Object.keys(coordinationSpace[CoordinationType$2.SPATIAL_MAX_RESOLUTION] || {}));
79298
79304
  newCoordinationSpace = {
79299
79305
  ...coordinationSpace,
79300
79306
  [CoordinationType$2.IMAGE_CHANNEL]: {
@@ -79321,6 +79327,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
79321
79327
  [CoordinationType$2.SPATIAL_CHANNEL_OPACITY]: {
79322
79328
  ...coordinationSpace[CoordinationType$2.SPATIAL_CHANNEL_OPACITY],
79323
79329
  [nextOpacityScope]: 1
79330
+ },
79331
+ [CoordinationType$2.SPATIAL_MAX_RESOLUTION]: {
79332
+ ...coordinationSpace[CoordinationType$2.SPATIAL_MAX_RESOLUTION],
79333
+ [nextOpacityScope]: 1
79324
79334
  }
79325
79335
  };
79326
79336
  if (hasPerLayerChannels) {
@@ -79356,6 +79366,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
79356
79366
  [CoordinationType$2.SPATIAL_CHANNEL_OPACITY]: {
79357
79367
  ...metaCoordinationScopesBy?.[channelMetaScopeBy]?.[CoordinationType$2.IMAGE_CHANNEL]?.[CoordinationType$2.SPATIAL_CHANNEL_OPACITY],
79358
79368
  [nextChannelScope]: nextOpacityScope
79369
+ },
79370
+ [CoordinationType$2.SPATIAL_MAX_RESOLUTION]: {
79371
+ ...metaCoordinationScopesBy?.[channelMetaScopeBy]?.[CoordinationType$2.IMAGE_CHANNEL]?.[CoordinationType$2.SPATIAL_MAX_RESOLUTION],
79372
+ [nextChannelScope]: nextMaxResolutionScope
79359
79373
  }
79360
79374
  }
79361
79375
  }
@@ -79393,6 +79407,10 @@ function addImageChannelInMetaCoordinationScopesHelper(coordinationScopesRaw, la
79393
79407
  [CoordinationType$2.SPATIAL_CHANNEL_OPACITY]: {
79394
79408
  ...metaCoordinationScopesBy?.[channelMetaScope]?.[CoordinationType$2.IMAGE_CHANNEL]?.[CoordinationType$2.SPATIAL_CHANNEL_OPACITY],
79395
79409
  [nextChannelScope]: nextOpacityScope
79410
+ },
79411
+ [CoordinationType$2.SPATIAL_MAX_RESOLUTION]: {
79412
+ ...metaCoordinationScopesBy?.[channelMetaScope]?.[CoordinationType$2.IMAGE_CHANNEL]?.[CoordinationType$2.SPATIAL_MAX_RESOLUTION],
79413
+ [nextChannelScope]: nextMaxResolutionScope
79396
79414
  }
79397
79415
  }
79398
79416
  }
@@ -225685,22 +225703,22 @@ async function getDecoder(fileDirectory) {
225685
225703
  const Decoder = await importFn();
225686
225704
  return new Decoder(fileDirectory);
225687
225705
  }
225688
- addDecoder([void 0, 1], () => import("./raw-Dx0RfNJQ.js").then((m2) => m2.default));
225689
- addDecoder(5, () => import("./lzw-BElCYn2X.js").then((m2) => m2.default));
225706
+ addDecoder([void 0, 1], () => import("./raw-9J3HZFUF.js").then((m2) => m2.default));
225707
+ addDecoder(5, () => import("./lzw-D8Crd9WH.js").then((m2) => m2.default));
225690
225708
  addDecoder(6, () => {
225691
225709
  throw new Error("old style JPEG compression is not supported.");
225692
225710
  });
225693
- addDecoder(7, () => import("./jpeg-BxkriCm0.js").then((m2) => m2.default));
225694
- addDecoder([8, 32946], () => import("./deflate-n-DtstV2.js").then((m2) => m2.default));
225695
- addDecoder(32773, () => import("./packbits-JP_x4J9d.js").then((m2) => m2.default));
225711
+ addDecoder(7, () => import("./jpeg-CTFJ-qvd.js").then((m2) => m2.default));
225712
+ addDecoder([8, 32946], () => import("./deflate-pqnulTpZ.js").then((m2) => m2.default));
225713
+ addDecoder(32773, () => import("./packbits-DgJ8qADF.js").then((m2) => m2.default));
225696
225714
  addDecoder(
225697
225715
  34887,
225698
- () => import("./lerc-DRsDr7p1.js").then(async (m2) => {
225716
+ () => import("./lerc-CsVQv56k.js").then(async (m2) => {
225699
225717
  await m2.zstd.init();
225700
225718
  return m2;
225701
225719
  }).then((m2) => m2.default)
225702
225720
  );
225703
- addDecoder(50001, () => import("./webimage-kq1LVhhR.js").then((m2) => m2.default));
225721
+ addDecoder(50001, () => import("./webimage-C-QuZxAg.js").then((m2) => m2.default));
225704
225722
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
225705
225723
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
225706
225724
  }
@@ -242546,13 +242564,13 @@ function IconButton(props) {
242546
242564
  function ToolMenu(props) {
242547
242565
  const pointerIconAltText = "Pointer tool";
242548
242566
  const lassoIconAltText = "Select lasso";
242549
- const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => {
242567
+ const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true, recenter: true }, recenterOnClick = () => {
242550
242568
  } } = props;
242551
242569
  const { classes: classes2 } = useStyles$s();
242552
242570
  const onRecenterButtonCLick = () => {
242553
242571
  recenterOnClick();
242554
242572
  };
242555
- return jsxRuntimeExports.jsxs("div", { className: classes2.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: pointerIconAltText, onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: lassoIconAltText, onClick: () => setActiveTool(distEs6Exports$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6Exports$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, jsxRuntimeExports.jsx(IconButton, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), "aria-label": "Recenter scatterplot view", children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) })] });
242573
+ return jsxRuntimeExports.jsxs("div", { className: classes2.tool, children: [visibleTools.pan && jsxRuntimeExports.jsx(IconTool, { alt: pointerIconAltText, onClick: () => setActiveTool(null), isActive: activeTool === null, children: jsxRuntimeExports.jsx(SvgNearMe, {}) }), visibleTools.selectLasso ? jsxRuntimeExports.jsx(IconTool, { alt: lassoIconAltText, onClick: () => setActiveTool(distEs6Exports$2.SELECTION_TYPE.POLYGON), isActive: activeTool === distEs6Exports$2.SELECTION_TYPE.POLYGON, children: jsxRuntimeExports.jsx(SvgSelectionLasso, {}) }) : null, visibleTools.recenter ? jsxRuntimeExports.jsx(IconButton, { alt: "click to recenter", onClick: () => onRecenterButtonCLick(), "aria-label": "Recenter scatterplot view", children: jsxRuntimeExports.jsx(CenterFocusStrong, {}) }) : null] });
242556
242574
  }
242557
242575
  const getCursorWithTool = () => "crosshair";
242558
242576
  const getCursor = (interactionState) => interactionState.isDragging ? "grabbing" : "default";
@@ -242786,7 +242804,7 @@ class AbstractSpatialOrScatterplot extends PureComponent {
242786
242804
  * and Scatterplot components.
242787
242805
  */
242788
242806
  render() {
242789
- const { deckRef, viewState, uuid: uuid2, hideTools, orbitAxis } = this.props;
242807
+ const { deckRef, viewState, uuid: uuid2, hideTools, hideRecenter, orbitAxis } = this.props;
242790
242808
  const { gl, tool } = this.state;
242791
242809
  const layers = this.getLayers();
242792
242810
  const use3d = this.use3d();
@@ -242795,7 +242813,8 @@ class AbstractSpatialOrScatterplot extends PureComponent {
242795
242813
  const useDevicePixels = !use3d && (this.obsSegmentationsData?.shape?.[0] < 1e5 || this.obsLocationsData?.shape?.[1] < 1e5);
242796
242814
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(ToolMenu, { activeTool: tool, setActiveTool: this.onToolChange, visibleTools: {
242797
242815
  pan: showPanTool && !hideTools,
242798
- selectLasso: showCellSelectionTools && !hideTools
242816
+ selectLasso: showCellSelectionTools && !hideTools,
242817
+ recenter: !hideRecenter
242799
242818
  }, recenterOnClick: this.recenter }), jsxRuntimeExports.jsx(DeckGL, { id: `deckgl-overlay-${uuid2}`, ref: deckRef, views: [
242800
242819
  use3d ? new OrbitView({ id: "orbit", controller: true, orbitAxis }) : new OrthographicView({
242801
242820
  id: "ortho"
@@ -243593,11 +243612,11 @@ function TooltipContent(props) {
243593
243612
  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)) }) });
243594
243613
  }
243595
243614
  function ScatterplotTooltipSubscriber(props) {
243596
- const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, featureType, featureLabelsMap } = props;
243615
+ const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo, featureType, featureLabelsMap } = props;
243597
243616
  const sourceUuid = useComponentHover();
243598
243617
  const viewInfo = useComponentViewInfo(parentUuid);
243599
- const [cellInfo, x2, y2] = obsHighlight && getObsInfo2 ? [
243600
- getObsInfo2(obsHighlight),
243618
+ const [cellInfo, x2, y2] = obsHighlight && getObsInfo ? [
243619
+ getObsInfo(obsHighlight),
243601
243620
  ...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight) : [null, null]
243602
243621
  ] : [null, null, null];
243603
243622
  return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo, featureType, featureLabelsMap }) }) : null;
@@ -248007,7 +248026,7 @@ function EmbeddingScatterplotSubscriber(props) {
248007
248026
  initialTargetY,
248008
248027
  averageFillDensity
248009
248028
  ]);
248010
- const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
248029
+ const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
248011
248030
  const cellSelectionSet = useMemo$1(() => new Set(cellSelection), [cellSelection]);
248012
248031
  const getCellIsSelected = useCallback((object2, { index: index2 }) => (cellSelectionSet || /* @__PURE__ */ new Set([])).has(obsEmbeddingIndex[index2]) ? 1 : 0, [cellSelectionSet, obsEmbeddingIndex]);
248013
248032
  const cellRadius = cellRadiusMode === "manual" ? cellRadiusFixed : dynamicCellRadius;
@@ -248164,7 +248183,7 @@ function EmbeddingScatterplotSubscriber(props) {
248164
248183
  embeddingContoursVisible,
248165
248184
  circleInfo,
248166
248185
  featureSelection: geneSelection
248167
- }), tooltipsVisible && width2 && height2 ? jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, featureType, featureLabelsMap }) : null, jsxRuntimeExports.jsx(Legend, {
248186
+ }), tooltipsVisible && width2 && height2 ? jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo, featureType, featureLabelsMap }) : null, jsxRuntimeExports.jsx(Legend, {
248168
248187
  visible: true,
248169
248188
  theme,
248170
248189
  featureType,
@@ -248198,21 +248217,14 @@ function DualEmbeddingScatterplotSubscriber(props) {
248198
248217
  function GatingScatterplotOptions(props) {
248199
248218
  const { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform, setGatingFeatureValueTransform, gatingFeatureValueTransformCoefficient, setGatingFeatureValueTransformCoefficient, geneSelectOptions, transformOptions } = props;
248200
248219
  const gatingScatterplotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
248220
+ const gatingScatterplotGeneXId = $bdb11010cef70236$export$f680877a34711e37();
248221
+ const gatingScatterplotGeneYId = $bdb11010cef70236$export$f680877a34711e37();
248201
248222
  const { classes: classes2 } = useStyles$v();
248202
- const handleGeneSelectChange = (event2) => {
248203
- const { options } = event2.target;
248204
- const newValues = [];
248205
- for (let i2 = 0, l2 = options.length; i2 < l2; i2 += 1) {
248206
- if (options[i2].selected) {
248207
- newValues.push(options[i2].value);
248208
- }
248209
- }
248210
- if (newValues.length === 1 && gatingFeatureSelectionX && !gatingFeatureSelectionY && newValues[0] !== gatingFeatureSelectionX) {
248211
- setGatingFeatureSelectionY(newValues[0]);
248212
- } else if (newValues.length <= 2) {
248213
- setGatingFeatureSelectionX(newValues[0]);
248214
- setGatingFeatureSelectionY(newValues[1]);
248215
- }
248223
+ const handleSelectionX = (event2) => {
248224
+ setGatingFeatureSelectionX(event2.target.value === "" ? null : event2.target.value);
248225
+ };
248226
+ const handleSelectionY = (event2) => {
248227
+ setGatingFeatureSelectionY(event2.target.value === "" ? null : event2.target.value);
248216
248228
  };
248217
248229
  const handleTransformChange = (event2) => {
248218
248230
  setGatingFeatureValueTransform(event2.target.value === "" ? null : event2.target.value);
@@ -248228,11 +248240,13 @@ function GatingScatterplotOptions(props) {
248228
248240
  }
248229
248241
  }
248230
248242
  };
248231
- return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gating-gene-select-${gatingScatterplotOptionsId}`, children: capitalize$3(pluralize(featureType, geneSelectOptions?.length)) }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { multiple: true, className: classes2.select, value: [gatingFeatureSelectionX, gatingFeatureSelectionY].filter((v) => v), onChange: handleGeneSelectChange, inputProps: {
248232
- id: `scatterplot-gating-gene-select-${gatingScatterplotOptionsId}`
248233
- }, children: geneSelectOptions.map((name2) => jsxRuntimeExports.jsx("option", { value: name2, children: name2 }, name2)) }) })] }), jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`, children: "Transform" }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes2.select, value: gatingFeatureValueTransform === null ? "" : gatingFeatureValueTransform, onChange: handleTransformChange, inputProps: {
248243
+ return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-gating-gene-select-${gatingScatterplotGeneXId}`, children: [capitalize$3(featureType), " along X"] }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes2.select, value: gatingFeatureSelectionX ?? "", onChange: handleSelectionX, inputProps: {
248244
+ id: `scatterplot-gating-gene-select-${gatingScatterplotGeneXId}`
248245
+ }, children: [jsxRuntimeExports.jsx("option", { value: "", children: "None" }), geneSelectOptions.map((name2) => jsxRuntimeExports.jsx("option", { value: name2, children: name2 }, name2))] }) })] }), jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsxs("label", { htmlFor: `scatterplot-gating-gene-select-${gatingScatterplotGeneYId}`, children: [capitalize$3(featureType), " along Y"] }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsxs(OptionSelect, { className: classes2.select, value: gatingFeatureSelectionY ?? "", onChange: handleSelectionY, inputProps: {
248246
+ id: `scatterplot-gating-gene-select-${gatingScatterplotGeneYId}`
248247
+ }, children: [jsxRuntimeExports.jsx("option", { value: "", children: "None" }), geneSelectOptions.map((name2) => jsxRuntimeExports.jsx("option", { value: name2, children: name2 }, name2))] }) })] }), jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`, children: "Transform" }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes2.select, value: gatingFeatureValueTransform === null ? "" : gatingFeatureValueTransform, onChange: handleTransformChange, inputProps: {
248234
248248
  id: `scatterplot-gating-transform-select-${gatingScatterplotOptionsId}`
248235
- }, children: transformOptions.map((opt) => jsxRuntimeExports.jsx("option", { value: opt.value === null ? "" : opt.value, children: opt.name }, opt.name)) }) })] }), jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`, children: "Transform Coefficient" }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsx(TextField, { label: "Transform Coefficient", type: "number", onChange: handleTransformCoefficientChange, value: gatingFeatureValueTransformCoefficient, slotProps: { input: { shrink: true } }, id: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}` }) })] })] });
248249
+ }, children: transformOptions.map((opt) => jsxRuntimeExports.jsx("option", { value: opt.value === null ? "" : opt.value, children: opt.name }, opt.name)) }) })] }), jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}`, children: "Transform Coefficient" }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsx(TextField, { label: "Transform Coefficient", type: "number", onChange: handleTransformCoefficientChange, value: gatingFeatureValueTransformCoefficient, slotProps: { inputLabel: { shrink: true } }, id: `scatterplot-gating-transform-coefficient-${gatingScatterplotOptionsId}` }) })] })] });
248236
248250
  }
248237
248251
  function GatingSubscriber(props) {
248238
248252
  const {
@@ -248253,6 +248267,7 @@ function GatingSubscriber(props) {
248253
248267
  const setComponentHover = useSetComponentHover();
248254
248268
  const setComponentViewInfo = useSetComponentViewInfo(uuid2);
248255
248269
  const [{ dataset, obsType, featureType, featureValueType, embeddingZoom: zoom2, embeddingTargetX: targetX2, embeddingTargetY: targetY2, embeddingTargetZ: targetZ, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, embeddingObsSetPolygonsVisible: cellSetPolygonsVisible, embeddingObsSetLabelsVisible: cellSetLabelsVisible, embeddingObsSetLabelSize: cellSetLabelSize, embeddingObsRadius: cellRadiusFixed, embeddingObsRadiusMode: cellRadiusMode, embeddingObsOpacity: cellOpacityFixed, embeddingObsOpacityMode: cellOpacityMode, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, featureSelection: gatingFeatureSelectionColor, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY }, { setEmbeddingZoom: setZoom, setEmbeddingTargetX: setTargetX, setEmbeddingTargetY: setTargetY, setEmbeddingTargetZ: setTargetZ, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setEmbeddingObsSetPolygonsVisible: setCellSetPolygonsVisible, setEmbeddingObsSetLabelsVisible: setCellSetLabelsVisible, setEmbeddingObsSetLabelSize: setCellSetLabelSize, setEmbeddingObsRadius: setCellRadiusFixed, setEmbeddingObsRadiusMode: setCellRadiusMode, setEmbeddingObsOpacity: setCellOpacityFixed, setEmbeddingObsOpacityMode: setCellOpacityMode, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GATING], coordinationScopes);
248270
+ const { embeddingZoom: initialZoom, embeddingTargetX: initialTargetX, embeddingTargetY: initialTargetY } = useInitialCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GATING], coordinationScopes);
248256
248271
  const [width2, height2, deckRef] = useDeckCanvasSize();
248257
248272
  const title2 = useMemo$1(() => {
248258
248273
  if (titleOverride) {
@@ -248338,6 +248353,7 @@ function GatingSubscriber(props) {
248338
248353
  ]);
248339
248354
  const [dynamicCellRadius, setDynamicCellRadius] = useState(cellRadiusFixed);
248340
248355
  const [dynamicCellOpacity, setDynamicCellOpacity] = useState(cellOpacityFixed);
248356
+ const [originalViewState, setOriginalViewState] = useState(null);
248341
248357
  const mergedCellSets = useMemo$1(() => mergeObsSets(cellSets, additionalCellSets), [cellSets, additionalCellSets]);
248342
248358
  const setCellSelectionProp = useCallback((v) => {
248343
248359
  setObsSelection(v, additionalCellSets, cellSetColor, setCellSetSelection, setAdditionalCellSets, setCellSetColor, setCellColorEncoding);
@@ -248408,13 +248424,20 @@ function GatingSubscriber(props) {
248408
248424
  setDynamicCellRadius(pointSizeDevicePixels);
248409
248425
  const nextCellOpacityScale = getPointOpacity(zoom2, xRange, yRange, width2, height2, numCells, averageFillDensity);
248410
248426
  setDynamicCellOpacity(nextCellOpacityScale);
248411
- if (typeof targetX2 !== "number" || typeof targetY2 !== "number") {
248427
+ if (typeof initialTargetX !== "number" || typeof initialTargetY !== "number") {
248412
248428
  const newTargetX = xExtent[0] + xRange / 2;
248413
248429
  const newTargetY = yExtent[0] + yRange / 2;
248414
248430
  const newZoom = Math.log2(Math.min(width2 / xRange, height2 / yRange));
248415
- setTargetX(newTargetX);
248416
- setTargetY(-newTargetY);
248417
- setZoom(newZoom);
248431
+ const notYetInitialized = typeof targetX2 !== "number" || typeof targetY2 !== "number";
248432
+ const stillDefaultInitialized = targetX2 === newTargetX && targetY2 === -newTargetY;
248433
+ if (notYetInitialized || stillDefaultInitialized) {
248434
+ setTargetX(newTargetX);
248435
+ setTargetY(-newTargetY);
248436
+ setZoom(newZoom);
248437
+ }
248438
+ setOriginalViewState({ target: [newTargetX, -newTargetY, 0], zoom: newZoom });
248439
+ } else if (!originalViewState) {
248440
+ setOriginalViewState({ target: [initialTargetX, initialTargetY, 0], zoom: initialZoom });
248418
248441
  }
248419
248442
  }
248420
248443
  }, [
@@ -248426,6 +248449,8 @@ function GatingSubscriber(props) {
248426
248449
  width2,
248427
248450
  height2,
248428
248451
  zoom2,
248452
+ initialTargetX,
248453
+ initialTargetY,
248429
248454
  averageFillDensity
248430
248455
  ]);
248431
248456
  const cellSelectionSet = useMemo$1(() => new Set(cellSelection), [cellSelection]);
@@ -248438,7 +248463,7 @@ function GatingSubscriber(props) {
248438
248463
  matrixObsIndex: obsIndex,
248439
248464
  expressionData: uint8ExpressionData
248440
248465
  });
248441
- const getObsInfo2 = useCallback((obsId) => {
248466
+ const getObsInfo = useCallback((obsId) => {
248442
248467
  const selectedTransformName = VALUE_TRANSFORM_OPTIONS.find((o2) => o2.value === featureValueTransform)?.name;
248443
248468
  const genePrefix = featureValueTransform ? `${selectedTransformName} ` : "";
248444
248469
  const obsIdx = obsIndex?.indexOf(obsId);
@@ -248456,19 +248481,20 @@ function GatingSubscriber(props) {
248456
248481
  gatingFeatureSelectionY,
248457
248482
  obsType
248458
248483
  ]);
248484
+ const setViewState = ({ zoom: newZoom, target: target2 }) => {
248485
+ setZoom(newZoom);
248486
+ setTargetX(target2[0]);
248487
+ setTargetY(target2[1]);
248488
+ setTargetZ(target2[2] || 0);
248489
+ };
248459
248490
  return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, errors, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
248460
248491
  setFeatureValueTransform(newValue);
248461
248492
  setTargetX(null);
248462
248493
  setTargetY(null);
248463
248494
  setZoom(null);
248464
- }, 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), viewState: { zoom: zoom2, target: [targetX2, targetY2, targetZ] }, setViewState: ({ zoom: newZoom, target: target2 }) => {
248465
- setZoom(newZoom);
248466
- setTargetX(target2[0]);
248467
- setTargetY(target2[1]);
248468
- setTargetZ(target2[2] || 0);
248469
- }, obsEmbeddingIndex: obsIndex, obsEmbedding: obsXY, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
248495
+ }, 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: () => {
248470
248496
  setComponentHover(uuid2);
248471
- }, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 })] });
248497
+ }, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected, embeddingPointsVisible: true }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid2, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo })] });
248472
248498
  }
248473
248499
  var DEFAULT_CONFIG = {
248474
248500
  // minimum relative difference between two compared values,
@@ -263451,13 +263477,16 @@ const getStatsForResolution = (loader2, resolution) => {
263451
263477
  const height2 = shape2[labels2.indexOf("y")];
263452
263478
  const width2 = shape2[labels2.indexOf("x")];
263453
263479
  const depth = shape2[labels2.indexOf("z")];
263480
+ const dims = Object.fromEntries(labels2.map((label2, i2) => [label2, shape2[i2]]));
263454
263481
  const depthDownsampled = Math.max(1, depth >> resolution);
263455
263482
  const totalBytes = 4 * height2 * width2 * depthDownsampled;
263456
263483
  return {
263457
263484
  height: height2,
263458
263485
  width: width2,
263486
+ depth,
263459
263487
  depthDownsampled,
263460
- totalBytes
263488
+ totalBytes,
263489
+ dims
263461
263490
  };
263462
263491
  };
263463
263492
  const canLoadResolution = (loader2, resolution) => {
@@ -267531,8 +267560,8 @@ function SpatialOptions(props) {
267531
267560
  return `${labelPrefix} for spatial gene expression colormap range`;
267532
267561
  }, id: `gene-expression-colormap-range-${spatialOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] }) : null] });
267533
267562
  }
267534
- function SpatialTooltipSubscriber$1(props) {
267535
- const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, hoverData, hoverCoord, hoverMode, useHoverInfoForTooltip, getObsIdFromHoverData, featureType, featureLabelsMap } = props;
267563
+ function SpatialTooltipSubscriber(props) {
267564
+ const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo, hoverData, hoverCoord, hoverMode, useHoverInfoForTooltip, getObsIdFromHoverData, featureType, featureLabelsMap } = props;
267536
267565
  const sourceUuid = useComponentHover();
267537
267566
  const viewInfo = useComponentViewInfo(parentUuid);
267538
267567
  let [cellInfo, x2, y2] = [null, null, null];
@@ -267540,7 +267569,7 @@ function SpatialTooltipSubscriber$1(props) {
267540
267569
  const obsId = getObsIdFromHoverData(hoverData);
267541
267570
  if (obsId) {
267542
267571
  [cellInfo, x2, y2] = [
267543
- getObsInfo2(obsId, hoverMode),
267572
+ getObsInfo(obsId, hoverMode),
267544
267573
  ...hoverCoord || [null, null]
267545
267574
  ];
267546
267575
  }
@@ -267548,14 +267577,14 @@ function SpatialTooltipSubscriber$1(props) {
267548
267577
  const obsId = getObsIdFromHoverData(hoverData);
267549
267578
  if (obsId) {
267550
267579
  [cellInfo, x2, y2] = [
267551
- getObsInfo2(obsId, hoverMode),
267580
+ getObsInfo(obsId, hoverMode),
267552
267581
  ...hoverCoord || [null, null]
267553
267582
  ];
267554
267583
  }
267555
- } else if (!useHoverInfoForTooltip && getObsInfo2 && obsHighlight) {
267584
+ } else if (!useHoverInfoForTooltip && getObsInfo && obsHighlight) {
267556
267585
  const obsId = obsHighlight;
267557
267586
  [cellInfo, x2, y2] = [
267558
- getObsInfo2(obsId, hoverMode),
267587
+ getObsInfo(obsId, hoverMode),
267559
267588
  ...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsId) : [null, null]
267560
267589
  ];
267561
267590
  }
@@ -267729,7 +267758,7 @@ function SpatialSubscriber$1(props) {
267729
267758
  matrixObsIndex
267730
267759
  ]);
267731
267760
  const cellSelection = useMemo$1(() => Array.from(cellColors.keys()), [cellColors]);
267732
- const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
267761
+ const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
267733
267762
  const getTooltipObsInfo = useCallback((tooltipObsId, tooltipObsType) => {
267734
267763
  if (tooltipObsType === HOVER_MODE.MOLECULE_LAYER) {
267735
267764
  return {
@@ -267737,8 +267766,8 @@ function SpatialSubscriber$1(props) {
267737
267766
  "Molecule Name": obsLocationsLabels[tooltipObsId]
267738
267767
  };
267739
267768
  }
267740
- return getObsInfo2(tooltipObsId);
267741
- }, [getObsInfo2, obsLocationsLabels]);
267769
+ return getObsInfo(tooltipObsId);
267770
+ }, [getObsInfo, obsLocationsLabels]);
267742
267771
  const [hoverData, setHoverData] = useState(null);
267743
267772
  const [hoverCoord, setHoverCoord] = useState(null);
267744
267773
  const [hoverMode, setHoverMode] = useState(null);
@@ -267866,7 +267895,7 @@ function SpatialSubscriber$1(props) {
267866
267895
  orbitAxis
267867
267896
  }, 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: () => {
267868
267897
  setComponentHover(uuid2);
267869
- }, 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, {
267898
+ }, 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, {
267870
267899
  visible: true,
267871
267900
  // Fix to dark theme due to black background of spatial plot.
267872
267901
  theme: "dark",
@@ -269127,117 +269156,6 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
269127
269156
  }
269128
269157
  }
269129
269158
  const SpatialWrapper = forwardRef$1((props, deckRef) => jsxRuntimeExports.jsx(Spatial2, { ...props, deckRef }));
269130
- function TooltipChild(props) {
269131
- const { x: x2, y: y2, parentUuid, sourceUuid, width: width2, height: height2, info: info2, tooltipsVisible, tooltipCrosshairsVisible, featureType, featureLabelsMap } = props;
269132
- const visible = parentUuid === sourceUuid ? tooltipsVisible : tooltipCrosshairsVisible;
269133
- return visible ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: info2, featureType, featureLabelsMap }) }) : null;
269134
- }
269135
- function getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord) {
269136
- const hasObsCoordinates = useHoverInfoForTooltip ? true : obsIndex && obsLocations;
269137
- if (!hasObsCoordinates)
269138
- return null;
269139
- const obsI = obsIndex?.indexOf(obsHighlight);
269140
- if (obsI < 0)
269141
- return null;
269142
- if (useHoverInfoForTooltip) {
269143
- return [projectedHoverCoord?.[0], projectedHoverCoord?.[1]];
269144
- }
269145
- const obsCoord = [obsLocations?.data[0][obsI] || 0, obsLocations?.data[1][obsI] || 0, 0];
269146
- const projectedObsCoord = viewInfo?.project(obsCoord);
269147
- return [projectedObsCoord?.[0], projectedObsCoord?.[1]];
269148
- }
269149
- function getObsInfo(obsSetsData, obsType, obsId) {
269150
- let result = {
269151
- [`${capitalize$3(obsType)} ID`]: obsId
269152
- };
269153
- if (obsSetsData?.obsSetsMembership) {
269154
- const obsMembership = obsSetsData.obsSetsMembership.get(obsId) || [];
269155
- if (obsMembership) {
269156
- result = {
269157
- ...result,
269158
- ...Object.fromEntries(obsMembership.flatMap((path2) => path2.slice(1).map((pathEl, elLevel) => [
269159
- `${path2[0]}${path2.length > 2 ? ` L${elLevel + 1}` : ""}`,
269160
- pathEl
269161
- ])))
269162
- };
269163
- }
269164
- }
269165
- return result;
269166
- }
269167
- function SpatialTooltipSubscriber(props) {
269168
- const {
269169
- parentUuid,
269170
- width: width2,
269171
- height: height2,
269172
- hoverCoord,
269173
- featureType,
269174
- featureLabelsMap,
269175
- // Points
269176
- obsPoints,
269177
- pointLayerScopes,
269178
- pointLayerCoordination,
269179
- // Spots
269180
- obsSpots,
269181
- spotLayerScopes,
269182
- spotLayerCoordination,
269183
- // Segmentations
269184
- obsSegmentationsLocations,
269185
- segmentationLayerScopes,
269186
- segmentationChannelScopesByLayer,
269187
- segmentationChannelCoordination,
269188
- obsSegmentationsSetsData,
269189
- // Images
269190
- imageLayerScopes,
269191
- imageLayerCoordination
269192
- } = props;
269193
- const sourceUuid = useComponentHover();
269194
- const viewInfo = useComponentViewInfo(parentUuid);
269195
- const useHoverInfoForTooltip = sourceUuid === parentUuid && hoverCoord;
269196
- const projectedHoverCoord = useHoverInfoForTooltip ? viewInfo?.project(hoverCoord) : null;
269197
- let yOffset = -30;
269198
- return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [projectedHoverCoord && imageLayerScopes?.map((layerScope) => {
269199
- const { pixelHighlight, tooltipsVisible, spatialLayerVisible } = imageLayerCoordination?.[0]?.[layerScope] || {};
269200
- return tooltipsVisible && pixelHighlight && spatialLayerVisible ? jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, width: width2, height: height2, info: {
269201
- "Pixel Value": JSON.stringify(pixelHighlight)
269202
- }, x: projectedHoverCoord?.[0], y: projectedHoverCoord?.[1] + (yOffset += 30), featureType, featureLabelsMap }, layerScope) : null;
269203
- }), segmentationLayerScopes?.flatMap((layerScope) => segmentationChannelScopesByLayer?.[layerScope]?.map((channelScope) => {
269204
- const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialChannelVisible } = segmentationChannelCoordination?.[0]?.[layerScope]?.[channelScope] || {};
269205
- const obsSetsData = obsSegmentationsSetsData?.[layerScope]?.[channelScope];
269206
- const obsInfo = getObsInfo(obsSetsData, obsType, obsHighlight);
269207
- if (!obsHighlight || !spatialChannelVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
269208
- return null;
269209
- const { obsIndex, obsLocations } = obsSegmentationsLocations?.[layerScope]?.[channelScope] || {};
269210
- const xy = getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord);
269211
- if (!xy)
269212
- return null;
269213
- const [x2, y2] = xy;
269214
- 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}`);
269215
- })), spotLayerScopes?.map((layerScope) => {
269216
- const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialLayerVisible } = spotLayerCoordination?.[0]?.[layerScope] || {};
269217
- if (!obsHighlight || !spatialLayerVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
269218
- return null;
269219
- const { obsIndex, obsSpots: obsLocations } = obsSpots?.[layerScope] || {};
269220
- const xy = getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord);
269221
- if (!xy)
269222
- return null;
269223
- const [x2, y2] = xy;
269224
- return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: {
269225
- [`${capitalize$3(obsType)} ID`]: obsHighlight
269226
- }, x: x2, y: y2 + (yOffset += 30), featureType, featureLabelsMap }, layerScope);
269227
- }), pointLayerScopes?.map((layerScope) => {
269228
- const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialLayerVisible } = pointLayerCoordination?.[0]?.[layerScope] || {};
269229
- if (!obsHighlight || !spatialLayerVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
269230
- return null;
269231
- const { obsIndex, obsPoints: obsLocations } = obsPoints?.[layerScope] || {};
269232
- const xy = getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTooltip, projectedHoverCoord);
269233
- if (!xy)
269234
- return null;
269235
- const [x2, y2] = xy;
269236
- return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: {
269237
- [`${capitalize$3(obsType)} ID`]: obsHighlight
269238
- }, x: x2, y: y2 + (yOffset += 30), featureType, featureLabelsMap }, layerScope);
269239
- })] });
269240
- }
269241
269159
  class ErrorBoundary2 extends React__default.Component {
269242
269160
  constructor(props) {
269243
269161
  super(props);
@@ -269256,10 +269174,15 @@ class ErrorBoundary2 extends React__default.Component {
269256
269174
  }
269257
269175
  }
269258
269176
  const LazySpatialThree = React__default.lazy(async () => {
269259
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-ChoWl6hO.js");
269177
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-BdmLXvmK.js");
269260
269178
  return { default: SpatialWrapper2 };
269261
269179
  });
269262
269180
  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 }) }) }) }));
269181
+ const LazySpatialAccelerated = React__default.lazy(async () => {
269182
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-CZFcaN77.js");
269183
+ return { default: SpatialWrapper2 };
269184
+ });
269185
+ 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 }) }) }) }));
269263
269186
  const DEFAULT_VIEW_STATE = {
269264
269187
  zoom: 0,
269265
269188
  target: [0, 0, 0],
@@ -269320,7 +269243,8 @@ function SpatialSubscriber(props) {
269320
269243
  title: title2 = "Spatial",
269321
269244
  bitmaskValueIsIndex = false,
269322
269245
  // TODO: move to coordination type
269323
- three: threeFor3d = false
269246
+ three: threeFor3d = false,
269247
+ accelerated: acceleratedFor3d = false
269324
269248
  } = props;
269325
269249
  const loaders = useLoaders();
269326
269250
  const setComponentHover = useSetComponentHover();
@@ -269421,7 +269345,8 @@ function SpatialSubscriber(props) {
269421
269345
  CoordinationType$2.SPATIAL_TARGET_C,
269422
269346
  CoordinationType$2.SPATIAL_CHANNEL_VISIBLE,
269423
269347
  CoordinationType$2.SPATIAL_CHANNEL_COLOR,
269424
- CoordinationType$2.SPATIAL_CHANNEL_WINDOW
269348
+ CoordinationType$2.SPATIAL_CHANNEL_WINDOW,
269349
+ CoordinationType$2.SPATIAL_MAX_RESOLUTION
269425
269350
  ], coordinationScopes, coordinationScopesBy, CoordinationType$2.IMAGE_LAYER, CoordinationType$2.IMAGE_CHANNEL);
269426
269351
  const spotLayerCoordination = useComplexCoordination([
269427
269352
  CoordinationType$2.OBS_TYPE,
@@ -269459,7 +269384,6 @@ function SpatialSubscriber(props) {
269459
269384
  CoordinationType$2.LEGEND_VISIBLE
269460
269385
  ], coordinationScopes, coordinationScopesBy, CoordinationType$2.POINT_LAYER);
269461
269386
  const is3dMode = spatialRenderingMode === "3D";
269462
- const shouldUseThree = threeFor3d && is3dMode;
269463
269387
  const [deckWidth, deckHeight, deckRef] = useDeckCanvasSize();
269464
269388
  const [threeWidth, threeHeight, threeRef] = useGridItemSize();
269465
269389
  const width2 = threeFor3d && deckWidth === void 0 ? threeWidth : deckWidth;
@@ -269728,138 +269652,22 @@ function SpatialSubscriber(props) {
269728
269652
  }
269729
269653
  }
269730
269654
  };
269731
- return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, errors, children: [shouldUseThree ? jsxRuntimeExports.jsx(SpatialThreeAdapter, {
269732
- ref: threeRef,
269733
- uuid: uuid2,
269734
- width: width2,
269735
- height: height2,
269736
- theme,
269737
- hideTools: !isSelectable,
269738
- rotation: [rotationX, rotationY, rotationZ],
269739
- setRotationX,
269740
- setRotationY,
269741
- setRotationZ,
269742
- // Global view state
269743
- targetT,
269744
- targetZ,
269745
- viewState: isValidViewState ? {
269746
- zoom: zoom2,
269747
- target: [targetX2, targetY2, targetZ],
269748
- rotationX,
269749
- rotationOrbit
269750
- } : DEFAULT_VIEW_STATE,
269751
- orbitAxis,
269752
- spatialAxisFixed,
269753
- setViewState: isValidViewState ? setViewState : SET_VIEW_STATE_NOOP,
269754
- originalViewState,
269755
- spatialRenderingMode,
269756
- updateViewInfo: setComponentViewInfo,
269757
- delegateHover,
269758
- onEntitySelected,
269759
- // Points
269760
- obsPoints: obsPointsData,
269761
- pointLayerScopes,
269762
- pointLayerCoordination,
269763
- pointMultiObsLabels: pointMultiObsLabelsData,
269764
- // Spots
269765
- obsSpots: obsSpotsData,
269766
- spotLayerScopes,
269767
- spotLayerCoordination,
269768
- obsSpotsSets: obsSpotsSetsData,
269769
- spotMatrixIndices: spotMultiIndicesData,
269770
- spotMultiExpressionData: spotMultiExpressionNormData,
269771
- // Segmentations
269772
- segmentationLayerScopes,
269773
- segmentationLayerCoordination,
269774
- segmentationChannelScopesByLayer,
269775
- segmentationChannelCoordination,
269776
- obsSegmentations: obsSegmentationsData,
269777
- obsSegmentationsLocations: obsSegmentationsLocationsData,
269778
- obsSegmentationsSets: obsSegmentationsSetsData,
269779
- segmentationMatrixIndices: segmentationMultiIndicesData,
269780
- segmentationMultiExpressionData: segmentationMultiExpressionNormData,
269781
- bitmaskValueIsIndex,
269782
- // Images
269783
- images: imageData,
269784
- imageLayerScopes,
269785
- imageLayerCoordination,
269786
- imageChannelScopesByLayer,
269787
- imageChannelCoordination
269788
- }) : jsxRuntimeExports.jsx(SpatialWrapper, {
269789
- ref: deckRef,
269790
- uuid: uuid2,
269791
- width: width2,
269792
- height: height2,
269793
- theme,
269794
- hideTools: !isSelectable,
269795
- // Global view state
269796
- targetT,
269797
- targetZ,
269798
- viewState: isValidViewState ? {
269799
- zoom: zoom2,
269800
- target: [targetX2, targetY2, targetZ],
269801
- rotationX,
269802
- rotationOrbit
269803
- } : DEFAULT_VIEW_STATE,
269804
- orbitAxis,
269805
- spatialAxisFixed,
269806
- setViewState: isValidViewState ? setViewState : SET_VIEW_STATE_NOOP,
269807
- originalViewState,
269808
- spatialRenderingMode,
269809
- updateViewInfo: setComponentViewInfo,
269810
- delegateHover,
269811
- // Points
269812
- obsPoints: obsPointsData,
269813
- pointLayerScopes,
269814
- pointLayerCoordination,
269815
- pointMultiObsLabels: pointMultiObsLabelsData,
269816
- // Spots
269817
- obsSpots: obsSpotsData,
269818
- spotLayerScopes,
269819
- spotLayerCoordination,
269820
- obsSpotsSets: obsSpotsSetsData,
269821
- spotMatrixIndices: spotMultiIndicesData,
269822
- spotMultiExpressionData: spotMultiExpressionNormData,
269823
- // Segmentations
269824
- segmentationLayerScopes,
269825
- segmentationLayerCoordination,
269826
- segmentationChannelScopesByLayer,
269827
- segmentationChannelCoordination,
269828
- obsSegmentations: obsSegmentationsData,
269829
- obsSegmentationsLocations: obsSegmentationsLocationsData,
269830
- obsSegmentationsSets: obsSegmentationsSetsData,
269831
- segmentationMatrixIndices: segmentationMultiIndicesData,
269832
- segmentationMultiExpressionData: segmentationMultiExpressionNormData,
269833
- bitmaskValueIsIndex,
269834
- // Images
269835
- images: imageData,
269836
- imageLayerScopes,
269837
- imageLayerCoordination,
269838
- imageChannelScopesByLayer,
269839
- imageChannelCoordination
269840
- }), !disableTooltip && jsxRuntimeExports.jsx(SpatialTooltipSubscriber, {
269841
- parentUuid: uuid2,
269842
- width: width2,
269843
- height: height2,
269844
- hoverCoord,
269845
- // Points
269846
- obsPoints: obsPointsData,
269847
- pointLayerScopes,
269848
- pointLayerCoordination,
269849
- // Spots
269850
- obsSpots: obsSpotsData,
269851
- spotLayerScopes,
269852
- spotLayerCoordination,
269853
- // Segmentations
269854
- obsSegmentationsLocations: obsSegmentationsLocationsData,
269855
- segmentationLayerScopes,
269856
- segmentationChannelScopesByLayer,
269857
- segmentationChannelCoordination,
269858
- obsSegmentationsSetsData,
269859
- // Images
269860
- imageLayerScopes,
269861
- imageLayerCoordination
269862
- }), jsxRuntimeExports.jsx(
269655
+ return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, errors, children: [is3dMode ? acceleratedFor3d ? jsxRuntimeExports.jsx(SpatialAcceleratedAdapter, { ref: threeRef, uuid: uuid2, width: width2, height: height2, theme, hideTools: !isSelectable, rotation: [rotationX, rotationY, rotationZ], setRotationX, setRotationY, setRotationZ, targetT, targetZ, viewState: isValidViewState ? {
269656
+ zoom: zoom2,
269657
+ target: [targetX2, targetY2, targetZ],
269658
+ rotationX,
269659
+ rotationOrbit
269660
+ } : DEFAULT_VIEW_STATE, orbitAxis, spatialAxisFixed, setViewState: isValidViewState ? setViewState : SET_VIEW_STATE_NOOP, originalViewState, spatialRenderingMode, updateViewInfo: setComponentViewInfo, delegateHover, onEntitySelected, 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(SpatialThreeAdapter, { ref: threeRef, uuid: uuid2, width: width2, height: height2, theme, hideTools: !isSelectable, rotation: [rotationX, rotationY, rotationZ], setRotationX, setRotationY, setRotationZ, targetT, targetZ, viewState: isValidViewState ? {
269661
+ zoom: zoom2,
269662
+ target: [targetX2, targetY2, targetZ],
269663
+ rotationX,
269664
+ rotationOrbit
269665
+ } : DEFAULT_VIEW_STATE, orbitAxis, spatialAxisFixed, setViewState: isValidViewState ? setViewState : SET_VIEW_STATE_NOOP, originalViewState, spatialRenderingMode, updateViewInfo: setComponentViewInfo, delegateHover, onEntitySelected, 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(SpatialWrapper, { ref: deckRef, uuid: uuid2, width: width2, height: height2, theme, hideTools: !isSelectable, targetT, targetZ, viewState: isValidViewState ? {
269666
+ zoom: zoom2,
269667
+ target: [targetX2, targetY2, targetZ],
269668
+ rotationX,
269669
+ rotationOrbit
269670
+ } : 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(
269863
269671
  MultiLegend,
269864
269672
  {
269865
269673
  // Fix to dark theme due to black background of spatial plot.
@@ -270694,11 +270502,11 @@ const Heatmap$1 = forwardRef$1((props, deckRef) => {
270694
270502
  });
270695
270503
  Heatmap$1.displayName = "Heatmap";
270696
270504
  function HeatmapTooltipSubscriber(props) {
270697
- const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight, featureHighlight, featureType, featureLabelsMap } = props;
270505
+ const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight, featureHighlight, featureType, featureLabelsMap } = props;
270698
270506
  const sourceUuid = useComponentHover();
270699
270507
  const viewInfo = useComponentViewInfo(parentUuid);
270700
- const [cellInfo, cellCoord] = obsHighlight && getObsInfo2 ? [
270701
- getObsInfo2(obsHighlight),
270508
+ const [cellInfo, cellCoord] = obsHighlight && getObsInfo ? [
270509
+ getObsInfo(obsHighlight),
270702
270510
  viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight, null)[transpose2 ? 0 : 1] : null
270703
270511
  ] : [null, null];
270704
270512
  const [geneInfo, geneCoord] = featureHighlight && getFeatureInfo ? [
@@ -270806,7 +270614,7 @@ function HeatmapSubscriber(props) {
270806
270614
  cellSetSelection,
270807
270615
  obsIndex
270808
270616
  ]);
270809
- const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
270617
+ const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
270810
270618
  const getObsMembership = useGetObsMembership(obsSetsMembership);
270811
270619
  const getFeatureInfo = useCallback((featureId2) => {
270812
270620
  if (featureId2) {
@@ -270846,7 +270654,7 @@ function HeatmapSubscriber(props) {
270846
270654
  setTargetY(target2[1]);
270847
270655
  }, 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: () => {
270848
270656
  setComponentHover(uuid2);
270849
- }, 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 })] });
270657
+ }, 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 })] });
270850
270658
  }
270851
270659
  function _classCallCheck(a2, n3) {
270852
270660
  if (!(a2 instanceof n3)) throw new TypeError("Cannot call a class as a function");
@@ -278949,7 +278757,7 @@ const useStyles$c = makeStyles()(() => ({
278949
278757
  }
278950
278758
  }));
278951
278759
  function ChannelOptions(props) {
278952
- const { onRemove: onRemove2, onResetWindowUsingIQR, showValueExtent, setShowValueExtent } = props;
278760
+ const { onRemove: onRemove2, onResetWindowUsingIQR, showValueExtent, setShowValueExtent, numResolutions, spatialMaxResolution, setSpatialMaxResolution } = props;
278953
278761
  const [open2, setOpen] = useState(false);
278954
278762
  const { classes: classes2 } = useStyles$c();
278955
278763
  const { classes: selectClasses2 } = useSelectStyles();
@@ -278962,7 +278770,7 @@ function ChannelOptions(props) {
278962
278770
  setShowValueExtent(event2.target.value === "Value Min/Max");
278963
278771
  }
278964
278772
  const domainTypeId = $bdb11010cef70236$export$f680877a34711e37();
278965
- return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, { fontSize: "small" }), buttonClassName: classes2.channelMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, placement: "bottom-end", withPaper: true, "aria-label": "Open channel options menu", children: [jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: domainTypeId, children: "Slider Extent: " }), jsxRuntimeExports.jsxs(NativeSelect, { onChange: handleDomainTypeChange, value: showValueExtent ? "Value Min/Max" : "Dtype Min/Max", inputProps: { id: domainTypeId, "aria-label": "Slider extent selector" }, classes: { root: selectClasses2.selectRoot }, children: [jsxRuntimeExports.jsx("option", { value: "Value Min/Max", children: "Value Min/Max" }), jsxRuntimeExports.jsx("option", { value: "Dtype Min/Max", children: "Dtype Min/Max" })] })] }), jsxRuntimeExports.jsx(MenuItem, { dense: true, disableGutters: true, component: "button", onClick: onResetWindowUsingIQR, className: classes2.menuItemButton, "aria-label": "Click to use IQR for channel", children: "Reset window using IQR" }), jsxRuntimeExports.jsx(MenuItem, { dense: true, disableGutters: true, component: "button", onClick: handleRemove, className: classes2.menuItemButton, "aria-label": "Click to remove channel", children: "Remove channel" })] });
278773
+ return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, { fontSize: "small" }), buttonClassName: classes2.channelMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, placement: "bottom-end", withPaper: true, "aria-label": "Open channel options menu", children: [jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: domainTypeId, children: "Best Resolution: " }), jsxRuntimeExports.jsx(Slider, { value: spatialMaxResolution || 1, valueLabelDisplay: "auto", onChange: (e3, v) => setSpatialMaxResolution(v), min: 1, max: numResolutions - 1, step: 1, orientation: "horizontal" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: domainTypeId, children: "Slider Extent: " }), jsxRuntimeExports.jsxs(NativeSelect, { onChange: handleDomainTypeChange, value: showValueExtent ? "Value Min/Max" : "Dtype Min/Max", inputProps: { id: domainTypeId, "aria-label": "Slider extent selector" }, classes: { root: selectClasses2.selectRoot }, children: [jsxRuntimeExports.jsx("option", { value: "Value Min/Max", children: "Value Min/Max" }), jsxRuntimeExports.jsx("option", { value: "Dtype Min/Max", children: "Dtype Min/Max" })] })] }), jsxRuntimeExports.jsx(MenuItem, { dense: true, disableGutters: true, component: "button", onClick: onResetWindowUsingIQR, className: classes2.menuItemButton, "aria-label": "Click to use IQR for channel", children: "Reset window using IQR" }), jsxRuntimeExports.jsx(MenuItem, { dense: true, disableGutters: true, component: "button", onClick: handleRemove, className: classes2.menuItemButton, "aria-label": "Click to remove channel", children: "Remove channel" })] });
278966
278774
  }
278967
278775
  const useStyles$b = makeStyles()(() => ({
278968
278776
  channelSlider: {
@@ -279049,7 +278857,10 @@ function ImageChannelController(props) {
279049
278857
  // The channel names.
279050
278858
  image: image2,
279051
278859
  // To get the channel window extent using image metadata.
279052
- spatialRenderingMode
278860
+ spatialRenderingMode,
278861
+ numResolutions,
278862
+ spatialMaxResolution,
278863
+ setSpatialMaxResolution
279053
278864
  } = props;
279054
278865
  const removeChannel = useRemoveImageChannelInMetaCoordinationScopes();
279055
278866
  const [showValueExtent, setShowValueExtent] = useState(true);
@@ -279086,7 +278897,7 @@ function ImageChannelController(props) {
279086
278897
  setWindow2(minMaxDomain);
279087
278898
  }
279088
278899
  }
279089
- return jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelVisibilityCheckbox, { color: color2, setColor: setColor2, visible, setVisible, disabled: isLoading, theme, colormapOn }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { color: color2, setColor: setColor2, visible, setVisible, disabled: isLoading, theme, isStaticColor: !colormapOn, palette: VIEWER_PALETTE }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(ChannelSelectionDropdown, { featureIndex, targetC, setTargetC, setWindow: setWindow2, disabled: isLoading }) }), jsxRuntimeExports.jsx(Grid$1, { size: 3, children: jsxRuntimeExports.jsx(ChannelSlider, { image: image2, targetT, targetZ, targetC, window: window2, setWindow: setWindow2, disabled, color: color2, theme, colormapOn, showValueExtent, minMaxDomain }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelOptions, { onRemove: onRemove2, showValueExtent, setShowValueExtent, onResetWindowUsingIQR: handleResetWindowUsingIQR }) })] });
278900
+ return jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelVisibilityCheckbox, { color: color2, setColor: setColor2, visible, setVisible, disabled: isLoading, theme, colormapOn }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { color: color2, setColor: setColor2, visible, setVisible, disabled: isLoading, theme, isStaticColor: !colormapOn, palette: VIEWER_PALETTE }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(ChannelSelectionDropdown, { featureIndex, targetC, setTargetC, setWindow: setWindow2, disabled: isLoading }) }), jsxRuntimeExports.jsx(Grid$1, { size: 3, children: jsxRuntimeExports.jsx(ChannelSlider, { image: image2, targetT, targetZ, targetC, window: window2, setWindow: setWindow2, disabled, color: color2, theme, colormapOn, showValueExtent, minMaxDomain }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelOptions, { onRemove: onRemove2, showValueExtent, setShowValueExtent, onResetWindowUsingIQR: handleResetWindowUsingIQR, numResolutions, spatialMaxResolution, setSpatialMaxResolution }) })] });
279090
278901
  }
279091
278902
  function DimensionSlider(props) {
279092
278903
  const { boundingSlice, sliceValue, setSliceValue, label: label2 } = props;
@@ -279189,10 +279000,11 @@ function ImageLayerController(props) {
279189
279000
  const { classes: controllerSectionClasses } = useControllerSectionStyles();
279190
279001
  const isMultiChannel = photometricInterpretation !== "RGB";
279191
279002
  return jsxRuntimeExports.jsx(Grid$1, { className: controllerSectionClasses.layerControllerGrid, children: jsxRuntimeExports.jsxs(Paper, { elevation: 4, className: controllerSectionClasses.layerControllerRoot, children: [jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { className: menuClasses.imageLayerVisibleButton, onClick: handleVisibleChange, "aria-label": "Toggle layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1 }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ImageLayerEllipsisMenu, { colormap, setColormap, photometricInterpretation, setPhotometricInterpretation, spatialTargetResolution, setSpatialTargetResolution, volumetricRenderingAlgorithm, setVolumetricRenderingAlgorithm, spatialLayerTransparentColor, setSpatialLayerTransparentColor, spatialRenderingMode, image: image2, channelScopes, tooltipsVisible, setTooltipsVisible, channelLabelsVisible, setChannelLabelsVisible, channelLabelsOrientation, setChannelLabelsOrientation, channelLabelSize, setChannelLabelSize }) }), jsxRuntimeExports.jsxs(Grid$1, { size: 1, container: true, direction: "row", children: [jsxRuntimeExports.jsx(ImageIcon, { className: classes2.layerTypeImageIcon }), isMultiChannel ? jsxRuntimeExports.jsx(Button, { onClick: handleOpenChange, className: classes2.channelExpansionButton, "aria-label": "Expand or collapse channel controls", children: open2 ? jsxRuntimeExports.jsx(ExpandLess, {}) : jsxRuntimeExports.jsx(ExpandMoreIcon, {}) }) : null] })] }), isMultiChannel && open2 ? jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", justifyContent: "space-between", className: classes2.imageChannelControllerGrid, children: [channelScopes.map((cScope) => {
279192
- const { spatialTargetC, spatialChannelVisible, spatialChannelOpacity, spatialChannelColor, spatialChannelWindow } = channelCoordination[cScope];
279193
- const { setSpatialTargetC, setSpatialChannelVisible, setSpatialChannelOpacity, setSpatialChannelColor, setSpatialChannelWindow } = setChannelCoordination[cScope];
279003
+ const { spatialTargetC, spatialChannelVisible, spatialChannelOpacity, spatialChannelColor, spatialChannelWindow, spatialMaxResolution } = channelCoordination[cScope];
279004
+ const { setSpatialTargetC, setSpatialChannelVisible, setSpatialChannelOpacity, setSpatialChannelColor, setSpatialChannelWindow, setSpatialMaxResolution } = setChannelCoordination[cScope];
279194
279005
  const channelIndex = image2?.getChannelIndex(spatialTargetC);
279195
- return jsxRuntimeExports.jsx(ImageChannelController, { theme, coordinationScopesRaw, layerScope, channelScope: cScope, targetT, targetZ, targetC: channelIndex, setTargetC: setSpatialTargetC, visible: spatialChannelVisible, setVisible: setSpatialChannelVisible, opacity: spatialChannelOpacity, setOpacity: setSpatialChannelOpacity, color: spatialChannelColor, setColor: setSpatialChannelColor, window: spatialChannelWindow, setWindow: setSpatialChannelWindow, colormapOn: colormap !== null, featureIndex, image: image2, spatialRenderingMode }, cScope);
279006
+ const numResolutions = image2?.getNumResolutions();
279007
+ return jsxRuntimeExports.jsx(ImageChannelController, { theme, coordinationScopesRaw, layerScope, channelScope: cScope, targetT, targetZ, targetC: channelIndex, setTargetC: setSpatialTargetC, visible: spatialChannelVisible, setVisible: setSpatialChannelVisible, opacity: spatialChannelOpacity, setOpacity: setSpatialChannelOpacity, color: spatialChannelColor, setColor: setSpatialChannelColor, window: spatialChannelWindow, setWindow: setSpatialChannelWindow, colormapOn: colormap !== null, featureIndex, image: image2, spatialRenderingMode, numResolutions, spatialMaxResolution, setSpatialMaxResolution }, cScope);
279196
279008
  }), jsxRuntimeExports.jsx(Button, { disabled: channelScopes.length === MAX_CHANNELS$1 || channelScopes.length === imageNumChannels, onClick: handleChannelAdd, fullWidth: true, variant: "outlined", className: classes2.imageLayerButton, startIcon: jsxRuntimeExports.jsx(AddIcon, {}), size: "small", "aria-label": "Add a channel to this layer", children: "Add Channel" })] }) : null, is3dMode && image2 ? jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", justifyContent: "space-between", className: classes2.imageChannelControllerGrid, children: [jsxRuntimeExports.jsx(Typography, { className: classes2.clippingPanesLabel, children: "Clipping planes:" }), jsxRuntimeExports.jsx(Grid$1, { size: 12, className: classes2.clippingSliders, children: jsxRuntimeExports.jsx(ClippingSliders, { image: image2, spatialSliceX, spatialSliceY, spatialSliceZ, setSpatialSliceX, setSpatialSliceY, setSpatialSliceZ }) })] }) : null] }) });
279197
279009
  }
279198
279010
  const useStyles$7 = makeStyles()((theme) => ({
@@ -279297,7 +279109,8 @@ function LayerControllerSubscriber(props) {
279297
279109
  CoordinationType$2.SPATIAL_TARGET_C,
279298
279110
  CoordinationType$2.SPATIAL_CHANNEL_VISIBLE,
279299
279111
  CoordinationType$2.SPATIAL_CHANNEL_COLOR,
279300
- CoordinationType$2.SPATIAL_CHANNEL_WINDOW
279112
+ CoordinationType$2.SPATIAL_CHANNEL_WINDOW,
279113
+ CoordinationType$2.SPATIAL_MAX_RESOLUTION
279301
279114
  ], coordinationScopes, coordinationScopesBy, CoordinationType$2.IMAGE_LAYER, CoordinationType$2.IMAGE_CHANNEL);
279302
279115
  const spotLayerCoordination = useComplexCoordination([
279303
279116
  CoordinationType$2.OBS_TYPE,
@@ -281337,7 +281150,7 @@ function HiglassGlobalStyles(props) {
281337
281150
  }
281338
281151
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
281339
281152
  const LazyHiGlassComponent = React__default.lazy(async () => {
281340
- const { HiGlassComponent } = await import("./higlass-ZUQODbTU.js");
281153
+ const { HiGlassComponent } = await import("./higlass-BHVqBoNN.js");
281341
281154
  return { default: HiGlassComponent };
281342
281155
  });
281343
281156
  const HG_SIZE = 800;
@@ -284284,7 +284097,7 @@ function NeuroglancerGlobalStyles(props) {
284284
284097
  const { classes: classes2 } = props;
284285
284098
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
284286
284099
  }
284287
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-Bsuj_rfq.js"));
284100
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-DyEmAPaR.js"));
284288
284101
  function createWorker() {
284289
284102
  return new WorkerFactory();
284290
284103
  }
@@ -371775,6 +371588,10 @@ class ImageWrapper {
371775
371588
  const { labels: labels2, shape: shape2 } = Array.isArray(loader2.data) ? loader2.data[0] : loader2.data;
371776
371589
  return shape2[labels2.indexOf("c")];
371777
371590
  }
371591
+ getNumResolutions() {
371592
+ const loader2 = this.vivLoader;
371593
+ return Array.isArray(loader2.data) ? loader2.data.length : 1;
371594
+ }
371778
371595
  isMultiResolution() {
371779
371596
  const loader2 = this.vivLoader;
371780
371597
  const hasViewableResolutions = Boolean(Array.from({
@@ -371785,13 +371602,21 @@ class ImageWrapper {
371785
371602
  getMultiResolutionStats() {
371786
371603
  const loader2 = this.vivLoader;
371787
371604
  return Array.from({ length: loader2.data.length }).fill(0).map((_, resolution) => {
371788
- const { height: height2, width: width2, depthDownsampled, totalBytes } = getStatsForResolution(loader2.data, resolution);
371605
+ const { height: height2, width: width2, depth, depthDownsampled, totalBytes, dims } = getStatsForResolution(loader2.data, resolution);
371789
371606
  return {
371790
371607
  canLoad: canLoadResolution(loader2.data, resolution),
371791
371608
  height: height2,
371792
371609
  width: width2,
371610
+ depth,
371793
371611
  depthDownsampled,
371794
- totalBytes
371612
+ totalBytes,
371613
+ dims
371614
+ // chunkHeight
371615
+ // chunkWidth
371616
+ // chunkDepth
371617
+ // physicalSizeVoxel
371618
+ // eslint-disable-next-line max-len
371619
+ // physicalSizeTotal (physicalSizeVoxel * highest-resolution numPixels, for each dimension)
371795
371620
  };
371796
371621
  });
371797
371622
  }
@@ -387989,7 +387814,11 @@ class SpatialDataShapesSource extends SpatialDataTableSource {
387989
387814
  */
387990
387815
  // eslint-disable-next-line class-methods-use-this
387991
387816
  _isWkbColumn(arrowTable, columnName) {
387992
- return arrowTable.schema.fields.find((field2) => field2.name === columnName)?.metadata?.get("ARROW:extension:name") === "geoarrow.wkb";
387817
+ const geometryEncodingValue = arrowTable.schema.fields.find((field2) => field2.name === columnName)?.metadata?.get("ARROW:extension:name");
387818
+ if (!geometryEncodingValue) {
387819
+ return true;
387820
+ }
387821
+ return geometryEncodingValue === "geoarrow.wkb";
387993
387822
  }
387994
387823
  /**
387995
387824
  * Helper to decode WKB geometry column as flat coordinates (for points).
@@ -394338,6 +394167,7 @@ const baseCoordinationTypes = [
394338
394167
  new PluginCoordinationType(CoordinationType$2.SPATIAL_RENDERING_MODE, "2D", z.enum(["2D", "3D"]).nullable()),
394339
394168
  new PluginCoordinationType(CoordinationType$2.VOLUMETRIC_RENDERING_ALGORITHM, "additive", z.enum(["maximumIntensityProjection", "additive"])),
394340
394169
  new PluginCoordinationType(CoordinationType$2.SPATIAL_TARGET_RESOLUTION, 0, z.number().nullable()),
394170
+ new PluginCoordinationType(CoordinationType$2.SPATIAL_MAX_RESOLUTION, null, z.number().nullable()),
394341
394171
  new PluginCoordinationType(CoordinationType$2.SPATIAL_SLICE_X, null, z.array(z.number()).length(2).nullable()),
394342
394172
  new PluginCoordinationType(CoordinationType$2.SPATIAL_SLICE_Y, null, z.array(z.number()).length(2).nullable()),
394343
394173
  new PluginCoordinationType(CoordinationType$2.SPATIAL_SLICE_Z, null, z.array(z.number()).length(2).nullable()),
@@ -396856,201 +396686,209 @@ function decodeURLParamsToConf(queryString) {
396856
396686
  throw new Error("Unrecognized URL Param Version");
396857
396687
  }
396858
396688
  export {
396859
- LinearMipmapNearestFilter as $,
396860
- ACESFilmicToneMapping as A,
396861
- BasicShadowMap as B,
396862
- Clock as C,
396689
+ Bone as $,
396690
+ LineSegments as A,
396691
+ BufferAttribute as B,
396692
+ Color as C,
396863
396693
  DirectionalLight2 as D,
396864
- EventDispatcher as E,
396694
+ Line as E,
396865
396695
  FileLoader as F,
396866
396696
  Group$1 as G,
396867
- TextureLoader as H,
396697
+ LineLoop as H,
396868
396698
  InstancedMesh as I,
396869
- ImageBitmapLoader as J,
396870
- BufferAttribute as K,
396871
- Layers as L,
396872
- Material as M,
396873
- NoToneMapping as N,
396874
- OrthographicCamera as O,
396875
- PerspectiveCamera as P,
396699
+ Points as J,
396700
+ PerspectiveCamera as K,
396701
+ Loader as L,
396702
+ Matrix42 as M,
396703
+ NearestMipmapLinearFilter as N,
396704
+ Object3D as O,
396705
+ PointLight2 as P,
396876
396706
  Quaternion2 as Q,
396877
- Raycaster as R,
396878
- Scene as S,
396879
- Texture2 as T,
396880
- UnsignedByteType as U,
396881
- VSMShadowMap as V,
396882
- WebGLRenderer as W,
396883
- InterleavedBuffer as X,
396884
- LinearMipmapLinearFilter as Y,
396885
- NearestMipmapLinearFilter as Z,
396886
- _extends$c as _,
396887
- PCFSoftShadowMap as a,
396888
- require_cof as a$,
396889
- NearestMipmapNearestFilter as a0,
396890
- LinearFilter as a1,
396891
- NearestFilter as a2,
396892
- RepeatWrapping as a3,
396893
- MirroredRepeatWrapping as a4,
396894
- ClampToEdgeWrapping as a5,
396895
- PointsMaterial as a6,
396896
- LineBasicMaterial as a7,
396897
- MeshStandardMaterial as a8,
396898
- DoubleSide as a9,
396899
- ShaderMaterial as aA,
396900
- UniformsUtils as aB,
396901
- UniformsLib as aC,
396902
- Vector42 as aD,
396903
- Line3 as aE,
396904
- SphereGeometry2 as aF,
396905
- Triangle as aG,
396906
- BackSide as aH,
396907
- jsxRuntimeExports as aI,
396908
- Matrix32 as aJ,
396909
- CoordinationType$2 as aK,
396910
- Data3DTexture as aL,
396911
- RedFormat as aM,
396912
- FloatType as aN,
396913
- getImageSize as aO,
396914
- BaseDecoder as aP,
396915
- LercParameters as aQ,
396916
- LercAddCompression as aR,
396917
- commonjsGlobal$1 as aS,
396918
- requireObjectAssign$1 as aT,
396919
- earcut as aU,
396920
- requireAssign as aV,
396921
- require_export as aW,
396922
- require_core as aX,
396923
- require_fails as aY,
396924
- require_toObject as aZ,
396925
- require_objectKeys as a_,
396926
- MeshBasicMaterial as aa,
396927
- PropertyBinding as ab,
396928
- SkinnedMesh as ac,
396929
- Mesh as ad,
396930
- LineSegments as ae,
396931
- Line as af,
396932
- LineLoop as ag,
396933
- Points as ah,
396934
- MathUtils as ai,
396935
- Skeleton as aj,
396936
- InterpolateDiscrete as ak,
396937
- InterpolateLinear as al,
396938
- AnimationClip as am,
396939
- Bone as an,
396940
- InterleavedBufferAttribute as ao,
396941
- VectorKeyframeTrack as ap,
396942
- QuaternionKeyframeTrack as aq,
396943
- NumberKeyframeTrack as ar,
396944
- FrontSide as as,
396945
- Interpolant as at,
396946
- Box3 as au,
396947
- Sphere as av,
396948
- InstancedBufferGeometry as aw,
396949
- Float32BufferAttribute as ax,
396950
- InstancedInterleavedBuffer as ay,
396951
- WireframeGeometry as az,
396952
- PCFShadowMap as b,
396953
- Vitessce as b$,
396954
- require_wks as b0,
396955
- require_iterators as b1,
396956
- requireWeb_dom_iterable as b2,
396957
- requireEs6_string_iterator as b3,
396958
- require_anObject as b4,
396959
- require_hide as b5,
396960
- require_ctx as b6,
396961
- require_toLength as b7,
396962
- require_global as b8,
396963
- require_objectDp as b9,
396964
- require_redefine as bA,
396965
- require_objectAssign as bB,
396966
- diffCameraState as bC,
396967
- MeshDistanceMaterial as bD,
396968
- MeshDepthMaterial as bE,
396969
- RGBADepthPacking as bF,
396970
- ShaderChunk as bG,
396971
- PlaneGeometry2 as bH,
396972
- InstancedBufferAttribute as bI,
396973
- encodeConfInUrl as bJ,
396974
- decodeURLParamsToConf as bK,
396975
- ViewType as bL,
396976
- DataType$2 as bM,
396977
- FileType as bN,
396978
- CoordinationType as bO,
396979
- CoordinationType$1 as bP,
396980
- VitessceConfig as bQ,
396981
- vconcat as bR,
396982
- hconcat as bS,
396983
- CL as bT,
396984
- getCoordinationSpaceAndScopes as bU,
396985
- generateConfig as bV,
396986
- getHintOptions as bW,
396987
- HINTS_CONFIG as bX,
396988
- HINT_TYPE_TO_FILE_TYPE_MAP as bY,
396989
- getInitialCoordinationScopePrefix as bZ,
396990
- getInitialCoordinationScopeName as b_,
396991
- require_descriptors as ba,
396992
- require_isObject as bb,
396993
- require_objectCreate as bc,
396994
- require_iterDefine as bd,
396995
- require_iterStep as be,
396996
- require_meta as bf,
396997
- require_isArray as bg,
396998
- require_iobject as bh,
396999
- require_setToStringTag as bi,
397000
- require_aFunction as bj,
397001
- requireIterator as bk,
397002
- require_propertyDesc as bl,
397003
- require_root as bm,
397004
- require_baseGetTag as bn,
397005
- requireIsObjectLike as bo,
397006
- requireIsObject as bp,
397007
- requireEs6_symbol as bq,
397008
- requireDefineProperty$1 as br,
397009
- require_toIobject as bs,
397010
- require_objectGopd as bt,
397011
- require_html as bu,
397012
- require_domCreate as bv,
397013
- require_library as bw,
397014
- requireSymbol as bx,
397015
- require_objectPie as by,
397016
- require_has as bz,
397017
- Vector32 as c,
397018
- PluginFileType as c0,
397019
- PluginViewType as c1,
397020
- PluginCoordinationType as c2,
397021
- PluginJointFileType as c3,
397022
- PluginAsyncFunction as c4,
397023
- z as c5,
397024
- useCoordination as c6,
397025
- useGridItemSize as c7,
397026
- usePageModeView as c8,
397027
- useComplexCoordination as c9,
397028
- useMultiCoordinationScopesNonNull as ca,
397029
- useMultiCoordinationScopesSecondaryNonNull as cb,
397030
- useComplexCoordinationSecondary as cc,
397031
- useCoordinationScopes as cd,
397032
- useCoordinationScopesBy as ce,
397033
- Vector22 as d,
397034
- Camera as e,
397035
- BufferGeometry as f,
397036
- getDefaultExportFromCjs$1 as g,
397037
- RGBAFormat as h,
397038
- Color as i,
397039
- THREE as j,
397040
- Matrix42 as k,
397041
- TrianglesDrawMode as l,
397042
- TriangleFanDrawMode as m,
397043
- TriangleStripDrawMode as n,
397044
- REVISION as o,
397045
- MOUSE as p,
397046
- TOUCH as q,
397047
- Spherical as r,
397048
- Ray as s,
397049
- Plane2 as t,
397050
- Loader as u,
397051
- LoaderUtils as v,
397052
- MeshPhysicalMaterial as w,
397053
- SpotLight as x,
397054
- PointLight2 as y,
397055
- Object3D as z
396707
+ REVISION as R,
396708
+ SpotLight as S,
396709
+ TrianglesDrawMode as T,
396710
+ MathUtils as U,
396711
+ Vector22 as V,
396712
+ OrthographicCamera as W,
396713
+ Skeleton as X,
396714
+ InterpolateDiscrete as Y,
396715
+ InterpolateLinear as Z,
396716
+ AnimationClip as _,
396717
+ TriangleFanDrawMode as a,
396718
+ commonjsGlobal$1 as a$,
396719
+ InterleavedBufferAttribute as a0,
396720
+ Texture2 as a1,
396721
+ VectorKeyframeTrack as a2,
396722
+ QuaternionKeyframeTrack as a3,
396723
+ NumberKeyframeTrack as a4,
396724
+ FrontSide as a5,
396725
+ Interpolant as a6,
396726
+ Box3 as a7,
396727
+ Sphere as a8,
396728
+ InstancedBufferGeometry as a9,
396729
+ RedIntegerFormat as aA,
396730
+ UnsignedIntType as aB,
396731
+ LogLevel as aC,
396732
+ WebGLMultipleRenderTargets as aD,
396733
+ RGBAFormat as aE,
396734
+ PlaneGeometry2 as aF,
396735
+ GLSL3 as aG,
396736
+ getDefaultExportFromCjs$1 as aH,
396737
+ Raycaster as aI,
396738
+ PCFSoftShadowMap as aJ,
396739
+ VSMShadowMap as aK,
396740
+ PCFShadowMap as aL,
396741
+ BasicShadowMap as aM,
396742
+ NoToneMapping as aN,
396743
+ ACESFilmicToneMapping as aO,
396744
+ Clock as aP,
396745
+ WebGLRenderer as aQ,
396746
+ Camera as aR,
396747
+ Layers as aS,
396748
+ THREE as aT,
396749
+ EventDispatcher as aU,
396750
+ MOUSE as aV,
396751
+ TOUCH as aW,
396752
+ Spherical as aX,
396753
+ BaseDecoder as aY,
396754
+ LercParameters as aZ,
396755
+ LercAddCompression as a_,
396756
+ Float32BufferAttribute as aa,
396757
+ InstancedInterleavedBuffer as ab,
396758
+ WireframeGeometry as ac,
396759
+ ShaderMaterial as ad,
396760
+ UniformsUtils as ae,
396761
+ UniformsLib as af,
396762
+ Vector42 as ag,
396763
+ Line3 as ah,
396764
+ SphereGeometry2 as ai,
396765
+ _extends$c as aj,
396766
+ Plane2 as ak,
396767
+ Triangle as al,
396768
+ BackSide as am,
396769
+ Ray as an,
396770
+ jsxRuntimeExports as ao,
396771
+ Matrix32 as ap,
396772
+ CoordinationType$2 as aq,
396773
+ Data3DTexture as ar,
396774
+ RedFormat as as,
396775
+ FloatType as at,
396776
+ getImageSize as au,
396777
+ Scene as av,
396778
+ log$c as aw,
396779
+ isEqual$3 as ax,
396780
+ atLeastLogLevel as ay,
396781
+ UnsignedByteType as az,
396782
+ TriangleStripDrawMode as b,
396783
+ CL as b$,
396784
+ requireObjectAssign$1 as b0,
396785
+ earcut as b1,
396786
+ requireAssign as b2,
396787
+ require_export as b3,
396788
+ require_core as b4,
396789
+ require_fails as b5,
396790
+ require_toObject as b6,
396791
+ require_objectKeys as b7,
396792
+ require_cof as b8,
396793
+ require_wks as b9,
396794
+ requireDefineProperty$1 as bA,
396795
+ require_toIobject as bB,
396796
+ require_objectGopd as bC,
396797
+ require_html as bD,
396798
+ require_domCreate as bE,
396799
+ require_library as bF,
396800
+ requireSymbol as bG,
396801
+ require_objectPie as bH,
396802
+ require_has as bI,
396803
+ require_redefine as bJ,
396804
+ require_objectAssign as bK,
396805
+ diffCameraState as bL,
396806
+ MeshDistanceMaterial as bM,
396807
+ MeshDepthMaterial as bN,
396808
+ RGBADepthPacking as bO,
396809
+ ShaderChunk as bP,
396810
+ InstancedBufferAttribute as bQ,
396811
+ encodeConfInUrl as bR,
396812
+ decodeURLParamsToConf as bS,
396813
+ ViewType as bT,
396814
+ DataType$2 as bU,
396815
+ FileType as bV,
396816
+ CoordinationType as bW,
396817
+ CoordinationType$1 as bX,
396818
+ VitessceConfig as bY,
396819
+ vconcat as bZ,
396820
+ hconcat as b_,
396821
+ require_iterators as ba,
396822
+ requireWeb_dom_iterable as bb,
396823
+ requireEs6_string_iterator as bc,
396824
+ require_anObject as bd,
396825
+ require_hide as be,
396826
+ require_ctx as bf,
396827
+ require_toLength as bg,
396828
+ require_global as bh,
396829
+ require_objectDp as bi,
396830
+ require_descriptors as bj,
396831
+ require_isObject as bk,
396832
+ require_objectCreate as bl,
396833
+ require_iterDefine as bm,
396834
+ require_iterStep as bn,
396835
+ require_meta as bo,
396836
+ require_isArray as bp,
396837
+ require_iobject as bq,
396838
+ require_setToStringTag as br,
396839
+ require_aFunction as bs,
396840
+ requireIterator as bt,
396841
+ require_propertyDesc as bu,
396842
+ require_root as bv,
396843
+ require_baseGetTag as bw,
396844
+ requireIsObjectLike as bx,
396845
+ requireIsObject as by,
396846
+ requireEs6_symbol as bz,
396847
+ LoaderUtils as c,
396848
+ getCoordinationSpaceAndScopes as c0,
396849
+ generateConfig as c1,
396850
+ getHintOptions as c2,
396851
+ HINTS_CONFIG as c3,
396852
+ HINT_TYPE_TO_FILE_TYPE_MAP as c4,
396853
+ getInitialCoordinationScopePrefix as c5,
396854
+ getInitialCoordinationScopeName as c6,
396855
+ Vitessce as c7,
396856
+ PluginFileType as c8,
396857
+ PluginViewType as c9,
396858
+ PluginCoordinationType as ca,
396859
+ PluginJointFileType as cb,
396860
+ PluginAsyncFunction as cc,
396861
+ z as cd,
396862
+ useCoordination as ce,
396863
+ useGridItemSize as cf,
396864
+ usePageModeView as cg,
396865
+ useComplexCoordination as ch,
396866
+ useMultiCoordinationScopesNonNull as ci,
396867
+ useMultiCoordinationScopesSecondaryNonNull as cj,
396868
+ useComplexCoordinationSecondary as ck,
396869
+ useCoordinationScopes as cl,
396870
+ useCoordinationScopesBy as cm,
396871
+ MeshPhysicalMaterial as d,
396872
+ Vector32 as e,
396873
+ TextureLoader as f,
396874
+ ImageBitmapLoader as g,
396875
+ InterleavedBuffer as h,
396876
+ LinearMipmapLinearFilter as i,
396877
+ LinearMipmapNearestFilter as j,
396878
+ NearestMipmapNearestFilter as k,
396879
+ LinearFilter as l,
396880
+ NearestFilter as m,
396881
+ RepeatWrapping as n,
396882
+ MirroredRepeatWrapping as o,
396883
+ ClampToEdgeWrapping as p,
396884
+ PointsMaterial as q,
396885
+ Material as r,
396886
+ LineBasicMaterial as s,
396887
+ MeshStandardMaterial as t,
396888
+ DoubleSide as u,
396889
+ MeshBasicMaterial as v,
396890
+ PropertyBinding as w,
396891
+ BufferGeometry as x,
396892
+ SkinnedMesh as y,
396893
+ Mesh as z
397056
396894
  };