@vitessce/dev 3.4.10 → 3.4.11

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-dac7a121.js";
2
+ import { aQ as BaseDecoder } from "./index-80737875.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-dac7a121.js";
3
+ import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-80737875.js";
4
4
  var promise = {};
5
5
  (function(exports2) {
6
6
  (function(global) {
@@ -335,6 +335,23 @@ const DescriptionType = {
335
335
  PLAIN: "plain",
336
336
  MARKDOWN: "markdown"
337
337
  };
338
+ const ViewHelpMapping = {
339
+ SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
340
+ HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
341
+ SPATIAL: "The spatial view displays (potentially layered) spatially-resolved data including RGB or multiplexed images, segmentations of observations (bitmask- or polygon-based), and/or points (e.g., representing FISH transcripts).",
342
+ DESCRIPTION: "The description view displays additional information about a dataset. When images are included in a dataset, the description view also includes image metadata (if contained in the image files).",
343
+ STATUS: "The status view displays debugging messages, including app-wide error messages when datasets fail to load or when schemas fail to validate. Details about the entity under the mouse cursor (cell, gene, and/or molecule) are displayed during hover interactions.",
344
+ LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
345
+ GENOMIC_PROFILES: "The genomic profiles view displays genome browser tracks (using the genomic-profiles data type) containing bar plots, where the genome is along the x-axis and the value at each genome position is encoded with a bar along the y-axis.",
346
+ GATING: "The gating scatterplot displays expression data for two genes (along the X and Y axes). Users can select two genes, and the scatterplot is dynamically generated using observation-by-feature matrix data. Gating can then be performed by using the lasso or box select tools.",
347
+ FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
348
+ OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
349
+ OBS_SET_SIZES: "The observation set sizes view displays a bar plot with the currently-selected observation sets (e.g., cell types) on the x-axis and bars representing their size (e.g., number of cells) on the y-axis.",
350
+ OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
351
+ FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
352
+ DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
353
+ FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
354
+ };
338
355
  const DATA_TYPE_COORDINATION_VALUE_USAGE = {
339
356
  [DataType$3.OBS_SEGMENTATIONS]: [
340
357
  CoordinationType$2.FILE_UID,
@@ -860,10 +877,10 @@ const COMPONENT_COORDINATION_TYPES = {
860
877
  ]
861
878
  };
862
879
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
863
- const version$6 = "3.4.10";
864
- const date$5 = "2024-09-01";
880
+ const version$6 = "3.4.11";
881
+ const date$5 = "2024-09-27";
865
882
  const branch = "changeset-release/main";
866
- const hash$1 = "26b1c2d6";
883
+ const hash$1 = "efd7d698";
867
884
  const META_VERSION = {
868
885
  note,
869
886
  version: version$6,
@@ -44302,6 +44319,9 @@ const ExpandLess = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
44302
44319
  const ExpandMore = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
44303
44320
  d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
44304
44321
  }), "ExpandMore");
44322
+ const HelpIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
44323
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"
44324
+ }), "Help");
44305
44325
  const ImageIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
44306
44326
  d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"
44307
44327
  }), "Image");
@@ -44406,6 +44426,18 @@ const useStyles$r = makeStyles((theme) => ({
44406
44426
  },
44407
44427
  downloadLink: {
44408
44428
  color: theme.palette.primaryForeground
44429
+ },
44430
+ helpTextSpan: {
44431
+ maxWidth: "400px",
44432
+ padding: "5px 10px",
44433
+ display: "inline-block",
44434
+ textAlign: "justify",
44435
+ fontSize: "14px",
44436
+ backgroundColor: theme.palette.gridLayoutBackground,
44437
+ color: theme.palette.tooltipText,
44438
+ borderRadius: "8px",
44439
+ boxShadow: "0 0 10px rgba(0, 0, 0, 0.2)",
44440
+ border: "10px solid grey"
44409
44441
  }
44410
44442
  }));
44411
44443
  function SettingsIconWithArrow({ open: open2 }) {
@@ -44428,21 +44460,27 @@ function DownloadOptions(props) {
44428
44460
  const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(CloudDownloadIconWithArrow, { open: open2 }), [open2]);
44429
44461
  return urls2 && urls2.length ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open download options menu", children: urls2.map(({ url, name: name2 }) => jsxRuntimeExports.jsx(MenuItem$1, { dense: true, "aria-label": `Click to download ${name2}`, children: jsxRuntimeExports.jsxs(Link$1, { underline: "always", href: url, target: "_blank", rel: "noopener", className: classes.downloadLink, children: ["Download ", name2] }) }, `${url}_${name2}`)) }) : null;
44430
44462
  }
44463
+ function HelpButton(props) {
44464
+ const { helpText } = props;
44465
+ const [open2, setOpen] = useState(false);
44466
+ const classes = useStyles$r();
44467
+ return jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(HelpIcon, {}), buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open help info", withPaper: false, children: jsxRuntimeExports.jsx("span", { className: classes.helpTextSpan, children: helpText }) });
44468
+ }
44431
44469
  function ClosePaneButton(props) {
44432
44470
  const { removeGridComponent } = props;
44433
44471
  const classes = useStyles$r();
44434
44472
  return jsxRuntimeExports.jsx(IconButton$2, { onClick: removeGridComponent, size: "small", className: classes.iconButton, title: "close", "aria-label": "Close panel button", children: jsxRuntimeExports.jsx(CloseIcon, {}) });
44435
44473
  }
44436
44474
  function TitleInfo(props) {
44437
- const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options, closeButtonVisible = true, downloadButtonVisible = true } = props;
44475
+ const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options, closeButtonVisible = true, downloadButtonVisible = true, helpText } = props;
44438
44476
  const classes = useTitleStyles();
44439
44477
  return (
44440
44478
  // d-flex without wrapping div is not always full height; I don't understand the root cause.
44441
- jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), downloadButtonVisible ? jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }) : null, closeButtonVisible && removeGridComponent ? jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent }) : null] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
44479
+ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), downloadButtonVisible ? jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }) : null, helpText ? jsxRuntimeExports.jsx(HelpButton, { helpText }) : null, closeButtonVisible && removeGridComponent ? jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent }) : null] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
44442
44480
  [classes.scrollCard]: isScroll,
44443
44481
  [classes.spatialCard]: isSpatial,
44444
44482
  [classes.noScrollCard]: !isScroll && !isSpatial
44445
- }), "aria-busy": !isReady, role: "main", children: [!isReady && jsxRuntimeExports.jsx(LoadingIndicator, {}), children3] })] })
44483
+ }), "aria-busy": !isReady, role: "main", children: [!isReady ? jsxRuntimeExports.jsx(LoadingIndicator, {}) : null, children3] })] })
44446
44484
  );
44447
44485
  }
44448
44486
  class AbstractLoaderError {
@@ -55187,7 +55225,7 @@ function Description(props) {
55187
55225
  return jsxRuntimeExports.jsxs("div", { className: classes.description, children: [descriptionType && descriptionType === DescriptionType.MARKDOWN ? jsxRuntimeExports.jsx(Markdown, { children: description2 }) : jsxRuntimeExports.jsx("p", { children: description2 }), metadata2 && Array.from(metadata2.entries()).map(([layerIndex, { name: layerName, metadata: metadataRecord }]) => metadataRecord && Object.entries(metadataRecord).length > 0 ? jsxRuntimeExports.jsxs("details", { children: [jsxRuntimeExports.jsx("summary", { children: layerName }), jsxRuntimeExports.jsx("div", { className: classes.metadataContainer, children: jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(metadataRecord).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { title: key2, children: key2 }), jsxRuntimeExports.jsx("td", { title: value2, children: value2 })] }, key2)) }) }) })] }, layerIndex) : null)] });
55188
55226
  }
55189
55227
  function DescriptionSubscriber(props) {
55190
- const { coordinationScopes, description: descriptionOverride, descriptionType, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible } = props;
55228
+ const { coordinationScopes, description: descriptionOverride, descriptionType, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible, helpText = ViewHelpMapping.DESCRIPTION } = props;
55191
55229
  const loaders = useLoaders();
55192
55230
  const [{ dataset, spatialImageLayer: rasterLayers }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DESCRIPTION], coordinationScopes);
55193
55231
  const [description2] = useDescription(loaders, dataset);
@@ -55209,7 +55247,7 @@ function DescriptionSubscriber(props) {
55209
55247
  }
55210
55248
  return result;
55211
55249
  }, [rasterLayers, imageLayerMeta, imageLayerLoaders]);
55212
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, descriptionType, metadata: metadata2 }) });
55250
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady, helpText, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, descriptionType, metadata: metadata2 }) });
55213
55251
  }
55214
55252
  var earthRadius = 63710088e-1;
55215
55253
  var factors = {
@@ -76831,7 +76869,7 @@ function SetsManager(props) {
76831
76869
  }
76832
76870
  const packageJson = { name: "vitessce" };
76833
76871
  function ObsSetsManagerSubscriber(props) {
76834
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props;
76872
+ const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SETS } = props;
76835
76873
  const loaders = useLoaders();
76836
76874
  const setWarning = useSetWarning();
76837
76875
  const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetExpansion: cellSetExpansion, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsColorEncoding: cellColorEncoding }, { setObsSetSelection: setCellSetSelection, setObsColorEncoding: setCellColorEncoding, setObsSetColor: setCellSetColor, setObsSetExpansion: setCellSetExpansion, setAdditionalObsSets: setAdditionalCellSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SETS], coordinationScopes);
@@ -77226,7 +77264,7 @@ function ObsSetsManagerSubscriber(props) {
77226
77264
  setWarning,
77227
77265
  theme
77228
77266
  ]);
77229
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: manager });
77267
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, children: manager });
77230
77268
  }
77231
77269
  function tree_add$1(d) {
77232
77270
  var x2 = +this._x.call(null, d), y2 = +this._y.call(null, d);
@@ -182825,16 +182863,16 @@ async function getDecoder(fileDirectory) {
182825
182863
  const Decoder = await importFn();
182826
182864
  return new Decoder(fileDirectory);
182827
182865
  }
182828
- addDecoder([void 0, 1], () => import("./raw-09bc7d48.js").then((m2) => m2.default));
182829
- addDecoder(5, () => import("./lzw-2eaaa065.js").then((m2) => m2.default));
182866
+ addDecoder([void 0, 1], () => import("./raw-1a4fecf9.js").then((m2) => m2.default));
182867
+ addDecoder(5, () => import("./lzw-c74968e6.js").then((m2) => m2.default));
182830
182868
  addDecoder(6, () => {
182831
182869
  throw new Error("old style JPEG compression is not supported.");
182832
182870
  });
182833
- addDecoder(7, () => import("./jpeg-756cf775.js").then((m2) => m2.default));
182834
- addDecoder([8, 32946], () => import("./deflate-e1c8aa98.js").then((m2) => m2.default));
182835
- addDecoder(32773, () => import("./packbits-0bc4bd4e.js").then((m2) => m2.default));
182836
- addDecoder(34887, () => import("./lerc-fb3fad1c.js").then((m2) => m2.default));
182837
- addDecoder(50001, () => import("./webimage-62426708.js").then((m2) => m2.default));
182871
+ addDecoder(7, () => import("./jpeg-135385df.js").then((m2) => m2.default));
182872
+ addDecoder([8, 32946], () => import("./deflate-c4a3bb4c.js").then((m2) => m2.default));
182873
+ addDecoder(32773, () => import("./packbits-b0b93a19.js").then((m2) => m2.default));
182874
+ addDecoder(34887, () => import("./lerc-24f9d4d4.js").then((m2) => m2.default));
182875
+ addDecoder(50001, () => import("./webimage-51b3806c.js").then((m2) => m2.default));
182838
182876
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
182839
182877
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
182840
182878
  }
@@ -197596,11 +197634,11 @@ function TooltipContent(props) {
197596
197634
  return jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(info2).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { children: key2 }), jsxRuntimeExports.jsx("td", { children: value2 })] }, key2)) }) });
197597
197635
  }
197598
197636
  function ScatterplotTooltipSubscriber(props) {
197599
- const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo } = props;
197637
+ const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 } = props;
197600
197638
  const sourceUuid = useComponentHover();
197601
197639
  const viewInfo = useComponentViewInfo(parentUuid);
197602
- const [cellInfo, x2, y2] = obsHighlight && getObsInfo ? [
197603
- getObsInfo(obsHighlight),
197640
+ const [cellInfo, x2, y2] = obsHighlight && getObsInfo2 ? [
197641
+ getObsInfo2(obsHighlight),
197604
197642
  ...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight) : [null, null]
197605
197643
  ] : [null, null, null];
197606
197644
  return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
@@ -202611,6 +202649,7 @@ function EmbeddingScatterplotSubscriber(props) {
202611
202649
  theme,
202612
202650
  observationsLabelOverride,
202613
202651
  title: titleOverride,
202652
+ helpText = ViewHelpMapping.SCATTERPLOT,
202614
202653
  // Average fill density for dynamic opacity calculation.
202615
202654
  averageFillDensity
202616
202655
  } = props;
@@ -202751,7 +202790,7 @@ function EmbeddingScatterplotSubscriber(props) {
202751
202790
  initialTargetY,
202752
202791
  averageFillDensity
202753
202792
  ]);
202754
- const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
202793
+ const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
202755
202794
  const cellSelectionSet = useMemo(() => new Set(cellSelection), [cellSelection]);
202756
202795
  const getCellIsSelected = useCallback((object2, { index: index2 }) => (cellSelectionSet || /* @__PURE__ */ new Set([])).has(obsEmbeddingIndex[index2]) ? 1 : 0, [cellSelectionSet, obsEmbeddingIndex]);
202757
202796
  const cellRadius = cellRadiusMode === "manual" ? cellRadiusFixed : dynamicCellRadius;
@@ -202837,7 +202876,7 @@ function EmbeddingScatterplotSubscriber(props) {
202837
202876
  setTargetY(target2[1]);
202838
202877
  setTargetZ(target2[2] || 0);
202839
202878
  };
202840
- return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, embeddingPointsVisible, setEmbeddingPointsVisible, embeddingContoursVisible, setEmbeddingContoursVisible, embeddingContoursFilled, setEmbeddingContoursFilled, contourPercentiles, setContourPercentiles, defaultContourPercentiles: DEFAULT_CONTOUR_PERCENTILES, contourColorEncoding, setContourColorEncoding }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, {
202879
+ return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, embeddingPointsVisible, setEmbeddingPointsVisible, embeddingContoursVisible, setEmbeddingContoursVisible, embeddingContoursFilled, setEmbeddingContoursFilled, contourPercentiles, setContourPercentiles, defaultContourPercentiles: DEFAULT_CONTOUR_PERCENTILES, contourColorEncoding, setContourColorEncoding }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, {
202841
202880
  ref: deckRef,
202842
202881
  uuid,
202843
202882
  theme,
@@ -202881,7 +202920,7 @@ function EmbeddingScatterplotSubscriber(props) {
202881
202920
  contoursFilled: embeddingContoursFilled,
202882
202921
  embeddingPointsVisible,
202883
202922
  embeddingContoursVisible
202884
- }), tooltipsVisible && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo }), jsxRuntimeExports.jsx(Legend, {
202923
+ }), tooltipsVisible && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 }), jsxRuntimeExports.jsx(Legend, {
202885
202924
  visible: true,
202886
202925
  theme,
202887
202926
  featureType,
@@ -202953,7 +202992,8 @@ function GatingSubscriber(props) {
202953
202992
  disableTooltip = false,
202954
202993
  title: titleOverride,
202955
202994
  // Average fill density for dynamic opacity calculation.
202956
- averageFillDensity
202995
+ averageFillDensity,
202996
+ helpText = ViewHelpMapping.GATING
202957
202997
  } = props;
202958
202998
  const loaders = useLoaders();
202959
202999
  const setComponentHover = useSetComponentHover();
@@ -203119,7 +203159,7 @@ function GatingSubscriber(props) {
203119
203159
  matrixObsIndex: obsIndex,
203120
203160
  expressionData: uint8ExpressionData
203121
203161
  });
203122
- const getObsInfo = useCallback((obsId) => {
203162
+ const getObsInfo2 = useCallback((obsId) => {
203123
203163
  const selectedTransformName = VALUE_TRANSFORM_OPTIONS.find((o2) => o2.value === featureValueTransform)?.name;
203124
203164
  const genePrefix = featureValueTransform ? `${selectedTransformName} ` : "";
203125
203165
  const obsIdx = obsIndex?.indexOf(obsId);
@@ -203137,7 +203177,7 @@ function GatingSubscriber(props) {
203137
203177
  gatingFeatureSelectionY,
203138
203178
  obsType
203139
203179
  ]);
203140
- return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, 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) => {
203180
+ return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, 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) => {
203141
203181
  setFeatureValueTransform(newValue);
203142
203182
  setTargetX(null);
203143
203183
  setTargetY(null);
@@ -203149,7 +203189,7 @@ function GatingSubscriber(props) {
203149
203189
  setTargetZ(target2[2] || 0);
203150
203190
  }, obsEmbeddingIndex: obsIndex, obsEmbedding: obsXY, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
203151
203191
  setComponentHover(uuid);
203152
- }, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo })] });
203192
+ }, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 })] });
203153
203193
  }
203154
203194
  var DEFAULT_CONFIG = {
203155
203195
  // minimum relative difference between two compared values,
@@ -222169,7 +222209,7 @@ function SpatialOptions(props) {
222169
222209
  }, id: `gene-expression-colormap-range-${spatialOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] }) : null] });
222170
222210
  }
222171
222211
  function SpatialTooltipSubscriber$1(props) {
222172
- const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo, hoverData, hoverCoord, useHoverInfoForTooltip, getObsIdFromHoverData } = props;
222212
+ const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, hoverData, hoverCoord, useHoverInfoForTooltip, getObsIdFromHoverData } = props;
222173
222213
  const sourceUuid = useComponentHover();
222174
222214
  const viewInfo = useComponentViewInfo(parentUuid);
222175
222215
  let [cellInfo, x2, y2] = [null, null, null];
@@ -222177,21 +222217,21 @@ function SpatialTooltipSubscriber$1(props) {
222177
222217
  const obsId = getObsIdFromHoverData(hoverData);
222178
222218
  if (obsId) {
222179
222219
  [cellInfo, x2, y2] = [
222180
- getObsInfo(obsId),
222220
+ getObsInfo2(obsId),
222181
222221
  ...viewInfo && viewInfo.project ? viewInfo.project(hoverCoord) : [null, null]
222182
222222
  ];
222183
222223
  }
222184
- } else if (!useHoverInfoForTooltip && getObsInfo && obsHighlight) {
222224
+ } else if (!useHoverInfoForTooltip && getObsInfo2 && obsHighlight) {
222185
222225
  const obsId = obsHighlight;
222186
222226
  [cellInfo, x2, y2] = [
222187
- getObsInfo(obsId),
222227
+ getObsInfo2(obsId),
222188
222228
  ...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsId) : [null, null]
222189
222229
  ];
222190
222230
  }
222191
222231
  return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
222192
222232
  }
222193
222233
  function SpatialSubscriber$1(props) {
222194
- const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false } = props;
222234
+ const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false, helpText = ViewHelpMapping.SPATIAL } = props;
222195
222235
  const loaders = useLoaders();
222196
222236
  const setComponentHover = useSetComponentHover();
222197
222237
  const setComponentViewInfo = useSetComponentViewInfo(uuid);
@@ -222329,7 +222369,7 @@ function SpatialSubscriber$1(props) {
222329
222369
  matrixObsIndex
222330
222370
  ]);
222331
222371
  const cellSelection = useMemo(() => Array.from(cellColors.keys()), [cellColors]);
222332
- const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
222372
+ const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
222333
222373
  const [hoverData, setHoverData] = useState(null);
222334
222374
  const [hoverCoord, setHoverCoord] = useState(null);
222335
222375
  const useHoverInfoForTooltip = !obsCentroids;
@@ -222437,7 +222477,7 @@ function SpatialSubscriber$1(props) {
222437
222477
  }
222438
222478
  return [names, colors2];
222439
222479
  }, [imageLayers, imageLayerLoaders]);
222440
- return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, options, children: [jsxRuntimeExports.jsx("div", { style: {
222480
+ return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, options, helpText, children: [jsxRuntimeExports.jsx("div", { style: {
222441
222481
  position: "absolute",
222442
222482
  bottom: "5px",
222443
222483
  left: "5px",
@@ -222455,7 +222495,7 @@ function SpatialSubscriber$1(props) {
222455
222495
  orbitAxis
222456
222496
  }, 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: () => {
222457
222497
  setComponentHover(uuid);
222458
- }, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo, useHoverInfoForTooltip, hoverData, hoverCoord, getObsIdFromHoverData }), jsxRuntimeExports.jsx(Legend, {
222498
+ }, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, useHoverInfoForTooltip, hoverData, hoverCoord, getObsIdFromHoverData }), jsxRuntimeExports.jsx(Legend, {
222459
222499
  visible: true,
222460
222500
  // Fix to dark theme due to black background of spatial plot.
222461
222501
  theme: "dark",
@@ -223683,6 +223723,24 @@ function getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTo
223683
223723
  const projectedObsCoord = viewInfo?.project(obsCoord);
223684
223724
  return [projectedObsCoord?.[0], projectedObsCoord?.[1]];
223685
223725
  }
223726
+ function getObsInfo(obsSetsData, obsType, obsId) {
223727
+ let result = {
223728
+ [`${capitalize$2(obsType)} ID`]: obsId
223729
+ };
223730
+ if (obsSetsData?.obsSetsMembership) {
223731
+ const obsMembership = obsSetsData.obsSetsMembership.get(obsId) || [];
223732
+ if (obsMembership) {
223733
+ result = {
223734
+ ...result,
223735
+ ...Object.fromEntries(obsMembership.flatMap((path2) => path2.slice(1).map((pathEl, elLevel) => [
223736
+ `${path2[0]}${path2.length > 2 ? ` L${elLevel + 1}` : ""}`,
223737
+ pathEl
223738
+ ])))
223739
+ };
223740
+ }
223741
+ }
223742
+ return result;
223743
+ }
223686
223744
  function SpatialTooltipSubscriber(props) {
223687
223745
  const {
223688
223746
  parentUuid,
@@ -223702,6 +223760,7 @@ function SpatialTooltipSubscriber(props) {
223702
223760
  segmentationLayerScopes,
223703
223761
  segmentationChannelScopesByLayer,
223704
223762
  segmentationChannelCoordination,
223763
+ obsSegmentationsSetsData,
223705
223764
  // Images
223706
223765
  imageLayerScopes,
223707
223766
  imageLayerCoordination
@@ -223718,6 +223777,8 @@ function SpatialTooltipSubscriber(props) {
223718
223777
  }, x: projectedHoverCoord?.[0], y: projectedHoverCoord?.[1] + (yOffset += 30) }, layerScope) : null;
223719
223778
  }), segmentationLayerScopes?.flatMap((layerScope) => segmentationChannelScopesByLayer?.[layerScope]?.map((channelScope) => {
223720
223779
  const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialChannelVisible } = segmentationChannelCoordination?.[0]?.[layerScope]?.[channelScope] || {};
223780
+ const obsSetsData = obsSegmentationsSetsData?.[layerScope]?.[channelScope];
223781
+ const obsInfo = getObsInfo(obsSetsData, obsType, obsHighlight);
223721
223782
  if (!obsHighlight || !spatialChannelVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
223722
223783
  return null;
223723
223784
  const { obsIndex, obsLocations } = obsSegmentationsLocations?.[layerScope]?.[channelScope] || {};
@@ -223725,9 +223786,7 @@ function SpatialTooltipSubscriber(props) {
223725
223786
  if (!xy)
223726
223787
  return null;
223727
223788
  const [x2, y2] = xy;
223728
- return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: {
223729
- [`${capitalize$2(obsType)} ID`]: obsHighlight
223730
- }, x: x2, y: y2 + (yOffset += 30) }, `${layerScope}-${channelScope}`);
223789
+ 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) }, `${layerScope}-${channelScope}`);
223731
223790
  })), spotLayerScopes?.map((layerScope) => {
223732
223791
  const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialLayerVisible } = spotLayerCoordination?.[0]?.[layerScope] || {};
223733
223792
  if (!obsHighlight || !spatialLayerVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
@@ -223772,7 +223831,7 @@ class ErrorBoundary extends React__default.Component {
223772
223831
  }
223773
223832
  }
223774
223833
  const LazySpatialThree = React__default.lazy(async () => {
223775
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-f07e063d.js");
223834
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-a984e80f.js");
223776
223835
  return { default: SpatialWrapper2 };
223777
223836
  });
223778
223837
  const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
@@ -224150,8 +224209,8 @@ function SpatialSubscriber(props) {
224150
224209
  let obsId;
224151
224210
  if (layerType === "segmentation-bitmask") {
224152
224211
  const { obsIndex } = segmentationMultiIndicesData?.[segmentationLayerScope]?.[channelScope] || {};
224153
- obsI -= 1;
224154
224212
  if (obsIndex && bitmaskValueIsIndex) {
224213
+ obsI -= 1;
224155
224214
  obsId = obsIndex?.[obsI];
224156
224215
  } else {
224157
224216
  obsId = String(obsI);
@@ -224354,6 +224413,7 @@ function SpatialSubscriber(props) {
224354
224413
  segmentationLayerScopes,
224355
224414
  segmentationChannelScopesByLayer,
224356
224415
  segmentationChannelCoordination,
224416
+ obsSegmentationsSetsData,
224357
224417
  // Images
224358
224418
  imageLayerScopes,
224359
224419
  imageLayerCoordination
@@ -225199,11 +225259,11 @@ const Heatmap$1 = forwardRef((props, deckRef) => {
225199
225259
  ], layers, layerFilter, getCursor: (interactionState) => interactionState.isDragging ? "grabbing" : cursorType, glOptions: DEFAULT_GL_OPTIONS$1, onViewStateChange, viewState, onHover, useDevicePixels, onClick: onHeatmapClick });
225200
225260
  });
225201
225261
  function HeatmapTooltipSubscriber(props) {
225202
- const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight, featureHighlight } = props;
225262
+ const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight, featureHighlight } = props;
225203
225263
  const sourceUuid = useComponentHover();
225204
225264
  const viewInfo = useComponentViewInfo(parentUuid);
225205
- const [cellInfo, cellCoord] = obsHighlight && getObsInfo ? [
225206
- getObsInfo(obsHighlight),
225265
+ const [cellInfo, cellCoord] = obsHighlight && getObsInfo2 ? [
225266
+ getObsInfo2(obsHighlight),
225207
225267
  viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight, null)[transpose2 ? 0 : 1] : null
225208
225268
  ] : [null, null];
225209
225269
  const [geneInfo, geneCoord] = featureHighlight && getFeatureInfo ? [
@@ -225249,7 +225309,7 @@ function HeatmapOptions(props) {
225249
225309
  }) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, children: "Gene Expression Colormap Range" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider", id: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
225250
225310
  }
225251
225311
  function HeatmapSubscriber(props) {
225252
- const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap" } = props;
225312
+ const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap", helpText = ViewHelpMapping.HEATMAP } = props;
225253
225313
  const loaders = useLoaders();
225254
225314
  const setComponentHover = useSetComponentHover();
225255
225315
  const setComponentViewInfo = useSetComponentViewInfo(uuid);
@@ -225292,7 +225352,7 @@ function HeatmapSubscriber(props) {
225292
225352
  cellSetSelection,
225293
225353
  obsIndex
225294
225354
  ]);
225295
- const getObsInfo = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
225355
+ const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
225296
225356
  const getObsMembership = useGetObsMembership(obsSetsMembership);
225297
225357
  const getFeatureInfo = useCallback((featureId) => {
225298
225358
  if (featureId) {
@@ -225324,7 +225384,7 @@ function HeatmapSubscriber(props) {
225324
225384
  `${capitalize$2(observationsLabel)} Set`
225325
225385
  ], [observationsLabel]);
225326
225386
  const selectedCount = cellColors.size;
225327
- return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
225387
+ return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, helpText, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
225328
225388
  with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady: isReady && !isRendering, options: jsxRuntimeExports.jsx(HeatmapOptions, { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible }), children: [jsxRuntimeExports.jsx(Heatmap$1, { ref: deckRef, transpose: transpose2, viewState: { zoom: zoomX, target: [targetX2, targetY2] }, setViewState: ({ zoom: zoom2, target: target2 }) => {
225329
225389
  setZoomX(zoom2);
225330
225390
  setZoomY(zoom2);
@@ -225332,7 +225392,7 @@ function HeatmapSubscriber(props) {
225332
225392
  setTargetY(target2[1]);
225333
225393
  }, colormapRange: geneExpressionColormapRange, setColormapRange: setGeneExpressionColormapRange, height: height2, width: width2, theme, uuid, uint8ObsFeatureMatrix: uint8ObsFeatureMatrix?.data, cellColors, colormap: geneExpressionColormap, setIsRendering, setCellHighlight, setGeneHighlight, featureLabelsMap, obsIndex, featureIndex, setTrackHighlight, setComponentHover: () => {
225334
225394
  setComponentHover(uuid);
225335
- }, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
225395
+ }, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
225336
225396
  }
225337
225397
  var AutoSizer$1 = {};
225338
225398
  var interopRequireDefault = { exports: {} };
@@ -229729,7 +229789,7 @@ function FeatureListOptions(props) {
229729
229789
  } }) })] })] }) : null] });
229730
229790
  }
229731
229791
  function FeatureListSubscriber(props) {
229732
- const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible } = props;
229792
+ const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST } = props;
229733
229793
  const loaders = useLoaders();
229734
229794
  const [{ dataset, obsType, featureType, featureSelection: geneSelection, featureFilter: geneFilter, obsColorEncoding: cellColorEncoding }, { setFeatureSelection: setGeneSelection, setFeatureFilter: setGeneFilter, setFeatureHighlight: setGeneHighlight, setObsColorEncoding: setCellColorEncoding }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_LIST], coordinationScopes);
229735
229795
  const variablesLabel = variablesLabelOverride || featureType;
@@ -229769,6 +229829,7 @@ function FeatureListSubscriber(props) {
229769
229829
  removeGridComponent,
229770
229830
  isReady,
229771
229831
  urls: urls2,
229832
+ helpText,
229772
229833
  options: jsxRuntimeExports.jsx(FeatureListOptions, { featureListSort, setFeatureListSort, featureListSortKey: featureListSortKey || initialSortKey, setFeatureListSortKey, showFeatureTable, setShowFeatureTable, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName }),
229773
229834
  children: jsxRuntimeExports.jsx(FeatureList, { hasColorEncoding: cellColorEncoding === "geneSelection", showFeatureTable, geneList, featureListSort, featureListSortKey: featureListSortKey || initialSortKey, featureLabelsMap, featureType, geneSelection, geneFilter, setGeneSelection: setGeneSelectionAndColorEncoding, setGeneFilter, setGeneHighlight, enableMultiSelect, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName })
229774
229835
  });
@@ -230587,10 +230648,11 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
230587
230648
  componentWidth,
230588
230649
  spatialLayout,
230589
230650
  handleImageAdd,
230590
- enableLayerButtonsWithOneLayer
230651
+ enableLayerButtonsWithOneLayer,
230652
+ helpText
230591
230653
  } = props;
230592
230654
  const shouldShowImageLayerButton = Boolean(enableLayerButtonsWithOneLayer || imageLayerLoaders?.length > 1);
230593
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
230655
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, helpText, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
230594
230656
  const { index: index2 } = layer;
230595
230657
  const loader2 = segmentationLayerLoaders?.[index2];
230596
230658
  const layerMeta = segmentationLayerMeta?.[index2];
@@ -230705,7 +230767,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
230705
230767
  }), shouldShowImageLayerButton ? jsxRuntimeExports.jsx(Grid$3, { item: true, children: jsxRuntimeExports.jsx(ImageAddButton, { imageOptions: imageLayerMeta, handleImageAdd }) }) : null] }) });
230706
230768
  }));
230707
230769
  function LayerControllerSubscriber$1(props) {
230708
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer } = props;
230770
+ const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer, helpText = ViewHelpMapping.LAYER_CONTROLLER } = props;
230709
230771
  const loaders = useLoaders();
230710
230772
  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);
230711
230773
  const [{ imageLayerCallbacks, areLoadingImageChannels, segmentationLayerCallbacks, areLoadingSegmentationChannels }, { setImageLayerCallbacks, setAreLoadingImageChannels, setSegmentationLayerCallbacks, setAreLoadingSegmentationChannels }] = useAuxiliaryCoordination(COMPONENT_COORDINATION_TYPES.layerController, coordinationScopes);
@@ -230772,6 +230834,7 @@ function LayerControllerSubscriber$1(props) {
230772
230834
  setMoleculesLayer,
230773
230835
  cellsLayer,
230774
230836
  setCellsLayer,
230837
+ helpText,
230775
230838
  rasterLayers,
230776
230839
  imageLayerLoaders,
230777
230840
  imageLayerMeta,
@@ -231501,7 +231564,7 @@ function Status(props) {
231501
231564
  return messages2;
231502
231565
  }
231503
231566
  function StatusSubscriber(props) {
231504
- const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status" } = props;
231567
+ const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status", helpText = ViewHelpMapping.STATUS } = props;
231505
231568
  const [{ obsHighlight: cellHighlight, featureHighlight: geneHighlight, moleculeHighlight }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.STATUS], coordinationScopes);
231506
231569
  const warn2 = useWarning();
231507
231570
  const infos = [
@@ -231510,7 +231573,7 @@ function StatusSubscriber(props) {
231510
231573
  ...moleculeHighlight ? [`Hovered gene ${moleculeHighlight}`] : []
231511
231574
  ];
231512
231575
  const info2 = infos.join("; ");
231513
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, closeButtonVisible, removeGridComponent, isScroll: true, isReady: true, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
231576
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, closeButtonVisible, removeGridComponent, isScroll: true, isReady: true, helpText, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
231514
231577
  }
231515
231578
  window.higlassTracks = window.higlassTracks || {};
231516
231579
  window.higlassTracksByType = window.higlassTracksByType || {};
@@ -233072,7 +233135,7 @@ const useStyles$2 = makeStyles((theme) => ({
233072
233135
  }));
233073
233136
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
233074
233137
  const LazyHiGlassComponent = React__default.lazy(async () => {
233075
- const { HiGlassComponent } = await import("./higlass-e8ee5e91.js");
233138
+ const { HiGlassComponent } = await import("./higlass-da6be8dd.js");
233076
233139
  return { default: HiGlassComponent };
233077
233140
  });
233078
233141
  const HG_SIZE = 800;
@@ -233239,7 +233302,7 @@ const REFERENCE_STATIC_FILES = {
233239
233302
  }
233240
233303
  };
233241
233304
  function GenomicProfilesSubscriber(props) {
233242
- const { coordinationScopes, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles", showGeneAnnotations = true } = props;
233305
+ const { coordinationScopes, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles", showGeneAnnotations = true, helpText = ViewHelpMapping.GENOMIC_PROFILES } = props;
233243
233306
  const [width2, height2, containerRef] = useGridItemSize();
233244
233307
  const loaders = useLoaders();
233245
233308
  const [{ dataset, obsSetColor: cellSetColor, obsSetSelection: cellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GENOMIC_PROFILES], coordinationScopes);
@@ -233374,7 +233437,7 @@ function GenomicProfilesSubscriber(props) {
233374
233437
  assembly
233375
233438
  ]);
233376
233439
  const classes = useStyles$2();
233377
- return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, urls: urls2, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
233440
+ return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, urls: urls2, helpText, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
233378
233441
  }
233379
233442
  function CellSetExpressionPlotOptions(props) {
233380
233443
  const { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold, setFeatureValuePositivityThreshold, featureValueColormap, setFeatureValueColormap } = props;
@@ -238503,7 +238566,7 @@ function useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, exp
238503
238566
  return [expressionArr, setArr, expressionMax];
238504
238567
  }
238505
238568
  function CellSetExpressionPlotSubscriber(props) {
238506
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, jitter: jitter2 = false, yMin = null, yUnits = null } = props;
238569
+ const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, jitter: jitter2 = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION } = props;
238507
238570
  const classes = useStyles$1();
238508
238571
  const loaders = useLoaders();
238509
238572
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection, sampleSetColor }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_FEATURE_VALUE_DISTRIBUTION], coordinationScopes);
@@ -238533,7 +238596,7 @@ function CellSetExpressionPlotSubscriber(props) {
238533
238596
  const [histogramData, setArr, exprMax] = useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, theme, yMin);
238534
238597
  const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? featureLabelsMap?.get(geneSelection[0]) || geneSelection[0] : null;
238535
238598
  const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
238536
- return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: histogramData ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { yMin, yUnits, jitter: jitter2, cellSetSelection, sampleSetSelection, sampleSetColor, colors: setArr, data: histogramData, exprMax, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
238599
+ return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: histogramData ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { yMin, yUnits, jitter: jitter2, cellSetSelection, sampleSetSelection, sampleSetColor, colors: setArr, data: histogramData, exprMax, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
238537
238600
  }
238538
238601
  /*! *****************************************************************************
238539
238602
  Copyright (c) Microsoft Corporation.
@@ -290072,7 +290135,7 @@ function CellSetSizesPlot(props) {
290072
290135
  return jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, signalListeners, getTooltipText });
290073
290136
  }
290074
290137
  function CellSetSizesPlotSubscriber(props) {
290075
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props;
290138
+ const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES } = props;
290076
290139
  const classes = useStyles$1();
290077
290140
  const loaders = useLoaders();
290078
290141
  const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsSetExpansion: cellSetExpansion }, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_SIZES], coordinationScopes);
@@ -290119,7 +290182,7 @@ function CellSetSizesPlotSubscriber(props) {
290119
290182
  setCellSetSelection([...cellSetSelection, setNamePath]);
290120
290183
  }
290121
290184
  };
290122
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
290185
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
290123
290186
  }
290124
290187
  function ExpressionHistogram(props) {
290125
290188
  const { geneSelection, obsType, featureType, featureValueType, data: data2, theme, width: width2, height: height2, marginRight = 90, marginBottom = 50, onSelect } = props;
@@ -290178,7 +290241,7 @@ function ExpressionHistogram(props) {
290178
290241
  return jsxRuntimeExports.jsx(VegaPlot, { data: data2, signalListeners, spec });
290179
290242
  }
290180
290243
  function ExpressionHistogramSubscriber(props) {
290181
- const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme } = props;
290244
+ const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM } = props;
290182
290245
  const classes = useStyles$1();
290183
290246
  const loaders = useLoaders();
290184
290247
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, additionalObsSets: additionalCellSets, obsSetColor: cellSetColor }, { setAdditionalObsSets: setAdditionalCellSets, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setObsSetSelection: setCellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_VALUE_HISTOGRAM], coordinationScopes);
@@ -290226,7 +290289,7 @@ function ExpressionHistogramSubscriber(props) {
290226
290289
  setCellSetSelection,
290227
290290
  firstGeneSelected
290228
290291
  ]);
290229
- return jsxRuntimeExports.jsx(TitleInfo, { title: `Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, obsType, featureType, featureValueType, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
290292
+ return jsxRuntimeExports.jsx(TitleInfo, { title: `Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, obsType, featureType, featureValueType, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
290230
290293
  }
290231
290294
  function DotPlot(props) {
290232
290295
  const { isStratified, transpose: transpose2, data: rawData, theme, width: width2, height: height2, marginRight, marginBottom, obsType, keyLength = 36, featureType, featureValueType, featureValueTransformName, featureValueColormap, cellSetSelection } = props;
@@ -290376,7 +290439,7 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
290376
290439
  return [resultArr, meanExpressionMax];
290377
290440
  }
290378
290441
  function DotPlotSubscriber(props) {
290379
- const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true } = props;
290442
+ const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true, helpText = ViewHelpMapping.DOT_PLOT } = props;
290380
290443
  const classes = useStyles$1();
290381
290444
  const loaders = useLoaders();
290382
290445
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, featureValuePositivityThreshold: posThreshold, featureValueColormap, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setFeatureValuePositivityThreshold: setPosThreshold, setFeatureValueColormap }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DOT_PLOT], coordinationScopes);
@@ -290406,7 +290469,7 @@ function DotPlotSubscriber(props) {
290406
290469
  ]);
290407
290470
  const [resultArr, meanExpressionMax] = useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, posThreshold, featureLabelsMap);
290408
290471
  const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
290409
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold: posThreshold, setFeatureValuePositivityThreshold: setPosThreshold, featureValueColormap, setFeatureValueColormap }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: resultArr ? jsxRuntimeExports.jsx(DotPlot, { isStratified, transpose: transpose2, domainMax: meanExpressionMax, data: resultArr, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName, featureValueColormap, cellSetSelection }) : jsxRuntimeExports.jsxs("span", { children: ["Select at least one ", featureType, "."] }) }) });
290472
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold: posThreshold, setFeatureValuePositivityThreshold: setPosThreshold, featureValueColormap, setFeatureValueColormap }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: resultArr ? jsxRuntimeExports.jsx(DotPlot, { isStratified, transpose: transpose2, domainMax: meanExpressionMax, data: resultArr, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName, featureValueColormap, cellSetSelection }) : jsxRuntimeExports.jsxs("span", { children: ["Select at least one ", featureType, "."] }) }) });
290410
290473
  }
290411
290474
  const scaleBand = scale$5("band");
290412
290475
  const OBS_KEY = "obsId";
@@ -290517,7 +290580,7 @@ function FeatureBarPlot(props) {
290517
290580
  } });
290518
290581
  }
290519
290582
  function FeatureBarPlotSubscriber(props) {
290520
- const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null } = props;
290583
+ const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT } = props;
290521
290584
  const classes = useStyles$1();
290522
290585
  const loaders = useLoaders();
290523
290586
  const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsHighlight: cellHighlight, additionalObsSets: additionalCellSets, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_BAR_PLOT], coordinationScopes);
@@ -290573,7 +290636,7 @@ function FeatureBarPlotSubscriber(props) {
290573
290636
  featureValueTransformCoefficient,
290574
290637
  firstGeneSelected
290575
290638
  ]);
290576
- return jsxRuntimeExports.jsx(TitleInfo, { title: `Feature Values${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(FeatureBarPlot, { yMin, yMax: expressionMax, yUnits, data: expressionArr, theme, width: width2, height: height2, obsType, cellHighlight, cellSetSelection, additionalCellSets, cellSetColor, featureType, featureValueType, featureName: firstGeneSelected, onBarSelect, onBarHighlight }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
290639
+ return jsxRuntimeExports.jsx(TitleInfo, { title: `Feature Values${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(FeatureBarPlot, { yMin, yMax: expressionMax, yUnits, data: expressionArr, theme, width: width2, height: height2, obsType, cellHighlight, cellSetSelection, additionalCellSets, cellSetColor, featureType, featureValueType, featureName: firstGeneSelected, onBarSelect, onBarHighlight }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
290577
290640
  }
290578
290641
  class CsvSource {
290579
290642
  constructor({ url, requestInit: requestInit2 }) {
@@ -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-dac7a121.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-80737875.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-7fc33538.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-10137014.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ba, b5, b3, b4, be, bf, b6, bn, bl, bj, bm, bk, b2, bi, b7, b1, b0, bc, bb, bd, bh, bg, b9, bp, b8, bo } from "./index-dac7a121.js";
1
+ import { ba, b5, b3, b4, be, bf, b6, bn, bl, bj, bm, bk, b2, bi, b7, b1, b0, bc, bb, bd, bh, bg, b9, bp, b8, bo } from "./index-80737875.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-dac7a121.js";
1
+ import { aQ as BaseDecoder } from "./index-80737875.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-dac7a121.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-80737875.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-dac7a121.js";
1
+ import { aQ as BaseDecoder } from "./index-80737875.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-dac7a121.js";
1
+ import { aQ as BaseDecoder } from "./index-80737875.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-dac7a121.js";
1
+ import { aQ as BaseDecoder } from "./index-80737875.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, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, a$ as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-dac7a121.js";
1
+ import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, a$ as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-80737875.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-dac7a121.js";
1
+ import { aQ as BaseDecoder } from "./index-80737875.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.4.10",
3
+ "version": "3.4.11",
4
4
  "author": "Gehlenborg Lab",
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.4.10",
20
- "@vitessce/config": "3.4.10",
21
- "@vitessce/constants": "3.4.10",
22
- "@vitessce/export-utils": "3.4.10"
19
+ "@vitessce/all": "3.4.11",
20
+ "@vitessce/config": "3.4.11",
21
+ "@vitessce/constants": "3.4.11",
22
+ "@vitessce/export-utils": "3.4.11"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",