@vitessce/dev 3.4.10 → 3.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-e1c8aa98.js → deflate-6ef077a2.js} +1 -1
- package/dist/{higlass-e8ee5e91.js → higlass-778a925c.js} +1 -1
- package/dist/{index-dac7a121.js → index-2c3cee50.js} +163 -84
- package/dist/{index-f07e063d.js → index-70b1dc84.js} +2 -2
- package/dist/index.js +8 -1
- package/dist/{jpeg-756cf775.js → jpeg-cd983bdb.js} +1 -1
- package/dist/{lerc-fb3fad1c.js → lerc-dc7b03d6.js} +1 -1
- package/dist/{lzw-2eaaa065.js → lzw-d5c3082e.js} +1 -1
- package/dist/{packbits-0bc4bd4e.js → packbits-4757d9a2.js} +1 -1
- package/dist/{raw-09bc7d48.js → raw-0ee80594.js} +1 -1
- package/dist/{troika-three-text.esm-7fc33538.js → troika-three-text.esm-d3dc63d3.js} +1 -1
- package/dist/{webimage-62426708.js → webimage-2c3628c1.js} +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { createElement, isValidElement, PureComponent, Component } from "react";
|
|
2
2
|
import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
|
|
3
|
-
import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-
|
|
3
|
+
import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-2c3cee50.js";
|
|
4
4
|
var promise = {};
|
|
5
5
|
(function(exports2) {
|
|
6
6
|
(function(global) {
|
|
@@ -212,6 +212,7 @@ const CoordinationType$2 = {
|
|
|
212
212
|
FEATURE_TYPE: "featureType",
|
|
213
213
|
FEATURE_VALUE_TYPE: "featureValueType",
|
|
214
214
|
OBS_LABELS_TYPE: "obsLabelsType",
|
|
215
|
+
FEATURE_LABELS_TYPE: "featureLabelsType",
|
|
215
216
|
// Other types
|
|
216
217
|
EMBEDDING_TYPE: "embeddingType",
|
|
217
218
|
EMBEDDING_ZOOM: "embeddingZoom",
|
|
@@ -335,6 +336,23 @@ const DescriptionType = {
|
|
|
335
336
|
PLAIN: "plain",
|
|
336
337
|
MARKDOWN: "markdown"
|
|
337
338
|
};
|
|
339
|
+
const ViewHelpMapping = {
|
|
340
|
+
SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
|
|
341
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
342
|
+
SPATIAL: "The spatial view displays (potentially layered) spatially-resolved data including RGB or multiplexed images, segmentations of observations (bitmask- or polygon-based), and/or points (e.g., representing FISH transcripts).",
|
|
343
|
+
DESCRIPTION: "The description view displays additional information about a dataset. When images are included in a dataset, the description view also includes image metadata (if contained in the image files).",
|
|
344
|
+
STATUS: "The status view displays debugging messages, including app-wide error messages when datasets fail to load or when schemas fail to validate. Details about the entity under the mouse cursor (cell, gene, and/or molecule) are displayed during hover interactions.",
|
|
345
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
346
|
+
GENOMIC_PROFILES: "The genomic profiles view displays genome browser tracks (using the genomic-profiles data type) containing bar plots, where the genome is along the x-axis and the value at each genome position is encoded with a bar along the y-axis.",
|
|
347
|
+
GATING: "The gating scatterplot displays expression data for two genes (along the X and Y axes). Users can select two genes, and the scatterplot is dynamically generated using observation-by-feature matrix data. Gating can then be performed by using the lasso or box select tools.",
|
|
348
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
349
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
350
|
+
OBS_SET_SIZES: "The observation set sizes view displays a bar plot with the currently-selected observation sets (e.g., cell types) on the x-axis and bars representing their size (e.g., number of cells) on the y-axis.",
|
|
351
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
|
|
352
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
353
|
+
DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
|
|
354
|
+
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
|
|
355
|
+
};
|
|
338
356
|
const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
339
357
|
[DataType$3.OBS_SEGMENTATIONS]: [
|
|
340
358
|
CoordinationType$2.FILE_UID,
|
|
@@ -860,10 +878,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
860
878
|
]
|
|
861
879
|
};
|
|
862
880
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
863
|
-
const version$6 = "3.4.
|
|
864
|
-
const date$5 = "2024-
|
|
881
|
+
const version$6 = "3.4.12";
|
|
882
|
+
const date$5 = "2024-10-02";
|
|
865
883
|
const branch = "changeset-release/main";
|
|
866
|
-
const hash$1 = "
|
|
884
|
+
const hash$1 = "ce99ac9e";
|
|
867
885
|
const META_VERSION = {
|
|
868
886
|
note,
|
|
869
887
|
version: version$6,
|
|
@@ -35527,7 +35545,7 @@ const obsFeatureMatrixSpatialdataSchema = annDataObsFeatureMatrix.extend({
|
|
|
35527
35545
|
const obsSetsSpatialdataSchema = z.object({
|
|
35528
35546
|
region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
|
|
35529
35547
|
tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
|
|
35530
|
-
obsSets:
|
|
35548
|
+
obsSets: annDataObsSetsArr
|
|
35531
35549
|
});
|
|
35532
35550
|
const meshGlbSchema = z.object({
|
|
35533
35551
|
targetX: z.number(),
|
|
@@ -44302,6 +44320,9 @@ const ExpandLess = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
|
|
|
44302
44320
|
const ExpandMore = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
|
|
44303
44321
|
d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
44304
44322
|
}), "ExpandMore");
|
|
44323
|
+
const HelpIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
|
|
44324
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"
|
|
44325
|
+
}), "Help");
|
|
44305
44326
|
const ImageIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
|
|
44306
44327
|
d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"
|
|
44307
44328
|
}), "Image");
|
|
@@ -44406,6 +44427,18 @@ const useStyles$r = makeStyles((theme) => ({
|
|
|
44406
44427
|
},
|
|
44407
44428
|
downloadLink: {
|
|
44408
44429
|
color: theme.palette.primaryForeground
|
|
44430
|
+
},
|
|
44431
|
+
helpTextSpan: {
|
|
44432
|
+
maxWidth: "400px",
|
|
44433
|
+
padding: "5px 10px",
|
|
44434
|
+
display: "inline-block",
|
|
44435
|
+
textAlign: "justify",
|
|
44436
|
+
fontSize: "14px",
|
|
44437
|
+
backgroundColor: theme.palette.gridLayoutBackground,
|
|
44438
|
+
color: theme.palette.tooltipText,
|
|
44439
|
+
borderRadius: "8px",
|
|
44440
|
+
boxShadow: "0 0 10px rgba(0, 0, 0, 0.2)",
|
|
44441
|
+
border: "10px solid grey"
|
|
44409
44442
|
}
|
|
44410
44443
|
}));
|
|
44411
44444
|
function SettingsIconWithArrow({ open: open2 }) {
|
|
@@ -44428,21 +44461,27 @@ function DownloadOptions(props) {
|
|
|
44428
44461
|
const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(CloudDownloadIconWithArrow, { open: open2 }), [open2]);
|
|
44429
44462
|
return urls2 && urls2.length ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open download options menu", children: urls2.map(({ url, name: name2 }) => jsxRuntimeExports.jsx(MenuItem$1, { dense: true, "aria-label": `Click to download ${name2}`, children: jsxRuntimeExports.jsxs(Link$1, { underline: "always", href: url, target: "_blank", rel: "noopener", className: classes.downloadLink, children: ["Download ", name2] }) }, `${url}_${name2}`)) }) : null;
|
|
44430
44463
|
}
|
|
44464
|
+
function HelpButton(props) {
|
|
44465
|
+
const { helpText } = props;
|
|
44466
|
+
const [open2, setOpen] = useState(false);
|
|
44467
|
+
const classes = useStyles$r();
|
|
44468
|
+
return jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(HelpIcon, {}), buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open help info", withPaper: false, children: jsxRuntimeExports.jsx("span", { className: classes.helpTextSpan, children: helpText }) });
|
|
44469
|
+
}
|
|
44431
44470
|
function ClosePaneButton(props) {
|
|
44432
44471
|
const { removeGridComponent } = props;
|
|
44433
44472
|
const classes = useStyles$r();
|
|
44434
44473
|
return jsxRuntimeExports.jsx(IconButton$2, { onClick: removeGridComponent, size: "small", className: classes.iconButton, title: "close", "aria-label": "Close panel button", children: jsxRuntimeExports.jsx(CloseIcon, {}) });
|
|
44435
44474
|
}
|
|
44436
44475
|
function TitleInfo(props) {
|
|
44437
|
-
const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options, closeButtonVisible = true, downloadButtonVisible = true } = props;
|
|
44476
|
+
const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options, closeButtonVisible = true, downloadButtonVisible = true, helpText } = props;
|
|
44438
44477
|
const classes = useTitleStyles();
|
|
44439
44478
|
return (
|
|
44440
44479
|
// d-flex without wrapping div is not always full height; I don't understand the root cause.
|
|
44441
|
-
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), downloadButtonVisible ? jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }) : null, closeButtonVisible && removeGridComponent ? jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent }) : null] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
44480
|
+
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), downloadButtonVisible ? jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }) : null, helpText ? jsxRuntimeExports.jsx(HelpButton, { helpText }) : null, closeButtonVisible && removeGridComponent ? jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent }) : null] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
44442
44481
|
[classes.scrollCard]: isScroll,
|
|
44443
44482
|
[classes.spatialCard]: isSpatial,
|
|
44444
44483
|
[classes.noScrollCard]: !isScroll && !isSpatial
|
|
44445
|
-
}), "aria-busy": !isReady, role: "main", children: [!isReady
|
|
44484
|
+
}), "aria-busy": !isReady, role: "main", children: [!isReady ? jsxRuntimeExports.jsx(LoadingIndicator, {}) : null, children3] })] })
|
|
44446
44485
|
);
|
|
44447
44486
|
}
|
|
44448
44487
|
class AbstractLoaderError {
|
|
@@ -55187,7 +55226,7 @@ function Description(props) {
|
|
|
55187
55226
|
return jsxRuntimeExports.jsxs("div", { className: classes.description, children: [descriptionType && descriptionType === DescriptionType.MARKDOWN ? jsxRuntimeExports.jsx(Markdown, { children: description2 }) : jsxRuntimeExports.jsx("p", { children: description2 }), metadata2 && Array.from(metadata2.entries()).map(([layerIndex, { name: layerName, metadata: metadataRecord }]) => metadataRecord && Object.entries(metadataRecord).length > 0 ? jsxRuntimeExports.jsxs("details", { children: [jsxRuntimeExports.jsx("summary", { children: layerName }), jsxRuntimeExports.jsx("div", { className: classes.metadataContainer, children: jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(metadataRecord).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { title: key2, children: key2 }), jsxRuntimeExports.jsx("td", { title: value2, children: value2 })] }, key2)) }) }) })] }, layerIndex) : null)] });
|
|
55188
55227
|
}
|
|
55189
55228
|
function DescriptionSubscriber(props) {
|
|
55190
|
-
const { coordinationScopes, description: descriptionOverride, descriptionType, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible } = props;
|
|
55229
|
+
const { coordinationScopes, description: descriptionOverride, descriptionType, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible, helpText = ViewHelpMapping.DESCRIPTION } = props;
|
|
55191
55230
|
const loaders = useLoaders();
|
|
55192
55231
|
const [{ dataset, spatialImageLayer: rasterLayers }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DESCRIPTION], coordinationScopes);
|
|
55193
55232
|
const [description2] = useDescription(loaders, dataset);
|
|
@@ -55209,7 +55248,7 @@ function DescriptionSubscriber(props) {
|
|
|
55209
55248
|
}
|
|
55210
55249
|
return result;
|
|
55211
55250
|
}, [rasterLayers, imageLayerMeta, imageLayerLoaders]);
|
|
55212
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, descriptionType, metadata: metadata2 }) });
|
|
55251
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady, helpText, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, descriptionType, metadata: metadata2 }) });
|
|
55213
55252
|
}
|
|
55214
55253
|
var earthRadius = 63710088e-1;
|
|
55215
55254
|
var factors = {
|
|
@@ -65342,9 +65381,9 @@ var isSymbol$6 = USE_NATIVE && typeof $Symbol$1.iterator == "symbol" ? function(
|
|
|
65342
65381
|
} : function(it) {
|
|
65343
65382
|
return it instanceof $Symbol$1;
|
|
65344
65383
|
};
|
|
65345
|
-
var $defineProperty$
|
|
65384
|
+
var $defineProperty$3 = function defineProperty2(it, key2, D2) {
|
|
65346
65385
|
if (it === ObjectProto)
|
|
65347
|
-
$defineProperty$
|
|
65386
|
+
$defineProperty$3(OPSymbols, key2, D2);
|
|
65348
65387
|
anObject(it);
|
|
65349
65388
|
key2 = toPrimitive(key2, true);
|
|
65350
65389
|
anObject(D2);
|
|
@@ -65369,7 +65408,7 @@ var $defineProperties = function defineProperties2(it, P2) {
|
|
|
65369
65408
|
var l2 = keys4.length;
|
|
65370
65409
|
var key2;
|
|
65371
65410
|
while (l2 > i2)
|
|
65372
|
-
$defineProperty$
|
|
65411
|
+
$defineProperty$3(it, key2 = keys4[i2++], P2[key2]);
|
|
65373
65412
|
return it;
|
|
65374
65413
|
};
|
|
65375
65414
|
var $create = function create3(it, P2) {
|
|
@@ -65434,7 +65473,7 @@ if (!USE_NATIVE) {
|
|
|
65434
65473
|
return this._k;
|
|
65435
65474
|
});
|
|
65436
65475
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
65437
|
-
$DP.f = $defineProperty$
|
|
65476
|
+
$DP.f = $defineProperty$3;
|
|
65438
65477
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
65439
65478
|
require_objectPie().f = $propertyIsEnumerable;
|
|
65440
65479
|
$GOPS.f = $getOwnPropertySymbols;
|
|
@@ -65477,7 +65516,7 @@ $export$2($export$2.S + $export$2.F * !USE_NATIVE, "Object", {
|
|
|
65477
65516
|
// 19.1.2.2 Object.create(O [, Properties])
|
|
65478
65517
|
create: $create,
|
|
65479
65518
|
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
|
65480
|
-
defineProperty: $defineProperty$
|
|
65519
|
+
defineProperty: $defineProperty$3,
|
|
65481
65520
|
// 19.1.2.3 Object.defineProperties(O, Properties)
|
|
65482
65521
|
defineProperties: $defineProperties,
|
|
65483
65522
|
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
|
@@ -76831,7 +76870,7 @@ function SetsManager(props) {
|
|
|
76831
76870
|
}
|
|
76832
76871
|
const packageJson = { name: "vitessce" };
|
|
76833
76872
|
function ObsSetsManagerSubscriber(props) {
|
|
76834
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props;
|
|
76873
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SETS } = props;
|
|
76835
76874
|
const loaders = useLoaders();
|
|
76836
76875
|
const setWarning = useSetWarning();
|
|
76837
76876
|
const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetExpansion: cellSetExpansion, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsColorEncoding: cellColorEncoding }, { setObsSetSelection: setCellSetSelection, setObsColorEncoding: setCellColorEncoding, setObsSetColor: setCellSetColor, setObsSetExpansion: setCellSetExpansion, setAdditionalObsSets: setAdditionalCellSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SETS], coordinationScopes);
|
|
@@ -77226,7 +77265,7 @@ function ObsSetsManagerSubscriber(props) {
|
|
|
77226
77265
|
setWarning,
|
|
77227
77266
|
theme
|
|
77228
77267
|
]);
|
|
77229
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: manager });
|
|
77268
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, children: manager });
|
|
77230
77269
|
}
|
|
77231
77270
|
function tree_add$1(d) {
|
|
77232
77271
|
var x2 = +this._x.call(null, d), y2 = +this._y.call(null, d);
|
|
@@ -148328,16 +148367,24 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
|
148328
148367
|
return value2;
|
|
148329
148368
|
};
|
|
148330
148369
|
var callBind$3 = { exports: {} };
|
|
148331
|
-
var
|
|
148332
|
-
var
|
|
148333
|
-
|
|
148334
|
-
|
|
148335
|
-
|
|
148336
|
-
|
|
148337
|
-
|
|
148370
|
+
var esDefineProperty;
|
|
148371
|
+
var hasRequiredEsDefineProperty;
|
|
148372
|
+
function requireEsDefineProperty() {
|
|
148373
|
+
if (hasRequiredEsDefineProperty)
|
|
148374
|
+
return esDefineProperty;
|
|
148375
|
+
hasRequiredEsDefineProperty = 1;
|
|
148376
|
+
var GetIntrinsic3 = getIntrinsic;
|
|
148377
|
+
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
148378
|
+
if ($defineProperty2) {
|
|
148379
|
+
try {
|
|
148380
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
148381
|
+
} catch (e3) {
|
|
148382
|
+
$defineProperty2 = false;
|
|
148383
|
+
}
|
|
148338
148384
|
}
|
|
148385
|
+
esDefineProperty = $defineProperty2;
|
|
148386
|
+
return esDefineProperty;
|
|
148339
148387
|
}
|
|
148340
|
-
var esDefineProperty = $defineProperty$3;
|
|
148341
148388
|
var GetIntrinsic$3 = getIntrinsic;
|
|
148342
148389
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
148343
148390
|
if ($gOPD$1) {
|
|
@@ -148348,7 +148395,7 @@ if ($gOPD$1) {
|
|
|
148348
148395
|
}
|
|
148349
148396
|
}
|
|
148350
148397
|
var gopd$1 = $gOPD$1;
|
|
148351
|
-
var $defineProperty$2 =
|
|
148398
|
+
var $defineProperty$2 = requireEsDefineProperty();
|
|
148352
148399
|
var $SyntaxError = syntax;
|
|
148353
148400
|
var $TypeError$3 = type$1;
|
|
148354
148401
|
var gopd = gopd$1;
|
|
@@ -148389,7 +148436,7 @@ var defineDataProperty$1 = function defineDataProperty(obj, property2, value2) {
|
|
|
148389
148436
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
148390
148437
|
}
|
|
148391
148438
|
};
|
|
148392
|
-
var $defineProperty$1 =
|
|
148439
|
+
var $defineProperty$1 = requireEsDefineProperty();
|
|
148393
148440
|
var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
|
|
148394
148441
|
return !!$defineProperty$1;
|
|
148395
148442
|
};
|
|
@@ -148458,7 +148505,7 @@ var setFunctionLength = function setFunctionLength2(fn, length2) {
|
|
|
148458
148505
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
148459
148506
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
148460
148507
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
148461
|
-
var $defineProperty2 =
|
|
148508
|
+
var $defineProperty2 = requireEsDefineProperty();
|
|
148462
148509
|
var $max = GetIntrinsic3("%Math.max%");
|
|
148463
148510
|
module2.exports = function callBind2(originalFunction) {
|
|
148464
148511
|
if (typeof originalFunction !== "function") {
|
|
@@ -182825,16 +182872,16 @@ async function getDecoder(fileDirectory) {
|
|
|
182825
182872
|
const Decoder = await importFn();
|
|
182826
182873
|
return new Decoder(fileDirectory);
|
|
182827
182874
|
}
|
|
182828
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
182829
|
-
addDecoder(5, () => import("./lzw-
|
|
182875
|
+
addDecoder([void 0, 1], () => import("./raw-0ee80594.js").then((m2) => m2.default));
|
|
182876
|
+
addDecoder(5, () => import("./lzw-d5c3082e.js").then((m2) => m2.default));
|
|
182830
182877
|
addDecoder(6, () => {
|
|
182831
182878
|
throw new Error("old style JPEG compression is not supported.");
|
|
182832
182879
|
});
|
|
182833
|
-
addDecoder(7, () => import("./jpeg-
|
|
182834
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
182835
|
-
addDecoder(32773, () => import("./packbits-
|
|
182836
|
-
addDecoder(34887, () => import("./lerc-
|
|
182837
|
-
addDecoder(50001, () => import("./webimage-
|
|
182880
|
+
addDecoder(7, () => import("./jpeg-cd983bdb.js").then((m2) => m2.default));
|
|
182881
|
+
addDecoder([8, 32946], () => import("./deflate-6ef077a2.js").then((m2) => m2.default));
|
|
182882
|
+
addDecoder(32773, () => import("./packbits-4757d9a2.js").then((m2) => m2.default));
|
|
182883
|
+
addDecoder(34887, () => import("./lerc-dc7b03d6.js").then((m2) => m2.default));
|
|
182884
|
+
addDecoder(50001, () => import("./webimage-2c3628c1.js").then((m2) => m2.default));
|
|
182838
182885
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
182839
182886
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
182840
182887
|
}
|
|
@@ -197596,11 +197643,11 @@ function TooltipContent(props) {
|
|
|
197596
197643
|
return jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(info2).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { children: key2 }), jsxRuntimeExports.jsx("td", { children: value2 })] }, key2)) }) });
|
|
197597
197644
|
}
|
|
197598
197645
|
function ScatterplotTooltipSubscriber(props) {
|
|
197599
|
-
const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo } = props;
|
|
197646
|
+
const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 } = props;
|
|
197600
197647
|
const sourceUuid = useComponentHover();
|
|
197601
197648
|
const viewInfo = useComponentViewInfo(parentUuid);
|
|
197602
|
-
const [cellInfo, x2, y2] = obsHighlight &&
|
|
197603
|
-
|
|
197649
|
+
const [cellInfo, x2, y2] = obsHighlight && getObsInfo2 ? [
|
|
197650
|
+
getObsInfo2(obsHighlight),
|
|
197604
197651
|
...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight) : [null, null]
|
|
197605
197652
|
] : [null, null, null];
|
|
197606
197653
|
return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
|
|
@@ -202611,6 +202658,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
202611
202658
|
theme,
|
|
202612
202659
|
observationsLabelOverride,
|
|
202613
202660
|
title: titleOverride,
|
|
202661
|
+
helpText = ViewHelpMapping.SCATTERPLOT,
|
|
202614
202662
|
// Average fill density for dynamic opacity calculation.
|
|
202615
202663
|
averageFillDensity
|
|
202616
202664
|
} = props;
|
|
@@ -202751,7 +202799,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
202751
202799
|
initialTargetY,
|
|
202752
202800
|
averageFillDensity
|
|
202753
202801
|
]);
|
|
202754
|
-
const
|
|
202802
|
+
const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
|
|
202755
202803
|
const cellSelectionSet = useMemo(() => new Set(cellSelection), [cellSelection]);
|
|
202756
202804
|
const getCellIsSelected = useCallback((object2, { index: index2 }) => (cellSelectionSet || /* @__PURE__ */ new Set([])).has(obsEmbeddingIndex[index2]) ? 1 : 0, [cellSelectionSet, obsEmbeddingIndex]);
|
|
202757
202805
|
const cellRadius = cellRadiusMode === "manual" ? cellRadiusFixed : dynamicCellRadius;
|
|
@@ -202837,7 +202885,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
202837
202885
|
setTargetY(target2[1]);
|
|
202838
202886
|
setTargetZ(target2[2] || 0);
|
|
202839
202887
|
};
|
|
202840
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, embeddingPointsVisible, setEmbeddingPointsVisible, embeddingContoursVisible, setEmbeddingContoursVisible, embeddingContoursFilled, setEmbeddingContoursFilled, contourPercentiles, setContourPercentiles, defaultContourPercentiles: DEFAULT_CONTOUR_PERCENTILES, contourColorEncoding, setContourColorEncoding }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, {
|
|
202888
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, embeddingPointsVisible, setEmbeddingPointsVisible, embeddingContoursVisible, setEmbeddingContoursVisible, embeddingContoursFilled, setEmbeddingContoursFilled, contourPercentiles, setContourPercentiles, defaultContourPercentiles: DEFAULT_CONTOUR_PERCENTILES, contourColorEncoding, setContourColorEncoding }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, {
|
|
202841
202889
|
ref: deckRef,
|
|
202842
202890
|
uuid,
|
|
202843
202891
|
theme,
|
|
@@ -202881,7 +202929,7 @@ function EmbeddingScatterplotSubscriber(props) {
|
|
|
202881
202929
|
contoursFilled: embeddingContoursFilled,
|
|
202882
202930
|
embeddingPointsVisible,
|
|
202883
202931
|
embeddingContoursVisible
|
|
202884
|
-
}), tooltipsVisible && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo }), jsxRuntimeExports.jsx(Legend, {
|
|
202932
|
+
}), tooltipsVisible && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 }), jsxRuntimeExports.jsx(Legend, {
|
|
202885
202933
|
visible: true,
|
|
202886
202934
|
theme,
|
|
202887
202935
|
featureType,
|
|
@@ -202953,7 +203001,8 @@ function GatingSubscriber(props) {
|
|
|
202953
203001
|
disableTooltip = false,
|
|
202954
203002
|
title: titleOverride,
|
|
202955
203003
|
// Average fill density for dynamic opacity calculation.
|
|
202956
|
-
averageFillDensity
|
|
203004
|
+
averageFillDensity,
|
|
203005
|
+
helpText = ViewHelpMapping.GATING
|
|
202957
203006
|
} = props;
|
|
202958
203007
|
const loaders = useLoaders();
|
|
202959
203008
|
const setComponentHover = useSetComponentHover();
|
|
@@ -203119,7 +203168,7 @@ function GatingSubscriber(props) {
|
|
|
203119
203168
|
matrixObsIndex: obsIndex,
|
|
203120
203169
|
expressionData: uint8ExpressionData
|
|
203121
203170
|
});
|
|
203122
|
-
const
|
|
203171
|
+
const getObsInfo2 = useCallback((obsId) => {
|
|
203123
203172
|
const selectedTransformName = VALUE_TRANSFORM_OPTIONS.find((o2) => o2.value === featureValueTransform)?.name;
|
|
203124
203173
|
const genePrefix = featureValueTransform ? `${selectedTransformName} ` : "";
|
|
203125
203174
|
const obsIdx = obsIndex?.indexOf(obsId);
|
|
@@ -203137,7 +203186,7 @@ function GatingSubscriber(props) {
|
|
|
203137
203186
|
gatingFeatureSelectionY,
|
|
203138
203187
|
obsType
|
|
203139
203188
|
]);
|
|
203140
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
203189
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
203141
203190
|
setFeatureValueTransform(newValue);
|
|
203142
203191
|
setTargetX(null);
|
|
203143
203192
|
setTargetY(null);
|
|
@@ -203149,7 +203198,7 @@ function GatingSubscriber(props) {
|
|
|
203149
203198
|
setTargetZ(target2[2] || 0);
|
|
203150
203199
|
}, obsEmbeddingIndex: obsIndex, obsEmbedding: obsXY, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
|
|
203151
203200
|
setComponentHover(uuid);
|
|
203152
|
-
}, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo })] });
|
|
203201
|
+
}, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), !disableTooltip && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2 })] });
|
|
203153
203202
|
}
|
|
203154
203203
|
var DEFAULT_CONFIG = {
|
|
203155
203204
|
// minimum relative difference between two compared values,
|
|
@@ -222169,7 +222218,7 @@ function SpatialOptions(props) {
|
|
|
222169
222218
|
}, id: `gene-expression-colormap-range-${spatialOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] }) : null] });
|
|
222170
222219
|
}
|
|
222171
222220
|
function SpatialTooltipSubscriber$1(props) {
|
|
222172
|
-
const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo, hoverData, hoverCoord, useHoverInfoForTooltip, getObsIdFromHoverData } = props;
|
|
222221
|
+
const { parentUuid, obsHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, hoverData, hoverCoord, useHoverInfoForTooltip, getObsIdFromHoverData } = props;
|
|
222173
222222
|
const sourceUuid = useComponentHover();
|
|
222174
222223
|
const viewInfo = useComponentViewInfo(parentUuid);
|
|
222175
222224
|
let [cellInfo, x2, y2] = [null, null, null];
|
|
@@ -222177,21 +222226,21 @@ function SpatialTooltipSubscriber$1(props) {
|
|
|
222177
222226
|
const obsId = getObsIdFromHoverData(hoverData);
|
|
222178
222227
|
if (obsId) {
|
|
222179
222228
|
[cellInfo, x2, y2] = [
|
|
222180
|
-
|
|
222229
|
+
getObsInfo2(obsId),
|
|
222181
222230
|
...viewInfo && viewInfo.project ? viewInfo.project(hoverCoord) : [null, null]
|
|
222182
222231
|
];
|
|
222183
222232
|
}
|
|
222184
|
-
} else if (!useHoverInfoForTooltip &&
|
|
222233
|
+
} else if (!useHoverInfoForTooltip && getObsInfo2 && obsHighlight) {
|
|
222185
222234
|
const obsId = obsHighlight;
|
|
222186
222235
|
[cellInfo, x2, y2] = [
|
|
222187
|
-
|
|
222236
|
+
getObsInfo2(obsId),
|
|
222188
222237
|
...viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsId) : [null, null]
|
|
222189
222238
|
];
|
|
222190
222239
|
}
|
|
222191
222240
|
return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
|
|
222192
222241
|
}
|
|
222193
222242
|
function SpatialSubscriber$1(props) {
|
|
222194
|
-
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false } = props;
|
|
222243
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false, helpText = ViewHelpMapping.SPATIAL } = props;
|
|
222195
222244
|
const loaders = useLoaders();
|
|
222196
222245
|
const setComponentHover = useSetComponentHover();
|
|
222197
222246
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -222329,7 +222378,7 @@ function SpatialSubscriber$1(props) {
|
|
|
222329
222378
|
matrixObsIndex
|
|
222330
222379
|
]);
|
|
222331
222380
|
const cellSelection = useMemo(() => Array.from(cellColors.keys()), [cellColors]);
|
|
222332
|
-
const
|
|
222381
|
+
const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
|
|
222333
222382
|
const [hoverData, setHoverData] = useState(null);
|
|
222334
222383
|
const [hoverCoord, setHoverCoord] = useState(null);
|
|
222335
222384
|
const useHoverInfoForTooltip = !obsCentroids;
|
|
@@ -222437,7 +222486,7 @@ function SpatialSubscriber$1(props) {
|
|
|
222437
222486
|
}
|
|
222438
222487
|
return [names, colors2];
|
|
222439
222488
|
}, [imageLayers, imageLayerLoaders]);
|
|
222440
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, options, children: [jsxRuntimeExports.jsx("div", { style: {
|
|
222489
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, options, helpText, children: [jsxRuntimeExports.jsx("div", { style: {
|
|
222441
222490
|
position: "absolute",
|
|
222442
222491
|
bottom: "5px",
|
|
222443
222492
|
left: "5px",
|
|
@@ -222455,7 +222504,7 @@ function SpatialSubscriber$1(props) {
|
|
|
222455
222504
|
orbitAxis
|
|
222456
222505
|
}, setViewState, originalViewState, imageLayerDefs: imageLayers, obsSegmentationsLayerDefs: cellsLayer, obsLocationsLayerDefs: moleculesLayer, neighborhoodLayerDefs: neighborhoodsLayer, obsLocationsIndex, obsSegmentationsIndex, obsLocations, obsLocationsLabels, obsLocationsFeatureIndex, hasSegmentations: hasSegmentationsData, obsSegmentations, obsSegmentationsType, obsCentroids, obsCentroidsIndex, cellFilter, cellSelection, cellHighlight, cellColors, neighborhoods, imageLayerLoaders: resolutionFilteredImageLayerLoaders, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, setHoverInfo, setMoleculeHighlight, setComponentHover: () => {
|
|
222457
222506
|
setComponentHover(uuid);
|
|
222458
|
-
}, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo, useHoverInfoForTooltip, hoverData, hoverCoord, getObsIdFromHoverData }), jsxRuntimeExports.jsx(Legend, {
|
|
222507
|
+
}, updateViewInfo: setComponentViewInfo, imageLayerCallbacks, segmentationLayerCallbacks, spatialAxisFixed, geneExpressionColormap, geneExpressionColormapRange, expressionData: shiftedExpressionDataForBitmask, cellColorEncoding, getExpressionValue, theme, useFullResolutionImage }), tooltipsVisible && jsxRuntimeExports.jsx(SpatialTooltipSubscriber$1, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo: getObsInfo2, useHoverInfoForTooltip, hoverData, hoverCoord, getObsIdFromHoverData }), jsxRuntimeExports.jsx(Legend, {
|
|
222459
222508
|
visible: true,
|
|
222460
222509
|
// Fix to dark theme due to black background of spatial plot.
|
|
222461
222510
|
theme: "dark",
|
|
@@ -223683,6 +223732,24 @@ function getXY(obsHighlight, viewInfo, obsIndex, obsLocations, useHoverInfoForTo
|
|
|
223683
223732
|
const projectedObsCoord = viewInfo?.project(obsCoord);
|
|
223684
223733
|
return [projectedObsCoord?.[0], projectedObsCoord?.[1]];
|
|
223685
223734
|
}
|
|
223735
|
+
function getObsInfo(obsSetsData, obsType, obsId) {
|
|
223736
|
+
let result = {
|
|
223737
|
+
[`${capitalize$2(obsType)} ID`]: obsId
|
|
223738
|
+
};
|
|
223739
|
+
if (obsSetsData?.obsSetsMembership) {
|
|
223740
|
+
const obsMembership = obsSetsData.obsSetsMembership.get(obsId) || [];
|
|
223741
|
+
if (obsMembership) {
|
|
223742
|
+
result = {
|
|
223743
|
+
...result,
|
|
223744
|
+
...Object.fromEntries(obsMembership.flatMap((path2) => path2.slice(1).map((pathEl, elLevel) => [
|
|
223745
|
+
`${path2[0]}${path2.length > 2 ? ` L${elLevel + 1}` : ""}`,
|
|
223746
|
+
pathEl
|
|
223747
|
+
])))
|
|
223748
|
+
};
|
|
223749
|
+
}
|
|
223750
|
+
}
|
|
223751
|
+
return result;
|
|
223752
|
+
}
|
|
223686
223753
|
function SpatialTooltipSubscriber(props) {
|
|
223687
223754
|
const {
|
|
223688
223755
|
parentUuid,
|
|
@@ -223702,6 +223769,7 @@ function SpatialTooltipSubscriber(props) {
|
|
|
223702
223769
|
segmentationLayerScopes,
|
|
223703
223770
|
segmentationChannelScopesByLayer,
|
|
223704
223771
|
segmentationChannelCoordination,
|
|
223772
|
+
obsSegmentationsSetsData,
|
|
223705
223773
|
// Images
|
|
223706
223774
|
imageLayerScopes,
|
|
223707
223775
|
imageLayerCoordination
|
|
@@ -223718,6 +223786,8 @@ function SpatialTooltipSubscriber(props) {
|
|
|
223718
223786
|
}, x: projectedHoverCoord?.[0], y: projectedHoverCoord?.[1] + (yOffset += 30) }, layerScope) : null;
|
|
223719
223787
|
}), segmentationLayerScopes?.flatMap((layerScope) => segmentationChannelScopesByLayer?.[layerScope]?.map((channelScope) => {
|
|
223720
223788
|
const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialChannelVisible } = segmentationChannelCoordination?.[0]?.[layerScope]?.[channelScope] || {};
|
|
223789
|
+
const obsSetsData = obsSegmentationsSetsData?.[layerScope]?.[channelScope];
|
|
223790
|
+
const obsInfo = getObsInfo(obsSetsData, obsType, obsHighlight);
|
|
223721
223791
|
if (!obsHighlight || !spatialChannelVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
|
|
223722
223792
|
return null;
|
|
223723
223793
|
const { obsIndex, obsLocations } = obsSegmentationsLocations?.[layerScope]?.[channelScope] || {};
|
|
@@ -223725,9 +223795,7 @@ function SpatialTooltipSubscriber(props) {
|
|
|
223725
223795
|
if (!xy)
|
|
223726
223796
|
return null;
|
|
223727
223797
|
const [x2, y2] = xy;
|
|
223728
|
-
return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: {
|
|
223729
|
-
[`${capitalize$2(obsType)} ID`]: obsHighlight
|
|
223730
|
-
}, x: x2, y: y2 + (yOffset += 30) }, `${layerScope}-${channelScope}`);
|
|
223798
|
+
return jsxRuntimeExports.jsx(TooltipChild, { parentUuid, sourceUuid, tooltipsVisible, tooltipCrosshairsVisible, width: width2, height: height2, info: obsInfo, x: x2, y: y2 + (yOffset += 20 + 15 * Object.keys(obsInfo).length) }, `${layerScope}-${channelScope}`);
|
|
223731
223799
|
})), spotLayerScopes?.map((layerScope) => {
|
|
223732
223800
|
const { obsType, obsHighlight, tooltipsVisible, tooltipCrosshairsVisible, spatialLayerVisible } = spotLayerCoordination?.[0]?.[layerScope] || {};
|
|
223733
223801
|
if (!obsHighlight || !spatialLayerVisible || !tooltipsVisible && !tooltipCrosshairsVisible)
|
|
@@ -223772,7 +223840,7 @@ class ErrorBoundary extends React__default.Component {
|
|
|
223772
223840
|
}
|
|
223773
223841
|
}
|
|
223774
223842
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
223775
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
223843
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-70b1dc84.js");
|
|
223776
223844
|
return { default: SpatialWrapper2 };
|
|
223777
223845
|
});
|
|
223778
223846
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
@@ -224150,8 +224218,8 @@ function SpatialSubscriber(props) {
|
|
|
224150
224218
|
let obsId;
|
|
224151
224219
|
if (layerType === "segmentation-bitmask") {
|
|
224152
224220
|
const { obsIndex } = segmentationMultiIndicesData?.[segmentationLayerScope]?.[channelScope] || {};
|
|
224153
|
-
obsI -= 1;
|
|
224154
224221
|
if (obsIndex && bitmaskValueIsIndex) {
|
|
224222
|
+
obsI -= 1;
|
|
224155
224223
|
obsId = obsIndex?.[obsI];
|
|
224156
224224
|
} else {
|
|
224157
224225
|
obsId = String(obsI);
|
|
@@ -224354,6 +224422,7 @@ function SpatialSubscriber(props) {
|
|
|
224354
224422
|
segmentationLayerScopes,
|
|
224355
224423
|
segmentationChannelScopesByLayer,
|
|
224356
224424
|
segmentationChannelCoordination,
|
|
224425
|
+
obsSegmentationsSetsData,
|
|
224357
224426
|
// Images
|
|
224358
224427
|
imageLayerScopes,
|
|
224359
224428
|
imageLayerCoordination
|
|
@@ -225199,11 +225268,11 @@ const Heatmap$1 = forwardRef((props, deckRef) => {
|
|
|
225199
225268
|
], layers, layerFilter, getCursor: (interactionState) => interactionState.isDragging ? "grabbing" : cursorType, glOptions: DEFAULT_GL_OPTIONS$1, onViewStateChange, viewState, onHover, useDevicePixels, onClick: onHeatmapClick });
|
|
225200
225269
|
});
|
|
225201
225270
|
function HeatmapTooltipSubscriber(props) {
|
|
225202
|
-
const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight, featureHighlight } = props;
|
|
225271
|
+
const { parentUuid, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight, featureHighlight } = props;
|
|
225203
225272
|
const sourceUuid = useComponentHover();
|
|
225204
225273
|
const viewInfo = useComponentViewInfo(parentUuid);
|
|
225205
|
-
const [cellInfo, cellCoord] = obsHighlight &&
|
|
225206
|
-
|
|
225274
|
+
const [cellInfo, cellCoord] = obsHighlight && getObsInfo2 ? [
|
|
225275
|
+
getObsInfo2(obsHighlight),
|
|
225207
225276
|
viewInfo && viewInfo.projectFromId ? viewInfo.projectFromId(obsHighlight, null)[transpose2 ? 0 : 1] : null
|
|
225208
225277
|
] : [null, null];
|
|
225209
225278
|
const [geneInfo, geneCoord] = featureHighlight && getFeatureInfo ? [
|
|
@@ -225249,7 +225318,7 @@ function HeatmapOptions(props) {
|
|
|
225249
225318
|
}) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, children: "Gene Expression Colormap Range" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider", id: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
|
|
225250
225319
|
}
|
|
225251
225320
|
function HeatmapSubscriber(props) {
|
|
225252
|
-
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap" } = props;
|
|
225321
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap", helpText = ViewHelpMapping.HEATMAP } = props;
|
|
225253
225322
|
const loaders = useLoaders();
|
|
225254
225323
|
const setComponentHover = useSetComponentHover();
|
|
225255
225324
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -225292,7 +225361,7 @@ function HeatmapSubscriber(props) {
|
|
|
225292
225361
|
cellSetSelection,
|
|
225293
225362
|
obsIndex
|
|
225294
225363
|
]);
|
|
225295
|
-
const
|
|
225364
|
+
const getObsInfo2 = useGetObsInfo(observationsLabel, obsLabelsTypes, obsLabelsData, obsSetsMembership);
|
|
225296
225365
|
const getObsMembership = useGetObsMembership(obsSetsMembership);
|
|
225297
225366
|
const getFeatureInfo = useCallback((featureId) => {
|
|
225298
225367
|
if (featureId) {
|
|
@@ -225324,7 +225393,7 @@ function HeatmapSubscriber(props) {
|
|
|
225324
225393
|
`${capitalize$2(observationsLabel)} Set`
|
|
225325
225394
|
], [observationsLabel]);
|
|
225326
225395
|
const selectedCount = cellColors.size;
|
|
225327
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
|
|
225396
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, helpText, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
|
|
225328
225397
|
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady: isReady && !isRendering, options: jsxRuntimeExports.jsx(HeatmapOptions, { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible }), children: [jsxRuntimeExports.jsx(Heatmap$1, { ref: deckRef, transpose: transpose2, viewState: { zoom: zoomX, target: [targetX2, targetY2] }, setViewState: ({ zoom: zoom2, target: target2 }) => {
|
|
225329
225398
|
setZoomX(zoom2);
|
|
225330
225399
|
setZoomY(zoom2);
|
|
@@ -225332,7 +225401,7 @@ function HeatmapSubscriber(props) {
|
|
|
225332
225401
|
setTargetY(target2[1]);
|
|
225333
225402
|
}, colormapRange: geneExpressionColormapRange, setColormapRange: setGeneExpressionColormapRange, height: height2, width: width2, theme, uuid, uint8ObsFeatureMatrix: uint8ObsFeatureMatrix?.data, cellColors, colormap: geneExpressionColormap, setIsRendering, setCellHighlight, setGeneHighlight, featureLabelsMap, obsIndex, featureIndex, setTrackHighlight, setComponentHover: () => {
|
|
225334
225403
|
setComponentHover(uuid);
|
|
225335
|
-
}, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid, width: width2, height: height2, transpose: transpose2, getObsInfo, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
|
|
225404
|
+
}, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
|
|
225336
225405
|
}
|
|
225337
225406
|
var AutoSizer$1 = {};
|
|
225338
225407
|
var interopRequireDefault = { exports: {} };
|
|
@@ -229729,7 +229798,7 @@ function FeatureListOptions(props) {
|
|
|
229729
229798
|
} }) })] })] }) : null] });
|
|
229730
229799
|
}
|
|
229731
229800
|
function FeatureListSubscriber(props) {
|
|
229732
|
-
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible } = props;
|
|
229801
|
+
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST } = props;
|
|
229733
229802
|
const loaders = useLoaders();
|
|
229734
229803
|
const [{ dataset, obsType, featureType, featureSelection: geneSelection, featureFilter: geneFilter, obsColorEncoding: cellColorEncoding }, { setFeatureSelection: setGeneSelection, setFeatureFilter: setGeneFilter, setFeatureHighlight: setGeneHighlight, setObsColorEncoding: setCellColorEncoding }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_LIST], coordinationScopes);
|
|
229735
229804
|
const variablesLabel = variablesLabelOverride || featureType;
|
|
@@ -229769,6 +229838,7 @@ function FeatureListSubscriber(props) {
|
|
|
229769
229838
|
removeGridComponent,
|
|
229770
229839
|
isReady,
|
|
229771
229840
|
urls: urls2,
|
|
229841
|
+
helpText,
|
|
229772
229842
|
options: jsxRuntimeExports.jsx(FeatureListOptions, { featureListSort, setFeatureListSort, featureListSortKey: featureListSortKey || initialSortKey, setFeatureListSortKey, showFeatureTable, setShowFeatureTable, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName }),
|
|
229773
229843
|
children: jsxRuntimeExports.jsx(FeatureList, { hasColorEncoding: cellColorEncoding === "geneSelection", showFeatureTable, geneList, featureListSort, featureListSortKey: featureListSortKey || initialSortKey, featureLabelsMap, featureType, geneSelection, geneFilter, setGeneSelection: setGeneSelectionAndColorEncoding, setGeneFilter, setGeneHighlight, enableMultiSelect, hasFeatureLabels: Boolean(featureLabelsMap), primaryColumnName })
|
|
229774
229844
|
});
|
|
@@ -230587,10 +230657,11 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
|
|
|
230587
230657
|
componentWidth,
|
|
230588
230658
|
spatialLayout,
|
|
230589
230659
|
handleImageAdd,
|
|
230590
|
-
enableLayerButtonsWithOneLayer
|
|
230660
|
+
enableLayerButtonsWithOneLayer,
|
|
230661
|
+
helpText
|
|
230591
230662
|
} = props;
|
|
230592
230663
|
const shouldShowImageLayerButton = Boolean(enableLayerButtonsWithOneLayer || imageLayerLoaders?.length > 1);
|
|
230593
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
|
|
230664
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, helpText, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
|
|
230594
230665
|
const { index: index2 } = layer;
|
|
230595
230666
|
const loader2 = segmentationLayerLoaders?.[index2];
|
|
230596
230667
|
const layerMeta = segmentationLayerMeta?.[index2];
|
|
@@ -230705,7 +230776,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props, ref2) =>
|
|
|
230705
230776
|
}), shouldShowImageLayerButton ? jsxRuntimeExports.jsx(Grid$3, { item: true, children: jsxRuntimeExports.jsx(ImageAddButton, { imageOptions: imageLayerMeta, handleImageAdd }) }) : null] }) });
|
|
230706
230777
|
}));
|
|
230707
230778
|
function LayerControllerSubscriber$1(props) {
|
|
230708
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer } = props;
|
|
230779
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer, helpText = ViewHelpMapping.LAYER_CONTROLLER } = props;
|
|
230709
230780
|
const loaders = useLoaders();
|
|
230710
230781
|
const [{ dataset, obsType, spatialImageLayer: rasterLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer }, { setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialZoom: setZoom }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.LAYER_CONTROLLER], coordinationScopes);
|
|
230711
230782
|
const [{ imageLayerCallbacks, areLoadingImageChannels, segmentationLayerCallbacks, areLoadingSegmentationChannels }, { setImageLayerCallbacks, setAreLoadingImageChannels, setSegmentationLayerCallbacks, setAreLoadingSegmentationChannels }] = useAuxiliaryCoordination(COMPONENT_COORDINATION_TYPES.layerController, coordinationScopes);
|
|
@@ -230772,6 +230843,7 @@ function LayerControllerSubscriber$1(props) {
|
|
|
230772
230843
|
setMoleculesLayer,
|
|
230773
230844
|
cellsLayer,
|
|
230774
230845
|
setCellsLayer,
|
|
230846
|
+
helpText,
|
|
230775
230847
|
rasterLayers,
|
|
230776
230848
|
imageLayerLoaders,
|
|
230777
230849
|
imageLayerMeta,
|
|
@@ -231501,7 +231573,7 @@ function Status(props) {
|
|
|
231501
231573
|
return messages2;
|
|
231502
231574
|
}
|
|
231503
231575
|
function StatusSubscriber(props) {
|
|
231504
|
-
const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status" } = props;
|
|
231576
|
+
const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status", helpText = ViewHelpMapping.STATUS } = props;
|
|
231505
231577
|
const [{ obsHighlight: cellHighlight, featureHighlight: geneHighlight, moleculeHighlight }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.STATUS], coordinationScopes);
|
|
231506
231578
|
const warn2 = useWarning();
|
|
231507
231579
|
const infos = [
|
|
@@ -231510,7 +231582,7 @@ function StatusSubscriber(props) {
|
|
|
231510
231582
|
...moleculeHighlight ? [`Hovered gene ${moleculeHighlight}`] : []
|
|
231511
231583
|
];
|
|
231512
231584
|
const info2 = infos.join("; ");
|
|
231513
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, closeButtonVisible, removeGridComponent, isScroll: true, isReady: true, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
|
|
231585
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, closeButtonVisible, removeGridComponent, isScroll: true, isReady: true, helpText, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
|
|
231514
231586
|
}
|
|
231515
231587
|
window.higlassTracks = window.higlassTracks || {};
|
|
231516
231588
|
window.higlassTracksByType = window.higlassTracksByType || {};
|
|
@@ -233072,7 +233144,7 @@ const useStyles$2 = makeStyles((theme) => ({
|
|
|
233072
233144
|
}));
|
|
233073
233145
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
233074
233146
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
233075
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
233147
|
+
const { HiGlassComponent } = await import("./higlass-778a925c.js");
|
|
233076
233148
|
return { default: HiGlassComponent };
|
|
233077
233149
|
});
|
|
233078
233150
|
const HG_SIZE = 800;
|
|
@@ -233239,7 +233311,7 @@ const REFERENCE_STATIC_FILES = {
|
|
|
233239
233311
|
}
|
|
233240
233312
|
};
|
|
233241
233313
|
function GenomicProfilesSubscriber(props) {
|
|
233242
|
-
const { coordinationScopes, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles", showGeneAnnotations = true } = props;
|
|
233314
|
+
const { coordinationScopes, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles", showGeneAnnotations = true, helpText = ViewHelpMapping.GENOMIC_PROFILES } = props;
|
|
233243
233315
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
233244
233316
|
const loaders = useLoaders();
|
|
233245
233317
|
const [{ dataset, obsSetColor: cellSetColor, obsSetSelection: cellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GENOMIC_PROFILES], coordinationScopes);
|
|
@@ -233374,7 +233446,7 @@ function GenomicProfilesSubscriber(props) {
|
|
|
233374
233446
|
assembly
|
|
233375
233447
|
]);
|
|
233376
233448
|
const classes = useStyles$2();
|
|
233377
|
-
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, urls: urls2, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
|
|
233449
|
+
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, urls: urls2, helpText, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
|
|
233378
233450
|
}
|
|
233379
233451
|
function CellSetExpressionPlotOptions(props) {
|
|
233380
233452
|
const { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold, setFeatureValuePositivityThreshold, featureValueColormap, setFeatureValueColormap } = props;
|
|
@@ -238503,7 +238575,7 @@ function useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
238503
238575
|
return [expressionArr, setArr, expressionMax];
|
|
238504
238576
|
}
|
|
238505
238577
|
function CellSetExpressionPlotSubscriber(props) {
|
|
238506
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, jitter: jitter2 = false, yMin = null, yUnits = null } = props;
|
|
238578
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, jitter: jitter2 = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION } = props;
|
|
238507
238579
|
const classes = useStyles$1();
|
|
238508
238580
|
const loaders = useLoaders();
|
|
238509
238581
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection, sampleSetColor }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_FEATURE_VALUE_DISTRIBUTION], coordinationScopes);
|
|
@@ -238533,7 +238605,7 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
|
238533
238605
|
const [histogramData, setArr, exprMax] = useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, theme, yMin);
|
|
238534
238606
|
const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? featureLabelsMap?.get(geneSelection[0]) || geneSelection[0] : null;
|
|
238535
238607
|
const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
|
|
238536
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: histogramData ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { yMin, yUnits, jitter: jitter2, cellSetSelection, sampleSetSelection, sampleSetColor, colors: setArr, data: histogramData, exprMax, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
238608
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: histogramData ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { yMin, yUnits, jitter: jitter2, cellSetSelection, sampleSetSelection, sampleSetColor, colors: setArr, data: histogramData, exprMax, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
238537
238609
|
}
|
|
238538
238610
|
/*! *****************************************************************************
|
|
238539
238611
|
Copyright (c) Microsoft Corporation.
|
|
@@ -290072,7 +290144,7 @@ function CellSetSizesPlot(props) {
|
|
|
290072
290144
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, signalListeners, getTooltipText });
|
|
290073
290145
|
}
|
|
290074
290146
|
function CellSetSizesPlotSubscriber(props) {
|
|
290075
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props;
|
|
290147
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES } = props;
|
|
290076
290148
|
const classes = useStyles$1();
|
|
290077
290149
|
const loaders = useLoaders();
|
|
290078
290150
|
const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsSetExpansion: cellSetExpansion }, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_SIZES], coordinationScopes);
|
|
@@ -290119,7 +290191,7 @@ function CellSetSizesPlotSubscriber(props) {
|
|
|
290119
290191
|
setCellSetSelection([...cellSetSelection, setNamePath]);
|
|
290120
290192
|
}
|
|
290121
290193
|
};
|
|
290122
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
|
|
290194
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
|
|
290123
290195
|
}
|
|
290124
290196
|
function ExpressionHistogram(props) {
|
|
290125
290197
|
const { geneSelection, obsType, featureType, featureValueType, data: data2, theme, width: width2, height: height2, marginRight = 90, marginBottom = 50, onSelect } = props;
|
|
@@ -290178,7 +290250,7 @@ function ExpressionHistogram(props) {
|
|
|
290178
290250
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, signalListeners, spec });
|
|
290179
290251
|
}
|
|
290180
290252
|
function ExpressionHistogramSubscriber(props) {
|
|
290181
|
-
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme } = props;
|
|
290253
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM } = props;
|
|
290182
290254
|
const classes = useStyles$1();
|
|
290183
290255
|
const loaders = useLoaders();
|
|
290184
290256
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, additionalObsSets: additionalCellSets, obsSetColor: cellSetColor }, { setAdditionalObsSets: setAdditionalCellSets, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setObsSetSelection: setCellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_VALUE_HISTOGRAM], coordinationScopes);
|
|
@@ -290226,7 +290298,7 @@ function ExpressionHistogramSubscriber(props) {
|
|
|
290226
290298
|
setCellSetSelection,
|
|
290227
290299
|
firstGeneSelected
|
|
290228
290300
|
]);
|
|
290229
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, obsType, featureType, featureValueType, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
|
|
290301
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, obsType, featureType, featureValueType, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
|
|
290230
290302
|
}
|
|
290231
290303
|
function DotPlot(props) {
|
|
290232
290304
|
const { isStratified, transpose: transpose2, data: rawData, theme, width: width2, height: height2, marginRight, marginBottom, obsType, keyLength = 36, featureType, featureValueType, featureValueTransformName, featureValueColormap, cellSetSelection } = props;
|
|
@@ -290376,7 +290448,7 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
|
|
|
290376
290448
|
return [resultArr, meanExpressionMax];
|
|
290377
290449
|
}
|
|
290378
290450
|
function DotPlotSubscriber(props) {
|
|
290379
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true } = props;
|
|
290451
|
+
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true, helpText = ViewHelpMapping.DOT_PLOT } = props;
|
|
290380
290452
|
const classes = useStyles$1();
|
|
290381
290453
|
const loaders = useLoaders();
|
|
290382
290454
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, featureValuePositivityThreshold: posThreshold, featureValueColormap, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setFeatureValuePositivityThreshold: setPosThreshold, setFeatureValueColormap }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DOT_PLOT], coordinationScopes);
|
|
@@ -290406,7 +290478,7 @@ function DotPlotSubscriber(props) {
|
|
|
290406
290478
|
]);
|
|
290407
290479
|
const [resultArr, meanExpressionMax] = useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, posThreshold, featureLabelsMap);
|
|
290408
290480
|
const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
|
|
290409
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold: posThreshold, setFeatureValuePositivityThreshold: setPosThreshold, featureValueColormap, setFeatureValueColormap }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: resultArr ? jsxRuntimeExports.jsx(DotPlot, { isStratified, transpose: transpose2, domainMax: meanExpressionMax, data: resultArr, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName, featureValueColormap, cellSetSelection }) : jsxRuntimeExports.jsxs("span", { children: ["Select at least one ", featureType, "."] }) }) });
|
|
290481
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold: posThreshold, setFeatureValuePositivityThreshold: setPosThreshold, featureValueColormap, setFeatureValueColormap }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: resultArr ? jsxRuntimeExports.jsx(DotPlot, { isStratified, transpose: transpose2, domainMax: meanExpressionMax, data: resultArr, theme, width: width2, height: height2, obsType, featureType, featureValueType, featureValueTransformName: selectedTransformName, featureValueColormap, cellSetSelection }) : jsxRuntimeExports.jsxs("span", { children: ["Select at least one ", featureType, "."] }) }) });
|
|
290410
290482
|
}
|
|
290411
290483
|
const scaleBand = scale$5("band");
|
|
290412
290484
|
const OBS_KEY = "obsId";
|
|
@@ -290517,7 +290589,7 @@ function FeatureBarPlot(props) {
|
|
|
290517
290589
|
} });
|
|
290518
290590
|
}
|
|
290519
290591
|
function FeatureBarPlotSubscriber(props) {
|
|
290520
|
-
const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null } = props;
|
|
290592
|
+
const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT } = props;
|
|
290521
290593
|
const classes = useStyles$1();
|
|
290522
290594
|
const loaders = useLoaders();
|
|
290523
290595
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsHighlight: cellHighlight, additionalObsSets: additionalCellSets, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_BAR_PLOT], coordinationScopes);
|
|
@@ -290573,7 +290645,7 @@ function FeatureBarPlotSubscriber(props) {
|
|
|
290573
290645
|
featureValueTransformCoefficient,
|
|
290574
290646
|
firstGeneSelected
|
|
290575
290647
|
]);
|
|
290576
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Feature Values${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(FeatureBarPlot, { yMin, yMax: expressionMax, yUnits, data: expressionArr, theme, width: width2, height: height2, obsType, cellHighlight, cellSetSelection, additionalCellSets, cellSetColor, featureType, featureValueType, featureName: firstGeneSelected, onBarSelect, onBarHighlight }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
290648
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Feature Values${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, helpText, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(FeatureBarPlot, { yMin, yMax: expressionMax, yUnits, data: expressionArr, theme, width: width2, height: height2, obsType, cellHighlight, cellSetSelection, additionalCellSets, cellSetColor, featureType, featureValueType, featureName: firstGeneSelected, onBarSelect, onBarHighlight }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
290577
290649
|
}
|
|
290578
290650
|
class CsvSource {
|
|
290579
290651
|
constructor({ url, requestInit: requestInit2 }) {
|
|
@@ -293425,7 +293497,6 @@ class SpatialDataObsSetsLoader extends ObsSetsAnndataLoader {
|
|
|
293425
293497
|
constructor(dataSource, params2) {
|
|
293426
293498
|
super(dataSource, params2);
|
|
293427
293499
|
this.region = this.options.region;
|
|
293428
|
-
this.options = this.options.obsSets;
|
|
293429
293500
|
}
|
|
293430
293501
|
}
|
|
293431
293502
|
class GenomicProfilesZarrLoader extends AbstractTwoStepLoader {
|
|
@@ -327551,6 +327622,7 @@ const baseCoordinationTypes = [
|
|
|
327551
327622
|
new PluginCoordinationType(CoordinationType$2.FEATURE_TYPE, "gene", z.string()),
|
|
327552
327623
|
new PluginCoordinationType(CoordinationType$2.FEATURE_VALUE_TYPE, "expression", z.string()),
|
|
327553
327624
|
new PluginCoordinationType(CoordinationType$2.OBS_LABELS_TYPE, null, z.string().nullable()),
|
|
327625
|
+
new PluginCoordinationType(CoordinationType$2.FEATURE_LABELS_TYPE, null, z.string().nullable()),
|
|
327554
327626
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_ZOOM, null, z.number().nullable()),
|
|
327555
327627
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_ROTATION, 0, z.number().nullable()),
|
|
327556
327628
|
new PluginCoordinationType(CoordinationType$2.EMBEDDING_TARGET_X, null, z.number().nullable()),
|
|
@@ -330276,6 +330348,13 @@ export {
|
|
|
330276
330348
|
PluginAsyncFunction as bn,
|
|
330277
330349
|
z as bo,
|
|
330278
330350
|
useCoordination as bp,
|
|
330351
|
+
useGridItemSize as bq,
|
|
330352
|
+
useComplexCoordination as br,
|
|
330353
|
+
useMultiCoordinationScopesNonNull as bs,
|
|
330354
|
+
useMultiCoordinationScopesSecondaryNonNull as bt,
|
|
330355
|
+
useComplexCoordinationSecondary as bu,
|
|
330356
|
+
useCoordinationScopes as bv,
|
|
330357
|
+
useCoordinationScopesBy as bw,
|
|
330279
330358
|
create$d as c,
|
|
330280
330359
|
RGBAFormat as d,
|
|
330281
330360
|
PCFShadowMap as e,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, aG as SphereGeometry, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, aG as SphereGeometry, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-2c3cee50.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useState, useRef, useEffect, useMemo, forwardRef } from "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -23693,7 +23693,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
|
|
|
23693
23693
|
const {
|
|
23694
23694
|
Text: TextMeshImpl,
|
|
23695
23695
|
preloadFont
|
|
23696
|
-
} = suspend(async () => import("./troika-three-text.esm-
|
|
23696
|
+
} = suspend(async () => import("./troika-three-text.esm-d3dc63d3.js"), []);
|
|
23697
23697
|
const invalidate2 = useThree(({
|
|
23698
23698
|
invalidate: invalidate3
|
|
23699
23699
|
}) => invalidate3);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ba, b5, b3, b4, be, bf, b6, bn, bl, bj, bm, bk, b2, bi, b7, b1, b0, bc, bb, bd, bh, bg, b9, bp, b8, bo } from "./index-
|
|
1
|
+
import { ba, b5, b3, b4, be, bf, b6, bn, bl, bj, bm, bk, b2, bi, b7, b1, b0, bc, bb, bd, bh, bg, b9, br, bu, bp, bv, bw, bq, bs, bt, b8, bo } from "./index-2c3cee50.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
export {
|
|
@@ -25,7 +25,14 @@ export {
|
|
|
25
25
|
bh as getInitialCoordinationScopeName,
|
|
26
26
|
bg as getInitialCoordinationScopePrefix,
|
|
27
27
|
b9 as hconcat,
|
|
28
|
+
br as useComplexCoordination,
|
|
29
|
+
bu as useComplexCoordinationSecondary,
|
|
28
30
|
bp as useCoordination,
|
|
31
|
+
bv as useCoordinationScopes,
|
|
32
|
+
bw as useCoordinationScopesBy,
|
|
33
|
+
bq as useGridItemSize,
|
|
34
|
+
bs as useMultiCoordinationScopesNonNull,
|
|
35
|
+
bt as useMultiCoordinationScopesSecondaryNonNull,
|
|
29
36
|
b8 as vconcat,
|
|
30
37
|
bo as z
|
|
31
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-2c3cee50.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var LercDecode = { exports: {} };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, a$ as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-
|
|
1
|
+
import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, a$ as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-2c3cee50.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
function workerBootstrap() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/dev",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.12",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dist-tsc"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vitessce/all": "3.4.
|
|
20
|
-
"@vitessce/config": "3.4.
|
|
21
|
-
"@vitessce/constants": "3.4.
|
|
22
|
-
"@vitessce/export-utils": "3.4.
|
|
19
|
+
"@vitessce/all": "3.4.12",
|
|
20
|
+
"@vitessce/config": "3.4.12",
|
|
21
|
+
"@vitessce/constants": "3.4.12",
|
|
22
|
+
"@vitessce/export-utils": "3.4.12"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@vitejs/plugin-react": "^4.0.0",
|