@vitessce/layer-controller 3.4.10 → 3.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-a5257fd0.js → deflate-8015aae1.js} +1 -1
- package/dist/{index-85c89d73.js → index-4ca77fdd.js} +31 -9
- package/dist/index.js +1 -1
- package/dist/{jpeg-fcc5cf48.js → jpeg-6ae83bd8.js} +1 -1
- package/dist/{lerc-2221e6cb.js → lerc-ecbd3b3d.js} +1 -1
- package/dist/{lzw-9ab220c9.js → lzw-4d2922ac.js} +1 -1
- package/dist/{packbits-a7993560.js → packbits-4dc2005f.js} +1 -1
- package/dist/{raw-320b9bd9.js → raw-ae3988cf.js} +1 -1
- package/dist/{webimage-b5680c7f.js → webimage-149518f1.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
|
@@ -16831,6 +16831,7 @@ const CoordinationType = {
|
|
|
16831
16831
|
FEATURE_TYPE: "featureType",
|
|
16832
16832
|
FEATURE_VALUE_TYPE: "featureValueType",
|
|
16833
16833
|
OBS_LABELS_TYPE: "obsLabelsType",
|
|
16834
|
+
FEATURE_LABELS_TYPE: "featureLabelsType",
|
|
16834
16835
|
// Other types
|
|
16835
16836
|
EMBEDDING_TYPE: "embeddingType",
|
|
16836
16837
|
EMBEDDING_ZOOM: "embeddingZoom",
|
|
@@ -16945,6 +16946,23 @@ const CoordinationType = {
|
|
|
16945
16946
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
16946
16947
|
CONTOUR_COLOR: "contourColor"
|
|
16947
16948
|
};
|
|
16949
|
+
const ViewHelpMapping = {
|
|
16950
|
+
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).",
|
|
16951
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
16952
|
+
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).",
|
|
16953
|
+
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).",
|
|
16954
|
+
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.",
|
|
16955
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
16956
|
+
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.",
|
|
16957
|
+
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.",
|
|
16958
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
16959
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
16960
|
+
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.",
|
|
16961
|
+
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).",
|
|
16962
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
16963
|
+
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).",
|
|
16964
|
+
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."
|
|
16965
|
+
};
|
|
16948
16966
|
const COMPONENT_COORDINATION_TYPES = {
|
|
16949
16967
|
[ViewType.SCATTERPLOT]: [
|
|
16950
16968
|
CoordinationType.DATASET,
|
|
@@ -121553,16 +121571,16 @@ function addDecoder(cases, importFn) {
|
|
|
121553
121571
|
}
|
|
121554
121572
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
121555
121573
|
}
|
|
121556
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
121557
|
-
addDecoder(5, () => import("./lzw-
|
|
121574
|
+
addDecoder([void 0, 1], () => import("./raw-ae3988cf.js").then((m) => m.default));
|
|
121575
|
+
addDecoder(5, () => import("./lzw-4d2922ac.js").then((m) => m.default));
|
|
121558
121576
|
addDecoder(6, () => {
|
|
121559
121577
|
throw new Error("old style JPEG compression is not supported.");
|
|
121560
121578
|
});
|
|
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-
|
|
121579
|
+
addDecoder(7, () => import("./jpeg-6ae83bd8.js").then((m) => m.default));
|
|
121580
|
+
addDecoder([8, 32946], () => import("./deflate-8015aae1.js").then((m) => m.default));
|
|
121581
|
+
addDecoder(32773, () => import("./packbits-4dc2005f.js").then((m) => m.default));
|
|
121582
|
+
addDecoder(34887, () => import("./lerc-ecbd3b3d.js").then((m) => m.default));
|
|
121583
|
+
addDecoder(50001, () => import("./webimage-149518f1.js").then((m) => m.default));
|
|
121566
121584
|
function decodeRowAcc(row, stride) {
|
|
121567
121585
|
let length2 = row.length - stride;
|
|
121568
121586
|
let offset4 = 0;
|
|
@@ -137780,7 +137798,8 @@ const LayerControllerMemoized = React__default.memo(
|
|
|
137780
137798
|
componentWidth,
|
|
137781
137799
|
spatialLayout,
|
|
137782
137800
|
handleImageAdd,
|
|
137783
|
-
enableLayerButtonsWithOneLayer
|
|
137801
|
+
enableLayerButtonsWithOneLayer,
|
|
137802
|
+
helpText
|
|
137784
137803
|
} = props;
|
|
137785
137804
|
const shouldShowImageLayerButton = Boolean(
|
|
137786
137805
|
enableLayerButtonsWithOneLayer || (imageLayerLoaders == null ? void 0 : imageLayerLoaders.length) > 1
|
|
@@ -137795,6 +137814,7 @@ const LayerControllerMemoized = React__default.memo(
|
|
|
137795
137814
|
removeGridComponent,
|
|
137796
137815
|
theme,
|
|
137797
137816
|
isReady,
|
|
137817
|
+
helpText,
|
|
137798
137818
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [
|
|
137799
137819
|
moleculesLayer && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
137800
137820
|
VectorLayerController,
|
|
@@ -137973,7 +137993,8 @@ function LayerControllerSubscriber(props) {
|
|
|
137973
137993
|
disable3d,
|
|
137974
137994
|
globalDisable3d,
|
|
137975
137995
|
disableChannelsIfRgbDetected,
|
|
137976
|
-
enableLayerButtonsWithOneLayer
|
|
137996
|
+
enableLayerButtonsWithOneLayer,
|
|
137997
|
+
helpText = ViewHelpMapping.LAYER_CONTROLLER
|
|
137977
137998
|
} = props;
|
|
137978
137999
|
const loaders = useLoaders();
|
|
137979
138000
|
const [
|
|
@@ -138112,6 +138133,7 @@ function LayerControllerSubscriber(props) {
|
|
|
138112
138133
|
setMoleculesLayer,
|
|
138113
138134
|
cellsLayer,
|
|
138114
138135
|
setCellsLayer,
|
|
138136
|
+
helpText,
|
|
138115
138137
|
rasterLayers,
|
|
138116
138138
|
imageLayerLoaders,
|
|
138117
138139
|
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-4ca77fdd.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.12",
|
|
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.12",
|
|
25
|
+
"@vitessce/gl": "3.4.12",
|
|
26
|
+
"@vitessce/spatial-utils": "3.4.12",
|
|
27
|
+
"@vitessce/utils": "3.4.12",
|
|
28
|
+
"@vitessce/vit-s": "3.4.12"
|
|
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}
|