@vitessce/dev 3.5.11 → 3.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { aQ as BaseDecoder } from "./index-7a69579f.js";
2
+ import { aQ as BaseDecoder } from "./index-4f10e6bc.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -1,6 +1,6 @@
1
1
  import React__default, { createElement, isValidElement, PureComponent, Component } from "react";
2
2
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
3
- import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-7a69579f.js";
3
+ import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-4f10e6bc.js";
4
4
  var promise = {};
5
5
  (function(exports2) {
6
6
  (function(global) {
@@ -750,7 +750,8 @@ const COMPONENT_COORDINATION_TYPES = {
750
750
  CoordinationType$2.OBS_COLOR_ENCODING,
751
751
  CoordinationType$2.ADDITIONAL_OBS_SETS,
752
752
  CoordinationType$2.MOLECULE_HIGHLIGHT,
753
- CoordinationType$2.TOOLTIPS_VISIBLE
753
+ CoordinationType$2.TOOLTIPS_VISIBLE,
754
+ CoordinationType$2.PHOTOMETRIC_INTERPRETATION
754
755
  ],
755
756
  [ViewType$2.SPATIAL_BETA]: [
756
757
  CoordinationType$2.META_COORDINATION_SCOPES,
@@ -823,7 +824,8 @@ const COMPONENT_COORDINATION_TYPES = {
823
824
  CoordinationType$2.LEGEND_VISIBLE,
824
825
  CoordinationType$2.SPATIAL_CHANNEL_LABELS_VISIBLE,
825
826
  CoordinationType$2.SPATIAL_CHANNEL_LABELS_ORIENTATION,
826
- CoordinationType$2.SPATIAL_CHANNEL_LABEL_SIZE
827
+ CoordinationType$2.SPATIAL_CHANNEL_LABEL_SIZE,
828
+ CoordinationType$2.PHOTOMETRIC_INTERPRETATION
827
829
  ],
828
830
  [ViewType$2.HEATMAP]: [
829
831
  CoordinationType$2.DATASET,
@@ -938,7 +940,8 @@ const COMPONENT_COORDINATION_TYPES = {
938
940
  CoordinationType$2.SPATIAL_ROTATION_Y,
939
941
  CoordinationType$2.SPATIAL_ROTATION_Z,
940
942
  CoordinationType$2.SPATIAL_ROTATION_ORBIT,
941
- CoordinationType$2.SPATIAL_ORBIT_AXIS
943
+ CoordinationType$2.SPATIAL_ORBIT_AXIS,
944
+ CoordinationType$2.PHOTOMETRIC_INTERPRETATION
942
945
  ],
943
946
  [ViewType$2.LAYER_CONTROLLER_BETA]: [
944
947
  CoordinationType$2.META_COORDINATION_SCOPES,
@@ -1209,10 +1212,10 @@ const COMPONENT_COORDINATION_TYPES = {
1209
1212
  ]
1210
1213
  };
1211
1214
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
1212
- const version$6 = "3.5.11";
1213
- const date$5 = "2025-04-03";
1215
+ const version$6 = "3.5.12";
1216
+ const date$5 = "2025-05-14";
1214
1217
  const branch = "changeset-release/main";
1215
- const hash$1 = "8043908f";
1218
+ const hash$1 = "a2f10645";
1216
1219
  const META_VERSION = {
1217
1220
  note,
1218
1221
  version: version$6,
@@ -191079,16 +191082,16 @@ async function getDecoder(fileDirectory) {
191079
191082
  const Decoder = await importFn();
191080
191083
  return new Decoder(fileDirectory);
191081
191084
  }
191082
- addDecoder([void 0, 1], () => import("./raw-3b2ecece.js").then((m2) => m2.default));
191083
- addDecoder(5, () => import("./lzw-e89447c6.js").then((m2) => m2.default));
191085
+ addDecoder([void 0, 1], () => import("./raw-085aef44.js").then((m2) => m2.default));
191086
+ addDecoder(5, () => import("./lzw-c11a1966.js").then((m2) => m2.default));
191084
191087
  addDecoder(6, () => {
191085
191088
  throw new Error("old style JPEG compression is not supported.");
191086
191089
  });
191087
- addDecoder(7, () => import("./jpeg-391a6a8b.js").then((m2) => m2.default));
191088
- addDecoder([8, 32946], () => import("./deflate-d498ba89.js").then((m2) => m2.default));
191089
- addDecoder(32773, () => import("./packbits-9c2adfe3.js").then((m2) => m2.default));
191090
- addDecoder(34887, () => import("./lerc-ca7a3f4f.js").then((m2) => m2.default));
191091
- addDecoder(50001, () => import("./webimage-21345225.js").then((m2) => m2.default));
191090
+ addDecoder(7, () => import("./jpeg-2c38fd60.js").then((m2) => m2.default));
191091
+ addDecoder([8, 32946], () => import("./deflate-b57ef85f.js").then((m2) => m2.default));
191092
+ addDecoder(32773, () => import("./packbits-05dadc65.js").then((m2) => m2.default));
191093
+ addDecoder(34887, () => import("./lerc-bfc1a927.js").then((m2) => m2.default));
191094
+ addDecoder(50001, () => import("./webimage-184e90fa.js").then((m2) => m2.default));
191092
191095
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
191093
191096
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
191094
191097
  }
@@ -226538,9 +226541,6 @@ function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
226538
226541
  sizes.push(unit$1(`${zSize} ${zUnit}`.replace("µ", "u")));
226539
226542
  }
226540
226543
  const scale2 = sizes.map((i2) => divide(i2, unit$1("1 um")));
226541
- if (!sizes[0].equals(sizes[1])) {
226542
- scale2[1] = divide(sizes[1], sizes[0]);
226543
- }
226544
226544
  if (!scale2[2]) {
226545
226545
  scale2[2] = 1;
226546
226546
  }
@@ -230023,6 +230023,7 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
230023
230023
  return null;
230024
230024
  }
230025
230025
  createRasterLayer(rawLayerDef, loader2, i2) {
230026
+ const { photometricInterpretation } = this.props;
230026
230027
  const layerDef = {
230027
230028
  ...rawLayerDef,
230028
230029
  channels: rawLayerDef.channels.filter((channel) => channel.selection && channel.color && channel.slider)
@@ -230101,6 +230102,23 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
230101
230102
  if (isInterleaved$1((Array.isArray(data2) ? data2[0] : data2).shape)) {
230102
230103
  rgbInterleavedProps.visible = layerDef.visible;
230103
230104
  }
230105
+ const rgbProps = photometricInterpretation === "RGB" ? {
230106
+ colors: [
230107
+ [255, 0, 0],
230108
+ [0, 255, 0],
230109
+ [0, 0, 255]
230110
+ ],
230111
+ contrastLimits: [
230112
+ [0, 255],
230113
+ [0, 255],
230114
+ [0, 255]
230115
+ ],
230116
+ channelsVisible: [
230117
+ true,
230118
+ true,
230119
+ true
230120
+ ]
230121
+ } : {};
230104
230122
  return new Layer2({
230105
230123
  loader: layerLoader,
230106
230124
  id: `${layerDef.use3d ? "volume" : "image"}-layer-${layerDef.index}-${i2}`,
@@ -230122,7 +230140,8 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
230122
230140
  onViewportLoad: layerProps.callback,
230123
230141
  excludeBackground: layerProps.excludeBackground,
230124
230142
  extensions,
230125
- ...rgbInterleavedProps
230143
+ ...rgbInterleavedProps,
230144
+ ...rgbProps
230126
230145
  });
230127
230146
  }
230128
230147
  use3d() {
@@ -230340,7 +230359,8 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
230340
230359
  "geneExpressionColormapRange",
230341
230360
  "expressionData",
230342
230361
  "imageLayerCallbacks",
230343
- "geneExpressionColormap"
230362
+ "geneExpressionColormap",
230363
+ "photometricInterpretation"
230344
230364
  ].some(shallowDiff)) {
230345
230365
  this.onUpdateImages();
230346
230366
  forceUpdate = true;
@@ -230439,7 +230459,7 @@ function SpatialSubscriber$1(props) {
230439
230459
  const loaders = useLoaders();
230440
230460
  const setComponentHover = useSetComponentHover();
230441
230461
  const setComponentViewInfo = useSetComponentViewInfo(uuid);
230442
- const [{ dataset, obsType, featureType, featureValueType, spatialZoom: zoom2, spatialTargetX: targetX2, spatialTargetY: targetY2, spatialTargetZ: targetZ, spatialRotationX: rotationX, spatialRotationY: rotationY, spatialRotationZ: rotationZ, spatialRotationOrbit: rotationOrbit, spatialOrbitAxis: orbitAxis, spatialImageLayer: imageLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer, spatialNeighborhoodLayer: neighborhoodsLayer, obsFilter: cellFilter, obsHighlight: cellHighlight, moleculeHighlight, featureSelection: geneSelection, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, spatialAxisFixed, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, tooltipsVisible }, { setSpatialZoom: setZoom, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialOrbitAxis: setOrbitAxis, setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialNeighborhoodLayer: setNeighborhoodsLayer, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setMoleculeHighlight, setSpatialAxisFixed, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setTooltipsVisible }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SPATIAL], coordinationScopes);
230462
+ const [{ dataset, obsType, featureType, featureValueType, spatialZoom: zoom2, spatialTargetX: targetX2, spatialTargetY: targetY2, spatialTargetZ: targetZ, spatialRotationX: rotationX, spatialRotationY: rotationY, spatialRotationZ: rotationZ, spatialRotationOrbit: rotationOrbit, spatialOrbitAxis: orbitAxis, spatialImageLayer: imageLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer, spatialNeighborhoodLayer: neighborhoodsLayer, obsFilter: cellFilter, obsHighlight: cellHighlight, moleculeHighlight, featureSelection: geneSelection, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, spatialAxisFixed, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, tooltipsVisible, photometricInterpretation: photometricInterpretationFromCoordination }, { setSpatialZoom: setZoom, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialOrbitAxis: setOrbitAxis, setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialNeighborhoodLayer: setNeighborhoodsLayer, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setMoleculeHighlight, setSpatialAxisFixed, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setTooltipsVisible }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SPATIAL], coordinationScopes);
230443
230463
  const { spatialZoom: initialZoom, spatialTargetX: initialTargetX, spatialTargetY: initialTargetY, spatialTargetZ: initialTargetZ } = useInitialCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SPATIAL], coordinationScopes);
230444
230464
  const observationsLabel = observationsLabelOverride || obsType;
230445
230465
  const [{ imageLayerCallbacks, segmentationLayerCallbacks }] = useAuxiliaryCoordination(COMPONENT_COORDINATION_TYPES.layerController, coordinationScopes);
@@ -230459,10 +230479,11 @@ function SpatialSubscriber$1(props) {
230459
230479
  const [expressionData, loadedFeatureSelection, featureSelectionStatus] = useFeatureSelection(loaders, dataset, false, geneSelection, { obsType, featureType, featureValueType });
230460
230480
  const [{ obsIndex: matrixObsIndex }, matrixIndicesStatus, matrixIndicesUrls] = useObsFeatureMatrixIndices(loaders, dataset, false, { obsType, featureType, featureValueType });
230461
230481
  const [{ image: image2 }, imageStatus, imageUrls] = useImageData(loaders, dataset, false, { setSpatialImageLayer: setRasterLayers }, { spatialImageLayer: imageLayers }, {});
230462
- const { loaders: imageLayerLoaders = [], meta: meta2 = [] } = image2 || {};
230482
+ const { loaders: imageLayerLoaders = [], meta: meta2 = [], instance: instance2 } = image2 || {};
230463
230483
  const [neighborhoods, neighborhoodsStatus, neighborhoodsUrls] = useNeighborhoodsData(loaders, dataset, false, { setSpatialNeighborhoodLayer: setNeighborhoodsLayer }, { spatialNeighborhoodLayer: neighborhoodsLayer });
230464
230484
  const [{ featureLabelsMap: featureLabelsMapOrig }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(loaders, dataset, false, {}, {}, { featureType });
230465
230485
  const [featureLabelsMap, expandedFeatureLabelsStatus] = useExpandedFeatureLabelsMap(featureType, featureLabelsMapOrig, { stripCuriePrefixes: true });
230486
+ const photometricInterpretation = photometricInterpretationFromCoordination ?? instance2?.getPhotometricInterpretation();
230466
230487
  const isReady = useReady([
230467
230488
  obsLocationsStatus,
230468
230489
  obsLabelsStatus,
@@ -230712,7 +230733,7 @@ function SpatialSubscriber$1(props) {
230712
230733
  orbitAxis
230713
230734
  }, 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: () => {
230714
230735
  setComponentHover(uuid);
230715
- }, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid, obsHighlight: cellHighlight || moleculeHighlight, width: width2, height: height2, getObsInfo: getTooltipObsInfo, useHoverInfoForTooltip, hoverData, hoverCoord, hoverMode, getObsIdFromHoverData, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, {
230736
+ }, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage, photometricInterpretation }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid, obsHighlight: cellHighlight || moleculeHighlight, width: width2, height: height2, getObsInfo: getTooltipObsInfo, useHoverInfoForTooltip, hoverData, hoverCoord, hoverMode, getObsIdFromHoverData, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, {
230716
230737
  visible: true,
230717
230738
  // Fix to dark theme due to black background of spatial plot.
230718
230739
  theme: "dark",
@@ -232070,7 +232091,7 @@ class ErrorBoundary2 extends React__default.Component {
232070
232091
  }
232071
232092
  }
232072
232093
  const LazySpatialThree = React__default.lazy(async () => {
232073
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-9956beb7.js");
232094
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-f9b7fcdb.js");
232074
232095
  return { default: SpatialWrapper2 };
232075
232096
  });
232076
232097
  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 }) }) }) }));
@@ -238564,7 +238585,7 @@ const buttonStyles = {
238564
238585
  fontWeight: 400
238565
238586
  };
238566
238587
  function LayerController$1(props) {
238567
- const { layer, name: name2, loader: loader2, theme, handleLayerRemove, handleLayerChange, shouldShowTransparentColor, shouldShowDomain, shouldShowColormap, ChannelController, setViewState, disable3d, setImageLayerCallback, setAreLayerChannelsLoading, areLayerChannelsLoading, disabled, spatialHeight, spatialWidth, disableChannelsIfRgbDetected, shouldShowRemoveLayerButton } = props;
238588
+ const { layer, name: name2, loader: loader2, theme, handleLayerRemove, handleLayerChange, shouldShowTransparentColor, shouldShowDomain, shouldShowColormap, ChannelController, setViewState, disable3d, setImageLayerCallback, setAreLayerChannelsLoading, areLayerChannelsLoading, disabled, spatialHeight, spatialWidth, photometricInterpretation, shouldShowRemoveLayerButton } = props;
238568
238589
  const { colormap, opacity: opacity2, channels: channels2, transparentColor, renderingMode, xSlice, ySlice, zSlice, resolution, use3d, modelMatrix: modelMatrix2 } = layer;
238569
238590
  const channelRef = useRef(channels2);
238570
238591
  useEffect(() => {
@@ -238779,7 +238800,7 @@ function LayerController$1(props) {
238779
238800
  handleColormapChange: setColormap,
238780
238801
  handleGlobalChannelsSelectionChange,
238781
238802
  handleTransparentColorChange: setTransparentColor,
238782
- disableChannelsIfRgbDetected: isRgb(loader2, channels2) && disableChannelsIfRgbDetected,
238803
+ disableChannelsIfRgbDetected: photometricInterpretation === "RGB",
238783
238804
  handleDomainChange,
238784
238805
  shouldShowTransparentColor,
238785
238806
  shouldShowDomain,
@@ -238795,7 +238816,7 @@ function LayerController$1(props) {
238795
238816
  spatialHeight,
238796
238817
  spatialWidth,
238797
238818
  modelMatrix: modelMatrix2
238798
- }), isRgb(loader2, channels2) && disableChannelsIfRgbDetected ? null : channelControllers, isRgb(loader2, channels2) && disableChannelsIfRgbDetected ? null : jsxRuntimeExports.jsx(Button$1, { disabled: channels2.length === MAX_CHANNELS$1, onClick: handleChannelAdd, fullWidth: true, variant: "outlined", style: buttonStyles, startIcon: jsxRuntimeExports.jsx(AddIcon, {}), size: "small", children: "Add Channel" })] });
238819
+ }), photometricInterpretation === "RGB" ? null : channelControllers, photometricInterpretation === "RGB" ? null : jsxRuntimeExports.jsx(Button$1, { disabled: channels2.length === MAX_CHANNELS$1, onClick: handleChannelAdd, fullWidth: true, variant: "outlined", style: buttonStyles, startIcon: jsxRuntimeExports.jsx(AddIcon, {}), size: "small", children: "Add Channel" })] });
238799
238820
  return jsxRuntimeExports.jsxs(Accordion$1, { className: controllerSectionClasses.layerControllerRoot, onChange: (e3, expanded) => !disabled && setIsExpanded(expanded && e3?.target?.attributes?.role?.value === "presentation"), TransitionProps: { enter: false }, expanded: !disabled && isExpanded, id: `layer-controls-accordion-${layerControlsId}`, children: [jsxRuntimeExports.jsx(AccordionSummary$1, { classes: {
238800
238821
  root: accordionClasses.accordionSummaryRoot,
238801
238822
  content: accordionClasses.content,
@@ -238869,6 +238890,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
238869
238890
  setAreLoadingImageChannels,
238870
238891
  handleRasterLayerChange,
238871
238892
  handleRasterLayerRemove,
238893
+ photometricInterpretation,
238872
238894
  obsSegmentationsType,
238873
238895
  segmentationLayerLoaders,
238874
238896
  segmentationLayerMeta,
@@ -238990,6 +239012,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
238990
239012
  disable3d: globalDisable3d || (disable3d || []).indexOf(layerMeta.name) >= 0 || typeof layerIs3DIndex === "number" && layerIs3DIndex !== -1 && layerIs3DIndex !== i2,
238991
239013
  disabled: typeof layerIs3DIndex === "number" && layerIs3DIndex !== -1 && layerIs3DIndex !== i2,
238992
239014
  disableChannelsIfRgbDetected,
239015
+ photometricInterpretation,
238993
239016
  imageLayerCallbacks,
238994
239017
  setImageLayerCallback,
238995
239018
  setViewState: ({ zoom: newZoom, target: target2, rotationX: newRotationX, rotationOrbit: newRotationOrbit }) => {
@@ -239013,7 +239036,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
239013
239036
  function LayerControllerSubscriber$1(props) {
239014
239037
  const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer, helpText = ViewHelpMapping.LAYER_CONTROLLER } = props;
239015
239038
  const loaders = useLoaders();
239016
- const [{ dataset, obsType, spatialImageLayer: rasterLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer }, { setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialZoom: setZoom }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.LAYER_CONTROLLER], coordinationScopes);
239039
+ const [{ dataset, obsType, spatialImageLayer: rasterLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer, photometricInterpretation: photometricInterpretationFromCoordination }, { setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialZoom: setZoom }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.LAYER_CONTROLLER], coordinationScopes);
239017
239040
  const [{ imageLayerCallbacks, areLoadingImageChannels, segmentationLayerCallbacks, areLoadingSegmentationChannels }, { setImageLayerCallbacks, setAreLoadingImageChannels, setSegmentationLayerCallbacks, setAreLoadingSegmentationChannels }] = useAuxiliaryCoordination(COMPONENT_COORDINATION_TYPES.layerController, coordinationScopes);
239018
239041
  const [spatialLayout] = useComponentLayout("spatial", ["spatialImageLayer"], coordinationScopes);
239019
239042
  const layerControllerRef = useRef();
@@ -239022,12 +239045,13 @@ function LayerControllerSubscriber$1(props) {
239022
239045
  const [obsLocationsData, obsLocationsStatus] = useObsLocationsData(loaders, dataset, false, { setSpatialPointLayer: setMoleculesLayer }, { spatialPointLayer: moleculesLayer }, {});
239023
239046
  const [{ obsSegmentations, obsSegmentationsType }, obsSegmentationsStatus] = useObsSegmentationsData(loaders, dataset, false, { setSpatialSegmentationLayer: setCellsLayer }, { spatialSegmentationLayer: cellsLayer }, {});
239024
239047
  const [{ image: image2 }, imageStatus] = useImageData(loaders, dataset, false, { setSpatialImageLayer: setRasterLayers }, { spatialImageLayer: rasterLayers }, {});
239025
- const { loaders: imageLayerLoaders, meta: imageLayerMeta } = image2 || {};
239048
+ const { loaders: imageLayerLoaders, meta: imageLayerMeta, instance: instance2 } = image2 || {};
239026
239049
  const isReady = useReady([
239027
239050
  obsLocationsStatus,
239028
239051
  obsSegmentationsStatus,
239029
239052
  imageStatus
239030
239053
  ]);
239054
+ const photometricInterpretation = photometricInterpretationFromCoordination ?? instance2?.getPhotometricInterpretation();
239031
239055
  const segmentationLayerLoaders = obsSegmentations && obsSegmentationsType === "bitmask" ? obsSegmentations.loaders : null;
239032
239056
  const segmentationLayerMeta = obsSegmentations && obsSegmentationsType === "bitmask" ? obsSegmentations.meta : null;
239033
239057
  const handleImageAdd = useCallback(async (index2) => {
@@ -239088,6 +239112,7 @@ function LayerControllerSubscriber$1(props) {
239088
239112
  setAreLoadingImageChannels,
239089
239113
  handleRasterLayerChange,
239090
239114
  handleRasterLayerRemove,
239115
+ photometricInterpretation,
239091
239116
  obsSegmentationsType,
239092
239117
  segmentationLayerLoaders,
239093
239118
  segmentationLayerMeta,
@@ -241669,7 +241694,7 @@ const useStyles$6 = makeStyles((theme) => ({
241669
241694
  }));
241670
241695
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
241671
241696
  const LazyHiGlassComponent = React__default.lazy(async () => {
241672
- const { HiGlassComponent } = await import("./higlass-24a2d79c.js");
241697
+ const { HiGlassComponent } = await import("./higlass-bd3bb438.js");
241673
241698
  return { default: HiGlassComponent };
241674
241699
  });
241675
241700
  const HG_SIZE = 800;
@@ -244616,7 +244641,7 @@ const useStyles$5 = makeStyles(() => ({
244616
244641
  }
244617
244642
  }));
244618
244643
  const LazyReactNeuroglancer = React__default.lazy(async () => {
244619
- const ReactNeuroglancer = await import("./index-2c304ba6.js").then((n3) => n3.i);
244644
+ const ReactNeuroglancer = await import("./index-fed4c7c6.js").then((n3) => n3.i);
244620
244645
  return ReactNeuroglancer;
244621
244646
  });
244622
244647
  function createWorker() {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, aG as SphereGeometry, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-7a69579f.js";
1
+ import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, aG as SphereGeometry, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-4f10e6bc.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useState, useRef, useEffect, useMemo, forwardRef } from "react";
4
4
  import "react-dom";
@@ -23693,7 +23693,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23693
23693
  const {
23694
23694
  Text: TextMeshImpl,
23695
23695
  preloadFont
23696
- } = suspend(async () => import("./troika-three-text.esm-a0868f69.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-9db53f4c.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
@@ -1,4 +1,4 @@
1
- import { aW as _export, aX as _coreExports, aY as _fails, aZ as _toObject, a_ as _objectKeys, g as getDefaultExportFromCjs, a$ as _wksExports, b0 as _cof, b1 as _iterators, b2 as _anObject, b3 as _hide, b4 as _ctx, b5 as _toLength, b6 as _globalExports, b7 as _objectDp, b8 as _descriptors, b9 as _isObject, ba as _metaExports, bb as _objectCreate, bc as _iterDefine, bd as _iterStep, be as _isArray, bf as _iobject, bg as _setToStringTag, bh as _aFunction, bi as _propertyDesc, bj as _root, bk as _baseGetTag, bl as isObjectLike_1, bm as isObject_1, bn as _Symbol$iterator, bo as _Object$assign, bp as _objectGopd, bq as _toIobject, br as _html, bs as _domCreate, bt as _library, bu as _Object$defineProperty, bv as _Symbol, bw as _objectPie, bx as _has, by as _redefine, bz as _objectAssign, aT as commonjsGlobal, bA as getAugmentedNamespace, bB as propTypesExports } from "./index-7a69579f.js";
1
+ import { aW as _export, aX as _coreExports, aY as _fails, aZ as _toObject, a_ as _objectKeys, g as getDefaultExportFromCjs, a$ as _wksExports, b0 as _cof, b1 as _iterators, b2 as _anObject, b3 as _hide, b4 as _ctx, b5 as _toLength, b6 as _globalExports, b7 as _objectDp, b8 as _descriptors, b9 as _isObject, ba as _metaExports, bb as _objectCreate, bc as _iterDefine, bd as _iterStep, be as _isArray, bf as _iobject, bg as _setToStringTag, bh as _aFunction, bi as _propertyDesc, bj as _root, bk as _baseGetTag, bl as isObjectLike_1, bm as isObject_1, bn as _Symbol$iterator, bo as _Object$assign, bp as _objectGopd, bq as _toIobject, br as _html, bs as _domCreate, bt as _library, bu as _Object$defineProperty, bv as _Symbol, bw as _objectPie, bx as _has, by as _redefine, bz as _objectAssign, aT as commonjsGlobal, bA as getAugmentedNamespace, bB as propTypesExports } from "./index-4f10e6bc.js";
2
2
  import React__default from "react";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bS, bN, bL, bM, bW, bX, bO, c3, c1, b$, c2, c0, bK, b_, bP, bJ, bI, bU, bT, bV, bZ, bY, bR, c8, cb, c5, cc, cd, c6, c9, ca, c7, bQ, c4 } from "./index-7a69579f.js";
1
+ import { bS, bN, bL, bM, bW, bX, bO, c3, c1, b$, c2, c0, bK, b_, bP, bJ, bI, bU, bT, bV, bZ, bY, bR, c8, cb, c5, cc, cd, c6, c9, ca, c7, bQ, c4 } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-7a69579f.js";
1
+ import { aQ as BaseDecoder } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-7a69579f.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-4f10e6bc.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-7a69579f.js";
1
+ import { aQ as BaseDecoder } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-7a69579f.js";
1
+ import { aQ as BaseDecoder } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-7a69579f.js";
1
+ import { aQ as BaseDecoder } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aC as UniformsUtils, bC as MeshDepthMaterial, bD as RGBADepthPacking, bE as MeshDistanceMaterial, bF as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, bG as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, bH as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-7a69579f.js";
1
+ import { aC as UniformsUtils, bC as MeshDepthMaterial, bD as RGBADepthPacking, bE as MeshDistanceMaterial, bF as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, bG as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, bH as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  function workerBootstrap() {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-7a69579f.js";
1
+ import { aQ as BaseDecoder } from "./index-4f10e6bc.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "3.5.11",
3
+ "version": "3.5.12",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,10 +16,10 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/all": "3.5.11",
20
- "@vitessce/config": "3.5.11",
21
- "@vitessce/constants": "3.5.11",
22
- "@vitessce/export-utils": "3.5.11"
19
+ "@vitessce/all": "3.5.12",
20
+ "@vitessce/config": "3.5.12",
21
+ "@vitessce/constants": "3.5.12",
22
+ "@vitessce/export-utils": "3.5.12"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",