@vitessce/dev 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-dd7ac17e.js → deflate-3ddb759b.js} +1 -1
- package/dist/{hglib-bfa27271.js → hglib-cdf09f0e.js} +1 -1
- package/dist/{index-2be4c31c.js → index-7ce1d734.js} +169 -108
- package/dist/index.js +1 -1
- package/dist/{jpeg-f6e5062b.js → jpeg-84db51fc.js} +1 -1
- package/dist/{lerc-0786b93e.js → lerc-01f78fda.js} +1 -1
- package/dist/{lzw-6a6d016c.js → lzw-5c1d5530.js} +1 -1
- package/dist/{packbits-bf4fb6d5.js → packbits-fcadb85f.js} +1 -1
- package/dist/{raw-face48f2.js → raw-09ac1cd1.js} +1 -1
- package/dist/{webimage-7b46caa6.js → webimage-4a08568e.js} +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import ReactDOM__default from "react-dom";
|
|
3
|
-
import { c as commonjsGlobal, o as objectAssign, g as getDefaultExportFromCjs, e as earcut, b as getAugmentedNamespace } from "./index-
|
|
3
|
+
import { c as commonjsGlobal, o as objectAssign, g as getDefaultExportFromCjs, e as earcut, b as getAugmentedNamespace } from "./index-7ce1d734.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
|
6
6
|
const e = m[i];
|
|
@@ -694,10 +694,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
694
694
|
]
|
|
695
695
|
};
|
|
696
696
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
697
|
-
const version$6 = "3.3.
|
|
698
|
-
const date$3 = "2023-
|
|
697
|
+
const version$6 = "3.3.2";
|
|
698
|
+
const date$3 = "2023-11-30";
|
|
699
699
|
const branch = "changeset-release/main";
|
|
700
|
-
const hash$1 = "
|
|
700
|
+
const hash$1 = "a562d787";
|
|
701
701
|
const META_VERSION = {
|
|
702
702
|
note,
|
|
703
703
|
version: version$6,
|
|
@@ -52923,7 +52923,8 @@ function PlotOptions(props2) {
|
|
|
52923
52923
|
const { options } = props2;
|
|
52924
52924
|
const [open2, setOpen] = useState(false);
|
|
52925
52925
|
const classes = useStyles$r();
|
|
52926
|
-
|
|
52926
|
+
const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(SettingsIconWithArrow, { open: open2 }), [open2]);
|
|
52927
|
+
return options ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open plot options menu", children: options }) : null;
|
|
52927
52928
|
}
|
|
52928
52929
|
function CloudDownloadIconWithArrow({ open: open2 }) {
|
|
52929
52930
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(CloudDownloadIcon, {}), open2 ? jsxRuntimeExports.jsx(ArrowDropUpIcon, {}) : jsxRuntimeExports.jsx(ArrowDropDownIcon, {})] });
|
|
@@ -52932,7 +52933,8 @@ function DownloadOptions(props2) {
|
|
|
52932
52933
|
const { urls: urls2 } = props2;
|
|
52933
52934
|
const [open2, setOpen] = useState(false);
|
|
52934
52935
|
const classes = useStyles$r();
|
|
52935
|
-
|
|
52936
|
+
const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(CloudDownloadIconWithArrow, { open: open2 }), [open2]);
|
|
52937
|
+
return urls2 && urls2.length ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open download options menu", children: urls2.map(({ url, name: name2 }) => jsxRuntimeExports.jsx(MenuItem$1, { dense: true, "aria-label": `Click to download ${name2}`, children: jsxRuntimeExports.jsxs(Link$1, { underline: "always", href: url, target: "_blank", rel: "noopener", className: classes.downloadLink, children: ["Download ", name2] }) }, `${url}_${name2}`)) }) : null;
|
|
52936
52938
|
}
|
|
52937
52939
|
function ClosePaneButton(props2) {
|
|
52938
52940
|
const { removeGridComponent } = props2;
|
|
@@ -52940,11 +52942,11 @@ function ClosePaneButton(props2) {
|
|
|
52940
52942
|
return jsxRuntimeExports.jsx(IconButton$2, { onClick: removeGridComponent, size: "small", className: classes.iconButton, title: "close", "aria-label": "Close panel button", children: jsxRuntimeExports.jsx(CloseIcon, {}) });
|
|
52941
52943
|
}
|
|
52942
52944
|
function TitleInfo(props2) {
|
|
52943
|
-
const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options } = props2;
|
|
52945
|
+
const { title: title2, info: info2, children: children3, isScroll, isSpatial, removeGridComponent, urls: urls2, isReady, options, closeButtonVisible = true, downloadButtonVisible = true } = props2;
|
|
52944
52946
|
const classes = useTitleStyles();
|
|
52945
52947
|
return (
|
|
52946
52948
|
// d-flex without wrapping div is not always full height; I don't understand the root cause.
|
|
52947
|
-
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }), jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent })] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
52949
|
+
jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: classes.title, role: "banner", children: [jsxRuntimeExports.jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title2 }), jsxRuntimeExports.jsx("div", { className: classes.titleInfo, title: info2, role: "note", children: info2 }), jsxRuntimeExports.jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [jsxRuntimeExports.jsx(PlotOptions, { options }), downloadButtonVisible ? jsxRuntimeExports.jsx(DownloadOptions, { urls: urls2 }) : null, closeButtonVisible ? jsxRuntimeExports.jsx(ClosePaneButton, { removeGridComponent }) : null] })] }), jsxRuntimeExports.jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
52948
52950
|
[classes.scrollCard]: isScroll,
|
|
52949
52951
|
[classes.spatialCard]: isSpatial,
|
|
52950
52952
|
[classes.noScrollCard]: !isScroll && !isSpatial
|
|
@@ -54086,7 +54088,7 @@ function Description(props2) {
|
|
|
54086
54088
|
return jsxRuntimeExports.jsxs("div", { className: classes.description, children: [jsxRuntimeExports.jsx("p", { children: description2 }), metadata2 && Array.from(metadata2.entries()).map(([layerIndex, { name: layerName, metadata: metadataRecord }]) => metadataRecord && Object.entries(metadataRecord).length > 0 ? jsxRuntimeExports.jsxs("details", { children: [jsxRuntimeExports.jsx("summary", { children: layerName }), jsxRuntimeExports.jsx("div", { className: classes.metadataContainer, children: jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(metadataRecord).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { title: key2, children: key2 }), jsxRuntimeExports.jsx("td", { title: value2, children: value2 })] }, key2)) }) }) })] }, layerIndex) : null)] });
|
|
54087
54089
|
}
|
|
54088
54090
|
function DescriptionSubscriber(props2) {
|
|
54089
|
-
const { coordinationScopes, description: descriptionOverride, removeGridComponent, theme, title: title2 = "Description" } = props2;
|
|
54091
|
+
const { coordinationScopes, description: descriptionOverride, removeGridComponent, theme, title: title2 = "Description", closeButtonVisible } = props2;
|
|
54090
54092
|
const loaders = useLoaders();
|
|
54091
54093
|
const [{ dataset, spatialImageLayer: rasterLayers }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DESCRIPTION], coordinationScopes);
|
|
54092
54094
|
const [description2] = useDescription(loaders, dataset);
|
|
@@ -54108,7 +54110,7 @@ function DescriptionSubscriber(props2) {
|
|
|
54108
54110
|
}
|
|
54109
54111
|
return result;
|
|
54110
54112
|
}, [rasterLayers, imageLayerMeta, imageLayerLoaders]);
|
|
54111
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, isScroll: true, theme, isReady, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, metadata: metadata2 }) });
|
|
54113
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady, children: jsxRuntimeExports.jsx(Description, { description: descriptionOverride || description2, metadata: metadata2 }) });
|
|
54112
54114
|
}
|
|
54113
54115
|
var _global = { exports: {} };
|
|
54114
54116
|
var global$6 = _global.exports = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")();
|
|
@@ -66556,7 +66558,7 @@ function SetsManager(props2) {
|
|
|
66556
66558
|
}
|
|
66557
66559
|
const packageJson = { name: "vitessce" };
|
|
66558
66560
|
function ObsSetsManagerSubscriber(props2) {
|
|
66559
|
-
const { coordinationScopes, removeGridComponent, theme, title: titleOverride } = props2;
|
|
66561
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props2;
|
|
66560
66562
|
const loaders = useLoaders();
|
|
66561
66563
|
const setWarning = useSetWarning();
|
|
66562
66564
|
const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetExpansion: cellSetExpansion, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsColorEncoding: cellColorEncoding }, { setObsSetSelection: setCellSetSelection, setObsColorEncoding: setCellColorEncoding, setObsSetColor: setCellSetColor, setObsSetExpansion: setCellSetExpansion, setAdditionalObsSets: setAdditionalCellSets }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SETS], coordinationScopes);
|
|
@@ -66949,7 +66951,7 @@ function ObsSetsManagerSubscriber(props2) {
|
|
|
66949
66951
|
setWarning,
|
|
66950
66952
|
theme
|
|
66951
66953
|
]);
|
|
66952
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, removeGridComponent, urls: urls2, theme, isReady, children: manager });
|
|
66954
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: manager });
|
|
66953
66955
|
}
|
|
66954
66956
|
function tree_add$1(d) {
|
|
66955
66957
|
var x2 = +this._x.call(null, d), y2 = +this._y.call(null, d);
|
|
@@ -70480,7 +70482,7 @@ const jsonLoader = {
|
|
|
70480
70482
|
testText: isJSON,
|
|
70481
70483
|
parseTextSync: JSON.parse
|
|
70482
70484
|
};
|
|
70483
|
-
const version$5 = "8.8.
|
|
70485
|
+
const version$5 = "8.8.27";
|
|
70484
70486
|
const existingVersion = globalThis.deck && globalThis.deck.VERSION;
|
|
70485
70487
|
if (existingVersion && existingVersion !== version$5) {
|
|
70486
70488
|
throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion, " vs ").concat(version$5));
|
|
@@ -71679,9 +71681,8 @@ function cssToDeviceRatio(gl) {
|
|
|
71679
71681
|
luma
|
|
71680
71682
|
} = gl;
|
|
71681
71683
|
if (gl.canvas && luma) {
|
|
71682
|
-
const
|
|
71683
|
-
|
|
71684
|
-
} = luma.canvasSizeInfo;
|
|
71684
|
+
const cachedSize = luma.canvasSizeInfo;
|
|
71685
|
+
const clientWidth = "clientWidth" in cachedSize ? cachedSize.clientWidth : gl.canvas.clientWidth;
|
|
71685
71686
|
return clientWidth ? gl.drawingBufferWidth / clientWidth : 1;
|
|
71686
71687
|
}
|
|
71687
71688
|
return 1;
|
|
@@ -71937,7 +71938,7 @@ function setDevicePixelRatio(gl, devicePixelRatio2, options) {
|
|
|
71937
71938
|
});
|
|
71938
71939
|
}
|
|
71939
71940
|
}
|
|
71940
|
-
const VERSION$8 = "8.5.
|
|
71941
|
+
const VERSION$8 = "8.5.21";
|
|
71941
71942
|
const STARTUP_MESSAGE = "set luma.log.level=1 (or higher) to trace rendering";
|
|
71942
71943
|
class StatsManager {
|
|
71943
71944
|
constructor() {
|
|
@@ -72058,7 +72059,6 @@ let Resource$1 = class Resource {
|
|
|
72058
72059
|
this._handle = this._createHandle();
|
|
72059
72060
|
}
|
|
72060
72061
|
this.byteLength = 0;
|
|
72061
|
-
this._initStats();
|
|
72062
72062
|
this._addStats();
|
|
72063
72063
|
}
|
|
72064
72064
|
toString() {
|
|
@@ -72194,9 +72194,6 @@ let Resource$1 = class Resource {
|
|
|
72194
72194
|
this.gl.luma = this.gl.luma || {};
|
|
72195
72195
|
return this.gl.luma;
|
|
72196
72196
|
}
|
|
72197
|
-
_initStats() {
|
|
72198
|
-
this.gl.stats = this.gl.stats || new StatsManager();
|
|
72199
|
-
}
|
|
72200
72197
|
_addStats() {
|
|
72201
72198
|
const name2 = this[Symbol.toStringTag];
|
|
72202
72199
|
const stats = lumaStats.get("Resource Counts");
|
|
@@ -72211,27 +72208,29 @@ let Resource$1 = class Resource {
|
|
|
72211
72208
|
}
|
|
72212
72209
|
_trackAllocatedMemory(bytes) {
|
|
72213
72210
|
let name2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this[Symbol.toStringTag];
|
|
72214
|
-
this.
|
|
72215
|
-
this.
|
|
72211
|
+
this._trackAllocatedMemoryForContext(bytes, name2);
|
|
72212
|
+
this._trackAllocatedMemoryForContext(bytes, name2, this.gl.canvas && this.gl.canvas.id);
|
|
72213
|
+
this.byteLength = bytes;
|
|
72216
72214
|
}
|
|
72217
|
-
|
|
72215
|
+
_trackAllocatedMemoryForContext(bytes) {
|
|
72218
72216
|
let name2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this[Symbol.toStringTag];
|
|
72219
|
-
let
|
|
72217
|
+
let id2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
72218
|
+
const stats = lumaStats.get("Memory Usage".concat(id2));
|
|
72220
72219
|
stats.get("GPU Memory").addCount(bytes);
|
|
72221
72220
|
stats.get("".concat(name2, " Memory")).addCount(bytes);
|
|
72222
|
-
this.byteLength = bytes;
|
|
72223
72221
|
}
|
|
72224
72222
|
_trackDeallocatedMemory() {
|
|
72225
72223
|
let name2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this[Symbol.toStringTag];
|
|
72226
|
-
this.
|
|
72227
|
-
this.
|
|
72224
|
+
this._trackDeallocatedMemoryForContext(name2);
|
|
72225
|
+
this._trackDeallocatedMemoryForContext(name2, this.gl.canvas && this.gl.canvas.id);
|
|
72226
|
+
this.byteLength = 0;
|
|
72228
72227
|
}
|
|
72229
|
-
|
|
72228
|
+
_trackDeallocatedMemoryForContext() {
|
|
72230
72229
|
let name2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this[Symbol.toStringTag];
|
|
72231
|
-
let
|
|
72230
|
+
let id2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
72231
|
+
const stats = lumaStats.get("Memory Usage".concat(id2));
|
|
72232
72232
|
stats.get("GPU Memory").subtractCount(this.byteLength);
|
|
72233
72233
|
stats.get("".concat(name2, " Memory")).subtractCount(this.byteLength);
|
|
72234
|
-
this.byteLength = 0;
|
|
72235
72234
|
}
|
|
72236
72235
|
};
|
|
72237
72236
|
const ERR_TYPE_DEDUCTION = "Failed to deduce GL constant from typed array";
|
|
@@ -85447,6 +85446,7 @@ const picking = {
|
|
|
85447
85446
|
inject: {
|
|
85448
85447
|
"vs:DECKGL_FILTER_GL_POSITION": "\n // for picking depth values\n picking_setPickingAttribute(position.z / position.w);\n ",
|
|
85449
85448
|
"vs:DECKGL_FILTER_COLOR": "\n picking_setPickingColor(geometry.pickingColor);\n ",
|
|
85449
|
+
"fs:#decl": "\nuniform bool picking_uAttribute;\n ",
|
|
85450
85450
|
"fs:DECKGL_FILTER_COLOR": {
|
|
85451
85451
|
order: 99,
|
|
85452
85452
|
injection: "\n // use highlight color if this fragment belongs to the selected object.\n color = picking_filterHighlightColor(color);\n\n // use picking color if rendering to picking FBO.\n color = picking_filterPickingColor(color);\n "
|
|
@@ -86257,6 +86257,9 @@ class Viewport {
|
|
|
86257
86257
|
this.projectFlat = this.projectFlat.bind(this);
|
|
86258
86258
|
this.unprojectFlat = this.unprojectFlat.bind(this);
|
|
86259
86259
|
}
|
|
86260
|
+
get subViewports() {
|
|
86261
|
+
return null;
|
|
86262
|
+
}
|
|
86260
86263
|
get metersPerPixel() {
|
|
86261
86264
|
return this.distanceScales.metersPerUnit[2] / this.scale;
|
|
86262
86265
|
}
|
|
@@ -95148,7 +95151,7 @@ class Attribute extends DataColumn {
|
|
|
95148
95151
|
const {
|
|
95149
95152
|
startIndices
|
|
95150
95153
|
} = this;
|
|
95151
|
-
const vertexIndex = startIndices ? startIndices[row] : row;
|
|
95154
|
+
const vertexIndex = startIndices ? row < startIndices.length ? startIndices[row] : this.numInstances : row;
|
|
95152
95155
|
return vertexIndex * this.size;
|
|
95153
95156
|
}
|
|
95154
95157
|
getShaderAttributes() {
|
|
@@ -97792,7 +97795,7 @@ class Layer extends Component {
|
|
|
97792
97795
|
if (Array.isArray(highlightColor)) {
|
|
97793
97796
|
parameters.pickingHighlightColor = highlightColor;
|
|
97794
97797
|
}
|
|
97795
|
-
if (
|
|
97798
|
+
if (forceUpdate || highlightedObjectIndex !== oldProps.highlightedObjectIndex) {
|
|
97796
97799
|
parameters.pickingSelectedColor = Number.isFinite(highlightedObjectIndex) && highlightedObjectIndex >= 0 ? this.encodePickingColor(highlightedObjectIndex) : null;
|
|
97797
97800
|
}
|
|
97798
97801
|
this.setModuleParameters(parameters);
|
|
@@ -99155,7 +99158,7 @@ function interpolateQuad(quad2, ut, vt) {
|
|
|
99155
99158
|
}
|
|
99156
99159
|
const vs$g = "\n#define SHADER_NAME bitmap-layer-vertex-shader\n\nattribute vec2 texCoords;\nattribute vec3 positions;\nattribute vec3 positions64Low;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float coordinateConversion;\n\nconst vec3 pickingColor = vec3(1.0, 0.0, 0.0);\n\nvoid main(void) {\n geometry.worldPosition = positions;\n geometry.uv = texCoords;\n geometry.pickingColor = pickingColor;\n\n gl_Position = project_position_to_clipspace(positions, positions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTexCoord = texCoords;\n\n if (coordinateConversion < -0.5) {\n vTexPos = geometry.position.xy + project_uCommonOrigin.xy;\n } else if (coordinateConversion > 0.5) {\n vTexPos = geometry.worldPosition.xy;\n }\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n";
|
|
99157
99160
|
const packUVsIntoRGB = "\nvec3 packUVsIntoRGB(vec2 uv) {\n // Extract the top 8 bits. We want values to be truncated down so we can add a fraction\n vec2 uv8bit = floor(uv * 256.);\n\n // Calculate the normalized remainders of u and v parts that do not fit into 8 bits\n // Scale and clamp to 0-1 range\n vec2 uvFraction = fract(uv * 256.);\n vec2 uvFraction4bit = floor(uvFraction * 16.);\n\n // Remainder can be encoded in blue channel, encode as 4 bits for pixel coordinates\n float fractions = uvFraction4bit.x + uvFraction4bit.y * 16.;\n\n return vec3(uv8bit, fractions) / 255.;\n}\n";
|
|
99158
|
-
const fs$i = "\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\nuniform float coordinateConversion;\nuniform vec4 bounds;\n\n/* projection utils */\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / PI / 2.0;\n\n// from degrees to Web Mercator\nvec2 lnglat_to_mercator(vec2 lnglat) {\n float x = lnglat.x;\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\n// from Web Mercator to degrees\nvec2 mercator_to_lnglat(vec2 xy) {\n xy /= WORLD_SCALE;\n return degrees(vec2(\n xy.x - PI,\n atan(exp(xy.y - PI)) * 2.0 - PI * 0.5\n ));\n}\n/* End projection utils */\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n return mix(transparentColor, vec4(color, 1.0), alpha);\n}\n\nvec2 getUV(vec2 pos) {\n return vec2(\n (pos.x - bounds[0]) / (bounds[2] - bounds[0]),\n (pos.y - bounds[3]) / (bounds[1] - bounds[3])\n );\n}\n\n".concat(packUVsIntoRGB, "\n\nvoid main(void) {\n vec2 uv = vTexCoord;\n if (coordinateConversion < -0.5) {\n vec2 lnglat = mercator_to_lnglat(vTexPos);\n uv = getUV(lnglat);\n } else if (coordinateConversion > 0.5) {\n vec2 commonPos = lnglat_to_mercator(vTexPos);\n uv = getUV(commonPos);\n }\n vec4 bitmapColor = texture2D(bitmapTexture, uv);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = uv;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n if (picking_uActive) {\n // Since instance information is not used, we can use picking color for pixel index\n gl_FragColor.rgb = packUVsIntoRGB(uv);\n }\n}\n");
|
|
99161
|
+
const fs$i = "\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\nuniform float coordinateConversion;\nuniform vec4 bounds;\n\n/* projection utils */\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / PI / 2.0;\n\n// from degrees to Web Mercator\nvec2 lnglat_to_mercator(vec2 lnglat) {\n float x = lnglat.x;\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\n// from Web Mercator to degrees\nvec2 mercator_to_lnglat(vec2 xy) {\n xy /= WORLD_SCALE;\n return degrees(vec2(\n xy.x - PI,\n atan(exp(xy.y - PI)) * 2.0 - PI * 0.5\n ));\n}\n/* End projection utils */\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n return mix(transparentColor, vec4(color, 1.0), alpha);\n}\n\nvec2 getUV(vec2 pos) {\n return vec2(\n (pos.x - bounds[0]) / (bounds[2] - bounds[0]),\n (pos.y - bounds[3]) / (bounds[1] - bounds[3])\n );\n}\n\n".concat(packUVsIntoRGB, "\n\nvoid main(void) {\n vec2 uv = vTexCoord;\n if (coordinateConversion < -0.5) {\n vec2 lnglat = mercator_to_lnglat(vTexPos);\n uv = getUV(lnglat);\n } else if (coordinateConversion > 0.5) {\n vec2 commonPos = lnglat_to_mercator(vTexPos);\n uv = getUV(commonPos);\n }\n vec4 bitmapColor = texture2D(bitmapTexture, uv);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = uv;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n if (picking_uActive && !picking_uAttribute) {\n // Since instance information is not used, we can use picking color for pixel index\n gl_FragColor.rgb = packUVsIntoRGB(uv);\n }\n}\n");
|
|
99159
99162
|
const defaultProps$I = {
|
|
99160
99163
|
image: {
|
|
99161
99164
|
type: "image",
|
|
@@ -107295,18 +107298,22 @@ function getBoundingBox(viewport, zRange, extent2) {
|
|
|
107295
107298
|
}
|
|
107296
107299
|
function getCullBounds({
|
|
107297
107300
|
viewport,
|
|
107298
|
-
z: z2,
|
|
107301
|
+
z: z2 = 0,
|
|
107299
107302
|
cullRect
|
|
107300
107303
|
}) {
|
|
107301
|
-
const
|
|
107302
|
-
|
|
107303
|
-
|
|
107304
|
-
|
|
107305
|
-
height: height2
|
|
107306
|
-
} = cullRect;
|
|
107304
|
+
const subViewports = viewport.subViewports || [viewport];
|
|
107305
|
+
return subViewports.map((v) => getCullBoundsInViewport(v, z2, cullRect));
|
|
107306
|
+
}
|
|
107307
|
+
function getCullBoundsInViewport(viewport, z2, cullRect) {
|
|
107307
107308
|
if (!Array.isArray(z2)) {
|
|
107309
|
+
const x2 = cullRect.x - viewport.x;
|
|
107310
|
+
const y2 = cullRect.y - viewport.y;
|
|
107311
|
+
const {
|
|
107312
|
+
width: width2,
|
|
107313
|
+
height: height2
|
|
107314
|
+
} = cullRect;
|
|
107308
107315
|
const unprojectOption = {
|
|
107309
|
-
targetZ: z2
|
|
107316
|
+
targetZ: z2
|
|
107310
107317
|
};
|
|
107311
107318
|
const topLeft = viewport.unproject([x2, y2], unprojectOption);
|
|
107312
107319
|
const topRight = viewport.unproject([x2 + width2, y2], unprojectOption);
|
|
@@ -107314,16 +107321,8 @@ function getCullBounds({
|
|
|
107314
107321
|
const bottomRight = viewport.unproject([x2 + width2, y2 + height2], unprojectOption);
|
|
107315
107322
|
return [Math.min(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]), Math.min(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]), Math.max(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]), Math.max(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1])];
|
|
107316
107323
|
}
|
|
107317
|
-
const bounds0 =
|
|
107318
|
-
|
|
107319
|
-
z: z2[0],
|
|
107320
|
-
cullRect
|
|
107321
|
-
});
|
|
107322
|
-
const bounds1 = getCullBounds({
|
|
107323
|
-
viewport,
|
|
107324
|
-
z: z2[1],
|
|
107325
|
-
cullRect
|
|
107326
|
-
});
|
|
107324
|
+
const bounds0 = getCullBoundsInViewport(viewport, z2[0], cullRect);
|
|
107325
|
+
const bounds1 = getCullBoundsInViewport(viewport, z2[1], cullRect);
|
|
107327
107326
|
return [Math.min(bounds0[0], bounds1[0]), Math.min(bounds0[1], bounds1[1]), Math.max(bounds0[2], bounds1[2]), Math.max(bounds0[3], bounds1[3])];
|
|
107328
107327
|
}
|
|
107329
107328
|
function getIndexingCoords(bbox2, scale2, modelMatrixInverse) {
|
|
@@ -107553,7 +107552,7 @@ class Tileset2D {
|
|
|
107553
107552
|
return false;
|
|
107554
107553
|
}
|
|
107555
107554
|
if (cullRect && this._viewport) {
|
|
107556
|
-
const
|
|
107555
|
+
const boundsArr = this._getCullBounds({
|
|
107557
107556
|
viewport: this._viewport,
|
|
107558
107557
|
z: this._zRange,
|
|
107559
107558
|
cullRect
|
|
@@ -107561,12 +107560,20 @@ class Tileset2D {
|
|
|
107561
107560
|
const {
|
|
107562
107561
|
bbox: bbox2
|
|
107563
107562
|
} = tile;
|
|
107564
|
-
|
|
107565
|
-
|
|
107563
|
+
for (const [minX, minY, maxX, maxY2] of boundsArr) {
|
|
107564
|
+
let overlaps;
|
|
107565
|
+
if ("west" in bbox2) {
|
|
107566
|
+
overlaps = bbox2.west < maxX && bbox2.east > minX && bbox2.south < maxY2 && bbox2.north > minY;
|
|
107567
|
+
} else {
|
|
107568
|
+
const y02 = Math.min(bbox2.top, bbox2.bottom);
|
|
107569
|
+
const y12 = Math.max(bbox2.top, bbox2.bottom);
|
|
107570
|
+
overlaps = bbox2.left < maxX && bbox2.right > minX && y02 < maxY2 && y12 > minY;
|
|
107571
|
+
}
|
|
107572
|
+
if (overlaps) {
|
|
107573
|
+
return true;
|
|
107574
|
+
}
|
|
107566
107575
|
}
|
|
107567
|
-
|
|
107568
|
-
const y12 = Math.max(bbox2.top, bbox2.bottom);
|
|
107569
|
-
return bbox2.left < maxX && bbox2.right > minX && y02 < maxY2 && y12 > minY;
|
|
107576
|
+
return false;
|
|
107570
107577
|
}
|
|
107571
107578
|
return true;
|
|
107572
107579
|
}
|
|
@@ -108015,14 +108022,19 @@ class TileLayer extends CompositeLayer {
|
|
|
108015
108022
|
info: info2,
|
|
108016
108023
|
sourceLayer
|
|
108017
108024
|
}) {
|
|
108025
|
+
const sourceTile = sourceLayer.props.tile;
|
|
108018
108026
|
if (info2.picked) {
|
|
108019
|
-
info2.tile =
|
|
108027
|
+
info2.tile = sourceTile;
|
|
108020
108028
|
}
|
|
108029
|
+
info2.sourceTile = sourceTile;
|
|
108021
108030
|
return info2;
|
|
108022
108031
|
}
|
|
108023
108032
|
_updateAutoHighlight(info2) {
|
|
108024
|
-
|
|
108025
|
-
|
|
108033
|
+
const sourceTile = info2.sourceTile;
|
|
108034
|
+
if (sourceTile && sourceTile.layers) {
|
|
108035
|
+
for (const layer of sourceTile.layers) {
|
|
108036
|
+
layer.updateAutoHighlight(info2);
|
|
108037
|
+
}
|
|
108026
108038
|
}
|
|
108027
108039
|
}
|
|
108028
108040
|
renderLayers() {
|
|
@@ -120340,6 +120352,9 @@ class ScenegraphNode {
|
|
|
120340
120352
|
toString() {
|
|
120341
120353
|
return "{type: ScenegraphNode, id: ".concat(this.id, ")}");
|
|
120342
120354
|
}
|
|
120355
|
+
getBounds() {
|
|
120356
|
+
return null;
|
|
120357
|
+
}
|
|
120343
120358
|
setPosition(position2) {
|
|
120344
120359
|
assert$9(position2.length === 3, "setPosition requires vector argument");
|
|
120345
120360
|
this.position = position2;
|
|
@@ -120490,6 +120505,34 @@ class GroupNode extends ScenegraphNode {
|
|
|
120490
120505
|
this.removeAll();
|
|
120491
120506
|
super.delete();
|
|
120492
120507
|
}
|
|
120508
|
+
getBounds() {
|
|
120509
|
+
const result = [[Infinity, Infinity, Infinity], [-Infinity, -Infinity, -Infinity]];
|
|
120510
|
+
this.traverse((node, _ref3) => {
|
|
120511
|
+
let {
|
|
120512
|
+
worldMatrix
|
|
120513
|
+
} = _ref3;
|
|
120514
|
+
const bounds2 = node.getBounds();
|
|
120515
|
+
if (!bounds2) {
|
|
120516
|
+
return;
|
|
120517
|
+
}
|
|
120518
|
+
const [min2, max2] = bounds2;
|
|
120519
|
+
const center2 = new Vector3(min2).add(max2).divide([2, 2, 2]);
|
|
120520
|
+
worldMatrix.transformAsPoint(center2, center2);
|
|
120521
|
+
const halfSize = new Vector3(max2).subtract(min2).divide([2, 2, 2]);
|
|
120522
|
+
worldMatrix.transformAsVector(halfSize, halfSize);
|
|
120523
|
+
for (let v = 0; v < 8; v++) {
|
|
120524
|
+
const position2 = new Vector3(v & 1 ? -1 : 1, v & 2 ? -1 : 1, v & 4 ? -1 : 1).multiply(halfSize).add(center2);
|
|
120525
|
+
for (let i2 = 0; i2 < 3; i2++) {
|
|
120526
|
+
result[0][i2] = Math.min(result[0][i2], position2[i2]);
|
|
120527
|
+
result[1][i2] = Math.max(result[1][i2], position2[i2]);
|
|
120528
|
+
}
|
|
120529
|
+
}
|
|
120530
|
+
});
|
|
120531
|
+
if (!Number.isFinite(result[0][0])) {
|
|
120532
|
+
return null;
|
|
120533
|
+
}
|
|
120534
|
+
return result;
|
|
120535
|
+
}
|
|
120493
120536
|
traverse(visitor) {
|
|
120494
120537
|
let {
|
|
120495
120538
|
worldMatrix = new Matrix4()
|
|
@@ -120739,6 +120782,7 @@ class ModelNode extends ScenegraphNode {
|
|
|
120739
120782
|
} else {
|
|
120740
120783
|
this.model = new Model$1(gl, props2);
|
|
120741
120784
|
}
|
|
120785
|
+
this.bounds = null;
|
|
120742
120786
|
this.managedResources = props2.managedResources || [];
|
|
120743
120787
|
}
|
|
120744
120788
|
setProps(props2) {
|
|
@@ -120746,6 +120790,9 @@ class ModelNode extends ScenegraphNode {
|
|
|
120746
120790
|
this._setModelNodeProps(props2);
|
|
120747
120791
|
return this;
|
|
120748
120792
|
}
|
|
120793
|
+
getBounds() {
|
|
120794
|
+
return this.bounds;
|
|
120795
|
+
}
|
|
120749
120796
|
delete() {
|
|
120750
120797
|
if (this.model) {
|
|
120751
120798
|
this.model.delete();
|
|
@@ -120930,17 +120977,21 @@ function createGLTFModel(gl, options) {
|
|
|
120930
120977
|
const managedResources = [];
|
|
120931
120978
|
managedResources.push(...materialParser.generatedTextures);
|
|
120932
120979
|
managedResources.push(...Object.values(attributes).map((attribute) => attribute.buffer));
|
|
120933
|
-
const model = new ModelNode(gl,
|
|
120980
|
+
const model = new ModelNode(gl, {
|
|
120934
120981
|
id: id2,
|
|
120935
120982
|
drawMode,
|
|
120936
120983
|
vertexCount,
|
|
120937
120984
|
modules: [pbr],
|
|
120938
|
-
defines: materialParser.defines,
|
|
120939
120985
|
parameters: materialParser.parameters,
|
|
120940
120986
|
vs: addVersionToShader(gl, vs$7),
|
|
120941
120987
|
fs: addVersionToShader(gl, fs$7),
|
|
120942
|
-
managedResources
|
|
120943
|
-
|
|
120988
|
+
managedResources,
|
|
120989
|
+
...modelOptions,
|
|
120990
|
+
defines: {
|
|
120991
|
+
...materialParser.defines,
|
|
120992
|
+
...modelOptions.defines
|
|
120993
|
+
}
|
|
120994
|
+
});
|
|
120944
120995
|
model.setProps({
|
|
120945
120996
|
attributes
|
|
120946
120997
|
});
|
|
@@ -121035,13 +121086,15 @@ class GLTFInstantiator {
|
|
|
121035
121086
|
log$8.warn("getVertexCount() not found")();
|
|
121036
121087
|
}
|
|
121037
121088
|
createPrimitive(gltfPrimitive, i2, gltfMesh) {
|
|
121038
|
-
|
|
121089
|
+
const model = createGLTFModel(this.gl, Object.assign({
|
|
121039
121090
|
id: gltfPrimitive.name || "".concat(gltfMesh.name || gltfMesh.id, "-primitive-").concat(i2),
|
|
121040
121091
|
drawMode: gltfPrimitive.mode || 4,
|
|
121041
121092
|
vertexCount: gltfPrimitive.indices ? gltfPrimitive.indices.count : this.getVertexCount(gltfPrimitive.attributes),
|
|
121042
121093
|
attributes: this.createAttributes(gltfPrimitive.attributes, gltfPrimitive.indices),
|
|
121043
121094
|
material: gltfPrimitive.material
|
|
121044
121095
|
}, this.options));
|
|
121096
|
+
model.bounds = [gltfPrimitive.attributes.POSITION.min, gltfPrimitive.attributes.POSITION.max];
|
|
121097
|
+
return model;
|
|
121045
121098
|
}
|
|
121046
121099
|
createAttributes(attributes, indices) {
|
|
121047
121100
|
const loadedAttributes = {};
|
|
@@ -128969,15 +129022,11 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
128969
129022
|
info: info2,
|
|
128970
129023
|
sourceLayer
|
|
128971
129024
|
}) {
|
|
128972
|
-
const
|
|
128973
|
-
|
|
128974
|
-
|
|
128975
|
-
const layerId = sourceLayer && sourceLayer.id;
|
|
128976
|
-
if (layerId) {
|
|
128977
|
-
const substr = layerId.substring(this.id.length + 1);
|
|
128978
|
-
const tileId = substr.substring(substr.indexOf("-") + 1);
|
|
128979
|
-
info2.object = layerMap[tileId] && layerMap[tileId].tile;
|
|
129025
|
+
const sourceTile = sourceLayer && sourceLayer.props.tile;
|
|
129026
|
+
if (info2.picked) {
|
|
129027
|
+
info2.object = sourceTile;
|
|
128980
129028
|
}
|
|
129029
|
+
info2.sourceTile = sourceTile;
|
|
128981
129030
|
return info2;
|
|
128982
129031
|
}
|
|
128983
129032
|
filterSubLayer({
|
|
@@ -128993,8 +129042,10 @@ class Tile3DLayer extends CompositeLayer {
|
|
|
128993
129042
|
return tile.selected && tile.viewportIds.includes(viewportId);
|
|
128994
129043
|
}
|
|
128995
129044
|
_updateAutoHighlight(info2) {
|
|
128996
|
-
|
|
128997
|
-
|
|
129045
|
+
const sourceTile = info2.sourceTile;
|
|
129046
|
+
const layerCache = this.state.layerMap[sourceTile === null || sourceTile === void 0 ? void 0 : sourceTile.id];
|
|
129047
|
+
if (layerCache && layerCache.layer) {
|
|
129048
|
+
layerCache.layer.updateAutoHighlight(info2);
|
|
128998
129049
|
}
|
|
128999
129050
|
}
|
|
129000
129051
|
async _loadTileset(tilesetUrl) {
|
|
@@ -170153,16 +170204,16 @@ async function getDecoder(fileDirectory) {
|
|
|
170153
170204
|
const Decoder = await importFn();
|
|
170154
170205
|
return new Decoder(fileDirectory);
|
|
170155
170206
|
}
|
|
170156
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
170157
|
-
addDecoder(5, () => import("./lzw-
|
|
170207
|
+
addDecoder([void 0, 1], () => import("./raw-09ac1cd1.js").then((m2) => m2.default));
|
|
170208
|
+
addDecoder(5, () => import("./lzw-5c1d5530.js").then((m2) => m2.default));
|
|
170158
170209
|
addDecoder(6, () => {
|
|
170159
170210
|
throw new Error("old style JPEG compression is not supported.");
|
|
170160
170211
|
});
|
|
170161
|
-
addDecoder(7, () => import("./jpeg-
|
|
170162
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
170163
|
-
addDecoder(32773, () => import("./packbits-
|
|
170164
|
-
addDecoder(34887, () => import("./lerc-
|
|
170165
|
-
addDecoder(50001, () => import("./webimage-
|
|
170212
|
+
addDecoder(7, () => import("./jpeg-84db51fc.js").then((m2) => m2.default));
|
|
170213
|
+
addDecoder([8, 32946], () => import("./deflate-3ddb759b.js").then((m2) => m2.default));
|
|
170214
|
+
addDecoder(32773, () => import("./packbits-fcadb85f.js").then((m2) => m2.default));
|
|
170215
|
+
addDecoder(34887, () => import("./lerc-01f78fda.js").then((m2) => m2.default));
|
|
170216
|
+
addDecoder(50001, () => import("./webimage-4a08568e.js").then((m2) => m2.default));
|
|
170166
170217
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
170167
170218
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
170168
170219
|
}
|
|
@@ -187864,6 +187915,8 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
187864
187915
|
const {
|
|
187865
187916
|
uuid,
|
|
187866
187917
|
coordinationScopes,
|
|
187918
|
+
closeButtonVisible,
|
|
187919
|
+
downloadButtonVisible,
|
|
187867
187920
|
removeGridComponent,
|
|
187868
187921
|
theme,
|
|
187869
187922
|
observationsLabelOverride,
|
|
@@ -188019,7 +188072,7 @@ function EmbeddingScatterplotSubscriber(props2) {
|
|
|
188019
188072
|
setTargetY(target2[1]);
|
|
188020
188073
|
setTargetZ(target2[2] || 0);
|
|
188021
188074
|
};
|
|
188022
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, { ref: deckRef, uuid, theme, viewState: { zoom: zoom2, target: [targetX2, targetY2, targetZ] }, setViewState, originalViewState, obsEmbeddingIndex, obsEmbedding, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
|
|
188075
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, tooltipsVisible, setTooltipsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange }), children: [jsxRuntimeExports.jsx(ScatterplotWrapper, { ref: deckRef, uuid, theme, viewState: { zoom: zoom2, target: [targetX2, targetY2, targetZ] }, setViewState, originalViewState, obsEmbeddingIndex, obsEmbedding, cellFilter, cellSelection, cellHighlight, cellColors, cellSetPolygons, cellSetLabelSize, cellSetLabelsVisible, cellSetPolygonsVisible, setCellFilter, setCellSelection: setCellSelectionProp, setCellHighlight, cellRadius, cellOpacity, cellColorEncoding, geneExpressionColormap, geneExpressionColormapRange, setComponentHover: () => {
|
|
188023
188076
|
setComponentHover(uuid);
|
|
188024
188077
|
}, updateViewInfo: setComponentViewInfo, getExpressionValue, getCellIsSelected }), tooltipsVisible && jsxRuntimeExports.jsx(ScatterplotTooltipSubscriber, { parentUuid: uuid, obsHighlight: cellHighlight, width: width2, height: height2, getObsInfo }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: cellColorEncoding, featureSelection: geneSelection, featureLabelsMap, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: expressionExtents?.[0] })] });
|
|
188025
188078
|
}
|
|
@@ -188068,6 +188121,8 @@ function GatingSubscriber(props2) {
|
|
|
188068
188121
|
const {
|
|
188069
188122
|
uuid,
|
|
188070
188123
|
coordinationScopes,
|
|
188124
|
+
closeButtonVisible,
|
|
188125
|
+
downloadButtonVisible,
|
|
188071
188126
|
removeGridComponent,
|
|
188072
188127
|
theme,
|
|
188073
188128
|
disableTooltip = false,
|
|
@@ -188257,7 +188312,7 @@ function GatingSubscriber(props2) {
|
|
|
188257
188312
|
gatingFeatureSelectionY,
|
|
188258
188313
|
obsType
|
|
188259
188314
|
]);
|
|
188260
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
188315
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(obsType, cellsCount)}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(ScatterplotOptions, { observationsLabel: obsType, cellRadius: cellRadiusFixed, setCellRadius: setCellRadiusFixed, cellRadiusMode, setCellRadiusMode, cellOpacity: cellOpacityFixed, setCellOpacity: setCellOpacityFixed, cellOpacityMode, setCellOpacityMode, cellSetLabelsVisible, setCellSetLabelsVisible, cellSetLabelSize, setCellSetLabelSize, cellSetPolygonsVisible, setCellSetPolygonsVisible, cellColorEncoding, setCellColorEncoding, geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, children: jsxRuntimeExports.jsx(GatingScatterplotOptions, { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform: featureValueTransform, setGatingFeatureValueTransform: (newValue) => {
|
|
188261
188316
|
setFeatureValueTransform(newValue);
|
|
188262
188317
|
setTargetX(null);
|
|
188263
188318
|
setTargetY(null);
|
|
@@ -206036,7 +206091,7 @@ function SpatialTooltipSubscriber$1(props2) {
|
|
|
206036
206091
|
return cellInfo ? jsxRuntimeExports.jsx(Tooltip2D, { x: x2, y: y2, parentUuid, sourceUuid, parentWidth: width2, parentHeight: height2, children: jsxRuntimeExports.jsx(TooltipContent, { info: cellInfo }) }) : null;
|
|
206037
206092
|
}
|
|
206038
206093
|
function SpatialSubscriber$1(props2) {
|
|
206039
|
-
const { uuid, coordinationScopes, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false } = props2;
|
|
206094
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, title: title2 = "Spatial", disable3d, globalDisable3d, useFullResolutionImage = {}, channelNamesVisible = false } = props2;
|
|
206040
206095
|
const loaders = useLoaders();
|
|
206041
206096
|
const setComponentHover = useSetComponentHover();
|
|
206042
206097
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -206282,7 +206337,7 @@ function SpatialSubscriber$1(props2) {
|
|
|
206282
206337
|
}
|
|
206283
206338
|
return [names, colors2];
|
|
206284
206339
|
}, [imageLayers, imageLayerLoaders]);
|
|
206285
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, removeGridComponent, isReady, options, children: [jsxRuntimeExports.jsx("div", { style: {
|
|
206340
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, options, children: [jsxRuntimeExports.jsx("div", { style: {
|
|
206286
206341
|
position: "absolute",
|
|
206287
206342
|
bottom: "5px",
|
|
206288
206343
|
left: "5px",
|
|
@@ -207614,7 +207669,7 @@ function getHoverData(hoverInfo, layerType) {
|
|
|
207614
207669
|
return null;
|
|
207615
207670
|
}
|
|
207616
207671
|
function SpatialSubscriber(props2) {
|
|
207617
|
-
const { uuid, coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, disableTooltip = false, title: title2 = "Spatial" } = props2;
|
|
207672
|
+
const { uuid, coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, observationsLabelOverride, subobservationsLabelOverride: subobservationsLabel = "molecule", theme, disableTooltip = false, title: title2 = "Spatial" } = props2;
|
|
207618
207673
|
const loaders = useLoaders();
|
|
207619
207674
|
const setComponentHover = useSetComponentHover();
|
|
207620
207675
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -207950,7 +208005,7 @@ function SpatialSubscriber(props2) {
|
|
|
207950
208005
|
return false;
|
|
207951
208006
|
});
|
|
207952
208007
|
const isSelectable = spotLayerScopes.length > 0 || pointLayerScopes.length > 0 || segmentationLayerScopes.flatMap((layerScope) => segmentationChannelScopesByLayer[layerScope].map((channelScope) => obsSegmentationsLocationsData?.[layerScope]?.[channelScope])).length > 0;
|
|
207953
|
-
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, removeGridComponent, isReady, children: [jsxRuntimeExports.jsx(SpatialWrapper, {
|
|
208008
|
+
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, children: [jsxRuntimeExports.jsx(SpatialWrapper, {
|
|
207954
208009
|
ref: deckRef,
|
|
207955
208010
|
uuid,
|
|
207956
208011
|
width: width2,
|
|
@@ -208913,7 +208968,7 @@ function HeatmapOptions(props2) {
|
|
|
208913
208968
|
}) })] }), jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, children: "Gene Expression Colormap Range" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Slider$1, { classes: { root: classes.slider, valueLabel: classes.sliderValueLabel }, value: geneExpressionColormapRange, onChange: handleColormapRangeChangeDebounced, getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider", id: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`, valueLabelDisplay: "auto", step: 5e-3, min: 0, max: 1 }) })] })] });
|
|
208914
208969
|
}
|
|
208915
208970
|
function HeatmapSubscriber(props2) {
|
|
208916
|
-
const { uuid, coordinationScopes, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap" } = props2;
|
|
208971
|
+
const { uuid, coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, transpose: transpose2, observationsLabelOverride, variablesLabelOverride, title: title2 = "Heatmap" } = props2;
|
|
208917
208972
|
const loaders = useLoaders();
|
|
208918
208973
|
const setComponentHover = useSetComponentHover();
|
|
208919
208974
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
@@ -208989,7 +209044,7 @@ function HeatmapSubscriber(props2) {
|
|
|
208989
209044
|
], [observationsLabel]);
|
|
208990
209045
|
const selectedCount = cellColors.size;
|
|
208991
209046
|
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
|
|
208992
|
-
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`, urls: urls2, theme, removeGridComponent, isReady: isReady && !isRendering, options: jsxRuntimeExports.jsx(HeatmapOptions, { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible }), children: [jsxRuntimeExports.jsx(Heatmap$1, { ref: deckRef, transpose: transpose2, viewState: { zoom: zoomX, target: [targetX2, targetY2] }, setViewState: ({ zoom: zoom2, target: target2 }) => {
|
|
209047
|
+
with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady: isReady && !isRendering, options: jsxRuntimeExports.jsx(HeatmapOptions, { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible }), children: [jsxRuntimeExports.jsx(Heatmap$1, { ref: deckRef, transpose: transpose2, viewState: { zoom: zoomX, target: [targetX2, targetY2] }, setViewState: ({ zoom: zoom2, target: target2 }) => {
|
|
208993
209048
|
setZoomX(zoom2);
|
|
208994
209049
|
setZoomY(zoom2);
|
|
208995
209050
|
setTargetX(target2[0]);
|
|
@@ -213391,7 +213446,7 @@ function FeatureListOptions(props2) {
|
|
|
213391
213446
|
} }) })] })] }) : null] });
|
|
213392
213447
|
}
|
|
213393
213448
|
function FeatureListSubscriber(props2) {
|
|
213394
|
-
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null } = props2;
|
|
213449
|
+
const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible } = props2;
|
|
213395
213450
|
const loaders = useLoaders();
|
|
213396
213451
|
const [{ dataset, obsType, featureType, featureSelection: geneSelection, featureFilter: geneFilter, obsColorEncoding: cellColorEncoding }, { setFeatureSelection: setGeneSelection, setFeatureFilter: setGeneFilter, setFeatureHighlight: setGeneHighlight, setObsColorEncoding: setCellColorEncoding }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_LIST], coordinationScopes);
|
|
213397
213452
|
const variablesLabel = variablesLabelOverride || featureType;
|
|
@@ -213426,6 +213481,8 @@ function FeatureListSubscriber(props2) {
|
|
|
213426
213481
|
// even though this no longer uses the TitleInfo component's
|
|
213427
213482
|
// scroll css (SelectableTable is virtual scroll).
|
|
213428
213483
|
isScroll: true,
|
|
213484
|
+
closeButtonVisible,
|
|
213485
|
+
downloadButtonVisible,
|
|
213429
213486
|
removeGridComponent,
|
|
213430
213487
|
isReady,
|
|
213431
213488
|
urls: urls2,
|
|
@@ -214202,6 +214259,8 @@ function ImageAddButton({ imageOptions, handleImageAdd }) {
|
|
|
214202
214259
|
const LayerControllerMemoized = React__default.memo(forwardRef((props2, ref2) => {
|
|
214203
214260
|
const {
|
|
214204
214261
|
title: title2,
|
|
214262
|
+
closeButtonVisible,
|
|
214263
|
+
downloadButtonVisible,
|
|
214205
214264
|
removeGridComponent,
|
|
214206
214265
|
theme,
|
|
214207
214266
|
isReady,
|
|
@@ -214247,7 +214306,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props2, ref2) =>
|
|
|
214247
214306
|
enableLayerButtonsWithOneLayer
|
|
214248
214307
|
} = props2;
|
|
214249
214308
|
const shouldShowImageLayerButton = Boolean(enableLayerButtonsWithOneLayer || imageLayerLoaders?.length > 1);
|
|
214250
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
|
|
214309
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsxs("div", { className: "layer-controller-container", ref: ref2, children: [moleculesLayer && jsxRuntimeExports.jsx(VectorLayerController, { label: "Molecules", layerType: "molecules", layer: moleculesLayer, handleLayerChange: setMoleculesLayer }, `${dataset}-molecules`), cellsLayer && obsSegmentationsType === "polygon" && jsxRuntimeExports.jsx(VectorLayerController, { label: `${capitalize$2(obsType)} Segmentations`, layerType: "cells", layer: cellsLayer, handleLayerChange: setCellsLayer }, `${dataset}-cells`), cellsLayer && obsSegmentationsType === "bitmask" && cellsLayer.map((layer, i2) => {
|
|
214251
214310
|
const { index: index2 } = layer;
|
|
214252
214311
|
const loader2 = segmentationLayerLoaders?.[index2];
|
|
214253
214312
|
const layerMeta = segmentationLayerMeta?.[index2];
|
|
@@ -214362,7 +214421,7 @@ const LayerControllerMemoized = React__default.memo(forwardRef((props2, ref2) =>
|
|
|
214362
214421
|
}), shouldShowImageLayerButton ? jsxRuntimeExports.jsx(Grid$3, { item: true, children: jsxRuntimeExports.jsx(ImageAddButton, { imageOptions: imageLayerMeta, handleImageAdd }) }) : null] }) });
|
|
214363
214422
|
}));
|
|
214364
214423
|
function LayerControllerSubscriber$1(props2) {
|
|
214365
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer } = props2;
|
|
214424
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers", disable3d, globalDisable3d, disableChannelsIfRgbDetected, enableLayerButtonsWithOneLayer } = props2;
|
|
214366
214425
|
const loaders = useLoaders();
|
|
214367
214426
|
const [{ dataset, obsType, spatialImageLayer: rasterLayers, spatialSegmentationLayer: cellsLayer, spatialPointLayer: moleculesLayer }, { setSpatialImageLayer: setRasterLayers, setSpatialSegmentationLayer: setCellsLayer, setSpatialPointLayer: setMoleculesLayer, setSpatialTargetX: setTargetX, setSpatialTargetY: setTargetY, setSpatialTargetZ: setTargetZ, setSpatialRotationX: setRotationX, setSpatialRotationOrbit: setRotationOrbit, setSpatialZoom: setZoom }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.LAYER_CONTROLLER], coordinationScopes);
|
|
214368
214427
|
const [{ imageLayerCallbacks, areLoadingImageChannels, segmentationLayerCallbacks, areLoadingSegmentationChannels }, { setImageLayerCallbacks, setAreLoadingImageChannels, setSegmentationLayerCallbacks, setAreLoadingSegmentationChannels }] = useAuxiliaryCoordination(COMPONENT_COORDINATION_TYPES.layerController, coordinationScopes);
|
|
@@ -214418,6 +214477,8 @@ function LayerControllerSubscriber$1(props2) {
|
|
|
214418
214477
|
return jsxRuntimeExports.jsx(LayerControllerMemoized, {
|
|
214419
214478
|
ref: layerControllerRef,
|
|
214420
214479
|
title: title2,
|
|
214480
|
+
closeButtonVisible,
|
|
214481
|
+
downloadButtonVisible,
|
|
214421
214482
|
removeGridComponent,
|
|
214422
214483
|
theme,
|
|
214423
214484
|
isReady,
|
|
@@ -215020,7 +215081,7 @@ function LayerController(props2) {
|
|
|
215020
215081
|
return jsxRuntimeExports.jsxs("div", { children: [anyLayerHasZ ? jsxRuntimeExports.jsx(GlobalDimensionSlider, { label: "Z", targetValue: targetZ, setTargetValue: setTargetZ, max: maxZ, spatialRenderingMode, setSpatialRenderingMode }) : null, anyLayerHasT ? jsxRuntimeExports.jsx(GlobalDimensionSlider, { label: "T", targetValue: targetT, setTargetValue: setTargetT, max: maxT }) : null, pointLayerScopes && reversedPointLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(PointLayerController, { theme, layerScope, layerCoordination: pointLayerCoordination[0][layerScope], setLayerCoordination: pointLayerCoordination[1][layerScope] }, layerScope)), spotLayerScopes && reversedSpotLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(SpotLayerController, { theme, layerScope, layerCoordination: spotLayerCoordination[0][layerScope], setLayerCoordination: spotLayerCoordination[1][layerScope] }, layerScope)), segmentationLayerScopes && reversedSegmentationLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(SegmentationLayerController, { theme, layerScope, layerCoordination: segmentationLayerCoordination[0][layerScope], setLayerCoordination: segmentationLayerCoordination[1][layerScope], channelScopes: segmentationChannelScopesByLayer[layerScope], channelCoordination: segmentationChannelCoordination[0][layerScope], setChannelCoordination: segmentationChannelCoordination[1][layerScope] }, layerScope)), imageLayerScopes && reversedImageLayerScopes.map((layerScope) => jsxRuntimeExports.jsx(ImageLayerController, { theme, coordinationScopesRaw, layerScope, layerCoordination: imageLayerCoordination[0][layerScope], setLayerCoordination: imageLayerCoordination[1][layerScope], channelScopes: imageChannelScopesByLayer[layerScope], channelCoordination: imageChannelCoordination[0][layerScope], setChannelCoordination: imageChannelCoordination[1][layerScope], image: images[layerScope]?.image?.instance, featureIndex: images[layerScope]?.featureIndex, targetT, targetZ, spatialRenderingMode }, layerScope))] });
|
|
215021
215082
|
}
|
|
215022
215083
|
function LayerControllerSubscriber(props2) {
|
|
215023
|
-
const { coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, removeGridComponent, theme, title: title2 = "Spatial Layers" } = props2;
|
|
215084
|
+
const { coordinationScopes: coordinationScopesRaw, coordinationScopesBy: coordinationScopesByRaw, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: title2 = "Spatial Layers" } = props2;
|
|
215024
215085
|
const loaders = useLoaders();
|
|
215025
215086
|
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
215026
215087
|
const coordinationScopesBy = useCoordinationScopesBy(coordinationScopes, coordinationScopesByRaw);
|
|
@@ -215121,7 +215182,7 @@ function LayerControllerSubscriber(props2) {
|
|
|
215121
215182
|
obsSegmentationsDataStatus,
|
|
215122
215183
|
imageDataStatus
|
|
215123
215184
|
]);
|
|
215124
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsx(LayerController, { theme, coordinationScopesRaw, segmentationLayerScopes, segmentationLayerCoordination, segmentationChannelScopesByLayer, segmentationChannelCoordination, images: imageData, imageLayerScopes, imageLayerCoordination, targetT, targetZ, setTargetT, setTargetZ, spatialRenderingMode, setSpatialRenderingMode, imageChannelScopesByLayer, imageChannelCoordination, spotLayerScopes, spotLayerCoordination, pointLayerScopes, pointLayerCoordination }) });
|
|
215185
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, isScroll: true, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, children: jsxRuntimeExports.jsx(LayerController, { theme, coordinationScopesRaw, segmentationLayerScopes, segmentationLayerCoordination, segmentationChannelScopesByLayer, segmentationChannelCoordination, images: imageData, imageLayerScopes, imageLayerCoordination, targetT, targetZ, setTargetT, setTargetZ, spatialRenderingMode, setSpatialRenderingMode, imageChannelScopesByLayer, imageChannelCoordination, spotLayerScopes, spotLayerCoordination, pointLayerScopes, pointLayerCoordination }) });
|
|
215125
215186
|
}
|
|
215126
215187
|
const useStyles$3 = makeStyles(() => ({
|
|
215127
215188
|
info: {
|
|
@@ -215155,7 +215216,7 @@ function Status(props2) {
|
|
|
215155
215216
|
return messages2;
|
|
215156
215217
|
}
|
|
215157
215218
|
function StatusSubscriber(props2) {
|
|
215158
|
-
const { coordinationScopes, removeGridComponent, theme, title: title2 = "Status" } = props2;
|
|
215219
|
+
const { coordinationScopes, closeButtonVisible, removeGridComponent, theme, title: title2 = "Status" } = props2;
|
|
215159
215220
|
const [{ obsHighlight: cellHighlight, featureHighlight: geneHighlight, moleculeHighlight }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.STATUS], coordinationScopes);
|
|
215160
215221
|
const warn2 = useWarning();
|
|
215161
215222
|
const infos = [
|
|
@@ -215164,7 +215225,7 @@ function StatusSubscriber(props2) {
|
|
|
215164
215225
|
...moleculeHighlight ? [`Hovered gene ${moleculeHighlight}`] : []
|
|
215165
215226
|
];
|
|
215166
215227
|
const info2 = infos.join("; ");
|
|
215167
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, removeGridComponent, isScroll: true, isReady: true, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
|
|
215228
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, theme, closeButtonVisible, removeGridComponent, isScroll: true, isReady: true, children: jsxRuntimeExports.jsx(Status, { warn: warn2, info: info2 }) });
|
|
215168
215229
|
}
|
|
215169
215230
|
window.higlassTracks = window.higlassTracks || {};
|
|
215170
215231
|
window.higlassTracksByType = window.higlassTracksByType || {};
|
|
@@ -215416,7 +215477,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
|
|
|
215416
215477
|
const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
|
|
215417
215478
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
215418
215479
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
215419
|
-
const { HiGlassComponent } = await import("./hglib-
|
|
215480
|
+
const { HiGlassComponent } = await import("./hglib-cdf09f0e.js").then((n3) => n3.h);
|
|
215420
215481
|
return { default: HiGlassComponent };
|
|
215421
215482
|
});
|
|
215422
215483
|
const HG_SIZE = 800;
|
|
@@ -215545,10 +215606,10 @@ HiGlassLazy.defaultProps = {
|
|
|
215545
215606
|
};
|
|
215546
215607
|
const urls = [];
|
|
215547
215608
|
function HiGlassSubscriber(props2) {
|
|
215548
|
-
const { coordinationScopes, theme, hgViewConfig, removeGridComponent } = props2;
|
|
215609
|
+
const { coordinationScopes, theme, hgViewConfig, closeButtonVisible, downloadButtonVisible, removeGridComponent } = props2;
|
|
215549
215610
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
215550
215611
|
const classes = useStyles$2();
|
|
215551
|
-
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: "HiGlass", removeGridComponent, theme, isReady: true, urls, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) }) }) });
|
|
215612
|
+
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: "HiGlass", closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady: true, urls, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) }) }) });
|
|
215552
215613
|
}
|
|
215553
215614
|
const REFERENCE_TILESETS = {
|
|
215554
215615
|
hg38: {
|
|
@@ -215569,7 +215630,7 @@ const REFERENCE_TILESETS = {
|
|
|
215569
215630
|
}
|
|
215570
215631
|
};
|
|
215571
215632
|
function GenomicProfilesSubscriber(props2) {
|
|
215572
|
-
const { coordinationScopes, theme, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles" } = props2;
|
|
215633
|
+
const { coordinationScopes, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, profileTrackUidKey = "path", profileTrackNameKey = null, higlassServer = "https://higlass.io/api/v1", assembly = "hg38", title: title2 = "Genomic Profiles" } = props2;
|
|
215573
215634
|
const [width2, height2, containerRef] = useGridItemSize();
|
|
215574
215635
|
const loaders = useLoaders();
|
|
215575
215636
|
const [{ dataset, obsSetColor: cellSetColor, obsSetSelection: cellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.GENOMIC_PROFILES], coordinationScopes);
|
|
@@ -215699,7 +215760,7 @@ function GenomicProfilesSubscriber(props2) {
|
|
|
215699
215760
|
assembly
|
|
215700
215761
|
]);
|
|
215701
215762
|
const classes = useStyles$2();
|
|
215702
|
-
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, theme, isReady, urls: urls2, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
|
|
215763
|
+
return jsxRuntimeExports.jsx("div", { className: classes.higlassTitleWrapper, children: jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, isReady, urls: urls2, children: jsxRuntimeExports.jsx("div", { className: classes.higlassLazyWrapper, ref: containerRef, children: hgViewConfig ? jsxRuntimeExports.jsx(HiGlassLazy, { coordinationScopes, theme, hgViewConfig, height: height2 }) : null }) }) });
|
|
215703
215764
|
}
|
|
215704
215765
|
function CellSetExpressionPlotOptions(props2) {
|
|
215705
215766
|
const { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions } = props2;
|
|
@@ -272353,7 +272414,7 @@ function useExpressionByCellSet(expressionData, obsIndex, cellSets, additionalCe
|
|
|
272353
272414
|
return [expressionArr, setArr, expressionMax];
|
|
272354
272415
|
}
|
|
272355
272416
|
function CellSetExpressionPlotSubscriber(props2) {
|
|
272356
|
-
const { coordinationScopes, removeGridComponent, theme } = props2;
|
|
272417
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme } = props2;
|
|
272357
272418
|
const classes = useStyles();
|
|
272358
272419
|
const loaders = useLoaders();
|
|
272359
272420
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets }, { setFeatureValueTransform, setFeatureValueTransformCoefficient }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_FEATURE_VALUE_DISTRIBUTION], coordinationScopes);
|
|
@@ -272377,7 +272438,7 @@ function CellSetExpressionPlotSubscriber(props2) {
|
|
|
272377
272438
|
const [expressionArr, setArr, expressionMax] = useExpressionByCellSet(expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, theme);
|
|
272378
272439
|
const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? featureLabelsMap?.get(geneSelection[0]) || geneSelection[0] : null;
|
|
272379
272440
|
const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
|
|
272380
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { domainMax: expressionMax, colors: setArr, data: expressionArr, theme, width: width2, height: height2, obsType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
272441
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? jsxRuntimeExports.jsx(CellSetExpressionPlot, { domainMax: expressionMax, colors: setArr, data: expressionArr, theme, width: width2, height: height2, obsType, featureValueType, featureValueTransformName: selectedTransformName }) : jsxRuntimeExports.jsxs("span", { children: ["Select a ", featureType, "."] }) }) });
|
|
272381
272442
|
}
|
|
272382
272443
|
function CellSetSizesPlot(props2) {
|
|
272383
272444
|
const { data: rawData, theme, width: width2, height: height2, marginRight = 90, marginBottom = 120, keyLength = 36, obsType, onBarSelect } = props2;
|
|
@@ -272497,7 +272558,7 @@ function CellSetSizesPlot(props2) {
|
|
|
272497
272558
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, signalListeners, getTooltipText });
|
|
272498
272559
|
}
|
|
272499
272560
|
function CellSetSizesPlotSubscriber(props2) {
|
|
272500
|
-
const { coordinationScopes, removeGridComponent, theme, title: titleOverride } = props2;
|
|
272561
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride } = props2;
|
|
272501
272562
|
const classes = useStyles();
|
|
272502
272563
|
const loaders = useLoaders();
|
|
272503
272564
|
const [{ dataset, obsType, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, obsSetExpansion: cellSetExpansion }, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_SIZES], coordinationScopes);
|
|
@@ -272544,7 +272605,7 @@ function CellSetSizesPlotSubscriber(props2) {
|
|
|
272544
272605
|
setCellSetSelection([...cellSetSelection, setNamePath]);
|
|
272545
272606
|
}
|
|
272546
272607
|
};
|
|
272547
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
|
|
272608
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(CellSetSizesPlot, { data: data2, onBarSelect, theme, width: width2, height: height2, obsType }) }) });
|
|
272548
272609
|
}
|
|
272549
272610
|
function ExpressionHistogram(props2) {
|
|
272550
272611
|
const { geneSelection, data: data2, theme, width: width2, height: height2, marginRight = 90, marginBottom = 50, onSelect } = props2;
|
|
@@ -272602,7 +272663,7 @@ function ExpressionHistogram(props2) {
|
|
|
272602
272663
|
return jsxRuntimeExports.jsx(VegaPlot, { data: data2, signalListeners, spec });
|
|
272603
272664
|
}
|
|
272604
272665
|
function ExpressionHistogramSubscriber(props2) {
|
|
272605
|
-
const { coordinationScopes, removeGridComponent, theme } = props2;
|
|
272666
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme } = props2;
|
|
272606
272667
|
const classes = useStyles();
|
|
272607
272668
|
const loaders = useLoaders();
|
|
272608
272669
|
const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, additionalObsSets: additionalCellSets, obsSetColor: cellSetColor }, { setAdditionalObsSets: setAdditionalCellSets, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setObsSetSelection: setCellSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_VALUE_HISTOGRAM], coordinationScopes);
|
|
@@ -272651,7 +272712,7 @@ function ExpressionHistogramSubscriber(props2) {
|
|
|
272651
272712
|
setCellSetSelection,
|
|
272652
272713
|
firstGeneSelected
|
|
272653
272714
|
]);
|
|
272654
|
-
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
|
|
272715
|
+
return jsxRuntimeExports.jsx(TitleInfo, { title: `Expression Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
|
|
272655
272716
|
}
|
|
272656
272717
|
class CsvSource {
|
|
272657
272718
|
constructor({ url, requestInit: requestInit2 }) {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-7ce1d734.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var LercDecode = { exports: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/dev",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dist-tsc"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vitessce/all": "3.3.
|
|
20
|
-
"@vitessce/
|
|
21
|
-
"@vitessce/
|
|
22
|
-
"@vitessce/export-utils": "3.3.
|
|
19
|
+
"@vitessce/all": "3.3.2",
|
|
20
|
+
"@vitessce/constants": "3.3.2",
|
|
21
|
+
"@vitessce/config": "3.3.2",
|
|
22
|
+
"@vitessce/export-utils": "3.3.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@vitejs/plugin-react": "^4.0.0",
|