@vitessce/dev 3.6.17 → 3.7.0
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/{ReactNeuroglancer-DcRs0BW4.js → ReactNeuroglancer-Btj_WYRD.js} +1 -1
- package/dist/{deflate-BEEFrc82.js → deflate-GVZsRApc.js} +1 -1
- package/dist/{higlass-s5F9bo4Z.js → higlass-yrrJnl2c.js} +1 -1
- package/dist/{index-DIP-3U1s.js → index-DvN0sI8S.js} +322 -279
- package/dist/{index-DQRAt0HF.js → index-UBpc7GeM.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{jpeg-OpT8hqt7.js → jpeg-CUVKS95X.js} +1 -1
- package/dist/{lerc-BZECv4pL.js → lerc-B5W05Jw1.js} +1 -1
- package/dist/{lzw-M40QpoDn.js → lzw-DCIOwD8K.js} +1 -1
- package/dist/{packbits-B03X3zfJ.js → packbits-Dt4Zs_GK.js} +1 -1
- package/dist/{raw-DL6E_arU.js → raw-BlnZnXcF.js} +1 -1
- package/dist/{troika-three-text.esm-DAt1m3Kx.js → troika-three-text.esm-q8cvHOU4.js} +1 -1
- package/dist/{webimage-DQckZ9z1.js → webimage-GXOvK9UD.js} +1 -1
- package/package.json +6 -6
|
@@ -1330,7 +1330,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1330
1330
|
CoordinationType$2.HIERARCHY_LEVELS
|
|
1331
1331
|
]
|
|
1332
1332
|
};
|
|
1333
|
-
const version$6 = "3.
|
|
1333
|
+
const version$6 = "3.7.0";
|
|
1334
1334
|
const META_VERSION = {
|
|
1335
1335
|
version: version$6
|
|
1336
1336
|
};
|
|
@@ -99288,8 +99288,9 @@ function Description(props) {
|
|
|
99288
99288
|
return jsxRuntimeExports.jsxs("div", { className: classes2.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: classes2.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)] });
|
|
99289
99289
|
}
|
|
99290
99290
|
function DescriptionSubscriber(props) {
|
|
99291
|
-
const { coordinationScopes, description: descriptionOverride, descriptionType, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible, helpText = ViewHelpMapping.DESCRIPTION } = props;
|
|
99291
|
+
const { coordinationScopes: coordinationScopesRaw, description: descriptionOverride, descriptionType, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible, helpText = ViewHelpMapping.DESCRIPTION } = props;
|
|
99292
99292
|
const loaders = useLoaders();
|
|
99293
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
99293
99294
|
const [{ dataset, spatialImageLayer: rasterLayers }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DESCRIPTION], coordinationScopes);
|
|
99294
99295
|
const [description2] = useDescription(loaders, dataset);
|
|
99295
99296
|
const [{ image: image2 }, imageStatus, imageUrls, imageError] = useImageData(loaders, dataset, false, {}, {}, {});
|
|
@@ -119731,87 +119732,83 @@ function SetsManager(props) {
|
|
|
119731
119732
|
}
|
|
119732
119733
|
const packageJson = { name: "vitessce" };
|
|
119733
119734
|
function ObsSetsManagerSubscriber(props) {
|
|
119734
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SETS } = props;
|
|
119735
|
+
const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SETS } = props;
|
|
119735
119736
|
const loaders = useLoaders();
|
|
119737
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
119736
119738
|
const setWarning = useSetWarning();
|
|
119737
|
-
const [{ dataset, obsType, obsSetSelection
|
|
119739
|
+
const [{ dataset, obsType, obsSetSelection, obsSetExpansion, obsSetColor, additionalObsSets, obsColorEncoding }, { setObsSetSelection, setObsColorEncoding, setObsSetColor, setObsSetExpansion, setAdditionalObsSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SETS], coordinationScopes);
|
|
119738
119740
|
const title2 = titleOverride || `${capitalize$3(obsType)} Sets`;
|
|
119739
|
-
|
|
119740
|
-
if (cellSetExpansion && cellSetExpansion.length > 0) {
|
|
119741
|
-
setCellSetExpansion([]);
|
|
119742
|
-
}
|
|
119743
|
-
}, [loaders, dataset]);
|
|
119744
|
-
const [{ obsIndex, obsSets: cellSets }, obsSetsStatus, obsSetsUrls, obsSetsError] = useObsSetsData(loaders, dataset, false, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }, { obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { obsType });
|
|
119741
|
+
const [{ obsIndex, obsSets: cellSets }, obsSetsStatus, obsSetsUrls, obsSetsError] = useObsSetsData(loaders, dataset, false, { setObsSetSelection, setObsSetColor, setObsSetExpansion }, { obsSetSelection, obsSetColor, obsSetExpansion }, { obsType });
|
|
119745
119742
|
const errors = [
|
|
119746
119743
|
obsSetsError
|
|
119747
119744
|
];
|
|
119748
119745
|
const isReady = useReady([obsSetsStatus]);
|
|
119749
119746
|
const urls2 = useUrls([obsSetsUrls]);
|
|
119750
119747
|
useEffect(() => {
|
|
119751
|
-
if (
|
|
119748
|
+
if (additionalObsSets) {
|
|
119752
119749
|
let upgradedCellSets;
|
|
119753
119750
|
let didUpgrade;
|
|
119754
119751
|
try {
|
|
119755
|
-
[upgradedCellSets, didUpgrade] = tryUpgradeTreeToLatestSchema(
|
|
119752
|
+
[upgradedCellSets, didUpgrade] = tryUpgradeTreeToLatestSchema(additionalObsSets, SETS_DATATYPE_OBS);
|
|
119756
119753
|
} catch (e3) {
|
|
119757
119754
|
setWarning(e3.message);
|
|
119758
119755
|
return;
|
|
119759
119756
|
}
|
|
119760
119757
|
if (didUpgrade) {
|
|
119761
|
-
|
|
119758
|
+
setAdditionalObsSets(upgradedCellSets);
|
|
119762
119759
|
}
|
|
119763
119760
|
}
|
|
119764
|
-
}, [
|
|
119761
|
+
}, [additionalObsSets, setAdditionalObsSets, setWarning]);
|
|
119765
119762
|
const allCellIds = useMemo$1(() => obsIndex || [], [obsIndex]);
|
|
119766
|
-
const
|
|
119767
|
-
|
|
119768
|
-
}, [
|
|
119769
|
-
const
|
|
119763
|
+
const setObsSetColorEncoding = useCallback(() => {
|
|
119764
|
+
setObsColorEncoding("cellSetSelection");
|
|
119765
|
+
}, [setObsColorEncoding]);
|
|
119766
|
+
const mergedObsSets = useMemo$1(() => mergeObsSets(cellSets, additionalObsSets), [cellSets, additionalObsSets]);
|
|
119770
119767
|
const checkedLevel = useMemo$1(() => {
|
|
119771
|
-
if (
|
|
119772
|
-
return treeToExpectedCheckedLevel(
|
|
119768
|
+
if (obsSetSelection && obsSetSelection.length > 0 && mergedObsSets && mergedObsSets.tree.length > 0) {
|
|
119769
|
+
return treeToExpectedCheckedLevel(mergedObsSets, obsSetSelection);
|
|
119773
119770
|
}
|
|
119774
119771
|
return null;
|
|
119775
|
-
}, [
|
|
119772
|
+
}, [obsSetSelection, mergedObsSets]);
|
|
119776
119773
|
const onCheckLevel = useCallback((levelZeroName, levelIndex) => {
|
|
119777
|
-
const lzn =
|
|
119774
|
+
const lzn = mergedObsSets.tree.find((n3) => n3.name === levelZeroName);
|
|
119778
119775
|
if (lzn) {
|
|
119779
|
-
const
|
|
119780
|
-
|
|
119781
|
-
|
|
119776
|
+
const newObsSetSelection = nodeToLevelDescendantNamePaths(lzn, levelIndex, [], true);
|
|
119777
|
+
setObsSetSelection(newObsSetSelection);
|
|
119778
|
+
setObsSetColorEncoding();
|
|
119782
119779
|
}
|
|
119783
|
-
}, [
|
|
119780
|
+
}, [mergedObsSets, setObsSetColorEncoding, setObsSetSelection]);
|
|
119784
119781
|
const onCheckNode = useCallback((targetKey, checked) => {
|
|
119785
119782
|
const targetPath = Array.isArray(targetKey) ? targetKey : targetKey.split(PATH_SEP);
|
|
119786
119783
|
if (!targetKey) {
|
|
119787
119784
|
return;
|
|
119788
119785
|
}
|
|
119789
119786
|
if (checked) {
|
|
119790
|
-
|
|
119787
|
+
setObsSetSelection([...obsSetSelection, targetPath]);
|
|
119791
119788
|
} else {
|
|
119792
|
-
|
|
119789
|
+
setObsSetSelection(obsSetSelection.filter((d) => !isEqual$3(d, targetPath)));
|
|
119793
119790
|
}
|
|
119794
|
-
|
|
119795
|
-
}, [
|
|
119791
|
+
setObsSetColorEncoding();
|
|
119792
|
+
}, [obsSetSelection, setObsSetColorEncoding, setObsSetSelection]);
|
|
119796
119793
|
const onExpandNode = useCallback((expandedKeys, targetKey, expanded) => {
|
|
119797
|
-
const
|
|
119794
|
+
const prevObsSetExpansion = obsSetExpansion || [];
|
|
119798
119795
|
if (expanded) {
|
|
119799
|
-
|
|
119796
|
+
setObsSetExpansion([...prevObsSetExpansion, targetKey.split(PATH_SEP)]);
|
|
119800
119797
|
} else {
|
|
119801
|
-
const
|
|
119802
|
-
|
|
119798
|
+
const newObsSetExpansion = prevObsSetExpansion.filter((d) => !isEqual$3(d, targetKey.split(PATH_SEP)));
|
|
119799
|
+
setObsSetExpansion(newObsSetExpansion);
|
|
119803
119800
|
}
|
|
119804
|
-
}, [
|
|
119801
|
+
}, [obsSetExpansion, setObsSetExpansion]);
|
|
119805
119802
|
const onDropNode = useCallback((dropKey, dragKey, dropPosition, dropToGap) => {
|
|
119806
119803
|
const dropPath = dropKey.split(PATH_SEP);
|
|
119807
|
-
const dropNode = treeFindNodeByNamePath(
|
|
119804
|
+
const dropNode = treeFindNodeByNamePath(additionalObsSets, dropPath);
|
|
119808
119805
|
if (!dropNode.children && !dropToGap) {
|
|
119809
119806
|
return;
|
|
119810
119807
|
}
|
|
119811
119808
|
const dropNodeLevel = dropPath.length - 1;
|
|
119812
119809
|
const dropNodeIsLevelZero = dropNodeLevel === 0;
|
|
119813
119810
|
const dragPath = dragKey.split(PATH_SEP);
|
|
119814
|
-
const dragNode = treeFindNodeByNamePath(
|
|
119811
|
+
const dragNode = treeFindNodeByNamePath(additionalObsSets, dragPath);
|
|
119815
119812
|
if (dropNodeIsLevelZero && dropToGap && !dragNode.children) {
|
|
119816
119813
|
return;
|
|
119817
119814
|
}
|
|
@@ -119820,10 +119817,10 @@ function ObsSetsManagerSubscriber(props) {
|
|
|
119820
119817
|
let dropNodeCurrIndex;
|
|
119821
119818
|
if (!dropNodeIsLevelZero) {
|
|
119822
119819
|
dropParentPath = dropPath.slice(0, -1);
|
|
119823
|
-
dropParentNode = treeFindNodeByNamePath(
|
|
119820
|
+
dropParentNode = treeFindNodeByNamePath(additionalObsSets, dropParentPath);
|
|
119824
119821
|
dropNodeCurrIndex = dropParentNode.children.findIndex((c2) => c2.name === dropNode.name);
|
|
119825
119822
|
} else {
|
|
119826
|
-
dropNodeCurrIndex =
|
|
119823
|
+
dropNodeCurrIndex = additionalObsSets.tree.findIndex((lzn) => lzn.name === dropNode.name);
|
|
119827
119824
|
}
|
|
119828
119825
|
let hasSiblingNameConflict;
|
|
119829
119826
|
const dragNodeName = dragNode.name;
|
|
@@ -119832,19 +119829,19 @@ function ObsSetsManagerSubscriber(props) {
|
|
|
119832
119829
|
} else if (!dropToGap) {
|
|
119833
119830
|
hasSiblingNameConflict = dropNode.children.find((c2) => c2 !== dragNode && c2.name === dragNodeName);
|
|
119834
119831
|
} else {
|
|
119835
|
-
hasSiblingNameConflict =
|
|
119832
|
+
hasSiblingNameConflict = additionalObsSets.tree.find((lzn) => lzn !== dragNode && lzn.name === dragNodeName);
|
|
119836
119833
|
}
|
|
119837
119834
|
if (hasSiblingNameConflict) {
|
|
119838
119835
|
return;
|
|
119839
119836
|
}
|
|
119840
|
-
const
|
|
119841
|
-
...
|
|
119842
|
-
tree:
|
|
119837
|
+
const nextAdditionalObsSets = {
|
|
119838
|
+
...additionalObsSets,
|
|
119839
|
+
tree: additionalObsSets.tree.map((lzn) => filterNode(lzn, [], dragPath)).filter(Boolean)
|
|
119843
119840
|
};
|
|
119844
119841
|
if (!dropNodeIsLevelZero) {
|
|
119845
119842
|
dropNodeCurrIndex = dropParentNode.children.findIndex((c2) => c2.name === dropNode.name);
|
|
119846
119843
|
} else {
|
|
119847
|
-
dropNodeCurrIndex =
|
|
119844
|
+
dropNodeCurrIndex = nextAdditionalObsSets.tree.findIndex((lzn) => lzn.name === dropNode.name);
|
|
119848
119845
|
}
|
|
119849
119846
|
let newDragPath = [];
|
|
119850
119847
|
if (!dropToGap || !dropNodeIsLevelZero) {
|
|
@@ -119863,67 +119860,67 @@ function ObsSetsManagerSubscriber(props) {
|
|
|
119863
119860
|
addChildFunction = (n3) => nodeInsertChild(n3, dragNode, insertIndex);
|
|
119864
119861
|
}
|
|
119865
119862
|
}
|
|
119866
|
-
|
|
119863
|
+
nextAdditionalObsSets.tree = nextAdditionalObsSets.tree.map((node2) => nodeTransform(node2, (n3, path2) => checkPathFunction(path2), (n3) => {
|
|
119867
119864
|
const newNode = addChildFunction(n3);
|
|
119868
119865
|
return newNode;
|
|
119869
119866
|
}, newPath));
|
|
119870
|
-
|
|
119867
|
+
setAdditionalObsSets(nextAdditionalObsSets);
|
|
119871
119868
|
newDragPath = [...newPath[0], dragNode.name];
|
|
119872
|
-
|
|
119869
|
+
setObsSetSelection([newDragPath]);
|
|
119873
119870
|
} else if (dropPosition === -1) {
|
|
119874
|
-
|
|
119875
|
-
|
|
119871
|
+
nextAdditionalObsSets.tree.unshift(dragNode);
|
|
119872
|
+
setAdditionalObsSets(nextAdditionalObsSets);
|
|
119876
119873
|
newDragPath = [dragNode.name];
|
|
119877
|
-
|
|
119874
|
+
setObsSetSelection([newDragPath]);
|
|
119878
119875
|
} else {
|
|
119879
119876
|
const insertIndex = dropNodeCurrIndex + (dropPosition > dropNodeCurrIndex ? 1 : 0);
|
|
119880
|
-
const newLevelZero = Array.from(
|
|
119877
|
+
const newLevelZero = Array.from(nextAdditionalObsSets.tree);
|
|
119881
119878
|
newLevelZero.splice(insertIndex, 0, dragNode);
|
|
119882
|
-
|
|
119883
|
-
|
|
119879
|
+
nextAdditionalObsSets.tree = newLevelZero;
|
|
119880
|
+
setAdditionalObsSets(nextAdditionalObsSets);
|
|
119884
119881
|
newDragPath = [dragNode.name];
|
|
119885
|
-
|
|
119882
|
+
setObsSetSelection([newDragPath]);
|
|
119886
119883
|
}
|
|
119887
|
-
const oldColors =
|
|
119884
|
+
const oldColors = obsSetColor.filter((i2) => isEqualOrPrefix(dragPath, i2.path));
|
|
119888
119885
|
const newColors = oldColors.map((i2) => ({
|
|
119889
119886
|
...i2,
|
|
119890
119887
|
path: !isEqual$3(i2.path, dragPath) ? newDragPath.concat(i2.path.slice(dragPath.length)) : newDragPath
|
|
119891
119888
|
}));
|
|
119892
|
-
const
|
|
119893
|
-
|
|
119894
|
-
|
|
119889
|
+
const newObsSetColor = obsSetColor.filter((i2) => !isEqualOrPrefix(dragPath, i2.path));
|
|
119890
|
+
newObsSetColor.push(...newColors);
|
|
119891
|
+
setObsSetColor(newObsSetColor);
|
|
119895
119892
|
}, [
|
|
119896
|
-
|
|
119897
|
-
|
|
119898
|
-
|
|
119899
|
-
|
|
119900
|
-
|
|
119893
|
+
additionalObsSets,
|
|
119894
|
+
obsSetColor,
|
|
119895
|
+
setAdditionalObsSets,
|
|
119896
|
+
setObsSetColor,
|
|
119897
|
+
setObsSetSelection
|
|
119901
119898
|
]);
|
|
119902
119899
|
const onNodeSetColor = useCallback((targetPath, color2) => {
|
|
119903
|
-
const prevNodeColor =
|
|
119900
|
+
const prevNodeColor = obsSetColor?.find((d) => isEqual$3(d.path, targetPath));
|
|
119904
119901
|
if (!prevNodeColor) {
|
|
119905
|
-
|
|
119906
|
-
...
|
|
119902
|
+
setObsSetColor([
|
|
119903
|
+
...obsSetColor || [],
|
|
119907
119904
|
{
|
|
119908
119905
|
path: targetPath,
|
|
119909
119906
|
color: color2
|
|
119910
119907
|
}
|
|
119911
119908
|
]);
|
|
119912
119909
|
} else {
|
|
119913
|
-
|
|
119914
|
-
...
|
|
119910
|
+
setObsSetColor([
|
|
119911
|
+
...obsSetColor.filter((d) => !isEqual$3(d.path, targetPath)),
|
|
119915
119912
|
{
|
|
119916
119913
|
path: targetPath,
|
|
119917
119914
|
color: color2
|
|
119918
119915
|
}
|
|
119919
119916
|
]);
|
|
119920
119917
|
}
|
|
119921
|
-
}, [
|
|
119918
|
+
}, [obsSetColor, setObsSetColor]);
|
|
119922
119919
|
const onNodeSetName = useCallback((targetPath, name2) => {
|
|
119923
119920
|
const nextNamePath = [...targetPath];
|
|
119924
119921
|
nextNamePath.pop();
|
|
119925
119922
|
nextNamePath.push(name2);
|
|
119926
|
-
const
|
|
119923
|
+
const prevObsSetExpansion = obsSetExpansion || [];
|
|
119927
119924
|
function renameNode(node2, prevPath) {
|
|
119928
119925
|
if (isEqual$3([...prevPath, node2.name], targetPath)) {
|
|
119929
119926
|
return {
|
|
@@ -119939,64 +119936,64 @@ function ObsSetsManagerSubscriber(props) {
|
|
|
119939
119936
|
children: node2.children.map((c2) => renameNode(c2, [...prevPath, node2.name]))
|
|
119940
119937
|
};
|
|
119941
119938
|
}
|
|
119942
|
-
const
|
|
119943
|
-
...
|
|
119944
|
-
tree:
|
|
119939
|
+
const nextAdditionalObsSets = {
|
|
119940
|
+
...additionalObsSets,
|
|
119941
|
+
tree: additionalObsSets.tree.map((lzn) => renameNode(lzn, []))
|
|
119945
119942
|
};
|
|
119946
|
-
const
|
|
119943
|
+
const nextObsSetColor = obsSetColor.map((d) => ({
|
|
119947
119944
|
path: tryRenamePath(targetPath, d.path, nextNamePath),
|
|
119948
119945
|
color: d.color
|
|
119949
119946
|
}));
|
|
119950
|
-
const
|
|
119951
|
-
const
|
|
119952
|
-
|
|
119953
|
-
|
|
119954
|
-
|
|
119955
|
-
|
|
119947
|
+
const nextObsSetSelection = obsSetSelection.map((d) => tryRenamePath(targetPath, d, nextNamePath));
|
|
119948
|
+
const nextObsSetExpansion = prevObsSetExpansion.map((d) => tryRenamePath(targetPath, d, nextNamePath));
|
|
119949
|
+
setAdditionalObsSets(nextAdditionalObsSets);
|
|
119950
|
+
setObsSetColor(nextObsSetColor);
|
|
119951
|
+
setObsSetSelection(nextObsSetSelection);
|
|
119952
|
+
setObsSetExpansion(nextObsSetExpansion);
|
|
119956
119953
|
}, [
|
|
119957
|
-
|
|
119958
|
-
|
|
119959
|
-
|
|
119960
|
-
|
|
119961
|
-
|
|
119962
|
-
|
|
119963
|
-
|
|
119964
|
-
|
|
119954
|
+
additionalObsSets,
|
|
119955
|
+
obsSetColor,
|
|
119956
|
+
obsSetExpansion,
|
|
119957
|
+
obsSetSelection,
|
|
119958
|
+
setAdditionalObsSets,
|
|
119959
|
+
setObsSetColor,
|
|
119960
|
+
setObsSetSelection,
|
|
119961
|
+
setObsSetExpansion
|
|
119965
119962
|
]);
|
|
119966
119963
|
const onNodeCheckNewName = useCallback((targetPath, name2) => {
|
|
119967
119964
|
const nextNamePath = [...targetPath];
|
|
119968
119965
|
nextNamePath.pop();
|
|
119969
119966
|
nextNamePath.push(name2);
|
|
119970
|
-
const hasConflicts = !isEqual$3(targetPath, nextNamePath) && treeFindNodeByNamePath(
|
|
119967
|
+
const hasConflicts = !isEqual$3(targetPath, nextNamePath) && treeFindNodeByNamePath(additionalObsSets, nextNamePath);
|
|
119971
119968
|
return hasConflicts;
|
|
119972
|
-
}, [
|
|
119969
|
+
}, [additionalObsSets]);
|
|
119973
119970
|
const onNodeRemove = useCallback((targetPath) => {
|
|
119974
|
-
const
|
|
119975
|
-
const
|
|
119976
|
-
...
|
|
119977
|
-
tree:
|
|
119978
|
-
};
|
|
119979
|
-
const
|
|
119980
|
-
const
|
|
119981
|
-
const
|
|
119982
|
-
|
|
119983
|
-
|
|
119984
|
-
|
|
119985
|
-
|
|
119971
|
+
const prevObsSetExpansion = obsSetExpansion || [];
|
|
119972
|
+
const nextAdditionalObsSets = {
|
|
119973
|
+
...additionalObsSets,
|
|
119974
|
+
tree: additionalObsSets.tree.map((lzn) => filterNode(lzn, [], targetPath)).filter(Boolean)
|
|
119975
|
+
};
|
|
119976
|
+
const nextObsSetColor = obsSetColor.filter((d) => !isEqualOrPrefix(targetPath, d.path));
|
|
119977
|
+
const nextObsSetSelection = obsSetSelection.filter((d) => !isEqualOrPrefix(targetPath, d));
|
|
119978
|
+
const nextObsSetExpansion = prevObsSetExpansion.filter((d) => !isEqualOrPrefix(targetPath, d));
|
|
119979
|
+
setAdditionalObsSets(nextAdditionalObsSets);
|
|
119980
|
+
setObsSetColor(nextObsSetColor);
|
|
119981
|
+
setObsSetSelection(nextObsSetSelection);
|
|
119982
|
+
setObsSetExpansion(nextObsSetExpansion);
|
|
119986
119983
|
}, [
|
|
119987
|
-
|
|
119988
|
-
|
|
119989
|
-
|
|
119990
|
-
|
|
119991
|
-
|
|
119992
|
-
|
|
119993
|
-
|
|
119994
|
-
|
|
119984
|
+
additionalObsSets,
|
|
119985
|
+
obsSetColor,
|
|
119986
|
+
obsSetExpansion,
|
|
119987
|
+
obsSetSelection,
|
|
119988
|
+
setAdditionalObsSets,
|
|
119989
|
+
setObsSetColor,
|
|
119990
|
+
setObsSetSelection,
|
|
119991
|
+
setObsSetExpansion
|
|
119995
119992
|
]);
|
|
119996
119993
|
const onNodeView = useCallback((targetPath) => {
|
|
119997
119994
|
const setsToView = [];
|
|
119998
119995
|
function viewNode(node2, nodePath) {
|
|
119999
|
-
if (
|
|
119996
|
+
if (obsSetExpansion?.find((expandedPath) => isEqual$3(nodePath, expandedPath))) {
|
|
120000
119997
|
if (node2.children) {
|
|
120001
119998
|
node2.children.forEach((c2) => {
|
|
120002
119999
|
viewNode(c2, [...nodePath, c2.name]);
|
|
@@ -120008,105 +120005,105 @@ function ObsSetsManagerSubscriber(props) {
|
|
|
120008
120005
|
setsToView.push(nodePath);
|
|
120009
120006
|
}
|
|
120010
120007
|
}
|
|
120011
|
-
const targetNode = treeFindNodeByNamePath(
|
|
120008
|
+
const targetNode = treeFindNodeByNamePath(mergedObsSets, targetPath);
|
|
120012
120009
|
viewNode(targetNode, targetPath);
|
|
120013
|
-
|
|
120014
|
-
|
|
120015
|
-
}, [
|
|
120010
|
+
setObsSetSelection(setsToView);
|
|
120011
|
+
setObsSetColorEncoding();
|
|
120012
|
+
}, [obsSetExpansion, mergedObsSets, setObsSetColorEncoding, setObsSetSelection]);
|
|
120016
120013
|
const onCreateLevelZeroNode = useCallback(() => {
|
|
120017
|
-
const nextName = getNextNumberedNodeName(
|
|
120018
|
-
|
|
120019
|
-
...
|
|
120014
|
+
const nextName = getNextNumberedNodeName(additionalObsSets?.tree, "My hierarchy ", "");
|
|
120015
|
+
setAdditionalObsSets({
|
|
120016
|
+
...additionalObsSets || treeInitialize(SETS_DATATYPE_OBS),
|
|
120020
120017
|
tree: [
|
|
120021
|
-
...
|
|
120018
|
+
...additionalObsSets ? additionalObsSets.tree : [],
|
|
120022
120019
|
{
|
|
120023
120020
|
name: nextName,
|
|
120024
120021
|
children: []
|
|
120025
120022
|
}
|
|
120026
120023
|
]
|
|
120027
120024
|
});
|
|
120028
|
-
}, [
|
|
120025
|
+
}, [additionalObsSets, setAdditionalObsSets]);
|
|
120029
120026
|
const onUnion = useCallback(() => {
|
|
120030
|
-
const newSet = treeToUnion(
|
|
120031
|
-
setObsSelection(newSet,
|
|
120027
|
+
const newSet = treeToUnion(mergedObsSets, obsSetSelection);
|
|
120028
|
+
setObsSelection(newSet, additionalObsSets, obsSetColor, setObsSetSelection, setAdditionalObsSets, setObsSetColor, setObsColorEncoding, "Union ");
|
|
120032
120029
|
}, [
|
|
120033
|
-
|
|
120034
|
-
|
|
120035
|
-
|
|
120036
|
-
|
|
120037
|
-
|
|
120038
|
-
|
|
120039
|
-
|
|
120040
|
-
|
|
120030
|
+
additionalObsSets,
|
|
120031
|
+
obsSetColor,
|
|
120032
|
+
obsSetSelection,
|
|
120033
|
+
mergedObsSets,
|
|
120034
|
+
setAdditionalObsSets,
|
|
120035
|
+
setObsColorEncoding,
|
|
120036
|
+
setObsSetColor,
|
|
120037
|
+
setObsSetSelection
|
|
120041
120038
|
]);
|
|
120042
120039
|
const onIntersection = useCallback(() => {
|
|
120043
|
-
const newSet = treeToIntersection(
|
|
120044
|
-
setObsSelection(newSet,
|
|
120040
|
+
const newSet = treeToIntersection(mergedObsSets, obsSetSelection);
|
|
120041
|
+
setObsSelection(newSet, additionalObsSets, obsSetColor, setObsSetSelection, setAdditionalObsSets, setObsSetColor, setObsColorEncoding, "Intersection ");
|
|
120045
120042
|
}, [
|
|
120046
|
-
|
|
120047
|
-
|
|
120048
|
-
|
|
120049
|
-
|
|
120050
|
-
|
|
120051
|
-
|
|
120052
|
-
|
|
120053
|
-
|
|
120043
|
+
additionalObsSets,
|
|
120044
|
+
obsSetColor,
|
|
120045
|
+
obsSetSelection,
|
|
120046
|
+
mergedObsSets,
|
|
120047
|
+
setAdditionalObsSets,
|
|
120048
|
+
setObsColorEncoding,
|
|
120049
|
+
setObsSetColor,
|
|
120050
|
+
setObsSetSelection
|
|
120054
120051
|
]);
|
|
120055
120052
|
const onComplement = useCallback(() => {
|
|
120056
|
-
const newSet = treeToComplement(
|
|
120057
|
-
setObsSelection(newSet,
|
|
120053
|
+
const newSet = treeToComplement(mergedObsSets, obsSetSelection, allCellIds);
|
|
120054
|
+
setObsSelection(newSet, additionalObsSets, obsSetColor, setObsSetSelection, setAdditionalObsSets, setObsSetColor, setObsColorEncoding, "Complement ");
|
|
120058
120055
|
}, [
|
|
120059
|
-
|
|
120056
|
+
additionalObsSets,
|
|
120060
120057
|
allCellIds,
|
|
120061
|
-
|
|
120062
|
-
|
|
120063
|
-
|
|
120064
|
-
|
|
120065
|
-
|
|
120066
|
-
|
|
120067
|
-
|
|
120058
|
+
obsSetColor,
|
|
120059
|
+
obsSetSelection,
|
|
120060
|
+
mergedObsSets,
|
|
120061
|
+
setAdditionalObsSets,
|
|
120062
|
+
setObsColorEncoding,
|
|
120063
|
+
setObsSetColor,
|
|
120064
|
+
setObsSetSelection
|
|
120068
120065
|
]);
|
|
120069
120066
|
const onImportTree = useCallback((treeToImport) => {
|
|
120070
|
-
const hasConflict = treesConflict(
|
|
120067
|
+
const hasConflict = treesConflict(mergedObsSets, treeToImport);
|
|
120071
120068
|
if (!hasConflict) {
|
|
120072
|
-
|
|
120073
|
-
...
|
|
120069
|
+
setAdditionalObsSets({
|
|
120070
|
+
...additionalObsSets || treeInitialize(SETS_DATATYPE_OBS),
|
|
120074
120071
|
tree: [
|
|
120075
|
-
...
|
|
120072
|
+
...additionalObsSets ? additionalObsSets.tree : [],
|
|
120076
120073
|
...treeToImport.tree
|
|
120077
120074
|
]
|
|
120078
120075
|
});
|
|
120079
|
-
const importAutoSetColors = initializeCellSetColor(treeToImport,
|
|
120080
|
-
|
|
120081
|
-
...
|
|
120076
|
+
const importAutoSetColors = initializeCellSetColor(treeToImport, obsSetColor);
|
|
120077
|
+
setObsSetColor([
|
|
120078
|
+
...obsSetColor,
|
|
120082
120079
|
...importAutoSetColors
|
|
120083
120080
|
]);
|
|
120084
120081
|
}
|
|
120085
120082
|
}, [
|
|
120086
|
-
|
|
120087
|
-
|
|
120088
|
-
|
|
120089
|
-
|
|
120090
|
-
|
|
120083
|
+
additionalObsSets,
|
|
120084
|
+
obsSetColor,
|
|
120085
|
+
mergedObsSets,
|
|
120086
|
+
setAdditionalObsSets,
|
|
120087
|
+
setObsSetColor
|
|
120091
120088
|
]);
|
|
120092
120089
|
const onExportLevelZeroNodeJSON = useCallback((nodePath) => {
|
|
120093
|
-
const { treeToExport, nodeName } = treeExportLevelZeroNode(
|
|
120090
|
+
const { treeToExport, nodeName } = treeExportLevelZeroNode(mergedObsSets, nodePath, SETS_DATATYPE_OBS, obsSetColor, theme);
|
|
120094
120091
|
downloadForUser(handleExportJSON(treeToExport), `${nodeName}_${packageJson.name}-${SETS_DATATYPE_OBS}-hierarchy.${FILE_EXTENSION_JSON}`);
|
|
120095
|
-
}, [
|
|
120092
|
+
}, [obsSetColor, mergedObsSets, theme]);
|
|
120096
120093
|
const onExportLevelZeroNodeTabular = useCallback((nodePath) => {
|
|
120097
|
-
const { treeToExport, nodeName } = treeExportLevelZeroNode(
|
|
120094
|
+
const { treeToExport, nodeName } = treeExportLevelZeroNode(mergedObsSets, nodePath, SETS_DATATYPE_OBS, obsSetColor, theme);
|
|
120098
120095
|
downloadForUser(handleExportTabular(treeToExport), `${nodeName}_${packageJson.name}-${SETS_DATATYPE_OBS}-hierarchy.${FILE_EXTENSION_TABULAR}`);
|
|
120099
|
-
}, [
|
|
120096
|
+
}, [obsSetColor, mergedObsSets, theme]);
|
|
120100
120097
|
const onExportSetJSON = useCallback((nodePath) => {
|
|
120101
|
-
const { setToExport, nodeName } = treeExportSet(
|
|
120098
|
+
const { setToExport, nodeName } = treeExportSet(mergedObsSets, nodePath);
|
|
120102
120099
|
downloadForUser(handleExportJSON(setToExport), `${nodeName}_${packageJson.name}-${SETS_DATATYPE_OBS}-set.${FILE_EXTENSION_JSON}`);
|
|
120103
|
-
}, [
|
|
120104
|
-
const manager2 = useMemo$1(() => jsxRuntimeExports.jsx(SetsManager, { setColor:
|
|
120105
|
-
|
|
120106
|
-
|
|
120107
|
-
|
|
120108
|
-
|
|
120109
|
-
|
|
120100
|
+
}, [mergedObsSets]);
|
|
120101
|
+
const manager2 = useMemo$1(() => jsxRuntimeExports.jsx(SetsManager, { setColor: obsSetColor, sets: cellSets, additionalSets: additionalObsSets, levelSelection: checkedLevel, setSelection: obsSetSelection, setExpansion: obsSetExpansion, hasColorEncoding: obsColorEncoding === "cellSetSelection", draggable: true, datatype: SETS_DATATYPE_OBS, onError: setWarning, onCheckNode, onExpandNode, onDropNode, onCheckLevel, onNodeSetColor, onNodeSetName, onNodeCheckNewName, onNodeRemove, onNodeView, onImportTree, onCreateLevelZeroNode, onExportLevelZeroNodeJSON, onExportLevelZeroNodeTabular, onExportSetJSON, onUnion, onIntersection, onComplement, hasCheckedSetsToUnion: obsSetSelection?.length > 1, hasCheckedSetsToIntersect: obsSetSelection?.length > 1, hasCheckedSetsToComplement: obsSetSelection?.length > 0, theme }), [
|
|
120102
|
+
additionalObsSets,
|
|
120103
|
+
obsColorEncoding,
|
|
120104
|
+
obsSetColor,
|
|
120105
|
+
obsSetExpansion,
|
|
120106
|
+
obsSetSelection,
|
|
120110
120107
|
cellSets,
|
|
120111
120108
|
checkedLevel,
|
|
120112
120109
|
onCheckLevel,
|
|
@@ -223922,6 +223919,8 @@ const PIXELATED_TEXTURE_PARAMETERS = {
|
|
|
223922
223919
|
[GL$1.TEXTURE_WRAP_T]: GL$1.CLAMP_TO_EDGE
|
|
223923
223920
|
};
|
|
223924
223921
|
const GLSL_COLORMAPS = [
|
|
223922
|
+
// NOTE: the ordering of these is important,
|
|
223923
|
+
// as the shader code in bitmask-layer-beta-shaders hardcodes their indices.
|
|
223925
223924
|
"plasma",
|
|
223926
223925
|
"viridis",
|
|
223927
223926
|
"jet",
|
|
@@ -225693,22 +225692,22 @@ async function getDecoder(fileDirectory) {
|
|
|
225693
225692
|
const Decoder = await importFn();
|
|
225694
225693
|
return new Decoder(fileDirectory);
|
|
225695
225694
|
}
|
|
225696
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
225697
|
-
addDecoder(5, () => import("./lzw-
|
|
225695
|
+
addDecoder([void 0, 1], () => import("./raw-BlnZnXcF.js").then((m2) => m2.default));
|
|
225696
|
+
addDecoder(5, () => import("./lzw-DCIOwD8K.js").then((m2) => m2.default));
|
|
225698
225697
|
addDecoder(6, () => {
|
|
225699
225698
|
throw new Error("old style JPEG compression is not supported.");
|
|
225700
225699
|
});
|
|
225701
|
-
addDecoder(7, () => import("./jpeg-
|
|
225702
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
225703
|
-
addDecoder(32773, () => import("./packbits-
|
|
225700
|
+
addDecoder(7, () => import("./jpeg-CUVKS95X.js").then((m2) => m2.default));
|
|
225701
|
+
addDecoder([8, 32946], () => import("./deflate-GVZsRApc.js").then((m2) => m2.default));
|
|
225702
|
+
addDecoder(32773, () => import("./packbits-Dt4Zs_GK.js").then((m2) => m2.default));
|
|
225704
225703
|
addDecoder(
|
|
225705
225704
|
34887,
|
|
225706
|
-
() => import("./lerc-
|
|
225705
|
+
() => import("./lerc-B5W05Jw1.js").then(async (m2) => {
|
|
225707
225706
|
await m2.zstd.init();
|
|
225708
225707
|
return m2;
|
|
225709
225708
|
}).then((m2) => m2.default)
|
|
225710
225709
|
);
|
|
225711
|
-
addDecoder(50001, () => import("./webimage-
|
|
225710
|
+
addDecoder(50001, () => import("./webimage-GXOvK9UD.js").then((m2) => m2.default));
|
|
225712
225711
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
225713
225712
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
225714
225713
|
}
|
|
@@ -238802,7 +238801,7 @@ uniform float channelOpacities[7];
|
|
|
238802
238801
|
uniform bool channelIsStaticColorMode[7]; // TODO: should this be a single float?
|
|
238803
238802
|
uniform bool channelIsSetColorMode[7]; // TODO: should this be a single float?
|
|
238804
238803
|
|
|
238805
|
-
|
|
238804
|
+
uniform int channelColormapFuncIndices[7];
|
|
238806
238805
|
uniform float channelColormapRangeStarts[7];
|
|
238807
238806
|
uniform float channelColormapRangeEnds[7];
|
|
238808
238807
|
|
|
@@ -238868,7 +238867,30 @@ vec3 sampleAndGetData(sampler2D dataTex, vec2 coord, bool isFilled, float stroke
|
|
|
238868
238867
|
return vec3(clampedSampledData * float(isOn), sampledData, float(isEdge));
|
|
238869
238868
|
}
|
|
238870
238869
|
|
|
238871
|
-
|
|
238870
|
+
vec3 colormapFunc(float clampedScaledExpressionValue, int colormapIndex) {
|
|
238871
|
+
// Map indices of GLSL_COLORMAPS array to their function calls.
|
|
238872
|
+
// GLSL_COLORMAPS is defined in ./constants.js and needs to stay manually synced.
|
|
238873
|
+
// 0: 'plasma',
|
|
238874
|
+
// 1: 'viridis',
|
|
238875
|
+
// 2: 'jet',
|
|
238876
|
+
// 3: 'greys',
|
|
238877
|
+
|
|
238878
|
+
if (colormapIndex <= 0) {
|
|
238879
|
+
// This should also match -1, to account for a failed Array.indexOf lookup.
|
|
238880
|
+
return plasma(clampedScaledExpressionValue).rgb;
|
|
238881
|
+
}
|
|
238882
|
+
if (colormapIndex == 1) {
|
|
238883
|
+
return viridis(clampedScaledExpressionValue).rgb;
|
|
238884
|
+
}
|
|
238885
|
+
if (colormapIndex == 2) {
|
|
238886
|
+
return jet(clampedScaledExpressionValue).rgb;
|
|
238887
|
+
}
|
|
238888
|
+
if (colormapIndex == 3) {
|
|
238889
|
+
return greys(clampedScaledExpressionValue).rgb;
|
|
238890
|
+
}
|
|
238891
|
+
}
|
|
238892
|
+
|
|
238893
|
+
vec4 dataToColor(vec3 sampledDataAndIsEdge, bool isStaticColorMode, vec3 channelColor, float channelOpacity, float valueOffset, int colormapFuncIndex, float rangeStart, float rangeEnd, bool isSetColorMode, float setColorOffset) {
|
|
238872
238894
|
float clampedSampledDataAndIsOn = sampledDataAndIsEdge.x;
|
|
238873
238895
|
float sampledData = sampledDataAndIsEdge.y;
|
|
238874
238896
|
float isEdge = sampledDataAndIsEdge.z;
|
|
@@ -238912,7 +238934,7 @@ vec4 dataToColor(vec3 sampledDataAndIsEdge, bool isStaticColorMode, vec3 channel
|
|
|
238912
238934
|
}
|
|
238913
238935
|
|
|
238914
238936
|
|
|
238915
|
-
vec4 sampledColor = (1. - (float(isStaticColorMode) + float(isSetColorMode))) * vec4(
|
|
238937
|
+
vec4 sampledColor = (1. - (float(isStaticColorMode) + float(isSetColorMode))) * vec4(colormapFunc(clamp(scaledExpressionValue, 0.0, 1.0), colormapFuncIndex).rgb, channelOpacity) + float(isStaticColorMode) * vec4(channelColor.rgb, channelOpacity) + float(isSetColorMode) * vec4(setColor, channelOpacity);
|
|
238916
238938
|
// Only return a color if the data is non-zero.
|
|
238917
238939
|
|
|
238918
238940
|
return clampedSampledDataAndIsOn * isEdge * sampledColor;
|
|
@@ -238928,15 +238950,15 @@ void main() {
|
|
|
238928
238950
|
vec3 dat4 = sampleAndGetData(channel4, vTexCoord, channelsFilled[4], channelStrokeWidths[4], channelsVisible[4]);
|
|
238929
238951
|
vec3 dat5 = sampleAndGetData(channel5, vTexCoord, channelsFilled[5], channelStrokeWidths[5], channelsVisible[5]);
|
|
238930
238952
|
vec3 dat6 = sampleAndGetData(channel6, vTexCoord, channelsFilled[6], channelStrokeWidths[6], channelsVisible[6]);
|
|
238931
|
-
|
|
238932
|
-
vec4 val0 = dataToColor(dat0, channelIsStaticColorMode[0], color0, channelOpacities[0], valueTexOffsets[0], channelColormapRangeStarts[0], channelColormapRangeEnds[0], channelIsSetColorMode[0], colorTexOffsets[0]);
|
|
238933
|
-
vec4 val1 = dataToColor(dat1, channelIsStaticColorMode[1], color1, channelOpacities[1], valueTexOffsets[1], channelColormapRangeStarts[1], channelColormapRangeEnds[1], channelIsSetColorMode[1], colorTexOffsets[1]);
|
|
238934
|
-
vec4 val2 = dataToColor(dat2, channelIsStaticColorMode[2], color2, channelOpacities[2], valueTexOffsets[2], channelColormapRangeStarts[2], channelColormapRangeEnds[2], channelIsSetColorMode[2], colorTexOffsets[2]);
|
|
238935
|
-
vec4 val3 = dataToColor(dat3, channelIsStaticColorMode[3], color3, channelOpacities[3], valueTexOffsets[3], channelColormapRangeStarts[3], channelColormapRangeEnds[3], channelIsSetColorMode[3], colorTexOffsets[3]);
|
|
238936
|
-
vec4 val4 = dataToColor(dat4, channelIsStaticColorMode[4], color4, channelOpacities[4], valueTexOffsets[4], channelColormapRangeStarts[4], channelColormapRangeEnds[4], channelIsSetColorMode[4], colorTexOffsets[4]);
|
|
238937
|
-
vec4 val5 = dataToColor(dat5, channelIsStaticColorMode[5], color5, channelOpacities[5], valueTexOffsets[5], channelColormapRangeStarts[5], channelColormapRangeEnds[5], channelIsSetColorMode[5], colorTexOffsets[5]);
|
|
238938
|
-
vec4 val6 = dataToColor(dat6, channelIsStaticColorMode[6], color6, channelOpacities[6], valueTexOffsets[6], channelColormapRangeStarts[6], channelColormapRangeEnds[6], channelIsSetColorMode[6], colorTexOffsets[6]);
|
|
238939
|
-
|
|
238953
|
+
|
|
238954
|
+
vec4 val0 = dataToColor(dat0, channelIsStaticColorMode[0], color0, channelOpacities[0], valueTexOffsets[0], channelColormapFuncIndices[0], channelColormapRangeStarts[0], channelColormapRangeEnds[0], channelIsSetColorMode[0], colorTexOffsets[0]);
|
|
238955
|
+
vec4 val1 = dataToColor(dat1, channelIsStaticColorMode[1], color1, channelOpacities[1], valueTexOffsets[1], channelColormapFuncIndices[1], channelColormapRangeStarts[1], channelColormapRangeEnds[1], channelIsSetColorMode[1], colorTexOffsets[1]);
|
|
238956
|
+
vec4 val2 = dataToColor(dat2, channelIsStaticColorMode[2], color2, channelOpacities[2], valueTexOffsets[2], channelColormapFuncIndices[2], channelColormapRangeStarts[2], channelColormapRangeEnds[2], channelIsSetColorMode[2], colorTexOffsets[2]);
|
|
238957
|
+
vec4 val3 = dataToColor(dat3, channelIsStaticColorMode[3], color3, channelOpacities[3], valueTexOffsets[3], channelColormapFuncIndices[3], channelColormapRangeStarts[3], channelColormapRangeEnds[3], channelIsSetColorMode[3], colorTexOffsets[3]);
|
|
238958
|
+
vec4 val4 = dataToColor(dat4, channelIsStaticColorMode[4], color4, channelOpacities[4], valueTexOffsets[4], channelColormapFuncIndices[4], channelColormapRangeStarts[4], channelColormapRangeEnds[4], channelIsSetColorMode[4], colorTexOffsets[4]);
|
|
238959
|
+
vec4 val5 = dataToColor(dat5, channelIsStaticColorMode[5], color5, channelOpacities[5], valueTexOffsets[5], channelColormapFuncIndices[5], channelColormapRangeStarts[5], channelColormapRangeEnds[5], channelIsSetColorMode[5], colorTexOffsets[5]);
|
|
238960
|
+
vec4 val6 = dataToColor(dat6, channelIsStaticColorMode[6], color6, channelOpacities[6], valueTexOffsets[6], channelColormapFuncIndices[6], channelColormapRangeStarts[6], channelColormapRangeEnds[6], channelIsSetColorMode[6], colorTexOffsets[6]);
|
|
238961
|
+
|
|
238940
238962
|
// If all of the channels are "empty", then discard this pixel so that it is not considered during picking.
|
|
238941
238963
|
float emptyDat = 0.;
|
|
238942
238964
|
if(dat0.x == emptyDat && dat1.x == emptyDat && dat2.x == emptyDat && dat3.x == emptyDat && dat4.x == emptyDat && dat5.x == emptyDat && dat6.x == emptyDat) {
|
|
@@ -239091,14 +239113,10 @@ const defaultProps$1 = {
|
|
|
239091
239113
|
class BitmaskLayer2 extends XRLayer {
|
|
239092
239114
|
// eslint-disable-next-line class-methods-use-this
|
|
239093
239115
|
getShaders() {
|
|
239094
|
-
const { colormap } = this.props;
|
|
239095
239116
|
return {
|
|
239096
239117
|
fs,
|
|
239097
239118
|
vs,
|
|
239098
|
-
modules: [project32, picking]
|
|
239099
|
-
defines: {
|
|
239100
|
-
[COLORMAP_SHADER_PLACEHOLDER]: GLSL_COLORMAPS.includes(colormap) ? colormap : GLSL_COLORMAP_DEFAULT
|
|
239101
|
-
}
|
|
239119
|
+
modules: [project32, picking]
|
|
239102
239120
|
};
|
|
239103
239121
|
}
|
|
239104
239122
|
/**
|
|
@@ -239157,8 +239175,6 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
239157
239175
|
channelOpacities,
|
|
239158
239176
|
channelColors,
|
|
239159
239177
|
channelsVisible,
|
|
239160
|
-
// TODO: use `channelFeatureValueColormaps` in shader,
|
|
239161
|
-
// figure out how to call multiple GLSL colormap functions
|
|
239162
239178
|
channelFeatureValueColormaps,
|
|
239163
239179
|
channelFeatureValueColormapRanges,
|
|
239164
239180
|
channelIsStaticColorMode,
|
|
@@ -239219,6 +239235,12 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
239219
239235
|
// There are six texture entries on the shaders
|
|
239220
239236
|
MAX_CHANNELS - channelStrokeWidths.length
|
|
239221
239237
|
),
|
|
239238
|
+
channelColormapFuncIndices: padWithDefault(
|
|
239239
|
+
channelFeatureValueColormaps.map((d) => GLSL_COLORMAPS.indexOf(d)),
|
|
239240
|
+
0,
|
|
239241
|
+
// There are six texture entries on the shaders
|
|
239242
|
+
MAX_CHANNELS - channelFeatureValueColormaps.length
|
|
239243
|
+
),
|
|
239222
239244
|
channelColormapRangeStarts: padWithDefault(
|
|
239223
239245
|
channelFeatureValueColormapRanges.map((r3) => r3?.[0] || 0),
|
|
239224
239246
|
0,
|
|
@@ -247488,7 +247510,7 @@ function combineMissings(missings, featureAggregationStrategy) {
|
|
|
247488
247510
|
return null;
|
|
247489
247511
|
}
|
|
247490
247512
|
function Legend(props) {
|
|
247491
|
-
const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, featureAggregationStrategy, extent: extent2, missing, width: width2 = 100, height: height2 = 36, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
|
|
247513
|
+
const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, featureAggregationStrategy, extent: extent2, missing, width: width2 = 100, height: height2 = 36, maxHeight: maxHeight2 = null, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
|
|
247492
247514
|
const svgRef = useRef();
|
|
247493
247515
|
const { classes: classes2 } = useStyles$p();
|
|
247494
247516
|
const isDarkTheme = theme === "dark";
|
|
@@ -247500,6 +247522,8 @@ function Legend(props) {
|
|
|
247500
247522
|
const visible = visibleProp && (!considerSelections || obsColorEncoding === "geneSelection" && featureSelection && Array.isArray(featureSelection) && featureSelection.length >= 1 || isSetColor && obsSetSelection?.length > 0 && obsSetColor?.length > 0 || isStaticColor);
|
|
247501
247523
|
const levelZeroNames = useMemo$1(() => Array.from(new Set(obsSetSelection?.map((setPath) => setPath[0]) || [])), [obsSetSelection]);
|
|
247502
247524
|
const dynamicHeight = isSetColor && obsSetSelection ? levelZeroNames.length * titleHeight + obsSetSelection?.length * (rectHeight + rectMarginY) : height2 + (!pointsVisible && contoursVisible ? 25 : 0);
|
|
247525
|
+
const availHeight = maxHeight2 !== null ? Math.max(0, maxHeight2 - 4) : Infinity;
|
|
247526
|
+
const needsScroll = Number.isFinite(availHeight) && dynamicHeight > availHeight + 1;
|
|
247503
247527
|
useEffect(() => {
|
|
247504
247528
|
const domElement = svgRef.current;
|
|
247505
247529
|
const foregroundColor = highContrast ? "black" : isDarkTheme ? "white" : "black";
|
|
@@ -247631,7 +247655,9 @@ function Legend(props) {
|
|
|
247631
247655
|
[classes2.legendHighContrast]: highContrast,
|
|
247632
247656
|
[classes2.legendLowContrast]: !highContrast,
|
|
247633
247657
|
[classes2.legendInvisible]: !visible
|
|
247634
|
-
}),
|
|
247658
|
+
}), style: {
|
|
247659
|
+
...needsScroll ? { maxHeight: `${Math.floor(availHeight)}px`, overflowY: "auto" } : { maxHeight: void 0, overflowY: "visible" }
|
|
247660
|
+
}, children: jsxRuntimeExports.jsx("svg", { ref: svgRef, style: {
|
|
247635
247661
|
width: `${width2}px`,
|
|
247636
247662
|
height: `${dynamicHeight}px`
|
|
247637
247663
|
} }) });
|
|
@@ -247646,6 +247672,7 @@ const useStyles$o = makeStyles()(() => ({
|
|
|
247646
247672
|
function MultiLegend(props) {
|
|
247647
247673
|
const {
|
|
247648
247674
|
theme,
|
|
247675
|
+
maxHeight: maxHeight2,
|
|
247649
247676
|
// Segmentations
|
|
247650
247677
|
segmentationLayerScopes,
|
|
247651
247678
|
segmentationLayerCoordination,
|
|
@@ -247671,6 +247698,7 @@ function MultiLegend(props) {
|
|
|
247671
247698
|
const isStaticColor = obsColorEncoding === "spatialLayerColor";
|
|
247672
247699
|
const height2 = isStaticColor ? 20 : 36;
|
|
247673
247700
|
return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, {
|
|
247701
|
+
maxHeight: maxHeight2,
|
|
247674
247702
|
positionRelative: true,
|
|
247675
247703
|
highContrast: true,
|
|
247676
247704
|
showObsLabel: true,
|
|
@@ -247696,7 +247724,7 @@ function MultiLegend(props) {
|
|
|
247696
247724
|
const isStaticColor = obsColorEncoding === "spatialLayerColor";
|
|
247697
247725
|
const height2 = isStaticColor ? 20 : 36;
|
|
247698
247726
|
const featureLabelsMap = spotMultiFeatureLabels?.[layerScope]?.featureLabelsMap;
|
|
247699
|
-
return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, { positionRelative: true, highContrast: true, showObsLabel: true, visible: spatialLayerVisible, theme, obsType, featureType, featureValueType, obsColorEncoding, spatialLayerColor, featureSelection, featureAggregationStrategy, featureLabelsMap, featureValueColormap, featureValueColormapRange, extent: firstExpressionExtent, height: height2, obsSetSelection, obsSetColor }, layerScope) : null;
|
|
247727
|
+
return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, { maxHeight: maxHeight2, positionRelative: true, highContrast: true, showObsLabel: true, visible: spatialLayerVisible, theme, obsType, featureType, featureValueType, obsColorEncoding, spatialLayerColor, featureSelection, featureAggregationStrategy, featureLabelsMap, featureValueColormap, featureValueColormapRange, extent: firstExpressionExtent, height: height2, obsSetSelection, obsSetColor }, layerScope) : null;
|
|
247700
247728
|
}) : null, segmentationLayerScopes ? reversedSegmentationLayerScopes.flatMap((layerScope) => {
|
|
247701
247729
|
const layerCoordination = segmentationLayerCoordination[0][layerScope];
|
|
247702
247730
|
const channelScopes = segmentationChannelScopesByLayer[layerScope];
|
|
@@ -247710,6 +247738,7 @@ function MultiLegend(props) {
|
|
|
247710
247738
|
const isStaticColor = obsColorEncoding === "spatialChannelColor";
|
|
247711
247739
|
const height2 = isStaticColor ? 20 : 36;
|
|
247712
247740
|
return spatialLayerVisible && spatialChannelVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, {
|
|
247741
|
+
maxHeight: maxHeight2,
|
|
247713
247742
|
positionRelative: true,
|
|
247714
247743
|
highContrast: true,
|
|
247715
247744
|
showObsLabel: true,
|
|
@@ -247786,7 +247815,7 @@ const DEFAULT_FEATURE_AGGREGATION_STRATEGY$1 = "first";
|
|
|
247786
247815
|
function EmbeddingScatterplotSubscriber(props) {
|
|
247787
247816
|
const {
|
|
247788
247817
|
uuid: uuid2,
|
|
247789
|
-
coordinationScopes,
|
|
247818
|
+
coordinationScopes: coordinationScopesRaw,
|
|
247790
247819
|
closeButtonVisible,
|
|
247791
247820
|
downloadButtonVisible,
|
|
247792
247821
|
removeGridComponent,
|
|
@@ -247800,6 +247829,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
247800
247829
|
sampleSetSelection: sampleSetSelectionFromProps
|
|
247801
247830
|
} = props;
|
|
247802
247831
|
const loaders = useLoaders();
|
|
247832
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
247803
247833
|
const setComponentHover = useSetComponentHover();
|
|
247804
247834
|
const setComponentViewInfo = useSetComponentViewInfo(uuid2);
|
|
247805
247835
|
const [{ dataset, obsType, featureType, featureValueType, sampleType, embeddingZoom: zoom2, embeddingTargetX: targetX2, embeddingTargetY: targetY2, embeddingTargetZ: targetZ, embeddingType: mapping, obsFilter: cellFilter, obsHighlight: cellHighlight, featureSelection: geneSelection, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, embeddingObsSetPolygonsVisible: cellSetPolygonsVisible, embeddingObsSetLabelsVisible: cellSetLabelsVisible, embeddingObsSetLabelSize: cellSetLabelSize, embeddingObsRadius: cellRadiusFixed, embeddingObsRadiusMode: cellRadiusMode, embeddingObsOpacity: cellOpacityFixed, embeddingObsOpacityMode: cellOpacityMode, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, tooltipsVisible, sampleSetSelection: sampleSetSelectionFromCoordination, sampleSetColor, embeddingPointsVisible, embeddingContoursVisible, embeddingContoursFilled, embeddingContourPercentiles: contourPercentiles, contourColorEncoding, contourColor, featureAggregationStrategy }, { setEmbeddingZoom: setZoom, setEmbeddingTargetX: setTargetX, setEmbeddingTargetY: setTargetY, setEmbeddingTargetZ: setTargetZ, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setEmbeddingObsSetPolygonsVisible: setCellSetPolygonsVisible, setEmbeddingObsSetLabelsVisible: setCellSetLabelsVisible, setEmbeddingObsSetLabelSize: setCellSetLabelSize, setEmbeddingObsRadius: setCellRadiusFixed, setEmbeddingObsRadiusMode: setCellRadiusMode, setEmbeddingObsOpacity: setCellOpacityFixed, setEmbeddingObsOpacityMode: setCellOpacityMode, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setTooltipsVisible, setEmbeddingPointsVisible, setEmbeddingContoursVisible, setEmbeddingContoursFilled, setEmbeddingContourPercentiles: setContourPercentiles, setContourColorEncoding, setFeatureAggregationStrategy }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SCATTERPLOT], coordinationScopes);
|
|
@@ -248143,7 +248173,8 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
248143
248173
|
})] });
|
|
248144
248174
|
}
|
|
248145
248175
|
function DualEmbeddingScatterplotSubscriber(props) {
|
|
248146
|
-
const { uuid: uuid2, coordinationScopes } = props;
|
|
248176
|
+
const { uuid: uuid2, coordinationScopes: coordinationScopesRaw } = props;
|
|
248177
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
248147
248178
|
const [{ embeddingType, sampleSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DUAL_SCATTERPLOT], coordinationScopes);
|
|
248148
248179
|
const isCaseCtrl = Array.isArray(sampleSetSelection) && sampleSetSelection.length === 2;
|
|
248149
248180
|
const caseSampleSetSelection = useMemo$1(() => sampleSetSelection?.[0] ? [sampleSetSelection[0]] : null, [sampleSetSelection]);
|
|
@@ -248192,7 +248223,7 @@ function GatingScatterplotOptions(props) {
|
|
|
248192
248223
|
function GatingSubscriber(props) {
|
|
248193
248224
|
const {
|
|
248194
248225
|
uuid: uuid2,
|
|
248195
|
-
coordinationScopes,
|
|
248226
|
+
coordinationScopes: coordinationScopesRaw,
|
|
248196
248227
|
closeButtonVisible,
|
|
248197
248228
|
downloadButtonVisible,
|
|
248198
248229
|
removeGridComponent,
|
|
@@ -248204,6 +248235,7 @@ function GatingSubscriber(props) {
|
|
|
248204
248235
|
helpText = ViewHelpMapping.GATING
|
|
248205
248236
|
} = props;
|
|
248206
248237
|
const loaders = useLoaders();
|
|
248238
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
248207
248239
|
const setComponentHover = useSetComponentHover();
|
|
248208
248240
|
const setComponentViewInfo = useSetComponentViewInfo(uuid2);
|
|
248209
248241
|
const [{ dataset, obsType, featureType, featureValueType, embeddingZoom: zoom2, embeddingTargetX: targetX2, embeddingTargetY: targetY2, embeddingTargetZ: targetZ, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, embeddingObsSetPolygonsVisible: cellSetPolygonsVisible, embeddingObsSetLabelsVisible: cellSetLabelsVisible, embeddingObsSetLabelSize: cellSetLabelSize, embeddingObsRadius: cellRadiusFixed, embeddingObsRadiusMode: cellRadiusMode, embeddingObsOpacity: cellOpacityFixed, embeddingObsOpacityMode: cellOpacityMode, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, featureSelection: gatingFeatureSelectionColor, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY }, { setEmbeddingZoom: setZoom, setEmbeddingTargetX: setTargetX, setEmbeddingTargetY: setTargetY, setEmbeddingTargetZ: setTargetZ, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setEmbeddingObsSetPolygonsVisible: setCellSetPolygonsVisible, setEmbeddingObsSetLabelsVisible: setCellSetLabelsVisible, setEmbeddingObsSetLabelSize: setCellSetLabelSize, setEmbeddingObsRadius: setCellRadiusFixed, setEmbeddingObsRadiusMode: setCellRadiusMode, setEmbeddingObsOpacity: setCellOpacityFixed, setEmbeddingObsOpacityMode: setCellOpacityMode, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GATING], coordinationScopes);
|
|
@@ -269210,7 +269242,7 @@ class ErrorBoundary2 extends React__default.Component {
|
|
|
269210
269242
|
}
|
|
269211
269243
|
}
|
|
269212
269244
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
269213
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
269245
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-UBpc7GeM.js");
|
|
269214
269246
|
return { default: SpatialWrapper2 };
|
|
269215
269247
|
});
|
|
269216
269248
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
@@ -269818,6 +269850,7 @@ function SpatialSubscriber(props) {
|
|
|
269818
269850
|
{
|
|
269819
269851
|
// Fix to dark theme due to black background of spatial plot.
|
|
269820
269852
|
theme: "dark",
|
|
269853
|
+
maxHeight: height2,
|
|
269821
269854
|
// Segmentations
|
|
269822
269855
|
segmentationLayerScopes,
|
|
269823
269856
|
segmentationLayerCoordination,
|
|
@@ -270700,8 +270733,9 @@ function HeatmapOptions(props) {
|
|
|
270700
270733
|
}, 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 }) })] })] });
|
|
270701
270734
|
}
|
|
270702
270735
|
function HeatmapSubscriber(props) {
|
|
270703
|
-
const { uuid: uuid2, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap", helpText = ViewHelpMapping.HEATMAP } = props;
|
|
270736
|
+
const { uuid: uuid2, coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap", helpText = ViewHelpMapping.HEATMAP } = props;
|
|
270704
270737
|
const loaders = useLoaders();
|
|
270738
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
270705
270739
|
const setComponentHover = useSetComponentHover();
|
|
270706
270740
|
const setComponentViewInfo = useSetComponentViewInfo(uuid2);
|
|
270707
270741
|
const [{ dataset, obsType, featureType, featureValueType, heatmapZoomX: zoomX, heatmapTargetX: targetX2, heatmapTargetY: targetY2, featureSelection: geneSelection, obsHighlight: cellHighlight, featureHighlight: geneHighlight, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, tooltipsVisible }, { setHeatmapZoomX: setZoomX, setHeatmapZoomY: setZoomY, setHeatmapTargetX: setTargetX, setHeatmapTargetY: setTargetY, setObsHighlight: setCellHighlight, setFeatureSelection: setGeneSelection, setObsColorEncoding: setCellColorEncoding, setFeatureHighlight: setGeneHighlight, setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor, setFeatureValueColormapRange: setGeneExpressionColormapRange, setFeatureValueColormap: setGeneExpressionColormap, setTooltipsVisible }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.HEATMAP], coordinationScopes);
|
|
@@ -277513,7 +277547,7 @@ function FeatureList(props) {
|
|
|
277513
277547
|
[primaryColumnName]
|
|
277514
277548
|
];
|
|
277515
277549
|
}, [showFeatureTable, primaryColumnName, hasFeatureLabels]);
|
|
277516
|
-
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("input", { className: classes2.searchBar, type: "text", placeholder: "Search", value: searchTerm, onChange: handleChange }), jsxRuntimeExports.jsx(SelectableTable, { columns: columns2, columnLabels, data: data2, hasColorEncoding, idKey: "key", valueKey: "value", onChange, allowMultiple: enableMultiSelect, allowUncheck: enableMultiSelect, showTableHead: columnLabels.length > 1, width: width2, height: height2 - 34 })] });
|
|
277550
|
+
return width2 > 0 && height2 > 0 ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("input", { className: classes2.searchBar, type: "text", placeholder: "Search", value: searchTerm, onChange: handleChange }), jsxRuntimeExports.jsx(SelectableTable, { columns: columns2, columnLabels, data: data2, hasColorEncoding, idKey: "key", valueKey: "value", onChange, allowMultiple: enableMultiSelect, allowUncheck: enableMultiSelect, showTableHead: columnLabels.length > 1, width: width2, height: height2 - 34 })] }) : null;
|
|
277517
277551
|
}
|
|
277518
277552
|
function FeatureListOptions(props) {
|
|
277519
277553
|
const { children: children3, featureListSort, setFeatureListSort, featureListSortKey, setFeatureListSortKey, showFeatureTable, setShowFeatureTable, hasFeatureLabels, primaryColumnName } = props;
|
|
@@ -277549,8 +277583,9 @@ const useStyles$k = makeStyles()((theme) => ({
|
|
|
277549
277583
|
}
|
|
277550
277584
|
}));
|
|
277551
277585
|
function FeatureListSubscriber(props) {
|
|
277552
|
-
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST } = props;
|
|
277586
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST } = props;
|
|
277553
277587
|
const loaders = useLoaders();
|
|
277588
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
277554
277589
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
277555
277590
|
const { classes: classes2 } = useStyles$k();
|
|
277556
277591
|
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);
|
|
@@ -278759,19 +278794,20 @@ const useStyles$f = makeStyles()(() => ({
|
|
|
278759
278794
|
}
|
|
278760
278795
|
}));
|
|
278761
278796
|
function SpotLayerEllipsisMenu(props) {
|
|
278762
|
-
const { strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
|
|
278797
|
+
const { strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormap, setFeatureValueColormap, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
|
|
278763
278798
|
const [open2, setOpen] = useState(false);
|
|
278764
278799
|
const { classes: classes2 } = useStyles$f();
|
|
278765
278800
|
const { classes: selectClasses2 } = useSelectStyles();
|
|
278766
278801
|
const { classes: menuClasses } = useEllipsisMenuStyles();
|
|
278767
278802
|
const filledId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278768
278803
|
const strokeWidthId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278804
|
+
const colorEncodingId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278769
278805
|
const quantitativeColormapId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278770
278806
|
const colormapRangeId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278771
278807
|
const tooltipsVisibleId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278772
278808
|
const crosshairsVisibleId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278773
278809
|
const legendVisibleId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278774
|
-
return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, {}), buttonClassName: menuClasses.imageLayerMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, withPaper: true, "aria-label": "Open spot layer options menu", children: [jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: filledId, children: "Filled: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: filled, onChange: (e3, v) => setFilled(v), slotProps: { input: { id: filledId, "aria-label": "Toggle between filled and stroked spots" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: strokeWidthId, children: "Stroke Width:" }), jsxRuntimeExports.jsx(Slider, { disabled: filled, value: strokeWidth, min: 0.01, max: 5, step: 0.01, onChange: (e3, v) => setStrokeWidth(v), className: menuClasses.menuItemSlider, orientation: "horizontal", id: strokeWidthId, "aria-label": "Stroke width slider" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor:
|
|
278810
|
+
return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, {}), buttonClassName: menuClasses.imageLayerMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, withPaper: true, "aria-label": "Open spot layer options menu", children: [jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: filledId, children: "Filled: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: filled, onChange: (e3, v) => setFilled(v), slotProps: { input: { id: filledId, "aria-label": "Toggle between filled and stroked spots" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: strokeWidthId, children: "Stroke Width:" }), jsxRuntimeExports.jsx(Slider, { disabled: filled, value: strokeWidth, min: 0.01, max: 5, step: 0.01, onChange: (e3, v) => setStrokeWidth(v), className: menuClasses.menuItemSlider, orientation: "horizontal", id: strokeWidthId, "aria-label": "Stroke width slider" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: colorEncodingId, children: "Color Encoding: " }), jsxRuntimeExports.jsxs(NativeSelect, { onChange: (e3) => setObsColorEncoding(e3.target.value), value: obsColorEncoding, inputProps: { id: colorEncodingId, "aria-label": "Color encoding selector" }, classes: { root: selectClasses2.selectRoot }, children: [jsxRuntimeExports.jsx("option", { value: "spatialLayerColor", children: "Static Color" }), jsxRuntimeExports.jsx("option", { value: "geneSelection", children: "Feature Value" }), jsxRuntimeExports.jsx("option", { value: "cellSetSelection", children: "Set Selection" })] })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: quantitativeColormapId, children: "Colormap: " }), jsxRuntimeExports.jsx(NativeSelect, { onChange: (e3) => setFeatureValueColormap(e3.target.value), value: featureValueColormap, inputProps: { id: quantitativeColormapId, "aria-label": "Colormap selector" }, classes: { root: selectClasses2.selectRoot }, children: GLSL_COLORMAPS.map((cmap) => jsxRuntimeExports.jsx("option", { value: cmap, children: cmap }, cmap)) })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: colormapRangeId, children: "Colormap Range: " }), jsxRuntimeExports.jsx(Slider, { disabled: obsColorEncoding !== "geneSelection", value: featureValueColormapRange, min: 0, max: 1, step: 0.01, onChange: (e3, v) => setFeatureValueColormapRange(v), className: menuClasses.menuItemSlider, orientation: "horizontal", id: colormapRangeId, getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: tooltipsVisibleId, children: "Tooltips Visible: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: tooltipsVisible, onChange: (e3, v) => setTooltipsVisible(v), slotProps: { input: { id: tooltipsVisibleId, "aria-label": "Toggle tooltip visibility" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: crosshairsVisibleId, children: "Tooltip Crosshairs Visible: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: tooltipCrosshairsVisible, onChange: (e3, v) => setTooltipCrosshairsVisible(v), slotProps: { input: { id: crosshairsVisibleId, "aria-label": "Toggle tooltip crosshair visibility" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: legendVisibleId, children: "Legend Visible: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: legendVisible, onChange: (e3, v) => setLegendVisible(v), slotProps: { input: { id: legendVisibleId, "aria-label": "Toggle legend visibility" } } })] })] });
|
|
278775
278811
|
}
|
|
278776
278812
|
function SpotLayerController(props) {
|
|
278777
278813
|
const { theme, layerScope, layerCoordination, setLayerCoordination, palette = null } = props;
|
|
@@ -278790,7 +278826,7 @@ function SpotLayerController(props) {
|
|
|
278790
278826
|
setVisible(nextVisible);
|
|
278791
278827
|
}, [visible, setVisible]);
|
|
278792
278828
|
const handleOpacityChange = useCallback((e3, v) => setOpacity2(v), [setOpacity2]);
|
|
278793
|
-
return jsxRuntimeExports.jsx(Grid$1, { className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(Paper, { elevation: 4, className: lcClasses.layerControllerRoot, children: jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle spot layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor: setColor2, palette, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SpotLayerEllipsisMenu, { filled, setFilled, strokeWidth, setStrokeWidth, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SvgSpots, { className: classes2.layerTypeSpotIcon }) })] }) }) });
|
|
278829
|
+
return jsxRuntimeExports.jsx(Grid$1, { className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(Paper, { elevation: 4, className: lcClasses.layerControllerRoot, children: jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle spot layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor: setColor2, palette, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SpotLayerEllipsisMenu, { filled, setFilled, strokeWidth, setStrokeWidth, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormap, setFeatureValueColormap, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SvgSpots, { className: classes2.layerTypeSpotIcon }) })] }) }) });
|
|
278794
278830
|
}
|
|
278795
278831
|
const useStyles$e = makeStyles()(() => ({
|
|
278796
278832
|
layerTypePointIcon: {
|
|
@@ -278844,52 +278880,23 @@ const useStyles$d = makeStyles()(() => ({
|
|
|
278844
278880
|
}
|
|
278845
278881
|
}));
|
|
278846
278882
|
function SegmentationChannelEllipsisMenu(props) {
|
|
278847
|
-
const { obsType, featureType, featureValueType, strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
|
|
278883
|
+
const { obsType, featureType, featureValueType, strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormap, setFeatureValueColormap, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
|
|
278848
278884
|
const [open2, setOpen] = useState(false);
|
|
278849
278885
|
const { classes: classes2 } = useStyles$d();
|
|
278850
278886
|
const { classes: selectClasses2 } = useSelectStyles();
|
|
278851
278887
|
const { classes: menuClasses } = useEllipsisMenuStyles();
|
|
278852
278888
|
const filledId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278853
278889
|
const strokeWidthId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278890
|
+
const colorEncodingId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278854
278891
|
const quantitativeColormapId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278855
278892
|
const colormapRangeId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278856
278893
|
const tooltipsVisibleId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278857
278894
|
const crosshairsVisibleId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278858
278895
|
const legendVisibleId = $bdb11010cef70236$export$f680877a34711e37();
|
|
278859
|
-
return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, {}), buttonClassName: menuClasses.imageLayerMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, withPaper: true, "aria-label": "Open segmentation channel options menu", children: [jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: filledId, children: "Filled: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: filled, onChange: (e3, v) => setFilled(v), slotProps: { input: { id: filledId, "aria-label": "Toggle between filled and stroked segmentations" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: strokeWidthId, children: "Stroke Width:" }), jsxRuntimeExports.jsx(Slider, { disabled: filled, value: strokeWidth, min: 0.01, max: 5, step: 0.01, onChange: (e3, v) => setStrokeWidth(v), className: menuClasses.menuItemSlider, orientation: "horizontal", id: strokeWidthId, "aria-label": "Stroke width slider" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor:
|
|
278896
|
+
return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, {}), buttonClassName: menuClasses.imageLayerMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, withPaper: true, "aria-label": "Open segmentation channel options menu", children: [jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: filledId, children: "Filled: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: filled, onChange: (e3, v) => setFilled(v), slotProps: { input: { id: filledId, "aria-label": "Toggle between filled and stroked segmentations" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: strokeWidthId, children: "Stroke Width:" }), jsxRuntimeExports.jsx(Slider, { disabled: filled, value: strokeWidth, min: 0.01, max: 5, step: 0.01, onChange: (e3, v) => setStrokeWidth(v), className: menuClasses.menuItemSlider, orientation: "horizontal", id: strokeWidthId, "aria-label": "Stroke width slider" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: colorEncodingId, children: "Color Encoding: " }), jsxRuntimeExports.jsxs(NativeSelect, { onChange: (e3) => setObsColorEncoding(e3.target.value), value: obsColorEncoding, inputProps: { id: colorEncodingId, "aria-label": "Color encoding selector" }, classes: { root: selectClasses2.selectRoot }, children: [jsxRuntimeExports.jsx("option", { value: "spatialChannelColor", children: "Static Color" }), jsxRuntimeExports.jsx("option", { value: "geneSelection", children: "Feature Value" }), jsxRuntimeExports.jsx("option", { value: "cellSetSelection", children: "Set Selection" })] })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: quantitativeColormapId, children: "Colormap: " }), jsxRuntimeExports.jsx(NativeSelect, { onChange: (e3) => setFeatureValueColormap(e3.target.value), value: featureValueColormap, inputProps: { id: quantitativeColormapId, "aria-label": "Colormap selector" }, classes: { root: selectClasses2.selectRoot }, children: GLSL_COLORMAPS.map((cmap) => jsxRuntimeExports.jsx("option", { value: cmap, children: cmap }, cmap)) })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: colormapRangeId, children: "Colormap Range: " }), jsxRuntimeExports.jsx(Slider, { disabled: obsColorEncoding !== "geneSelection", value: featureValueColormapRange, min: 0, max: 1, step: 0.01, onChange: (e3, v) => setFeatureValueColormapRange(v), className: menuClasses.menuItemSlider, orientation: "horizontal", id: colormapRangeId, getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider" })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: tooltipsVisibleId, children: "Tooltips Visible: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: tooltipsVisible, onChange: (e3, v) => setTooltipsVisible(v), slotProps: { input: { id: tooltipsVisibleId, "aria-label": "Toggle tooltip visibility" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: crosshairsVisibleId, children: "Tooltip Crosshairs Visible: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: tooltipCrosshairsVisible, onChange: (e3, v) => setTooltipCrosshairsVisible(v), slotProps: { input: { id: crosshairsVisibleId, "aria-label": "Toggle tooltip crosshair visibility" } } })] }), jsxRuntimeExports.jsxs(MenuItem, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: legendVisibleId, children: "Legend Visible: " }), jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", className: menuClasses.menuItemCheckbox, checked: legendVisible, onChange: (e3, v) => setLegendVisible(v), slotProps: { input: { id: legendVisibleId, "aria-label": "Toggle legend visibility" } } })] })] });
|
|
278860
278897
|
}
|
|
278861
278898
|
function SegmentationChannelController(props) {
|
|
278862
|
-
const {
|
|
278863
|
-
label: label2,
|
|
278864
|
-
theme,
|
|
278865
|
-
obsType,
|
|
278866
|
-
featureType,
|
|
278867
|
-
featureValueType,
|
|
278868
|
-
opacity: opacity2,
|
|
278869
|
-
setOpacity: setOpacity2,
|
|
278870
|
-
visible,
|
|
278871
|
-
setVisible,
|
|
278872
|
-
color: color2,
|
|
278873
|
-
setColor: setColor2,
|
|
278874
|
-
palette = null,
|
|
278875
|
-
filled,
|
|
278876
|
-
setFilled,
|
|
278877
|
-
strokeWidth,
|
|
278878
|
-
setStrokeWidth,
|
|
278879
|
-
featureSelection,
|
|
278880
|
-
obsColorEncoding,
|
|
278881
|
-
featureValueColormap,
|
|
278882
|
-
featureValueColormapRange,
|
|
278883
|
-
setObsColorEncoding,
|
|
278884
|
-
// setFeatureValueColormap, // TODO
|
|
278885
|
-
setFeatureValueColormapRange,
|
|
278886
|
-
tooltipsVisible,
|
|
278887
|
-
setTooltipsVisible,
|
|
278888
|
-
tooltipCrosshairsVisible,
|
|
278889
|
-
setTooltipCrosshairsVisible,
|
|
278890
|
-
legendVisible,
|
|
278891
|
-
setLegendVisible
|
|
278892
|
-
} = props;
|
|
278899
|
+
const { label: label2, theme, obsType, featureType, featureValueType, opacity: opacity2, setOpacity: setOpacity2, visible, setVisible, color: color2, setColor: setColor2, palette = null, filled, setFilled, strokeWidth, setStrokeWidth, featureSelection, obsColorEncoding, featureValueColormap, featureValueColormapRange, setObsColorEncoding, setFeatureValueColormap, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
|
|
278893
278900
|
const visibleSetting = typeof visible === "boolean" ? visible : true;
|
|
278894
278901
|
const Visibility = useMemo$1(() => visibleSetting ? VisibilityIcon : VisibilityOffIcon, [visibleSetting]);
|
|
278895
278902
|
const isStaticColor = obsColorEncoding === "spatialChannelColor";
|
|
@@ -278902,7 +278909,7 @@ function SegmentationChannelController(props) {
|
|
|
278902
278909
|
setVisible(nextVisible);
|
|
278903
278910
|
}, [visible, setVisible]);
|
|
278904
278911
|
const handleOpacityChange = useCallback((e3, v) => setOpacity2(v), [setOpacity2]);
|
|
278905
|
-
return jsxRuntimeExports.jsx(Grid$1, { className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(Paper, { elevation: 4, className: lcClasses.layerControllerRoot, children: jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle channel visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor: setColor2, palette, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: capitalize$3(label2) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SegmentationChannelEllipsisMenu, { obsType, featureType, featureValueType, strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SvgVector, { className: classes2.layerTypeSegmentationIcon }) })] }) }) });
|
|
278912
|
+
return jsxRuntimeExports.jsx(Grid$1, { className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(Paper, { elevation: 4, className: lcClasses.layerControllerRoot, children: jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle channel visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor: setColor2, palette, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: capitalize$3(label2) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SegmentationChannelEllipsisMenu, { obsType, featureType, featureValueType, strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormap, setFeatureValueColormap, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SvgVector, { className: classes2.layerTypeSegmentationIcon }) })] }) }) });
|
|
278906
278913
|
}
|
|
278907
278914
|
function SegmentationLayerController(props) {
|
|
278908
278915
|
const { theme, layerScope, layerCoordination, setLayerCoordination, channelScopes, channelCoordination, setChannelCoordination } = props;
|
|
@@ -279491,7 +279498,8 @@ function Status(props) {
|
|
|
279491
279498
|
return messages2;
|
|
279492
279499
|
}
|
|
279493
279500
|
function StatusSubscriber(props) {
|
|
279494
|
-
const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status", helpText = ViewHelpMapping.STATUS } = props;
|
|
279501
|
+
const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status", helpText = ViewHelpMapping.STATUS } = props;
|
|
279502
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
279495
279503
|
const [{ obsHighlight: cellHighlight, featureHighlight: geneHighlight, moleculeHighlight }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.STATUS], coordinationScopes);
|
|
279496
279504
|
const warn2 = useWarning();
|
|
279497
279505
|
const infos = [
|
|
@@ -281312,7 +281320,7 @@ function HiglassGlobalStyles(props) {
|
|
|
281312
281320
|
}
|
|
281313
281321
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
281314
281322
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
281315
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
281323
|
+
const { HiGlassComponent } = await import("./higlass-yrrJnl2c.js");
|
|
281316
281324
|
return { default: HiGlassComponent };
|
|
281317
281325
|
});
|
|
281318
281326
|
const HG_SIZE = 800;
|
|
@@ -281320,7 +281328,8 @@ function setStoreRootForHiGlass(url, storeRoot) {
|
|
|
281320
281328
|
ZarrMultivecDataFetcher_default.urlToStoreRoot[url] = storeRoot;
|
|
281321
281329
|
}
|
|
281322
281330
|
function HiGlassLazy(props) {
|
|
281323
|
-
const { coordinationScopes, theme, hgViewConfig: hgViewConfigProp, hgOptions: hgOptionsProp, genomeSize = 31e8, height: height2 } = props;
|
|
281331
|
+
const { coordinationScopes: coordinationScopesRaw, theme, hgViewConfig: hgViewConfigProp, hgOptions: hgOptionsProp, genomeSize = 31e8, height: height2 } = props;
|
|
281332
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
281324
281333
|
const [{ genomicZoomX, genomicZoomY, genomicTargetX, genomicTargetY }, { setGenomicZoomX, setGenomicZoomY, setGenomicTargetX, setGenomicTargetY }] = useCoordination(COMPONENT_COORDINATION_TYPES.higlass, coordinationScopes);
|
|
281325
281334
|
const [width2, computedHeight, containerRef] = useGridItemSize();
|
|
281326
281335
|
const [hgInstance, setHgInstance] = useState();
|
|
@@ -281478,9 +281487,10 @@ const REFERENCE_STATIC_FILES = {
|
|
|
281478
281487
|
}
|
|
281479
281488
|
};
|
|
281480
281489
|
function GenomicProfilesSubscriber(props) {
|
|
281481
|
-
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;
|
|
281490
|
+
const { coordinationScopes: coordinationScopesRaw, 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;
|
|
281482
281491
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
281483
281492
|
const loaders = useLoaders();
|
|
281493
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
281484
281494
|
const [{ dataset, obsSetColor: cellSetColor, obsSetSelection: cellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GENOMIC_PROFILES], coordinationScopes);
|
|
281485
281495
|
const [genomicProfilesData, genomicProfilesStatus, genomicProfilesUrls, genomicProfilesError] = useGenomicProfilesData(loaders, dataset, true, {}, {}, {});
|
|
281486
281496
|
const errors = [
|
|
@@ -284255,7 +284265,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
284255
284265
|
const { classes: classes2 } = props;
|
|
284256
284266
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
|
|
284257
284267
|
}
|
|
284258
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
284268
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-Btj_WYRD.js"));
|
|
284259
284269
|
function createWorker() {
|
|
284260
284270
|
return new WorkerFactory();
|
|
284261
284271
|
}
|
|
@@ -284380,7 +284390,9 @@ function normalizeQuaternion(q) {
|
|
|
284380
284390
|
return q.map((value2) => value2 / length2);
|
|
284381
284391
|
}
|
|
284382
284392
|
function NeuroglancerSubscriber(props) {
|
|
284383
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Neuroglancer", helpText = ViewHelpMapping.NEUROGLANCER, viewerState: initialViewerState } = props;
|
|
284393
|
+
const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Neuroglancer", helpText = ViewHelpMapping.NEUROGLANCER, viewerState: initialViewerState } = props;
|
|
284394
|
+
const loaders = useLoaders();
|
|
284395
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
284384
284396
|
const [{
|
|
284385
284397
|
dataset,
|
|
284386
284398
|
obsType,
|
|
@@ -284411,7 +284423,6 @@ function NeuroglancerSubscriber(props) {
|
|
|
284411
284423
|
setSpatialZoom: setZoom
|
|
284412
284424
|
}] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.NEUROGLANCER], coordinationScopes);
|
|
284413
284425
|
const { classes: classes2 } = useStyles$4();
|
|
284414
|
-
const loaders = useLoaders();
|
|
284415
284426
|
const [{ obsSets: cellSets }] = useObsSetsData(loaders, dataset, false, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }, { cellSetSelection, obsSetColor: cellSetColor }, { obsType });
|
|
284416
284427
|
const [{ obsIndex }] = useObsEmbeddingData(loaders, dataset, true, {}, {}, { obsType, embeddingType: mapping });
|
|
284417
284428
|
const handleStateUpdate = useCallback((newState) => {
|
|
@@ -286800,9 +286811,10 @@ function useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
286800
286811
|
return [expressionArr, setArr, expressionMax];
|
|
286801
286812
|
}
|
|
286802
286813
|
function CellSetExpressionPlotSubscriber(props) {
|
|
286803
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2, xAxisTitle, jitter: jitter2 = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION } = props;
|
|
286814
|
+
const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2, xAxisTitle, jitter: jitter2 = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION } = props;
|
|
286804
286815
|
const { classes: classes2 } = useStyles$3();
|
|
286805
286816
|
const loaders = useLoaders();
|
|
286817
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
286806
286818
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection, sampleSetColor, featureAggregationStrategy }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setSampleSetColor, setFeatureAggregationStrategy }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_FEATURE_VALUE_DISTRIBUTION], coordinationScopes);
|
|
286807
286819
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
286808
286820
|
const transformOptions = VALUE_TRANSFORM_OPTIONS;
|
|
@@ -337579,9 +337591,10 @@ function CellSetSizesPlot(props) {
|
|
|
337579
337591
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, signalListeners, getTooltipText });
|
|
337580
337592
|
}
|
|
337581
337593
|
function CellSetSizesPlotSubscriber(props) {
|
|
337582
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES } = props;
|
|
337594
|
+
const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES } = props;
|
|
337583
337595
|
const { classes: classes2 } = useStyles$3();
|
|
337584
337596
|
const loaders = useLoaders();
|
|
337597
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
337585
337598
|
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);
|
|
337586
337599
|
const title2 = titleOverride || `${capitalize$3(obsType)} Set Sizes`;
|
|
337587
337600
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
@@ -337688,9 +337701,10 @@ function ExpressionHistogram(props) {
|
|
|
337688
337701
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, signalListeners, spec });
|
|
337689
337702
|
}
|
|
337690
337703
|
function ExpressionHistogramSubscriber(props) {
|
|
337691
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM } = props;
|
|
337704
|
+
const { coordinationScopes: coordinationScopesRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM } = props;
|
|
337692
337705
|
const { classes: classes2 } = useStyles$3();
|
|
337693
337706
|
const loaders = useLoaders();
|
|
337707
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
337694
337708
|
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);
|
|
337695
337709
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
337696
337710
|
const [{ obsIndex, featureIndex, obsFeatureMatrix }, matrixStatus, matrixUrls, matrixError] = useObsFeatureMatrixData(loaders, dataset, true, {}, {}, { obsType, featureType, featureValueType });
|
|
@@ -337953,9 +337967,10 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
337953
337967
|
return [resultArr, meanExpressionMax];
|
|
337954
337968
|
}
|
|
337955
337969
|
function DotPlotSubscriber(props) {
|
|
337956
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true, helpText = ViewHelpMapping.DOT_PLOT } = props;
|
|
337970
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true, helpText = ViewHelpMapping.DOT_PLOT } = props;
|
|
337957
337971
|
const { classes: classes2 } = useStyles$3();
|
|
337958
337972
|
const loaders = useLoaders();
|
|
337973
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
337959
337974
|
const [{
|
|
337960
337975
|
dataset,
|
|
337961
337976
|
obsType,
|
|
@@ -338131,9 +338146,10 @@ function FeatureBarPlot(props) {
|
|
|
338131
338146
|
} });
|
|
338132
338147
|
}
|
|
338133
338148
|
function FeatureBarPlotSubscriber(props) {
|
|
338134
|
-
const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT } = props;
|
|
338149
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT } = props;
|
|
338135
338150
|
const { classes: classes2 } = useStyles$3();
|
|
338136
338151
|
const loaders = useLoaders();
|
|
338152
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
338137
338153
|
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);
|
|
338138
338154
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
338139
338155
|
const [
|
|
@@ -338335,9 +338351,10 @@ function TreemapOptions(props) {
|
|
|
338335
338351
|
}
|
|
338336
338352
|
const DEFAULT_HIERARCHY_LEVELS = ["obsSet", "sampleSet"];
|
|
338337
338353
|
function TreemapSubscriber(props) {
|
|
338338
|
-
const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.TREEMAP } = props;
|
|
338354
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.TREEMAP } = props;
|
|
338339
338355
|
const { classes: classes2 } = useStyles$3();
|
|
338340
338356
|
const loaders = useLoaders();
|
|
338357
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
338341
338358
|
const [{ dataset, obsType, featureType, featureValueType, obsFilter, obsHighlight, obsSetSelection, obsSetFilter, obsSelection, obsSelectionMode, obsSetHighlight, obsSetColor, obsColorEncoding, additionalObsSets, sampleType, sampleSetSelection, sampleSetFilter, sampleSetColor, sampleSelection, sampleSelectionMode, sampleFilter, sampleFilterMode, sampleHighlight, hierarchyLevels }, { setObsFilter, setObsSelection: setObsSelection2, setObsSetFilter, setObsSetSelection, setObsSelectionMode, setObsFilterMode, setObsHighlight, setObsSetColor, setObsColorEncoding, setAdditionalObsSets, setSampleFilter, setSampleSetFilter, setSampleFilterMode, setSampleSelection, setSampleSetSelection, setSampleSelectionMode, setSampleHighlight, setSampleSetColor, setHierarchyLevels }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.TREEMAP], coordinationScopes);
|
|
338342
338359
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
338343
338360
|
const [{ obsIndex }, matrixIndicesStatus, matrixIndicesUrls, matrixIndicesError] = useObsFeatureMatrixIndices(loaders, dataset, false, { obsType, featureType, featureValueType });
|
|
@@ -338580,9 +338597,10 @@ function VolcanoPlotOptions(props) {
|
|
|
338580
338597
|
}, value: featurePointFoldChangeThreshold, onChange: handlePointFoldChangeChange, "aria-label": "Volcano plot point fold-change threshold slider", id: `volcano-point-fc-${volcanoOptionsId}`, valueLabelDisplay: "auto", step: 0.5, min: 0, max: 50 }) })] })] });
|
|
338581
338598
|
}
|
|
338582
338599
|
function VolcanoPlotSubscriber(props) {
|
|
338583
|
-
const { title: title2 = "Volcano Plot", coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.VOLCANO_PLOT } = props;
|
|
338600
|
+
const { title: title2 = "Volcano Plot", coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.VOLCANO_PLOT } = props;
|
|
338584
338601
|
const { classes: classes2 } = useStyles$3();
|
|
338585
338602
|
const loaders = useLoaders();
|
|
338603
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
338586
338604
|
const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.VOLCANO_PLOT], coordinationScopes);
|
|
338587
338605
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
338588
338606
|
const obsSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.OBS_SETS, { obsType });
|
|
@@ -338786,9 +338804,10 @@ function CellSetCompositionBarPlot(props) {
|
|
|
338786
338804
|
return jsxRuntimeExports.jsx(VegaPlot, { data: computedData, spec, signalListeners, getTooltipText });
|
|
338787
338805
|
}
|
|
338788
338806
|
function CellSetCompositionBarPlotSubscriber(props) {
|
|
338789
|
-
const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT } = props;
|
|
338807
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT } = props;
|
|
338790
338808
|
const { classes: classes2 } = useStyles$3();
|
|
338791
338809
|
const loaders = useLoaders();
|
|
338810
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
338792
338811
|
const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_COMPOSITION_BAR_PLOT], coordinationScopes);
|
|
338793
338812
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
338794
338813
|
const obsSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.OBS_SETS, { obsType });
|
|
@@ -338969,9 +338988,10 @@ function FeatureSetEnrichmentBarPlot(props) {
|
|
|
338969
338988
|
return jsxRuntimeExports.jsx(VegaPlot, { data: computedData, spec, signalListeners, getTooltipText });
|
|
338970
338989
|
}
|
|
338971
338990
|
function FeatureSetEnrichmentBarPlotSubscriber(props) {
|
|
338972
|
-
const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT } = props;
|
|
338991
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT } = props;
|
|
338973
338992
|
const { classes: classes2 } = useStyles$3();
|
|
338974
338993
|
const loaders = useLoaders();
|
|
338994
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
338975
338995
|
const transformFeature2 = useAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE);
|
|
338976
338996
|
const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_SET_ENRICHMENT_BAR_PLOT], coordinationScopes);
|
|
338977
338997
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
@@ -339100,8 +339120,9 @@ function FeatureStatsTable(props) {
|
|
|
339100
339120
|
});
|
|
339101
339121
|
}
|
|
339102
339122
|
function FeatureStatsTableSubscriber(props) {
|
|
339103
|
-
const { title: title2 = "Differential Expression Results", coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_STATS_TABLE } = props;
|
|
339123
|
+
const { title: title2 = "Differential Expression Results", coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_STATS_TABLE } = props;
|
|
339104
339124
|
const loaders = useLoaders();
|
|
339125
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
339105
339126
|
const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_STATS_TABLE], coordinationScopes);
|
|
339106
339127
|
const obsSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.OBS_SETS, { obsType });
|
|
339107
339128
|
const sampleSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.SAMPLE_SETS, { sampleType });
|
|
@@ -342166,6 +342187,7 @@ class OmeZarrAsObsSegmentationsLoader extends OmeZarrLoader {
|
|
|
342166
342187
|
spatialSegmentationFilled: true,
|
|
342167
342188
|
spatialSegmentationStrokeWidth: 1,
|
|
342168
342189
|
obsHighlight: null,
|
|
342190
|
+
featureValueColormap: GLSL_COLORMAP_DEFAULT,
|
|
342169
342191
|
...obsTypesFromChannelNames ? { obsType: channelObj.name } : {}
|
|
342170
342192
|
}));
|
|
342171
342193
|
const coordinationValues = {
|
|
@@ -342449,19 +342471,37 @@ class SpatialDataObsSegmentationsLoader extends AbstractTwoStepLoader {
|
|
|
342449
342471
|
this.loadObsIndex(),
|
|
342450
342472
|
this.loadPolygons()
|
|
342451
342473
|
]);
|
|
342474
|
+
const channelCoordination = [{
|
|
342475
|
+
// obsType: null,
|
|
342476
|
+
spatialChannelColor: [255, 255, 255],
|
|
342477
|
+
spatialChannelVisible: true,
|
|
342478
|
+
spatialChannelOpacity: 1,
|
|
342479
|
+
spatialChannelWindow: null,
|
|
342480
|
+
// featureType: 'feature',
|
|
342481
|
+
// featureValueType: 'value',
|
|
342482
|
+
obsColorEncoding: "spatialChannelColor",
|
|
342483
|
+
spatialSegmentationFilled: true,
|
|
342484
|
+
spatialSegmentationStrokeWidth: 1,
|
|
342485
|
+
obsHighlight: null,
|
|
342486
|
+
featureValueColormap: GLSL_COLORMAP_DEFAULT
|
|
342487
|
+
}];
|
|
342452
342488
|
const coordinationValues = {
|
|
342453
|
-
segmentationLayer: CL(
|
|
342454
|
-
|
|
342455
|
-
|
|
342456
|
-
|
|
342457
|
-
|
|
342458
|
-
|
|
342459
|
-
|
|
342460
|
-
|
|
342461
|
-
|
|
342462
|
-
|
|
342463
|
-
|
|
342464
|
-
|
|
342489
|
+
segmentationLayer: CL([
|
|
342490
|
+
{
|
|
342491
|
+
// TODO: more coordination values here?
|
|
342492
|
+
// obsColorEncoding: 'spatialLayerColor',
|
|
342493
|
+
// spatialLayerColor: [255, 255, 255],
|
|
342494
|
+
fileUid: this.coordinationValues?.fileUid || null,
|
|
342495
|
+
spatialLayerVisible: true,
|
|
342496
|
+
spatialLayerOpacity: 1,
|
|
342497
|
+
segmentationChannel: CL(channelCoordination)
|
|
342498
|
+
// featureValueColormapRange: [0, 1],
|
|
342499
|
+
// obsHighlight: null,
|
|
342500
|
+
// obsSetColor: null,
|
|
342501
|
+
// obsSetSelection: null,
|
|
342502
|
+
// additionalObsSets: null,
|
|
342503
|
+
}
|
|
342504
|
+
])
|
|
342465
342505
|
};
|
|
342466
342506
|
return new LoaderResult({ obsIndex, obsSegmentations, obsSegmentationsType: "polygon" }, null, coordinationValues);
|
|
342467
342507
|
}
|
|
@@ -391891,11 +391931,12 @@ function ScmdUi(props) {
|
|
|
391891
391931
|
}
|
|
391892
391932
|
function BiomarkerSelectSubscriber(props) {
|
|
391893
391933
|
const {
|
|
391894
|
-
coordinationScopes,
|
|
391934
|
+
coordinationScopes: coordinationScopesRaw,
|
|
391895
391935
|
stratificationOptions: stratificationOptionsProp
|
|
391896
391936
|
// TODO: Remove; Get from comparisonMetadata instead
|
|
391897
391937
|
} = props;
|
|
391898
391938
|
const loaders = useLoaders();
|
|
391939
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
391899
391940
|
const [{ dataset, obsType, sampleType, sampleSetSelection, featureSelection }, { setSampleSetSelection, setFeatureSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.BIOMARKER_SELECT], coordinationScopes);
|
|
391900
391941
|
const viewConfigStoreApi = useViewConfigStoreApi();
|
|
391901
391942
|
const viewConfig = useViewConfig();
|
|
@@ -391989,7 +392030,8 @@ const useStyles$1 = makeStyles()((theme) => ({
|
|
|
391989
392030
|
}
|
|
391990
392031
|
}));
|
|
391991
392032
|
function ComparativeHeadingSubscriber(props) {
|
|
391992
|
-
const { coordinationScopes } = props;
|
|
392033
|
+
const { coordinationScopes: coordinationScopesRaw } = props;
|
|
392034
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
391993
392035
|
const [{ sampleSetSelection, featureSelection }, { setSampleSetSelection, setFeatureSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.COMPARATIVE_HEADING], coordinationScopes);
|
|
391994
392036
|
const { classes: classes2 } = useStyles$1();
|
|
391995
392037
|
const swapSampleSets = useCallback(() => {
|
|
@@ -392026,9 +392068,10 @@ const useStyles = makeStyles()(() => ({
|
|
|
392026
392068
|
}
|
|
392027
392069
|
}));
|
|
392028
392070
|
function SampleSetPairManagerSubscriber(props) {
|
|
392029
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Sample Sets", closeButtonVisible, helpText = ViewHelpMapping.SAMPLE_SET_PAIR_MANAGER } = props;
|
|
392071
|
+
const { coordinationScopes: coordinationScopesRaw, removeGridComponent, theme, title: title2 = "Sample Sets", closeButtonVisible, helpText = ViewHelpMapping.SAMPLE_SET_PAIR_MANAGER } = props;
|
|
392030
392072
|
const { classes: classes2 } = useStyles();
|
|
392031
392073
|
const loaders = useLoaders();
|
|
392074
|
+
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
392032
392075
|
const [{ dataset, obsType, sampleType, sampleSetSelection }, { setSampleSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.SAMPLE_SET_PAIR_MANAGER], coordinationScopes);
|
|
392033
392076
|
const sampleSetsLoader = useMatchingLoader(loaders, dataset, DataType$4.SAMPLE_SETS, { sampleType });
|
|
392034
392077
|
const sampleSetsColumnNameMappingReversed = useColumnNameMapping(sampleSetsLoader, true);
|