@vitessce/layer-controller 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.
- package/dist/{deflate-a5257fd0.js → deflate-8f24765b.js} +1 -1
- package/dist/{index-85c89d73.js → index-a9215ad2.js} +30 -9
- package/dist/index.js +1 -1
- package/dist/{jpeg-fcc5cf48.js → jpeg-d7952cac.js} +1 -1
- package/dist/{lerc-2221e6cb.js → lerc-93350685.js} +1 -1
- package/dist/{lzw-9ab220c9.js → lzw-729cab67.js} +1 -1
- package/dist/{packbits-a7993560.js → packbits-5a9cad53.js} +1 -1
- package/dist/{raw-320b9bd9.js → raw-88d9f2c6.js} +1 -1
- package/dist/{webimage-b5680c7f.js → webimage-f177d631.js} +1 -1
- package/dist-tsc/LayerControllerSubscriber.d.ts.map +1 -1
- package/dist-tsc/LayerControllerSubscriber.js +5 -5
- package/package.json +6 -6
- package/src/LayerControllerSubscriber.js +5 -1
|
@@ -16945,6 +16945,23 @@ const CoordinationType = {
|
|
|
16945
16945
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
16946
16946
|
CONTOUR_COLOR: "contourColor"
|
|
16947
16947
|
};
|
|
16948
|
+
const ViewHelpMapping = {
|
|
16949
|
+
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).",
|
|
16950
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
16951
|
+
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).",
|
|
16952
|
+
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).",
|
|
16953
|
+
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.",
|
|
16954
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
16955
|
+
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.",
|
|
16956
|
+
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.",
|
|
16957
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
16958
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
16959
|
+
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.",
|
|
16960
|
+
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).",
|
|
16961
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
16962
|
+
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).",
|
|
16963
|
+
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."
|
|
16964
|
+
};
|
|
16948
16965
|
const COMPONENT_COORDINATION_TYPES = {
|
|
16949
16966
|
[ViewType.SCATTERPLOT]: [
|
|
16950
16967
|
CoordinationType.DATASET,
|
|
@@ -121553,16 +121570,16 @@ function addDecoder(cases, importFn) {
|
|
|
121553
121570
|
}
|
|
121554
121571
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
121555
121572
|
}
|
|
121556
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
121557
|
-
addDecoder(5, () => import("./lzw-
|
|
121573
|
+
addDecoder([void 0, 1], () => import("./raw-88d9f2c6.js").then((m) => m.default));
|
|
121574
|
+
addDecoder(5, () => import("./lzw-729cab67.js").then((m) => m.default));
|
|
121558
121575
|
addDecoder(6, () => {
|
|
121559
121576
|
throw new Error("old style JPEG compression is not supported.");
|
|
121560
121577
|
});
|
|
121561
|
-
addDecoder(7, () => import("./jpeg-
|
|
121562
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
121563
|
-
addDecoder(32773, () => import("./packbits-
|
|
121564
|
-
addDecoder(34887, () => import("./lerc-
|
|
121565
|
-
addDecoder(50001, () => import("./webimage-
|
|
121578
|
+
addDecoder(7, () => import("./jpeg-d7952cac.js").then((m) => m.default));
|
|
121579
|
+
addDecoder([8, 32946], () => import("./deflate-8f24765b.js").then((m) => m.default));
|
|
121580
|
+
addDecoder(32773, () => import("./packbits-5a9cad53.js").then((m) => m.default));
|
|
121581
|
+
addDecoder(34887, () => import("./lerc-93350685.js").then((m) => m.default));
|
|
121582
|
+
addDecoder(50001, () => import("./webimage-f177d631.js").then((m) => m.default));
|
|
121566
121583
|
function decodeRowAcc(row, stride) {
|
|
121567
121584
|
let length2 = row.length - stride;
|
|
121568
121585
|
let offset4 = 0;
|
|
@@ -137780,7 +137797,8 @@ const LayerControllerMemoized = React__default.memo(
|
|
|
137780
137797
|
componentWidth,
|
|
137781
137798
|
spatialLayout,
|
|
137782
137799
|
handleImageAdd,
|
|
137783
|
-
enableLayerButtonsWithOneLayer
|
|
137800
|
+
enableLayerButtonsWithOneLayer,
|
|
137801
|
+
helpText
|
|
137784
137802
|
} = props;
|
|
137785
137803
|
const shouldShowImageLayerButton = Boolean(
|
|
137786
137804
|
enableLayerButtonsWithOneLayer || (imageLayerLoaders == null ? void 0 : imageLayerLoaders.length) > 1
|
|
@@ -137795,6 +137813,7 @@ const LayerControllerMemoized = React__default.memo(
|
|
|
137795
137813
|
removeGridComponent,
|
|
137796
137814
|
theme,
|
|
137797
137815
|
isReady,
|
|
137816
|
+
helpText,
|
|
137798
137817
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [
|
|
137799
137818
|
moleculesLayer && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
137800
137819
|
VectorLayerController,
|
|
@@ -137973,7 +137992,8 @@ function LayerControllerSubscriber(props) {
|
|
|
137973
137992
|
disable3d,
|
|
137974
137993
|
globalDisable3d,
|
|
137975
137994
|
disableChannelsIfRgbDetected,
|
|
137976
|
-
enableLayerButtonsWithOneLayer
|
|
137995
|
+
enableLayerButtonsWithOneLayer,
|
|
137996
|
+
helpText = ViewHelpMapping.LAYER_CONTROLLER
|
|
137977
137997
|
} = props;
|
|
137978
137998
|
const loaders = useLoaders();
|
|
137979
137999
|
const [
|
|
@@ -138112,6 +138132,7 @@ function LayerControllerSubscriber(props) {
|
|
|
138112
138132
|
setMoleculesLayer,
|
|
138113
138133
|
cellsLayer,
|
|
138114
138134
|
setCellsLayer,
|
|
138135
|
+
helpText,
|
|
138115
138136
|
rasterLayers,
|
|
138116
138137
|
imageLayerLoaders,
|
|
138117
138138
|
imageLayerMeta,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-a9215ad2.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerControllerSubscriber.d.ts","sourceRoot":"","sources":["../src/LayerControllerSubscriber.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayerControllerSubscriber.d.ts","sourceRoot":"","sources":["../src/LayerControllerSubscriber.js"],"names":[],"mappings":"AAuSA;;;;;;;;;;;;;;;GAeG;AACH,iDAbG;IAAsB,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAEU,mBAAmB;IAErB,KAAK,EAAnB,MAAM;IACQ,SAAS,EAAvB,MAAM;IACS,eAAe,EAA9B,OAAO;IACQ,4BAA4B,EAA3C,OAAO;IAEQ,8BAA8B,EAA7C,OAAO;CAEjB,eA0MA"}
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import React, { useCallback, useRef, forwardRef, } from 'react';
|
|
5
5
|
import { Grid } from '@material-ui/core';
|
|
6
6
|
import { TitleInfo, useReady, useClosestVitessceContainerSize, useWindowDimensions, useImageData, useObsLocationsData, useObsSegmentationsData, useCoordination, useLoaders, useAuxiliaryCoordination, useComponentLayout, } from '@vitessce/vit-s';
|
|
7
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
7
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
8
8
|
import { capitalize } from '@vitessce/utils';
|
|
9
9
|
import { initializeLayerChannels, DEFAULT_RASTER_LAYER_PROPS } from '@vitessce/spatial-utils';
|
|
10
10
|
import RasterChannelController from './RasterChannelController.js';
|
|
@@ -18,9 +18,9 @@ import ImageAddButton from './ImageAddButton.js';
|
|
|
18
18
|
// expensive so we have to be careful with props in this file in general.
|
|
19
19
|
const LayerControllerMemoized = React.memo(forwardRef((props, ref) => {
|
|
20
20
|
const { title, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, dataset, obsType, moleculesLayer, setMoleculesLayer, cellsLayer, // May be one polygon layer object or an array of bitmask layers.
|
|
21
|
-
setCellsLayer, rasterLayers, imageLayerLoaders, imageLayerMeta, imageLayerCallbacks, setImageLayerCallbacks, areLoadingImageChannels, setAreLoadingImageChannels, handleRasterLayerChange, handleRasterLayerRemove, obsSegmentationsType, segmentationLayerLoaders, segmentationLayerMeta, segmentationLayerCallbacks, setSegmentationLayerCallbacks, areLoadingSegmentationChannels, setAreLoadingSegmentationChannels, handleSegmentationLayerChange, handleSegmentationLayerRemove, disable3d, globalDisable3d, disableChannelsIfRgbDetected, layerIs3DIndex, setZoom, setTargetX, setTargetY, setTargetZ, setRotationX, setRotationOrbit, componentHeight, componentWidth, spatialLayout, handleImageAdd, enableLayerButtonsWithOneLayer, } = props;
|
|
21
|
+
setCellsLayer, rasterLayers, imageLayerLoaders, imageLayerMeta, imageLayerCallbacks, setImageLayerCallbacks, areLoadingImageChannels, setAreLoadingImageChannels, handleRasterLayerChange, handleRasterLayerRemove, obsSegmentationsType, segmentationLayerLoaders, segmentationLayerMeta, segmentationLayerCallbacks, setSegmentationLayerCallbacks, areLoadingSegmentationChannels, setAreLoadingSegmentationChannels, handleSegmentationLayerChange, handleSegmentationLayerRemove, disable3d, globalDisable3d, disableChannelsIfRgbDetected, layerIs3DIndex, setZoom, setTargetX, setTargetY, setTargetZ, setRotationX, setRotationOrbit, componentHeight, componentWidth, spatialLayout, handleImageAdd, enableLayerButtonsWithOneLayer, helpText, } = props;
|
|
22
22
|
const shouldShowImageLayerButton = Boolean(enableLayerButtonsWithOneLayer || imageLayerLoaders?.length > 1);
|
|
23
|
-
return (_jsx(TitleInfo, { title: title, isScroll: true, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, theme: theme, isReady: isReady, children: _jsxs("div", { className: "layer-controller-container", ref: ref, children: [moleculesLayer && (_jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`)), cellsLayer && obsSegmentationsType === 'polygon' && (_jsx(VectorLayerController, { label: `${capitalize(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`)), cellsLayer && obsSegmentationsType === 'bitmask'
|
|
23
|
+
return (_jsx(TitleInfo, { title: title, isScroll: true, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, theme: theme, isReady: isReady, helpText: helpText, children: _jsxs("div", { className: "layer-controller-container", ref: ref, children: [moleculesLayer && (_jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`)), cellsLayer && obsSegmentationsType === 'polygon' && (_jsx(VectorLayerController, { label: `${capitalize(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`)), cellsLayer && obsSegmentationsType === 'bitmask'
|
|
24
24
|
&& cellsLayer.map((layer, i) => {
|
|
25
25
|
const { index } = layer;
|
|
26
26
|
const loader = segmentationLayerLoaders?.[index];
|
|
@@ -125,7 +125,7 @@ const LayerControllerMemoized = React.memo(forwardRef((props, ref) => {
|
|
|
125
125
|
* show the the layer add/remove buttons.
|
|
126
126
|
*/
|
|
127
127
|
export function LayerControllerSubscriber(props) {
|
|
128
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title = 'Spatial Layers', disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer, } = props;
|
|
128
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title = 'Spatial Layers', disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer, helpText = ViewHelpMapping.LAYER_CONTROLLER, } = props;
|
|
129
129
|
const loaders = useLoaders();
|
|
130
130
|
// Get "props" from the coordination space.
|
|
131
131
|
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.LAYER_CONTROLLER], coordinationScopes);
|
|
@@ -188,7 +188,7 @@ export function LayerControllerSubscriber(props) {
|
|
|
188
188
|
setCellsLayer(newLayers);
|
|
189
189
|
}, [cellsLayer, setCellsLayer]);
|
|
190
190
|
const layerIs3DIndex = rasterLayers?.findIndex && rasterLayers.findIndex(layer => layer.use3d);
|
|
191
|
-
return (_jsx(LayerControllerMemoized, { ref: layerControllerRef, title: title, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, theme: theme, isReady: isReady, moleculesLayer: moleculesLayer, dataset: dataset, obsType: obsType, setMoleculesLayer: setMoleculesLayer, cellsLayer: cellsLayer, setCellsLayer: setCellsLayer, rasterLayers: rasterLayers, imageLayerLoaders: imageLayerLoaders, imageLayerMeta: imageLayerMeta, imageLayerCallbacks: imageLayerCallbacks, setImageLayerCallbacks: setImageLayerCallbacks, areLoadingImageChannels: areLoadingImageChannels, setAreLoadingImageChannels: setAreLoadingImageChannels, handleRasterLayerChange: handleRasterLayerChange, handleRasterLayerRemove: handleRasterLayerRemove, obsSegmentationsType: obsSegmentationsType, segmentationLayerLoaders: segmentationLayerLoaders, segmentationLayerMeta: segmentationLayerMeta, segmentationLayerCallbacks: segmentationLayerCallbacks, setSegmentationLayerCallbacks: setSegmentationLayerCallbacks, areLoadingSegmentationChannels: areLoadingSegmentationChannels, setAreLoadingSegmentationChannels: setAreLoadingSegmentationChannels, handleSegmentationLayerChange: handleSegmentationLayerChange, handleSegmentationLayerRemove: handleSegmentationLayerRemove, disable3d: disable3d, globalDisable3d: globalDisable3d, layerIs3DIndex: layerIs3DIndex, disableChannelsIfRgbDetected: disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer: enableLayerButtonsWithOneLayer, setZoom: setZoom, setTargetX: setTargetX, setTargetY: setTargetY, setTargetZ: setTargetZ, setRotationX: setRotationX, setRotationOrbit: setRotationOrbit,
|
|
191
|
+
return (_jsx(LayerControllerMemoized, { ref: layerControllerRef, title: title, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, theme: theme, isReady: isReady, moleculesLayer: moleculesLayer, dataset: dataset, obsType: obsType, setMoleculesLayer: setMoleculesLayer, cellsLayer: cellsLayer, setCellsLayer: setCellsLayer, helpText: helpText, rasterLayers: rasterLayers, imageLayerLoaders: imageLayerLoaders, imageLayerMeta: imageLayerMeta, imageLayerCallbacks: imageLayerCallbacks, setImageLayerCallbacks: setImageLayerCallbacks, areLoadingImageChannels: areLoadingImageChannels, setAreLoadingImageChannels: setAreLoadingImageChannels, handleRasterLayerChange: handleRasterLayerChange, handleRasterLayerRemove: handleRasterLayerRemove, obsSegmentationsType: obsSegmentationsType, segmentationLayerLoaders: segmentationLayerLoaders, segmentationLayerMeta: segmentationLayerMeta, segmentationLayerCallbacks: segmentationLayerCallbacks, setSegmentationLayerCallbacks: setSegmentationLayerCallbacks, areLoadingSegmentationChannels: areLoadingSegmentationChannels, setAreLoadingSegmentationChannels: setAreLoadingSegmentationChannels, handleSegmentationLayerChange: handleSegmentationLayerChange, handleSegmentationLayerRemove: handleSegmentationLayerRemove, disable3d: disable3d, globalDisable3d: globalDisable3d, layerIs3DIndex: layerIs3DIndex, disableChannelsIfRgbDetected: disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer: enableLayerButtonsWithOneLayer, setZoom: setZoom, setTargetX: setTargetX, setTargetY: setTargetY, setTargetZ: setTargetZ, setRotationX: setRotationX, setRotationOrbit: setRotationOrbit,
|
|
192
192
|
// Fall back to window for height and width.
|
|
193
193
|
componentHeight: componentHeight || windowHeight, componentWidth: componentWidth || windowWidth, spatialLayout: spatialLayout, handleImageAdd: handleImageAdd }));
|
|
194
194
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/layer-controller",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
22
|
"math.gl": "^3.5.6",
|
|
23
23
|
"react-aria": "^3.28.0",
|
|
24
|
-
"@vitessce/constants-internal": "3.4.
|
|
25
|
-
"@vitessce/gl": "3.4.
|
|
26
|
-
"@vitessce/spatial-utils": "3.4.
|
|
27
|
-
"@vitessce/utils": "3.4.
|
|
28
|
-
"@vitessce/vit-s": "3.4.
|
|
24
|
+
"@vitessce/constants-internal": "3.4.11",
|
|
25
|
+
"@vitessce/gl": "3.4.11",
|
|
26
|
+
"@vitessce/spatial-utils": "3.4.11",
|
|
27
|
+
"@vitessce/utils": "3.4.11",
|
|
28
|
+
"@vitessce/vit-s": "3.4.11"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"react": "^18.0.0",
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
useAuxiliaryCoordination,
|
|
17
17
|
useComponentLayout,
|
|
18
18
|
} from '@vitessce/vit-s';
|
|
19
|
-
import { ViewType, COMPONENT_COORDINATION_TYPES } from '@vitessce/constants-internal';
|
|
19
|
+
import { ViewType, COMPONENT_COORDINATION_TYPES, ViewHelpMapping } from '@vitessce/constants-internal';
|
|
20
20
|
import { capitalize } from '@vitessce/utils';
|
|
21
21
|
import { initializeLayerChannels, DEFAULT_RASTER_LAYER_PROPS } from '@vitessce/spatial-utils';
|
|
22
22
|
import RasterChannelController from './RasterChannelController.js';
|
|
@@ -80,6 +80,7 @@ const LayerControllerMemoized = React.memo(
|
|
|
80
80
|
spatialLayout,
|
|
81
81
|
handleImageAdd,
|
|
82
82
|
enableLayerButtonsWithOneLayer,
|
|
83
|
+
helpText,
|
|
83
84
|
} = props;
|
|
84
85
|
const shouldShowImageLayerButton = Boolean(
|
|
85
86
|
enableLayerButtonsWithOneLayer || imageLayerLoaders?.length > 1,
|
|
@@ -93,6 +94,7 @@ const LayerControllerMemoized = React.memo(
|
|
|
93
94
|
removeGridComponent={removeGridComponent}
|
|
94
95
|
theme={theme}
|
|
95
96
|
isReady={isReady}
|
|
97
|
+
helpText={helpText}
|
|
96
98
|
>
|
|
97
99
|
<div className="layer-controller-container" ref={ref}>
|
|
98
100
|
{moleculesLayer && (
|
|
@@ -319,6 +321,7 @@ export function LayerControllerSubscriber(props) {
|
|
|
319
321
|
globalDisable3d,
|
|
320
322
|
disableChannelsIfRgbDetected,
|
|
321
323
|
enableLayerButtonsWithOneLayer,
|
|
324
|
+
helpText = ViewHelpMapping.LAYER_CONTROLLER,
|
|
322
325
|
} = props;
|
|
323
326
|
|
|
324
327
|
const loaders = useLoaders();
|
|
@@ -467,6 +470,7 @@ export function LayerControllerSubscriber(props) {
|
|
|
467
470
|
setMoleculesLayer={setMoleculesLayer}
|
|
468
471
|
cellsLayer={cellsLayer}
|
|
469
472
|
setCellsLayer={setCellsLayer}
|
|
473
|
+
helpText={helpText}
|
|
470
474
|
|
|
471
475
|
rasterLayers={rasterLayers}
|
|
472
476
|
imageLayerLoaders={imageLayerLoaders}
|