@vitessce/dev 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-38551de0.js → deflate-3ddb759b.js} +1 -1
- package/dist/{hglib-3a7613d1.js → hglib-cdf09f0e.js} +1 -1
- package/dist/{index-05a9921e.js → index-7ce1d734.js} +56 -44
- package/dist/index.js +1 -1
- package/dist/{jpeg-8349089f.js → jpeg-84db51fc.js} +1 -1
- package/dist/{lerc-4449a2af.js → lerc-01f78fda.js} +1 -1
- package/dist/{lzw-3c38ef38.js → lzw-5c1d5530.js} +1 -1
- package/dist/{packbits-ffd38b8f.js → packbits-fcadb85f.js} +1 -1
- package/dist/{raw-367b085b.js → raw-09ac1cd1.js} +1 -1
- package/dist/{webimage-2c7bf8d5.js → webimage-4a08568e.js} +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import ReactDOM__default from "react-dom";
|
|
3
|
-
import { c as commonjsGlobal, o as objectAssign, g as getDefaultExportFromCjs, e as earcut, b as getAugmentedNamespace } from "./index-
|
|
3
|
+
import { c as commonjsGlobal, o as objectAssign, g as getDefaultExportFromCjs, e as earcut, b as getAugmentedNamespace } from "./index-7ce1d734.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
|
6
6
|
const e = m[i];
|
|
@@ -694,10 +694,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
694
694
|
]
|
|
695
695
|
};
|
|
696
696
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
697
|
-
const version$6 = "3.3.
|
|
698
|
-
const date$3 = "2023-11-
|
|
697
|
+
const version$6 = "3.3.2";
|
|
698
|
+
const date$3 = "2023-11-30";
|
|
699
699
|
const branch = "changeset-release/main";
|
|
700
|
-
const hash$1 = "
|
|
700
|
+
const hash$1 = "a562d787";
|
|
701
701
|
const META_VERSION = {
|
|
702
702
|
note,
|
|
703
703
|
version: version$6,
|
|
@@ -52923,7 +52923,8 @@ function PlotOptions(props2) {
|
|
|
52923
52923
|
const { options } = props2;
|
|
52924
52924
|
const [open2, setOpen] = useState(false);
|
|
52925
52925
|
const classes = useStyles$r();
|
|
52926
|
-
|
|
52926
|
+
const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(SettingsIconWithArrow, { open: open2 }), [open2]);
|
|
52927
|
+
return options ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open plot options menu", children: options }) : null;
|
|
52927
52928
|
}
|
|
52928
52929
|
function CloudDownloadIconWithArrow({ open: open2 }) {
|
|
52929
52930
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(CloudDownloadIcon, {}), open2 ? jsxRuntimeExports.jsx(ArrowDropUpIcon, {}) : jsxRuntimeExports.jsx(ArrowDropDownIcon, {})] });
|
|
@@ -52932,7 +52933,8 @@ function DownloadOptions(props2) {
|
|
|
52932
52933
|
const { urls: urls2 } = props2;
|
|
52933
52934
|
const [open2, setOpen] = useState(false);
|
|
52934
52935
|
const classes = useStyles$r();
|
|
52935
|
-
|
|
52936
|
+
const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(CloudDownloadIconWithArrow, { open: open2 }), [open2]);
|
|
52937
|
+
return urls2 && urls2.length ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open download options menu", children: urls2.map(({ url, name: name2 }) => jsxRuntimeExports.jsx(MenuItem$1, { dense: true, "aria-label": `Click to download ${name2}`, children: jsxRuntimeExports.jsxs(Link$1, { underline: "always", href: url, target: "_blank", rel: "noopener", className: classes.downloadLink, children: ["Download ", name2] }) }, `${url}_${name2}`)) }) : null;
|
|
52936
52938
|
}
|
|
52937
52939
|
function ClosePaneButton(props2) {
|
|
52938
52940
|
const { removeGridComponent } = props2;
|
|
@@ -52940,11 +52942,11 @@ function ClosePaneButton(props2) {
|
|
|
52940
52942
|
return jsxRuntimeExports.jsx(IconButton$2, { onClick: removeGridComponent, size: "small", className: classes.iconButton, title: "close", "aria-label": "Close panel button", children: jsxRuntimeExports.jsx(CloseIcon, {}) });
|
|
52941
52943
|
}
|
|
52942
52944
|
function TitleInfo(props2) {
|
|
52943
|
-
const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options } = props2;
|
|
52945
|
+
const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options, closeButtonVisible = true, downloadButtonVisible = true } = props2;
|
|
52944
52946
|
const classes = useTitleStyles();
|
|
52945
52947
|
return (
|
|
52946
52948
|
// d-flex without wrapping div is not always full height; I don't understand the root cause.
|
|
52947
|
-
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }), jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent })] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
52949
|
+
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), downloadButtonVisible ? jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }) : null, closeButtonVisible ? jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent }) : null] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
52948
52950
|
[classes.scrollCard]: isScroll,
|
|
52949
52951
|
[classes.spatialCard]: isSpatial,
|
|
52950
52952
|
[classes.noScrollCard]: !isScroll && !isSpatial
|
|
@@ -54086,7 +54088,7 @@ function Description(props2) {
|
|
|
54086
54088
|
return jsxRuntimeExports.jsxs("div", { className: classes.description, children: [jsxRuntimeExports.jsx("p", { children: description2 }), metadata2 && Array.from(metadata2.entries()).map(([layerIndex, { name: layerName, metadata: metadataRecord }]) => metadataRecord && Object.entries(metadataRecord).length > 0 ? jsxRuntimeExports.jsxs("details", { children: [jsxRuntimeExports.jsx("summary", { children: layerName }), jsxRuntimeExports.jsx("div", { className: classes.metadataContainer, children: jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(metadataRecord).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { title: key2, children: key2 }), jsxRuntimeExports.jsx("td", { title: value2, children: value2 })] }, key2)) }) }) })] }, layerIndex) : null)] });
|
|
54087
54089
|
}
|
|
54088
54090
|
function DescriptionSubscriber(props2) {
|
|
54089
|
-
const { coordinationScopes, description: descriptionOverride, removeGridComponent, theme, title: title2 = "Description" } = props2;
|
|
54091
|
+
const { coordinationScopes, description: descriptionOverride, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible } = props2;
|
|
54090
54092
|
const loaders = useLoaders();
|
|
54091
54093
|
const [{ dataset, spatialImageLayer: rasterLayers }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DESCRIPTION], coordinationScopes);
|
|
54092
54094
|
const [description2] = useDescription(loaders, dataset);
|
|
@@ -54108,7 +54110,7 @@ function DescriptionSubscriber(props2) {
|
|
|
54108
54110
|
}
|
|
54109
54111
|
return result;
|
|
54110
54112
|
}, [rasterLayers, imageLayerMeta, imageLayerLoaders]);
|
|
54111
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, isScroll: true, theme, isReady, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, metadata: metadata2 }) });
|
|
54113
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, metadata: metadata2 }) });
|
|
54112
54114
|
}
|
|
54113
54115
|
var _global = { exports: {} };
|
|
54114
54116
|
var global$6 = _global.exports = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")();
|
|
@@ -66556,7 +66558,7 @@ function SetsManager(props2) {
|
|
|
66556
66558
|
}
|
|
66557
66559
|
const packageJson = { name: "vitessce" };
|
|
66558
66560
|
function ObsSetsManagerSubscriber(props2) {
|
|
66559
|
-
const { coordinationScopes, removeGridComponent, theme, title: titleOverride } = props2;
|
|
66561
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props2;
|
|
66560
66562
|
const loaders = useLoaders();
|
|
66561
66563
|
const setWarning = useSetWarning();
|
|
66562
66564
|
const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetExpansion: cellSetExpansion, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsColorEncoding: cellColorEncoding }, { setObsSetSelection: setCellSetSelection, setObsColorEncoding: setCellColorEncoding, setObsSetColor: setCellSetColor, setObsSetExpansion: setCellSetExpansion, setAdditionalObsSets: setAdditionalCellSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SETS], coordinationScopes);
|
|
@@ -66949,7 +66951,7 @@ function ObsSetsManagerSubscriber(props2) {
|
|
|
66949
66951
|
setWarning,
|
|
66950
66952
|
theme
|
|
66951
66953
|
]);
|
|
66952
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, removeGridComponent, urls: urls2, theme, isReady, children: manager });
|
|
66954
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: manager });
|
|
66953
66955
|
}
|
|
66954
66956
|
function tree_add$1(d) {
|
|
66955
66957
|
var x2 = +this._x.call(null, d), y2 = +this._y.call(null, d);
|
|
@@ -170202,16 +170204,16 @@ async function getDecoder(fileDirectory) {
|
|
|
170202
170204
|
const Decoder = await importFn();
|
|
170203
170205
|
return new Decoder(fileDirectory);
|
|
170204
170206
|
}
|
|
170205
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
170206
|
-
addDecoder(5, () => import("./lzw-
|
|
170207
|
+
addDecoder([void 0, 1], () => import("./raw-09ac1cd1.js").then((m2) => m2.default));
|
|
170208
|
+
addDecoder(5, () => import("./lzw-5c1d5530.js").then((m2) => m2.default));
|
|
170207
170209
|
addDecoder(6, () => {
|
|
170208
170210
|
throw new Error("old style JPEG compression is not supported.");
|
|
170209
170211
|
});
|
|
170210
|
-
addDecoder(7, () => import("./jpeg-
|
|
170211
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
170212
|
-
addDecoder(32773, () => import("./packbits-
|
|
170213
|
-
addDecoder(34887, () => import("./lerc-
|
|
170214
|
-
addDecoder(50001, () => import("./webimage-
|
|
170212
|
+
addDecoder(7, () => import("./jpeg-84db51fc.js").then((m2) => m2.default));
|
|
170213
|
+
addDecoder([8, 32946], () => import("./deflate-3ddb759b.js").then((m2) => m2.default));
|
|
170214
|
+
addDecoder(32773, () => import("./packbits-fcadb85f.js").then((m2) => m2.default));
|
|
170215
|
+
addDecoder(34887, () => import("./lerc-01f78fda.js").then((m2) => m2.default));
|
|
170216
|
+
addDecoder(50001, () => import("./webimage-4a08568e.js").then((m2) => m2.default));
|
|
170215
170217
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
170216
170218
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
170217
170219
|
}
|
|
@@ -187913,6 +187915,8 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
187913
187915
|
const {
|
|
187914
187916
|
uuid,
|
|
187915
187917
|
coordinationScopes,
|
|
187918
|
+
closeButtonVisible,
|
|
187919
|
+
downloadButtonVisible,
|
|
187916
187920
|
removeGridComponent,
|
|
187917
187921
|
theme,
|
|
187918
187922
|
observationsLabelOverride,
|
|
@@ -188068,7 +188072,7 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
188068
188072
|
setTargetY(target2[1]);
|
|
188069
188073
|
setTargetZ(target2[2] || 0);
|
|
188070
188074
|
};
|
|
188071
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, { ref: deckRef, uuid, theme, viewState: { zoom: zoom2, target: [targetX2, targetY2, targetZ] }, setViewState, originalViewState, obsEmbeddingIndex, obsEmbedding, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
|
|
188075
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, { ref: deckRef, uuid, theme, viewState: { zoom: zoom2, target: [targetX2, targetY2, targetZ] }, setViewState, originalViewState, obsEmbeddingIndex, obsEmbedding, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
|
|
188072
188076
|
setComponentHover(uuid);
|
|
188073
188077
|
}, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), tooltipsVisible && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: cellColorEncoding, featureSelection: geneSelection, featureLabelsMap, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: expressionExtents?.[0] })] });
|
|
188074
188078
|
}
|
|
@@ -188117,6 +188121,8 @@ function GatingSubscriber(props2) {
|
|
|
188117
188121
|
const {
|
|
188118
188122
|
uuid,
|
|
188119
188123
|
coordinationScopes,
|
|
188124
|
+
closeButtonVisible,
|
|
188125
|
+
downloadButtonVisible,
|
|
188120
188126
|
removeGridComponent,
|
|
188121
188127
|
theme,
|
|
188122
188128
|
disableTooltip = false,
|
|
@@ -188306,7 +188312,7 @@ function GatingSubscriber(props2) {
|
|
|
188306
188312
|
gatingFeatureSelectionY,
|
|
188307
188313
|
obsType
|
|
188308
188314
|
]);
|
|
188309
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
188315
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
188310
188316
|
setFeatureValueTransform(newValue);
|
|
188311
188317
|
setTargetX(null);
|
|
188312
188318
|
setTargetY(null);
|
|
@@ -206085,7 +206091,7 @@ function SpatialTooltipSubscriber$1(props2) {
|
|
|
206085
206091
|
return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
|
|
206086
206092
|
}
|
|
206087
206093
|
function SpatialSubscriber$1(props2) {
|
|
206088
|
-
const { uuid, coordinationScopes, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false } = props2;
|
|
206094
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false } = props2;
|
|
206089
206095
|
const loaders = useLoaders();
|
|
206090
206096
|
const setComponentHover = useSetComponentHover();
|
|
206091
206097
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -206331,7 +206337,7 @@ function SpatialSubscriber$1(props2) {
|
|
|
206331
206337
|
}
|
|
206332
206338
|
return [names, colors2];
|
|
206333
206339
|
}, [imageLayers, imageLayerLoaders]);
|
|
206334
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, removeGridComponent, isReady, options, children: [jsxRuntimeExports.jsx("div", { style: {
|
|
206340
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, options, children: [jsxRuntimeExports.jsx("div", { style: {
|
|
206335
206341
|
position: "absolute",
|
|
206336
206342
|
bottom: "5px",
|
|
206337
206343
|
left: "5px",
|
|
@@ -207663,7 +207669,7 @@ function getHoverData(hoverInfo, layerType) {
|
|
|
207663
207669
|
return null;
|
|
207664
207670
|
}
|
|
207665
207671
|
function SpatialSubscriber(props2) {
|
|
207666
|
-
const { uuid, coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, disableTooltip = false, title: title2 = "Spatial" } = props2;
|
|
207672
|
+
const { uuid, coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, disableTooltip = false, title: title2 = "Spatial" } = props2;
|
|
207667
207673
|
const loaders = useLoaders();
|
|
207668
207674
|
const setComponentHover = useSetComponentHover();
|
|
207669
207675
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -207999,7 +208005,7 @@ function SpatialSubscriber(props2) {
|
|
|
207999
208005
|
return false;
|
|
208000
208006
|
});
|
|
208001
208007
|
const isSelectable = spotLayerScopes.length > 0 || pointLayerScopes.length > 0 || segmentationLayerScopes.flatMap((layerScope) => segmentationChannelScopesByLayer[layerScope].map((channelScope) => obsSegmentationsLocationsData?.[layerScope]?.[channelScope])).length > 0;
|
|
208002
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, removeGridComponent, isReady, children: [jsxRuntimeExports.jsx(SpatialWrapper, {
|
|
208008
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, children: [jsxRuntimeExports.jsx(SpatialWrapper, {
|
|
208003
208009
|
ref: deckRef,
|
|
208004
208010
|
uuid,
|
|
208005
208011
|
width: width2,
|
|
@@ -208962,7 +208968,7 @@ function HeatmapOptions(props2) {
|
|
|
208962
208968
|
}) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, children: "Gene Expression Colormap Range" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider", id: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
|
|
208963
208969
|
}
|
|
208964
208970
|
function HeatmapSubscriber(props2) {
|
|
208965
|
-
const { uuid, coordinationScopes, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap" } = props2;
|
|
208971
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap" } = props2;
|
|
208966
208972
|
const loaders = useLoaders();
|
|
208967
208973
|
const setComponentHover = useSetComponentHover();
|
|
208968
208974
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -209038,7 +209044,7 @@ function HeatmapSubscriber(props2) {
|
|
|
209038
209044
|
], [observationsLabel]);
|
|
209039
209045
|
const selectedCount = cellColors.size;
|
|
209040
209046
|
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
|
|
209041
|
-
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`, urls: urls2, theme, removeGridComponent, isReady: isReady && !isRendering, options: jsxRuntimeExports.jsx(HeatmapOptions, { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible }), children: [jsxRuntimeExports.jsx(Heatmap$1, { ref: deckRef, transpose: transpose2, viewState: { zoom: zoomX, target: [targetX2, targetY2] }, setViewState: ({ zoom: zoom2, target: target2 }) => {
|
|
209047
|
+
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady: isReady && !isRendering, options: jsxRuntimeExports.jsx(HeatmapOptions, { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible }), children: [jsxRuntimeExports.jsx(Heatmap$1, { ref: deckRef, transpose: transpose2, viewState: { zoom: zoomX, target: [targetX2, targetY2] }, setViewState: ({ zoom: zoom2, target: target2 }) => {
|
|
209042
209048
|
setZoomX(zoom2);
|
|
209043
209049
|
setZoomY(zoom2);
|
|
209044
209050
|
setTargetX(target2[0]);
|
|
@@ -213440,7 +213446,7 @@ function FeatureListOptions(props2) {
|
|
|
213440
213446
|
} }) })] })] }) : null] });
|
|
213441
213447
|
}
|
|
213442
213448
|
function FeatureListSubscriber(props2) {
|
|
213443
|
-
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null } = props2;
|
|
213449
|
+
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible } = props2;
|
|
213444
213450
|
const loaders = useLoaders();
|
|
213445
213451
|
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);
|
|
213446
213452
|
const variablesLabel = variablesLabelOverride || featureType;
|
|
@@ -213475,6 +213481,8 @@ function FeatureListSubscriber(props2) {
|
|
|
213475
213481
|
// even though this no longer uses the TitleInfo component's
|
|
213476
213482
|
// scroll css (SelectableTable is virtual scroll).
|
|
213477
213483
|
isScroll: true,
|
|
213484
|
+
closeButtonVisible,
|
|
213485
|
+
downloadButtonVisible,
|
|
213478
213486
|
removeGridComponent,
|
|
213479
213487
|
isReady,
|
|
213480
213488
|
urls: urls2,
|
|
@@ -214251,6 +214259,8 @@ function ImageAddButton({ imageOptions, handleImageAdd }) {
|
|
|
214251
214259
|
const LayerControllerMemoized = React__default.memo(forwardRef((props2, ref2) => {
|
|
214252
214260
|
const {
|
|
214253
214261
|
title: title2,
|
|
214262
|
+
closeButtonVisible,
|
|
214263
|
+
downloadButtonVisible,
|
|
214254
214264
|
removeGridComponent,
|
|
214255
214265
|
theme,
|
|
214256
214266
|
isReady,
|
|
@@ -214296,7 +214306,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props2, ref2) =>
|
|
|
214296
214306
|
enableLayerButtonsWithOneLayer
|
|
214297
214307
|
} = props2;
|
|
214298
214308
|
const shouldShowImageLayerButton = Boolean(enableLayerButtonsWithOneLayer || imageLayerLoaders?.length > 1);
|
|
214299
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
|
|
214309
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
|
|
214300
214310
|
const { index: index2 } = layer;
|
|
214301
214311
|
const loader2 = segmentationLayerLoaders?.[index2];
|
|
214302
214312
|
const layerMeta = segmentationLayerMeta?.[index2];
|
|
@@ -214411,7 +214421,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props2, ref2) =>
|
|
|
214411
214421
|
}), shouldShowImageLayerButton ? jsxRuntimeExports.jsx(Grid$3, { item: true, children: jsxRuntimeExports.jsx(ImageAddButton, { imageOptions: imageLayerMeta, handleImageAdd }) }) : null] }) });
|
|
214412
214422
|
}));
|
|
214413
214423
|
function LayerControllerSubscriber$1(props2) {
|
|
214414
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer } = props2;
|
|
214424
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer } = props2;
|
|
214415
214425
|
const loaders = useLoaders();
|
|
214416
214426
|
const [{ dataset, obsType, spatialImageLayer: rasterLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer }, { setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialZoom: setZoom }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.LAYER_CONTROLLER], coordinationScopes);
|
|
214417
214427
|
const [{ imageLayerCallbacks, areLoadingImageChannels, segmentationLayerCallbacks, areLoadingSegmentationChannels }, { setImageLayerCallbacks, setAreLoadingImageChannels, setSegmentationLayerCallbacks, setAreLoadingSegmentationChannels }] = useAuxiliaryCoordination(COMPONENT_COORDINATION_TYPES.layerController, coordinationScopes);
|
|
@@ -214467,6 +214477,8 @@ function LayerControllerSubscriber$1(props2) {
|
|
|
214467
214477
|
return jsxRuntimeExports.jsx(LayerControllerMemoized, {
|
|
214468
214478
|
ref: layerControllerRef,
|
|
214469
214479
|
title: title2,
|
|
214480
|
+
closeButtonVisible,
|
|
214481
|
+
downloadButtonVisible,
|
|
214470
214482
|
removeGridComponent,
|
|
214471
214483
|
theme,
|
|
214472
214484
|
isReady,
|
|
@@ -215069,7 +215081,7 @@ function LayerController(props2) {
|
|
|
215069
215081
|
return jsxRuntimeExports.jsxs("div", { children: [anyLayerHasZ ? jsxRuntimeExports.jsx(GlobalDimensionSlider, { label: "Z", targetValue: targetZ, setTargetValue: setTargetZ, max: maxZ, spatialRenderingMode, setSpatialRenderingMode }) : null, anyLayerHasT ? jsxRuntimeExports.jsx(GlobalDimensionSlider, { label: "T", targetValue: targetT, setTargetValue: setTargetT, max: maxT }) : null, pointLayerScopes && reversedPointLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(PointLayerController, { theme, layerScope, layerCoordination: pointLayerCoordination[0][layerScope], setLayerCoordination: pointLayerCoordination[1][layerScope] }, layerScope)), spotLayerScopes && reversedSpotLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(SpotLayerController, { theme, layerScope, layerCoordination: spotLayerCoordination[0][layerScope], setLayerCoordination: spotLayerCoordination[1][layerScope] }, layerScope)), segmentationLayerScopes && reversedSegmentationLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(SegmentationLayerController, { theme, layerScope, layerCoordination: segmentationLayerCoordination[0][layerScope], setLayerCoordination: segmentationLayerCoordination[1][layerScope], channelScopes: segmentationChannelScopesByLayer[layerScope], channelCoordination: segmentationChannelCoordination[0][layerScope], setChannelCoordination: segmentationChannelCoordination[1][layerScope] }, layerScope)), imageLayerScopes && reversedImageLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(ImageLayerController, { theme, coordinationScopesRaw, layerScope, layerCoordination: imageLayerCoordination[0][layerScope], setLayerCoordination: imageLayerCoordination[1][layerScope], channelScopes: imageChannelScopesByLayer[layerScope], channelCoordination: imageChannelCoordination[0][layerScope], setChannelCoordination: imageChannelCoordination[1][layerScope], image: images[layerScope]?.image?.instance, featureIndex: images[layerScope]?.featureIndex, targetT, targetZ, spatialRenderingMode }, layerScope))] });
|
|
215070
215082
|
}
|
|
215071
215083
|
function LayerControllerSubscriber(props2) {
|
|
215072
|
-
const { coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, removeGridComponent, theme, title: title2 = "Spatial Layers" } = props2;
|
|
215084
|
+
const { coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers" } = props2;
|
|
215073
215085
|
const loaders = useLoaders();
|
|
215074
215086
|
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
215075
215087
|
const coordinationScopesBy = useCoordinationScopesBy(coordinationScopes, coordinationScopesByRaw);
|
|
@@ -215170,7 +215182,7 @@ function LayerControllerSubscriber(props2) {
|
|
|
215170
215182
|
obsSegmentationsDataStatus,
|
|
215171
215183
|
imageDataStatus
|
|
215172
215184
|
]);
|
|
215173
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsx(LayerController, { theme, coordinationScopesRaw, segmentationLayerScopes, segmentationLayerCoordination, segmentationChannelScopesByLayer, segmentationChannelCoordination, images: imageData, imageLayerScopes, imageLayerCoordination, targetT, targetZ, setTargetT, setTargetZ, spatialRenderingMode, setSpatialRenderingMode, imageChannelScopesByLayer, imageChannelCoordination, spotLayerScopes, spotLayerCoordination, pointLayerScopes, pointLayerCoordination }) });
|
|
215185
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsx(LayerController, { theme, coordinationScopesRaw, segmentationLayerScopes, segmentationLayerCoordination, segmentationChannelScopesByLayer, segmentationChannelCoordination, images: imageData, imageLayerScopes, imageLayerCoordination, targetT, targetZ, setTargetT, setTargetZ, spatialRenderingMode, setSpatialRenderingMode, imageChannelScopesByLayer, imageChannelCoordination, spotLayerScopes, spotLayerCoordination, pointLayerScopes, pointLayerCoordination }) });
|
|
215174
215186
|
}
|
|
215175
215187
|
const useStyles$3 = makeStyles(() => ({
|
|
215176
215188
|
info: {
|
|
@@ -215204,7 +215216,7 @@ function Status(props2) {
|
|
|
215204
215216
|
return messages2;
|
|
215205
215217
|
}
|
|
215206
215218
|
function StatusSubscriber(props2) {
|
|
215207
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Status" } = props2;
|
|
215219
|
+
const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status" } = props2;
|
|
215208
215220
|
const [{ obsHighlight: cellHighlight, featureHighlight: geneHighlight, moleculeHighlight }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.STATUS], coordinationScopes);
|
|
215209
215221
|
const warn2 = useWarning();
|
|
215210
215222
|
const infos = [
|
|
@@ -215213,7 +215225,7 @@ function StatusSubscriber(props2) {
|
|
|
215213
215225
|
...moleculeHighlight ? [`Hovered gene ${moleculeHighlight}`] : []
|
|
215214
215226
|
];
|
|
215215
215227
|
const info2 = infos.join("; ");
|
|
215216
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, removeGridComponent, isScroll: true, isReady: true, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
|
|
215228
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, closeButtonVisible, removeGridComponent, isScroll: true, isReady: true, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
|
|
215217
215229
|
}
|
|
215218
215230
|
window.higlassTracks = window.higlassTracks || {};
|
|
215219
215231
|
window.higlassTracksByType = window.higlassTracksByType || {};
|
|
@@ -215465,7 +215477,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
|
|
|
215465
215477
|
const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
|
|
215466
215478
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
215467
215479
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
215468
|
-
const { HiGlassComponent } = await import("./hglib-
|
|
215480
|
+
const { HiGlassComponent } = await import("./hglib-cdf09f0e.js").then((n3) => n3.h);
|
|
215469
215481
|
return { default: HiGlassComponent };
|
|
215470
215482
|
});
|
|
215471
215483
|
const HG_SIZE = 800;
|
|
@@ -215594,10 +215606,10 @@ HiGlassLazy.defaultProps = {
|
|
|
215594
215606
|
};
|
|
215595
215607
|
const urls = [];
|
|
215596
215608
|
function HiGlassSubscriber(props2) {
|
|
215597
|
-
const { coordinationScopes, theme, hgViewConfig, removeGridComponent } = props2;
|
|
215609
|
+
const { coordinationScopes, theme, hgViewConfig, closeButtonVisible, downloadButtonVisible, removeGridComponent } = props2;
|
|
215598
215610
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
215599
215611
|
const classes = useStyles$2();
|
|
215600
|
-
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: "HiGlass", removeGridComponent, theme, isReady: true, urls, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) }) }) });
|
|
215612
|
+
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: "HiGlass", closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady: true, urls, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) }) }) });
|
|
215601
215613
|
}
|
|
215602
215614
|
const REFERENCE_TILESETS = {
|
|
215603
215615
|
hg38: {
|
|
@@ -215618,7 +215630,7 @@ const REFERENCE_TILESETS = {
|
|
|
215618
215630
|
}
|
|
215619
215631
|
};
|
|
215620
215632
|
function GenomicProfilesSubscriber(props2) {
|
|
215621
|
-
const { coordinationScopes, theme, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles" } = props2;
|
|
215633
|
+
const { coordinationScopes, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles" } = props2;
|
|
215622
215634
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
215623
215635
|
const loaders = useLoaders();
|
|
215624
215636
|
const [{ dataset, obsSetColor: cellSetColor, obsSetSelection: cellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GENOMIC_PROFILES], coordinationScopes);
|
|
@@ -215748,7 +215760,7 @@ function GenomicProfilesSubscriber(props2) {
|
|
|
215748
215760
|
assembly
|
|
215749
215761
|
]);
|
|
215750
215762
|
const classes = useStyles$2();
|
|
215751
|
-
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, theme, isReady, urls: urls2, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
|
|
215763
|
+
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, urls: urls2, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
|
|
215752
215764
|
}
|
|
215753
215765
|
function CellSetExpressionPlotOptions(props2) {
|
|
215754
215766
|
const { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions } = props2;
|
|
@@ -272402,7 +272414,7 @@ function useExpressionByCellSet(expressionData, obsIndex, cellSets, additionalCe
|
|
|
272402
272414
|
return [expressionArr, setArr, expressionMax];
|
|
272403
272415
|
}
|
|
272404
272416
|
function CellSetExpressionPlotSubscriber(props2) {
|
|
272405
|
-
const { coordinationScopes, removeGridComponent, theme } = props2;
|
|
272417
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme } = props2;
|
|
272406
272418
|
const classes = useStyles();
|
|
272407
272419
|
const loaders = useLoaders();
|
|
272408
272420
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets }, { setFeatureValueTransform, setFeatureValueTransformCoefficient }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_FEATURE_VALUE_DISTRIBUTION], coordinationScopes);
|
|
@@ -272426,7 +272438,7 @@ function CellSetExpressionPlotSubscriber(props2) {
|
|
|
272426
272438
|
const [expressionArr, setArr, expressionMax] = useExpressionByCellSet(expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, theme);
|
|
272427
272439
|
const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? featureLabelsMap?.get(geneSelection[0]) || geneSelection[0] : null;
|
|
272428
272440
|
const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
|
|
272429
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { domainMax: expressionMax, colors: setArr, data: expressionArr, theme, width: width2, height: height2, obsType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
272441
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { domainMax: expressionMax, colors: setArr, data: expressionArr, theme, width: width2, height: height2, obsType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
272430
272442
|
}
|
|
272431
272443
|
function CellSetSizesPlot(props2) {
|
|
272432
272444
|
const { data: rawData, theme, width: width2, height: height2, marginRight = 90, marginBottom = 120, keyLength = 36, obsType, onBarSelect } = props2;
|
|
@@ -272546,7 +272558,7 @@ function CellSetSizesPlot(props2) {
|
|
|
272546
272558
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, signalListeners, getTooltipText });
|
|
272547
272559
|
}
|
|
272548
272560
|
function CellSetSizesPlotSubscriber(props2) {
|
|
272549
|
-
const { coordinationScopes, removeGridComponent, theme, title: titleOverride } = props2;
|
|
272561
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props2;
|
|
272550
272562
|
const classes = useStyles();
|
|
272551
272563
|
const loaders = useLoaders();
|
|
272552
272564
|
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);
|
|
@@ -272593,7 +272605,7 @@ function CellSetSizesPlotSubscriber(props2) {
|
|
|
272593
272605
|
setCellSetSelection([...cellSetSelection, setNamePath]);
|
|
272594
272606
|
}
|
|
272595
272607
|
};
|
|
272596
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
|
|
272608
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
|
|
272597
272609
|
}
|
|
272598
272610
|
function ExpressionHistogram(props2) {
|
|
272599
272611
|
const { geneSelection, data: data2, theme, width: width2, height: height2, marginRight = 90, marginBottom = 50, onSelect } = props2;
|
|
@@ -272651,7 +272663,7 @@ function ExpressionHistogram(props2) {
|
|
|
272651
272663
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, signalListeners, spec });
|
|
272652
272664
|
}
|
|
272653
272665
|
function ExpressionHistogramSubscriber(props2) {
|
|
272654
|
-
const { coordinationScopes, removeGridComponent, theme } = props2;
|
|
272666
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme } = props2;
|
|
272655
272667
|
const classes = useStyles();
|
|
272656
272668
|
const loaders = useLoaders();
|
|
272657
272669
|
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);
|
|
@@ -272700,7 +272712,7 @@ function ExpressionHistogramSubscriber(props2) {
|
|
|
272700
272712
|
setCellSetSelection,
|
|
272701
272713
|
firstGeneSelected
|
|
272702
272714
|
]);
|
|
272703
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
|
|
272715
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
|
|
272704
272716
|
}
|
|
272705
272717
|
class CsvSource {
|
|
272706
272718
|
constructor({ url, requestInit: requestInit2 }) {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-7ce1d734.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var LercDecode = { exports: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/dev",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dist-tsc"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vitessce/all": "3.3.
|
|
20
|
-
"@vitessce/
|
|
21
|
-
"@vitessce/
|
|
22
|
-
"@vitessce/export-utils": "3.3.
|
|
19
|
+
"@vitessce/all": "3.3.2",
|
|
20
|
+
"@vitessce/constants": "3.3.2",
|
|
21
|
+
"@vitessce/config": "3.3.2",
|
|
22
|
+
"@vitessce/export-utils": "3.3.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@vitejs/plugin-react": "^4.0.0",
|