@vitessce/dev 3.5.8 → 3.5.9

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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { aQ as BaseDecoder } from "./index-e99eb947.js";
2
+ import { aQ as BaseDecoder } from "./index-c50bb142.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -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-e99eb947.js";
3
+ import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-c50bb142.js";
4
4
  var promise = {};
5
5
  (function(exports2) {
6
6
  (function(global) {
@@ -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-e99eb947.js";
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-c50bb142.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-49c3f8db.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-981eb334.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
@@ -1,4 +1,4 @@
1
- import { aW as _export, aX as _coreExports, aY as _fails, aZ as _toObject, a_ as _objectKeys, g as getDefaultExportFromCjs, a$ as _wksExports, b0 as _cof, b1 as _iterators, b2 as _anObject, b3 as _hide, b4 as _ctx, b5 as _toLength, b6 as _globalExports, b7 as _objectDp, b8 as _descriptors, b9 as _isObject, ba as _metaExports, bb as _objectCreate, bc as _iterDefine, bd as _iterStep, be as _isArray, bf as _iobject, bg as _setToStringTag, bh as _aFunction, bi as _propertyDesc, bj as _root, bk as _baseGetTag, bl as isObjectLike_1, bm as isObject_1, bn as _Symbol$iterator, bo as _Object$assign, bp as _objectGopd, bq as _toIobject, br as _html, bs as _domCreate, bt as _library, bu as _Object$defineProperty, bv as _Symbol, bw as _objectPie, bx as _has, by as _redefine, bz as _objectAssign, aT as commonjsGlobal, bA as getAugmentedNamespace, bB as propTypesExports } from "./index-e99eb947.js";
1
+ import { aW as _export, aX as _coreExports, aY as _fails, aZ as _toObject, a_ as _objectKeys, g as getDefaultExportFromCjs, a$ as _wksExports, b0 as _cof, b1 as _iterators, b2 as _anObject, b3 as _hide, b4 as _ctx, b5 as _toLength, b6 as _globalExports, b7 as _objectDp, b8 as _descriptors, b9 as _isObject, ba as _metaExports, bb as _objectCreate, bc as _iterDefine, bd as _iterStep, be as _isArray, bf as _iobject, bg as _setToStringTag, bh as _aFunction, bi as _propertyDesc, bj as _root, bk as _baseGetTag, bl as isObjectLike_1, bm as isObject_1, bn as _Symbol$iterator, bo as _Object$assign, bp as _objectGopd, bq as _toIobject, br as _html, bs as _domCreate, bt as _library, bu as _Object$defineProperty, bv as _Symbol, bw as _objectPie, bx as _has, by as _redefine, bz as _objectAssign, aT as commonjsGlobal, bA as getAugmentedNamespace, bB as propTypesExports } from "./index-c50bb142.js";
2
2
  import React__default from "react";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
@@ -1159,10 +1159,10 @@ const COMPONENT_COORDINATION_TYPES = {
1159
1159
  ]
1160
1160
  };
1161
1161
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
1162
- const version$6 = "3.5.8";
1163
- const date$5 = "2025-03-06";
1162
+ const version$6 = "3.5.9";
1163
+ const date$5 = "2025-03-12";
1164
1164
  const branch = "changeset-release/main";
1165
- const hash$1 = "9066c55a";
1165
+ const hash$1 = "7ec4174e";
1166
1166
  const META_VERSION = {
1167
1167
  note,
1168
1168
  version: version$6,
@@ -2149,6 +2149,9 @@ const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
2149
2149
  function getDefaultColor(theme) {
2150
2150
  return theme === "dark" ? DEFAULT_DARK_COLOR : theme === "light" ? DEFAULT_LIGHT_COLOR$3 : DEFAULT_LIGHT2_COLOR;
2151
2151
  }
2152
+ function getDefaultForegroundColor(theme) {
2153
+ return theme === "dark" ? DEFAULT_LIGHT2_COLOR : DEFAULT_DARK_COLOR;
2154
+ }
2152
2155
  const PALETTE = [
2153
2156
  [68, 119, 170],
2154
2157
  [136, 204, 238],
@@ -48049,7 +48052,7 @@ function VitessceGrid(props) {
48049
48052
  }, [success, configKey]);
48050
48053
  return jsxRuntimeExports.jsx("div", { ref: containerRef, className: clsx(VITESSCE_CONTAINER, classes.vitessceContainer), role: "group", "aria-label": altText, children: layout2 ? jsxRuntimeExports.jsx(VitessceGridLayout, { pageMode, role: "group", layout: layout2, height: height2, rowHeight, theme, viewTypes, fileTypes, coordinationTypes, stores, draggableHandle: titleClasses.title, margin, padding: padding$2, onRemoveComponent: removeComponent, onLayoutChange: changeLayoutPostMount, isBounded, onResize, onResizeStop: onResize, children: children3 }) : null });
48051
48054
  }
48052
- const useStyles$w = makeStyles((theme) => ({
48055
+ const useStyles$x = makeStyles((theme) => ({
48053
48056
  warningLayout: {
48054
48057
  backgroundColor: theme.palette.gridLayoutBackground,
48055
48058
  position: "absolute",
@@ -48087,11 +48090,11 @@ const useStyles$w = makeStyles((theme) => ({
48087
48090
  }));
48088
48091
  function Warning(props) {
48089
48092
  const { title: title2, preformatted, unformatted } = props;
48090
- const classes = useStyles$w();
48093
+ const classes = useStyles$x();
48091
48094
  return jsxRuntimeExports.jsx("div", { className: VITESSCE_CONTAINER, children: jsxRuntimeExports.jsx("div", { className: clsx(classes.warningLayout, classes.containerFluid), children: jsxRuntimeExports.jsx("div", { className: classes.row, children: jsxRuntimeExports.jsxs("div", { className: classes.warningCard, children: [jsxRuntimeExports.jsx("h1", { children: title2 }), preformatted ? jsxRuntimeExports.jsx("pre", { children: preformatted }) : null, jsxRuntimeExports.jsx("p", { children: unformatted })] }) }) }) });
48092
48095
  }
48093
48096
  function DebugWindow({ debugErrors }) {
48094
- const classes = useStyles$w();
48097
+ const classes = useStyles$x();
48095
48098
  return jsxRuntimeExports.jsx("div", { className: VITESSCE_CONTAINER, children: jsxRuntimeExports.jsx("div", { className: clsx(classes.warningLayout, classes.containerFluid), children: jsxRuntimeExports.jsx("div", { className: classes.row, children: jsxRuntimeExports.jsx("div", { className: classes.warningCard, children: debugErrors.map((error2, index2) => jsxRuntimeExports.jsxs("div", { children: [index2 === 0 && jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsxs("h1", { children: ["Error Type: ", error2.name] }), Object.keys(error2).map((key2) => key2 !== "name" && key2 !== "message" && jsxRuntimeExports.jsxs("p", { children: [key2.charAt(0).toUpperCase() + key2.slice(1), ": ", error2[key2]] }, key2))] }), jsxRuntimeExports.jsxs("p", { children: ["Error: ", error2.message] })] }, error2.message || index2)) }) }) }) });
48096
48099
  }
48097
48100
  function validateViewConfig(viewConfig, pluginSpecificConfigSchema) {
@@ -48469,7 +48472,7 @@ const VisibilityIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path
48469
48472
  const VisibilityOffIcon = createSvgIcon(/* @__PURE__ */ React$6.createElement("path", {
48470
48473
  d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"
48471
48474
  }), "VisibilityOff");
48472
- const useStyles$v = makeStyles(() => ({
48475
+ const useStyles$w = makeStyles(() => ({
48473
48476
  loadingIndicatorBackdrop: {
48474
48477
  position: "absolute",
48475
48478
  top: "0",
@@ -48497,10 +48500,10 @@ const useStyles$v = makeStyles(() => ({
48497
48500
  }
48498
48501
  }));
48499
48502
  function LoadingIndicator() {
48500
- const classes = useStyles$v();
48503
+ const classes = useStyles$w();
48501
48504
  return jsxRuntimeExports.jsx("div", { className: classes.loadingIndicatorBackdrop, children: jsxRuntimeExports.jsxs("div", { className: classes.loadingIndicatorContainer, role: "status", "aria-live": "polite", children: [jsxRuntimeExports.jsx($$2, {}), jsxRuntimeExports.jsx("span", { className: classes.visuallyHidden, children: "Loading..." })] }) });
48502
48505
  }
48503
- const useStyles$u = makeStyles(() => ({
48506
+ const useStyles$v = makeStyles(() => ({
48504
48507
  paper: {
48505
48508
  maxHeight: 200,
48506
48509
  overflow: "auto"
@@ -48513,7 +48516,7 @@ const useStyles$u = makeStyles(() => ({
48513
48516
  }));
48514
48517
  function PopperMenu(props) {
48515
48518
  const { buttonIcon, open: open2, setOpen, children: children3, buttonClassName, placement = "bottom-end", withPaper = true, containerClassName, "aria-label": ariaLabel2 } = props;
48516
- const classes = useStyles$u();
48519
+ const classes = useStyles$v();
48517
48520
  const anchorRef = useRef();
48518
48521
  const handleClick = () => {
48519
48522
  setOpen((prev) => !prev);
@@ -48525,7 +48528,7 @@ function PopperMenu(props) {
48525
48528
  const getTooltipContainer = useVitessceContainer(anchorRef);
48526
48529
  return jsxRuntimeExports.jsxs("div", { ref: anchorRef, className: clsx(classes.container, containerClassName), children: [jsxRuntimeExports.jsx(S, { "aria-describedby": id2, onClick: handleClick, onTouchEnd: handleClick, size: "small", className: buttonClassName, "aria-label": ariaLabel2, children: buttonIcon }), jsxRuntimeExports.jsx(P$1, { id: id2, open: open2, anchorEl: anchorRef && anchorRef.current, container: getTooltipContainer, onClose: handleClose, placement, transition: true, children: ({ TransitionProps }) => jsxRuntimeExports.jsx(ClickAwayListener, { onClickAway: handleClose, children: jsxRuntimeExports.jsx(Fade$1, { ...TransitionProps, timeout: 100, children: withPaper ? jsxRuntimeExports.jsx(M$1, { elevation: 4, className: classes.paper, children: jsxRuntimeExports.jsx(L, { children: children3 }) }) : children3 }) }) })] });
48527
48530
  }
48528
- const useStyles$t = makeStyles((theme) => ({
48531
+ const useStyles$u = makeStyles((theme) => ({
48529
48532
  iconButton: {
48530
48533
  border: "none",
48531
48534
  marginLeft: 0,
@@ -48572,7 +48575,7 @@ function SettingsIconWithArrow({ open: open2 }) {
48572
48575
  function PlotOptions(props) {
48573
48576
  const { options } = props;
48574
48577
  const [open2, setOpen] = useState(false);
48575
- const classes = useStyles$t();
48578
+ const classes = useStyles$u();
48576
48579
  const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(SettingsIconWithArrow, { open: open2 }), [open2]);
48577
48580
  return options ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes.iconButton, placement: "bottom-end", "aria-label": "Open plot options menu", children: options }) : null;
48578
48581
  }
@@ -48582,19 +48585,19 @@ function CloudDownloadIconWithArrow({ open: open2 }) {
48582
48585
  function DownloadOptions(props) {
48583
48586
  const { urls: urls2 } = props;
48584
48587
  const [open2, setOpen] = useState(false);
48585
- const classes = useStyles$t();
48588
+ const classes = useStyles$u();
48586
48589
  const buttonIcon = useMemo(() => jsxRuntimeExports.jsx(CloudDownloadIconWithArrow, { open: open2 }), [open2]);
48587
48590
  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(y$5, { 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;
48588
48591
  }
48589
48592
  function HelpButton(props) {
48590
48593
  const { helpText } = props;
48591
48594
  const [open2, setOpen] = useState(false);
48592
- const classes = useStyles$t();
48595
+ const classes = useStyles$u();
48593
48596
  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 }) });
48594
48597
  }
48595
48598
  function ClosePaneButton(props) {
48596
48599
  const { removeGridComponent } = props;
48597
- const classes = useStyles$t();
48600
+ const classes = useStyles$u();
48598
48601
  return jsxRuntimeExports.jsx(S, { onClick: removeGridComponent, size: "small", className: classes.iconButton, title: "close", "aria-label": "Close panel button", children: jsxRuntimeExports.jsx(CloseIcon$1, {}) });
48599
48602
  }
48600
48603
  function TitleInfo(props) {
@@ -49723,7 +49726,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppr
49723
49726
  var e3 = new Error(message);
49724
49727
  return e3.name = "SuppressedError", e3.error = error2, e3.suppressed = suppressed, e3;
49725
49728
  };
49726
- const useStyles$s = makeStyles((theme) => ({
49729
+ const useStyles$t = makeStyles((theme) => ({
49727
49730
  box: {
49728
49731
  boxSizing: "border-box"
49729
49732
  },
@@ -49772,7 +49775,7 @@ const useStyles$s = makeStyles((theme) => ({
49772
49775
  }));
49773
49776
  function OptionSelect(props) {
49774
49777
  const { classes: classesProp = {} } = props;
49775
- const classes = useStyles$s();
49778
+ const classes = useStyles$t();
49776
49779
  return jsxRuntimeExports.jsx(Select$1, { native: true, disableUnderline: true, ...props, classes: {
49777
49780
  root: classes.optionSelectRoot,
49778
49781
  ...classesProp
@@ -49780,7 +49783,7 @@ function OptionSelect(props) {
49780
49783
  }
49781
49784
  function CellColorEncodingOption(props) {
49782
49785
  const { observationsLabel, cellColorEncoding, setCellColorEncoding } = props;
49783
- const classes = useStyles$s();
49786
+ const classes = useStyles$t();
49784
49787
  const cellColorEncodingId = $bdb11010cef70236$export$f680877a34711e37();
49785
49788
  const observationsLabelNice = capitalize$2(observationsLabel);
49786
49789
  function handleColorEncodingChange(event2) {
@@ -49792,7 +49795,7 @@ function CellColorEncodingOption(props) {
49792
49795
  }
49793
49796
  function OptionsContainer(props) {
49794
49797
  const { children: children3 } = props;
49795
- const classes = useStyles$s();
49798
+ const classes = useStyles$t();
49796
49799
  return jsxRuntimeExports.jsx(Box$1, { className: classes.box, children: jsxRuntimeExports.jsx(TableContainer$1, { className: classes.tableContainer, children: jsxRuntimeExports.jsx(Table$4, { className: classes.table, size: "small", "aria-label": "Menu of options available for the view", children: jsxRuntimeExports.jsx(TableBody$1, { children: children3 }) }) }) });
49797
49800
  }
49798
49801
  class PluginViewType {
@@ -59400,7 +59403,7 @@ function defaultUrlTransform(value2) {
59400
59403
  }
59401
59404
  return "";
59402
59405
  }
59403
- const useStyles$r = makeStyles((theme) => ({
59406
+ const useStyles$s = makeStyles((theme) => ({
59404
59407
  description: {
59405
59408
  "& p, details, table": {
59406
59409
  fontSize: "80%",
@@ -59437,7 +59440,7 @@ const useStyles$r = makeStyles((theme) => ({
59437
59440
  }));
59438
59441
  function Description(props) {
59439
59442
  const { description: description2, metadata: metadata2, descriptionType } = props;
59440
- const classes = useStyles$r();
59443
+ const classes = useStyles$s();
59441
59444
  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)] });
59442
59445
  }
59443
59446
  function DescriptionSubscriber(props) {
@@ -75603,7 +75606,7 @@ var Tooltip$2 = function Tooltip2(props, ref2) {
75603
75606
  };
75604
75607
  const Tooltip$3 = /* @__PURE__ */ forwardRef(Tooltip$2);
75605
75608
  const nodeHeight = 32;
75606
- const useStyles$q = makeStyles((theme) => ({
75609
+ const useStyles$r = makeStyles((theme) => ({
75607
75610
  setsManager: {
75608
75611
  position: "relative",
75609
75612
  width: "100%",
@@ -80798,7 +80801,7 @@ function NamedSetNodeStatic(props) {
80798
80801
  const onClick = level === 0 && !expanded ? () => onCheckLevel(nodeKey, nextLevelToCheck) : () => onNodeView(path2);
80799
80802
  const tooltipProps = disableTooltip ? { visible: false } : {};
80800
80803
  const popoverMenuConfig = makeNodeViewMenuConfig(props);
80801
- const classes = useStyles$q();
80804
+ const classes = useStyles$r();
80802
80805
  return jsxRuntimeExports.jsxs("span", { children: [jsxRuntimeExports.jsx(HelpTooltip, { title: tooltipText, ...tooltipProps, children: jsxRuntimeExports.jsx("button", { type: "button", onClick, onKeyPress: (e3) => callbackOnKeyPress(e3, "v", () => onNodeView(path2)), className: classes.titleButton, children: title2 }) }), popoverMenuConfig.length > 0 ? jsxRuntimeExports.jsx(PopoverMenu, { menuConfig: makeNodeViewMenuConfig(props), color: level > 0 && editable ? color2 || getDefaultColor(theme) : null, setColor: (c2) => onNodeSetColor(path2, c2), children: jsxRuntimeExports.jsx(SvgMenu, { className: classes.nodeMenuIcon, "aria-label": "Open Node View Menu" }) }) : null, level > 0 && isChecking ? checkbox2 : null, level > 0 && jsxRuntimeExports.jsx("span", { className: classes.nodeSizeLabel, children: niceSize })] });
80803
80806
  }
80804
80807
  function NamedSetNodeEditing(props) {
@@ -80810,7 +80813,7 @@ function NamedSetNodeEditing(props) {
80810
80813
  onNodeSetName(path2, currentTitle, true);
80811
80814
  }
80812
80815
  }
80813
- const classes = useStyles$q();
80816
+ const classes = useStyles$r();
80814
80817
  return jsxRuntimeExports.jsxs("span", { className: classes.titleButtonWithInput, children: [jsxRuntimeExports.jsx("input", {
80815
80818
  // eslint-disable-next-line jsx-a11y/no-autofocus
80816
80819
  autoFocus: true,
@@ -80836,7 +80839,7 @@ function LevelsButtons(props) {
80836
80839
  onCheckLevel(nodeKey, newLevel);
80837
80840
  }
80838
80841
  }
80839
- const classes = useStyles$q();
80842
+ const classes = useStyles$r();
80840
80843
  return jsxRuntimeExports.jsx("div", { className: classes.levelButtonsContainer, children: range$f(1, height2 + 1).map((i2) => {
80841
80844
  const isChecked = isEqual$5(path2, checkedLevelPath) && i2 === checkedLevelIndex;
80842
80845
  return jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx(HelpTooltip, { title: getLevelTooltipText(i2), children: jsxRuntimeExports.jsx("input", { className: clsx(classes.levelRadioButton, { [classes.levelRadioButtonChecked]: isChecked && !hasColorEncoding }), type: "checkbox", value: i2, checked: isChecked && hasColorEncoding, onChange: onCheck }) }) }, i2);
@@ -80923,7 +80926,7 @@ let TreeNode$1 = class TreeNode extends TreeNode$2 {
80923
80926
  };
80924
80927
  function PlusButton(props) {
80925
80928
  const { datatype, onError, onImportTree, onCreateLevelZeroNode, importable, editable } = props;
80926
- const classes = useStyles$q();
80929
+ const classes = useStyles$r();
80927
80930
  const onImport = useCallback((importHandler, mimeType) => () => {
80928
80931
  const uploadInputNode = document.createElement("input");
80929
80932
  uploadInputNode.setAttribute("type", "file");
@@ -81040,7 +81043,7 @@ function SetsManager(props) {
81040
81043
  }, onNodeCheckNewName, onNodeSetIsEditing: setIsEditingNodeName, onNodeRemove, onExportLevelZeroNodeJSON, onExportLevelZeroNodeTabular, onExportSetJSON, disableTooltip: isDragging, onDragStart: () => setIsDragging(true), onDragEnd: () => setIsDragging(false), children: renderTreeNodes(node2.children, readOnly, newPath) }, pathToKey(newPath));
81041
81044
  });
81042
81045
  }
81043
- const classes = useStyles$q();
81046
+ const classes = useStyles$r();
81044
81047
  return jsxRuntimeExports.jsxs("div", { className: classes.setsManager, children: [jsxRuntimeExports.jsxs("div", { className: classes.setsManagerTree, children: [jsxRuntimeExports.jsx(Tree$1, { draggable: false, checkable, checkedKeys: setSelectionKeys, expandedKeys: setExpansionKeys, autoExpandParent, onCheck: (checkedKeys, info2) => onCheckNode(info2.node.props.nodeKey, info2.checked), onExpand: (expandedKeys, info2) => onExpandNode(expandedKeys, info2.node.props.nodeKey, info2.expanded), children: renderTreeNodes(processedSets.tree, true, []) }), jsxRuntimeExports.jsx(Tree$1, { draggable: true, checkable, checkedKeys: additionalSetSelectionKeys, expandedKeys: additionalSetExpansionKeys, autoExpandParent, onCheck: (checkedKeys, info2) => onCheckNode(info2.node.props.nodeKey, info2.checked), onExpand: (expandedKeys, info2) => onExpandNode(expandedKeys, info2.node.props.nodeKey, info2.expanded), onDrop: (info2) => {
81045
81048
  const { eventKey: dropKey } = info2.node.props;
81046
81049
  const { eventKey: dragKey } = info2.dragNode.props;
@@ -186885,16 +186888,16 @@ async function getDecoder(fileDirectory) {
186885
186888
  const Decoder = await importFn();
186886
186889
  return new Decoder(fileDirectory);
186887
186890
  }
186888
- addDecoder([void 0, 1], () => import("./raw-1149fbd4.js").then((m2) => m2.default));
186889
- addDecoder(5, () => import("./lzw-87e107e4.js").then((m2) => m2.default));
186891
+ addDecoder([void 0, 1], () => import("./raw-5459e759.js").then((m2) => m2.default));
186892
+ addDecoder(5, () => import("./lzw-086a5f57.js").then((m2) => m2.default));
186890
186893
  addDecoder(6, () => {
186891
186894
  throw new Error("old style JPEG compression is not supported.");
186892
186895
  });
186893
- addDecoder(7, () => import("./jpeg-00043bad.js").then((m2) => m2.default));
186894
- addDecoder([8, 32946], () => import("./deflate-f83795de.js").then((m2) => m2.default));
186895
- addDecoder(32773, () => import("./packbits-77709154.js").then((m2) => m2.default));
186896
- addDecoder(34887, () => import("./lerc-428214e3.js").then((m2) => m2.default));
186897
- addDecoder(50001, () => import("./webimage-929d8349.js").then((m2) => m2.default));
186896
+ addDecoder(7, () => import("./jpeg-9bfeb4f3.js").then((m2) => m2.default));
186897
+ addDecoder([8, 32946], () => import("./deflate-867d10e7.js").then((m2) => m2.default));
186898
+ addDecoder(32773, () => import("./packbits-22812b46.js").then((m2) => m2.default));
186899
+ addDecoder(34887, () => import("./lerc-1fc32d0a.js").then((m2) => m2.default));
186900
+ addDecoder(50001, () => import("./webimage-2ef29d50.js").then((m2) => m2.default));
186898
186901
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
186899
186902
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
186900
186903
  }
@@ -200651,7 +200654,7 @@ class BitmaskLayer2 extends XRLayer {
200651
200654
  }
200652
200655
  BitmaskLayer2.layerName = "BitmaskLayer";
200653
200656
  BitmaskLayer2.defaultProps = defaultProps;
200654
- const useStyles$p = makeStyles(() => ({
200657
+ const useStyles$q = makeStyles(() => ({
200655
200658
  toolButton: {
200656
200659
  display: "inline-flex",
200657
200660
  "&:active": {
@@ -200712,12 +200715,12 @@ const useStyles$p = makeStyles(() => ({
200712
200715
  }));
200713
200716
  function IconTool(props) {
200714
200717
  const { alt, onClick, isActive: isActive2, children: children3 } = props;
200715
- const classes = useStyles$p();
200718
+ const classes = useStyles$q();
200716
200719
  return jsxRuntimeExports.jsx("button", { className: clsx(classes.toolIcon, { [classes.toolActive]: isActive2 }), onClick, type: "button", title: alt, children: children3 });
200717
200720
  }
200718
200721
  function IconButton2(props) {
200719
200722
  const { alt, onClick, children: children3 } = props;
200720
- const classes = useStyles$p();
200723
+ const classes = useStyles$q();
200721
200724
  return jsxRuntimeExports.jsx("button", { className: clsx(classes.toolIcon, classes.toolButton), onClick, type: "button", title: alt, children: children3 });
200722
200725
  }
200723
200726
  function ToolMenu(props) {
@@ -200725,7 +200728,7 @@ function ToolMenu(props) {
200725
200728
  const lassoIconAltText = "Select lasso";
200726
200729
  const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => {
200727
200730
  } } = props;
200728
- const classes = useStyles$p();
200731
+ const classes = useStyles$q();
200729
200732
  const onRecenterButtonCLick = () => {
200730
200733
  recenterOnClick();
200731
200734
  };
@@ -201483,7 +201486,7 @@ function ScatterplotOptions(props) {
201483
201486
  const { children: children3, observationsLabel, cellRadius, setCellRadius, cellRadiusMode, setCellRadiusMode, cellOpacity, setCellOpacity, 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, contourColorEncoding, setContourColorEncoding } = props;
201484
201487
  const scatterplotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
201485
201488
  const observationsLabelNice = capitalize$2(observationsLabel);
201486
- const classes = useStyles$s();
201489
+ const classes = useStyles$t();
201487
201490
  function handleCellRadiusModeChange(event2) {
201488
201491
  setCellRadiusMode(event2.target.value);
201489
201492
  }
@@ -201626,7 +201629,7 @@ function Tooltip4(props) {
201626
201629
  }, [x2, y2, parentWidth, parentHeight]);
201627
201630
  return jsxRuntimeExports.jsx("div", { ref: ref2, className: classes.tooltipAnchor, children: ref2 && ref2.current ? jsxRuntimeExports.jsx(P$1, { open: true, anchorEl: ref2.current, container: getTooltipContainer, transition: true, placement: `${placementY}-${placementX}`, children: jsxRuntimeExports.jsx(M$1, { elevation: 4, className: classes.tooltipContent, children: children3 }) }) : null });
201628
201631
  }
201629
- const useStyles$o = makeStyles((theme) => ({
201632
+ const useStyles$p = makeStyles((theme) => ({
201630
201633
  cellEmphasisCrosshair: {
201631
201634
  zIndex: 50,
201632
201635
  position: "absolute",
@@ -201637,7 +201640,7 @@ const useStyles$o = makeStyles((theme) => ({
201637
201640
  }));
201638
201641
  function Tooltip2D(props) {
201639
201642
  const { parentUuid, sourceUuid, x: x2, y: y2, parentWidth, parentHeight, children: children3 } = props;
201640
- const classes = useStyles$o();
201643
+ const classes = useStyles$p();
201641
201644
  if (x2 < 0 || x2 > parentWidth || y2 < 0 || y2 > parentHeight) {
201642
201645
  return null;
201643
201646
  }
@@ -205999,7 +206002,7 @@ function getXlinkHref(cmap) {
205999
206002
  const xlinkHref = ramp(color2.copy().domain(quantize$4(interpolate$3(0, 1), n3))).toDataURL();
206000
206003
  return xlinkHref;
206001
206004
  }
206002
- const useStyles$n = makeStyles(() => ({
206005
+ const useStyles$o = makeStyles(() => ({
206003
206006
  legend: {
206004
206007
  top: "2px",
206005
206008
  right: "2px",
@@ -206042,7 +206045,7 @@ const rectMarginX = 2;
206042
206045
  function Legend(props) {
206043
206046
  const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, extent: extent2, missing, width: width2 = 100, height: height2 = 36, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
206044
206047
  const svgRef = useRef();
206045
- const classes = useStyles$n();
206048
+ const classes = useStyles$o();
206046
206049
  const isDarkTheme = theme === "dark";
206047
206050
  const isStaticColor = obsColorEncoding === "spatialChannelColor" || obsColorEncoding === "spatialLayerColor";
206048
206051
  const isSetColor = obsColorEncoding === "cellSetSelection";
@@ -206171,7 +206174,7 @@ function Legend(props) {
206171
206174
  height: `${dynamicHeight}px`
206172
206175
  } }) });
206173
206176
  }
206174
- const useStyles$m = makeStyles(() => ({
206177
+ const useStyles$n = makeStyles(() => ({
206175
206178
  multiLegend: {
206176
206179
  position: "absolute",
206177
206180
  top: "0px",
@@ -206196,7 +206199,7 @@ function MultiLegend(props) {
206196
206199
  pointLayerScopes,
206197
206200
  pointLayerCoordination
206198
206201
  } = props;
206199
- const classes = useStyles$m();
206202
+ const classes = useStyles$n();
206200
206203
  const reversedSegmentationLayerScopes = useMemo(() => [...segmentationLayerScopes || []].reverse(), [segmentationLayerScopes]);
206201
206204
  const reversedSpotLayerScopes = useMemo(() => [...spotLayerScopes || []].reverse(), [spotLayerScopes]);
206202
206205
  const reversedPointLayerScopes = useMemo(() => [...pointLayerScopes || []].reverse(), [pointLayerScopes]);
@@ -206267,7 +206270,7 @@ function MultiLegend(props) {
206267
206270
  }) : null;
206268
206271
  }) : null] });
206269
206272
  }
206270
- const useStyles$l = makeStyles(() => ({
206273
+ const useStyles$m = makeStyles(() => ({
206271
206274
  channelNamesLegendContainer: {
206272
206275
  position: "absolute",
206273
206276
  bottom: "0px",
@@ -206290,7 +206293,7 @@ const useStyles$l = makeStyles(() => ({
206290
206293
  }));
206291
206294
  function ChannelNamesLegend(props) {
206292
206295
  const { images, imageLayerScopes, imageLayerCoordination, imageChannelScopesByLayer, imageChannelCoordination } = props;
206293
- const classes = useStyles$l();
206296
+ const classes = useStyles$m();
206294
206297
  const reversedImageLayerScopes = useMemo(() => [...imageLayerScopes || []].reverse(), [imageLayerScopes]);
206295
206298
  return jsxRuntimeExports.jsx("div", { className: classes.channelNamesLegendContainer, children: imageLayerScopes ? reversedImageLayerScopes.map((layerScope) => {
206296
206299
  const layerCoordination = imageLayerCoordination[0][layerScope];
@@ -206633,7 +206636,7 @@ function DualEmbeddingScatterplotSubscriber(props) {
206633
206636
  function GatingScatterplotOptions(props) {
206634
206637
  const { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform, setGatingFeatureValueTransform, gatingFeatureValueTransformCoefficient, setGatingFeatureValueTransformCoefficient, geneSelectOptions, transformOptions } = props;
206635
206638
  const gatingScatterplotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
206636
- const classes = useStyles$s();
206639
+ const classes = useStyles$t();
206637
206640
  const handleGeneSelectChange = (event2) => {
206638
206641
  const { options } = event2.target;
206639
206642
  const newValues = [];
@@ -225893,7 +225896,7 @@ function SpatialOptions(props) {
225893
225896
  function handleTooltipsVisibilityChange(event2) {
225894
225897
  setTooltipsVisible(event2.target.checked);
225895
225898
  }
225896
- const classes = useStyles$s();
225899
+ const classes = useStyles$t();
225897
225900
  return jsxRuntimeExports.jsxs(OptionsContainer, { children: [canShowColorEncodingOption ? jsxRuntimeExports.jsx(CellColorEncodingOption, { observationsLabel, cellColorEncoding, setCellColorEncoding }) : null, canShow3DOptions ? jsxRuntimeExports.jsx(ToggleFixedAxisButton, { setSpatialAxisFixed, spatialAxisFixed, use3d }) : null, jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `gene-expression-colormap-option-tooltip-visibility-${spatialOptionsId}`, children: "Tooltips Visible" }) }), jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: jsxRuntimeExports.jsx(w$3, {
225898
225901
  className: classes.checkbox,
225899
225902
  /**
@@ -227582,7 +227585,7 @@ class ErrorBoundary2 extends React__default.Component {
227582
227585
  }
227583
227586
  }
227584
227587
  const LazySpatialThree = React__default.lazy(async () => {
227585
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-ba18138b.js");
227588
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-53f4882f.js");
227586
227589
  return { default: SpatialWrapper2 };
227587
227590
  });
227588
227591
  const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
@@ -229028,7 +229031,7 @@ function HeatmapTooltipSubscriber(props) {
229028
229031
  }
229029
229032
  function HeatmapOptions(props) {
229030
229033
  const { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible } = props;
229031
- const classes = useStyles$s();
229034
+ const classes = useStyles$t();
229032
229035
  const heatmapOptionsId = $bdb11010cef70236$export$f680877a34711e37();
229033
229036
  function handleGeneExpressionColormapChange(event2) {
229034
229037
  setGeneExpressionColormap(event2.target.value);
@@ -233280,7 +233283,7 @@ function requireTable() {
233280
233283
  var _default2 = _Table["default"];
233281
233284
  exports2["default"] = _default2;
233282
233285
  })(Table$2);
233283
- const useStyles$k = makeStyles((theme) => ({
233286
+ const useStyles$l = makeStyles((theme) => ({
233284
233287
  selectableTable: {
233285
233288
  flex: "1 1 auto",
233286
233289
  outline: "none"
@@ -233428,7 +233431,7 @@ function SelectableTable(props) {
233428
233431
  onChange(null);
233429
233432
  }
233430
233433
  }, [selectedRows, allowMultiple]);
233431
- const classes = useStyles$k();
233434
+ const classes = useStyles$l();
233432
233435
  const inputUuid = v4$1();
233433
233436
  const rowRenderer = ({ index: index2, style: style2 }) => (
233434
233437
  // eslint-disable-next-line jsx-a11y/interactive-supports-focus
@@ -233453,7 +233456,7 @@ const FEATURELIST_SORT_OPTIONS = [
233453
233456
  "original"
233454
233457
  ];
233455
233458
  const ALT_COLNAME = "Alternate ID";
233456
- const useStyles$j = makeStyles(() => ({
233459
+ const useStyles$k = makeStyles(() => ({
233457
233460
  searchBar: {
233458
233461
  marginBottom: "4px",
233459
233462
  border: "0",
@@ -233463,7 +233466,7 @@ const useStyles$j = makeStyles(() => ({
233463
233466
  }));
233464
233467
  function FeatureList(props) {
233465
233468
  const { hasColorEncoding, geneList = [], featureLabelsMap, geneSelection = [], geneFilter = null, setGeneSelection, enableMultiSelect, showFeatureTable, featureListSort, featureListSortKey, hasFeatureLabels, primaryColumnName } = props;
233466
- const classes = useStyles$j();
233469
+ const classes = useStyles$k();
233467
233470
  const [searchTerm, setSearchTerm] = useState("");
233468
233471
  const [searchResults, setSearchResults] = useState(geneList);
233469
233472
  const selectableTableSortKey = featureListSortKey === "featureIndex" ? "key" : "name";
@@ -233531,7 +233534,7 @@ function FeatureListOptions(props) {
233531
233534
  function handleShowTableChange(event2) {
233532
233535
  setShowFeatureTable(event2.target.checked);
233533
233536
  }
233534
- const classes = useStyles$s();
233537
+ const classes = useStyles$t();
233535
233538
  return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children3, jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-sort-option-${featureListId}`, children: "Sort Ordering" }) }), jsxRuntimeExports.jsx(TableCell$1, { variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes.select, value: featureListSort, onChange: handleFeatureListSortChange, inputProps: {
233536
233539
  id: `feature-list-sort-option-${featureListId}`
233537
233540
  }, children: FEATURELIST_SORT_OPTIONS.map((option) => jsxRuntimeExports.jsx("option", { value: option, children: option }, option)) }) })] }), hasFeatureLabels ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(TableRow$1, { children: [jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-sort-key-${featureListId}`, children: "Sort Key" }) }), jsxRuntimeExports.jsx(TableCell$1, { variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes.select, disabled: featureListSort === "original", value: featureListSortKey, onChange: handleFeatureListSortKeyChange, inputProps: {
@@ -233672,7 +233675,7 @@ const useSelectionSliderStyles = makeStyles(() => ({
233672
233675
  backgroundColor: "rgba(128, 128, 128, 0.7)"
233673
233676
  }
233674
233677
  }));
233675
- const useStyles$i = makeStyles((theme) => ({
233678
+ const useStyles$j = makeStyles((theme) => ({
233676
233679
  paletteContainer: {
233677
233680
  width: "70px",
233678
233681
  height: "40px",
@@ -233693,10 +233696,10 @@ const useStyles$i = makeStyles((theme) => ({
233693
233696
  }
233694
233697
  }));
233695
233698
  const ColorPalette = ({ handleChange }) => {
233696
- const classes = useStyles$i();
233699
+ const classes = useStyles$j();
233697
233700
  return jsxRuntimeExports.jsx("div", { className: classes.paletteContainer, "aria-label": "Color swatch", children: VIEWER_PALETTE.map((color2) => jsxRuntimeExports.jsx(S, { className: classes.button, onClick: () => handleChange(color2), "aria-label": `Change color to ${color2}`, children: jsxRuntimeExports.jsx(LensIcon, { fontSize: "small", style: { color: `rgb(${color2})` }, className: classes.icon }) }, color2)) });
233698
233701
  };
233699
- const useStyles$h = makeStyles(() => ({
233702
+ const useStyles$i = makeStyles(() => ({
233700
233703
  menuButton: {
233701
233704
  backgroundColor: "transparent"
233702
233705
  },
@@ -233715,7 +233718,7 @@ function MuiSpan(props) {
233715
233718
  }
233716
233719
  function ChannelOptions$1({ handlePropertyChange, handleChannelRemove, handleIQRUpdate }) {
233717
233720
  const [open2, setOpen] = useState(false);
233718
- const classes = useStyles$h();
233721
+ const classes = useStyles$i();
233719
233722
  const handleColorSelect = (color2) => {
233720
233723
  handlePropertyChange("color", color2);
233721
233724
  };
@@ -234336,7 +234339,7 @@ function LayerController$1(props) {
234336
234339
  minWidth: "50%"
234337
234340
  } })] }), jsxRuntimeExports.jsx(TabPanel, { value: tab2, index: 0, children: FullController }), jsxRuntimeExports.jsx(TabPanel, { value: tab2, index: 1, style: { marginTop: 4 }, children: jsxRuntimeExports.jsx(VolumeOptions, { loader: loader2, handleSlicerSetting, handleRenderingModeChange: setRenderingMode, renderingMode, xSlice, ySlice, zSlice, use3d, setViewState, spatialHeight, spatialWidth, modelMatrix: modelMatrix2 }) })] }) : FullController, shouldShowRemoveLayerButton ? jsxRuntimeExports.jsx(Button$1, { onClick: handleLayerRemove, fullWidth: true, variant: "outlined", style: buttonStyles, size: "small", children: "Remove Image Layer" }) : null] })] });
234338
234341
  }
234339
- const useStyles$g = makeStyles(() => ({
234342
+ const useStyles$h = makeStyles(() => ({
234340
234343
  addButton: {
234341
234344
  marginTop: "10px",
234342
234345
  marginBottom: "10px",
@@ -234348,7 +234351,7 @@ function ImageAddIcon() {
234348
234351
  }
234349
234352
  function ImageAddButton({ imageOptions, handleImageAdd }) {
234350
234353
  const [open2, setOpen] = useState(false);
234351
- const classes = useStyles$g();
234354
+ const classes = useStyles$h();
234352
234355
  const handleAdd = (imgData) => {
234353
234356
  setOpen((prev) => !prev);
234354
234357
  handleImageAdd(imgData);
@@ -234659,7 +234662,7 @@ const useEllipsisMenuStyles = makeStyles(() => ({
234659
234662
  width: "100px"
234660
234663
  }
234661
234664
  }));
234662
- const useStyles$f = makeStyles(() => ({
234665
+ const useStyles$g = makeStyles(() => ({
234663
234666
  colorIcon: {
234664
234667
  width: "18px !important",
234665
234668
  height: "18px !important",
@@ -234711,13 +234714,13 @@ function ChannelColorPickerMenu(props) {
234711
234714
  setColor([rgb2.r, rgb2.g, rgb2.b]);
234712
234715
  }
234713
234716
  }
234714
- const classes = useStyles$f();
234717
+ const classes = useStyles$g();
234715
234718
  const currentColor = color2 ? colorArrayToString(color2) : colorArrayToString(getDefaultColor(theme));
234716
234719
  return jsxRuntimeExports.jsx(PopperMenu, { open: isStaticColor && visible ? open2 : false, setOpen, buttonIcon: isStaticColor && visible ? jsxRuntimeExports.jsx("div", { className: clsx(classes.colorIcon, {
234717
234720
  [classes.colorIconOutline]: theme !== "dark" && isEqual$5(color2, [255, 255, 255])
234718
234721
  }), style: { backgroundColor: currentColor } }) : isColormap && visible && featureValueColormap ? jsxRuntimeExports.jsx("div", { className: classes.colorIcon, children: jsxRuntimeExports.jsx("svg", { width: "18", height: "18", children: jsxRuntimeExports.jsx("image", { x: 0, y: 0, width: 18, height: 18, preserveAspectRatio: "none", href: getXlinkHref(featureValueColormap), clipPath: "inset(0% round 4px)" }) }) }) : jsxRuntimeExports.jsx("div", { className: classes.colorIcon }), buttonClassName: classes.colorIconButton, withPaper: false, "aria-label": "Open color picker menu", children: jsxRuntimeExports.jsx(Twitter$1, { className: classes.colorPicker, disableAlpha: true, width: 108, triangle: "hide", colors: defaultPalette, color: currentColor, onChangeComplete: handleColorChange }) });
234719
234722
  }
234720
- const useStyles$e = makeStyles(() => ({
234723
+ const useStyles$f = makeStyles(() => ({
234721
234724
  layerTypeSpotIcon: {
234722
234725
  height: "100%",
234723
234726
  marginLeft: "1px",
@@ -234730,7 +234733,7 @@ const useStyles$e = makeStyles(() => ({
234730
234733
  function SpotLayerEllipsisMenu(props) {
234731
234734
  const { strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
234732
234735
  const [open2, setOpen] = useState(false);
234733
- useStyles$e();
234736
+ useStyles$f();
234734
234737
  const selectClasses = useSelectStyles();
234735
234738
  const menuClasses = useEllipsisMenuStyles();
234736
234739
  const filledId = $bdb11010cef70236$export$f680877a34711e37();
@@ -234751,7 +234754,7 @@ function SpotLayerController(props) {
234751
234754
  const Visibility = useMemo(() => visibleSetting ? VisibilityIcon : VisibilityOffIcon, [visibleSetting]);
234752
234755
  const isStaticColor = obsColorEncoding === "spatialLayerColor";
234753
234756
  const isColormap = obsColorEncoding === "geneSelection";
234754
- const classes = useStyles$e();
234757
+ const classes = useStyles$f();
234755
234758
  const lcClasses = useControllerSectionStyles();
234756
234759
  const menuClasses = useEllipsisMenuStyles();
234757
234760
  const handleVisibleChange = useCallback(() => {
@@ -234761,7 +234764,7 @@ function SpotLayerController(props) {
234761
234764
  const handleOpacityChange = useCallback((e3, v2) => setOpacity(v2), [setOpacity]);
234762
234765
  return jsxRuntimeExports.jsx(Grid$3, { item: true, className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(M$1, { className: lcClasses.layerControllerRoot, children: jsxRuntimeExports.jsxs(Grid$3, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(Button$1, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle spot layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor, palette: palette2, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 6, children: jsxRuntimeExports.jsx(Typography$1, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 2, children: jsxRuntimeExports.jsx(Slider$1, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(SpotLayerEllipsisMenu, { filled, setFilled, strokeWidth, setStrokeWidth, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(SvgSpots, { className: classes.layerTypeSpotIcon }) })] }) }) });
234763
234766
  }
234764
- const useStyles$d = makeStyles(() => ({
234767
+ const useStyles$e = makeStyles(() => ({
234765
234768
  layerTypePointIcon: {
234766
234769
  height: "100%",
234767
234770
  marginLeft: "1px",
@@ -234792,7 +234795,7 @@ function PointLayerController(props) {
234792
234795
  const Visibility = useMemo(() => visibleSetting ? VisibilityIcon : VisibilityOffIcon, [visibleSetting]);
234793
234796
  const isStaticColor = obsColorEncoding === "spatialLayerColor";
234794
234797
  const isColormap = obsColorEncoding === "geneSelection";
234795
- const classes = useStyles$d();
234798
+ const classes = useStyles$e();
234796
234799
  const lcClasses = useControllerSectionStyles();
234797
234800
  const menuClasses = useEllipsisMenuStyles();
234798
234801
  const handleVisibleChange = useCallback(() => {
@@ -234802,7 +234805,7 @@ function PointLayerController(props) {
234802
234805
  const handleOpacityChange = useCallback((e3, v2) => setOpacity(v2), [setOpacity]);
234803
234806
  return jsxRuntimeExports.jsx(Grid$3, { item: true, className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(M$1, { className: lcClasses.layerControllerRoot, children: jsxRuntimeExports.jsxs(Grid$3, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(Button$1, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor, palette: palette2, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 6, children: jsxRuntimeExports.jsx(Typography$1, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 2, children: jsxRuntimeExports.jsx(Slider$1, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(PointLayerEllipsisMenu, { featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(SvgPoints, { className: classes.layerTypePointIcon }) })] }) }) });
234804
234807
  }
234805
- const useStyles$c = makeStyles(() => ({
234808
+ const useStyles$d = makeStyles(() => ({
234806
234809
  layerTypeSegmentationIcon: {
234807
234810
  height: "100%",
234808
234811
  marginLeft: "1px",
@@ -234815,7 +234818,7 @@ const useStyles$c = makeStyles(() => ({
234815
234818
  function SegmentationChannelEllipsisMenu(props) {
234816
234819
  const { obsType, featureType, featureValueType, strokeWidth, setStrokeWidth, filled, setFilled, featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible } = props;
234817
234820
  const [open2, setOpen] = useState(false);
234818
- useStyles$c();
234821
+ useStyles$d();
234819
234822
  const selectClasses = useSelectStyles();
234820
234823
  const menuClasses = useEllipsisMenuStyles();
234821
234824
  const filledId = $bdb11010cef70236$export$f680877a34711e37();
@@ -234863,7 +234866,7 @@ function SegmentationChannelController(props) {
234863
234866
  const Visibility = useMemo(() => visibleSetting ? VisibilityIcon : VisibilityOffIcon, [visibleSetting]);
234864
234867
  const isStaticColor = obsColorEncoding === "spatialChannelColor";
234865
234868
  const isColormap = obsColorEncoding === "geneSelection";
234866
- const classes = useStyles$c();
234869
+ const classes = useStyles$d();
234867
234870
  const lcClasses = useControllerSectionStyles();
234868
234871
  const menuClasses = useEllipsisMenuStyles();
234869
234872
  const handleVisibleChange = useCallback(() => {
@@ -234883,7 +234886,7 @@ function SegmentationLayerController(props) {
234883
234886
  return jsxRuntimeExports.jsx(SegmentationChannelController, { theme, layerScope, label: obsTypeName, obsType, featureType, featureValueType, opacity: spatialChannelOpacity, setOpacity: setSpatialChannelOpacity, visible: spatialChannelVisible, setVisible: setSpatialChannelVisible, color: color2, setColor, filled, setFilled, strokeWidth, setStrokeWidth, obsColorEncoding, featureSelection, featureValueColormap, featureValueColormapRange, setObsColorEncoding, setFeatureValueColormap, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible }, `${layerScope}-${cScope}`);
234884
234887
  }) });
234885
234888
  }
234886
- const useStyles$b = makeStyles(() => ({
234889
+ const useStyles$c = makeStyles(() => ({
234887
234890
  channelMenuButton: {
234888
234891
  backgroundColor: "transparent",
234889
234892
  padding: "3px 0",
@@ -234897,7 +234900,7 @@ const useStyles$b = makeStyles(() => ({
234897
234900
  function ChannelOptions(props) {
234898
234901
  const { onRemove: onRemove2, onResetWindowUsingIQR, showValueExtent, setShowValueExtent } = props;
234899
234902
  const [open2, setOpen] = useState(false);
234900
- const classes = useStyles$b();
234903
+ const classes = useStyles$c();
234901
234904
  const selectClasses = useSelectStyles();
234902
234905
  const menuClasses = useEllipsisMenuStyles();
234903
234906
  function handleRemove() {
@@ -234910,7 +234913,7 @@ function ChannelOptions(props) {
234910
234913
  const domainTypeId = $bdb11010cef70236$export$f680877a34711e37();
234911
234914
  return jsxRuntimeExports.jsxs(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(MoreVertIcon, { fontSize: "small" }), buttonClassName: classes.channelMenuButton, containerClassName: menuClasses.imageLayerPopperContainer, placement: "bottom-end", withPaper: true, "aria-label": "Open channel options menu", children: [jsxRuntimeExports.jsxs(y$5, { dense: true, disableGutters: true, children: [jsxRuntimeExports.jsx("label", { className: menuClasses.imageLayerMenuLabel, htmlFor: domainTypeId, children: "Slider Extent: " }), jsxRuntimeExports.jsxs(Select$1, { native: true, onChange: handleDomainTypeChange, value: showValueExtent ? "Value Min/Max" : "Dtype Min/Max", inputProps: { id: domainTypeId, "aria-label": "Slider extent selector" }, classes: { root: selectClasses.selectRoot }, children: [jsxRuntimeExports.jsx("option", { value: "Value Min/Max", children: "Value Min/Max" }), jsxRuntimeExports.jsx("option", { value: "Dtype Min/Max", children: "Dtype Min/Max" })] })] }), jsxRuntimeExports.jsx(y$5, { dense: true, disableGutters: true, component: "button", onClick: onResetWindowUsingIQR, className: classes.menuItemButton, "aria-label": "Click to use IQR for channel", children: "Reset window using IQR" }), jsxRuntimeExports.jsx(y$5, { dense: true, disableGutters: true, component: "button", onClick: handleRemove, className: classes.menuItemButton, "aria-label": "Click to remove channel", children: "Remove channel" })] });
234912
234915
  }
234913
- const useStyles$a = makeStyles(() => ({
234916
+ const useStyles$b = makeStyles(() => ({
234914
234917
  channelSlider: {
234915
234918
  marginTop: "7px"
234916
234919
  }
@@ -234920,7 +234923,7 @@ function ChannelSlider(props) {
234920
234923
  const rgbColor = toRgbUIString(colormapOn, color2, theme);
234921
234924
  const dtype = image2?.getDtype();
234922
234925
  const fullDomain = dtype ? DOMAINS[dtype] : [0, 0];
234923
- const classes = useStyles$a();
234926
+ const classes = useStyles$b();
234924
234927
  useEffect(() => {
234925
234928
  if (!window2 && !disabled && Array.isArray(minMaxDomain)) {
234926
234929
  setWindow2(minMaxDomain);
@@ -234935,7 +234938,7 @@ function ChannelSlider(props) {
234935
234938
  return `${labelPrefix} for ${rgbColor} colormap channel`;
234936
234939
  }, getAriaValueText: () => `Current colormap values: ${rgbColor}-${window2}`, min: min2, max: max2, step: step2, orientation: "horizontal", className: classes.channelSlider, style: { color: rgbColor }, disabled });
234937
234940
  }
234938
- const useStyles$9 = makeStyles(() => ({
234941
+ const useStyles$a = makeStyles(() => ({
234939
234942
  visibilityCheckbox: {
234940
234943
  padding: "8px 0"
234941
234944
  }
@@ -234949,10 +234952,10 @@ function getCheckboxColor(colormapOn, color2, theme) {
234949
234952
  function ChannelVisibilityCheckbox(props) {
234950
234953
  const { color: color2, visible, setVisible, disabled, theme, colormapOn } = props;
234951
234954
  const rgbColor = getCheckboxColor(colormapOn, color2, theme);
234952
- const classes = useStyles$9();
234955
+ const classes = useStyles$a();
234953
234956
  return jsxRuntimeExports.jsx(w$3, { onChange: (e3, v2) => setVisible(v2), checked: visible, disabled, className: classes.visibilityCheckbox, style: { color: rgbColor, "&$checked": { color: rgbColor } }, inputProps: { "aria-label": "Toggle channel visibility" } });
234954
234957
  }
234955
- const useStyles$8 = makeStyles(() => ({
234958
+ const useStyles$9 = makeStyles(() => ({
234956
234959
  oneLineChannelSelect: {
234957
234960
  width: "90%",
234958
234961
  marginLeft: "5%",
@@ -234961,7 +234964,7 @@ const useStyles$8 = makeStyles(() => ({
234961
234964
  }));
234962
234965
  function ChannelSelectionDropdown(props) {
234963
234966
  const { featureIndex, targetC, setTargetC, setWindow: setWindow2, disabled } = props;
234964
- const classes = useStyles$8();
234967
+ const classes = useStyles$9();
234965
234968
  const selectClasses = useSelectStyles();
234966
234969
  function handleChange(event2) {
234967
234970
  setTargetC(event2.target.value === "" ? null : Number(event2.target.value));
@@ -235042,7 +235045,7 @@ function ClippingSliders(props) {
235042
235045
  const [xSliceInit, ySliceInit, zSliceInit] = image2.getBoundingCube();
235043
235046
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(DimensionSlider, { label: "X", boundingSlice: xSliceInit, sliceValue: spatialSliceX, setSliceValue: setSpatialSliceX }), jsxRuntimeExports.jsx(DimensionSlider, { label: "Y", boundingSlice: ySliceInit, sliceValue: spatialSliceY, setSliceValue: setSpatialSliceY }), jsxRuntimeExports.jsx(DimensionSlider, { label: "Z", boundingSlice: zSliceInit, sliceValue: spatialSliceZ, setSliceValue: setSpatialSliceZ })] });
235044
235047
  }
235045
- const useStyles$7 = makeStyles(() => ({
235048
+ const useStyles$8 = makeStyles(() => ({
235046
235049
  imageLayerButton: {
235047
235050
  borderStyle: "dashed",
235048
235051
  marginTop: "10px",
@@ -235127,7 +235130,7 @@ function ImageLayerController(props) {
235127
235130
  }, [visible, setVisible]);
235128
235131
  const handleOpacityChange = useCallback((e3, v2) => setOpacity(v2), [setOpacity]);
235129
235132
  const handleOpenChange = useCallback(() => setOpen((prev) => !prev), []);
235130
- const classes = useStyles$7();
235133
+ const classes = useStyles$8();
235131
235134
  const menuClasses = useEllipsisMenuStyles();
235132
235135
  const controllerSectionClasses = useControllerSectionStyles();
235133
235136
  const isMultiChannel = photometricInterpretation !== "RGB";
@@ -235138,7 +235141,7 @@ function ImageLayerController(props) {
235138
235141
  return jsxRuntimeExports.jsx(ImageChannelController, { theme, coordinationScopesRaw, layerScope, channelScope: cScope, targetT, targetZ, targetC: channelIndex, setTargetC: setSpatialTargetC, visible: spatialChannelVisible, setVisible: setSpatialChannelVisible, opacity: spatialChannelOpacity, setOpacity: setSpatialChannelOpacity, color: spatialChannelColor, setColor: setSpatialChannelColor, window: spatialChannelWindow, setWindow: setSpatialChannelWindow, colormapOn: colormap !== null, featureIndex, image: image2, spatialRenderingMode }, cScope);
235139
235142
  }), jsxRuntimeExports.jsx(Button$1, { disabled: channelScopes.length === MAX_CHANNELS$1 || channelScopes.length === imageNumChannels, onClick: handleChannelAdd, fullWidth: true, variant: "outlined", className: classes.imageLayerButton, startIcon: jsxRuntimeExports.jsx(AddIcon, {}), size: "small", "aria-label": "Add a channel to this layer", children: "Add Channel" })] }) : null, is3dMode && image2 ? jsxRuntimeExports.jsxs(Grid$3, { container: true, direction: "column", justifyContent: "space-between", className: classes.imageChannelControllerGrid, children: [jsxRuntimeExports.jsx(Typography$1, { className: classes.clippingPanesLabel, children: "Clipping planes:" }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 12, className: classes.clippingSliders, children: jsxRuntimeExports.jsx(ClippingSliders, { image: image2, spatialSliceX, spatialSliceY, spatialSliceZ, setSpatialSliceX, setSpatialSliceY, setSpatialSliceZ }) })] }) : null] }) });
235140
235143
  }
235141
- const useStyles$6 = makeStyles((theme) => ({
235144
+ const useStyles$7 = makeStyles((theme) => ({
235142
235145
  dimensionsIcon: {
235143
235146
  height: "40px",
235144
235147
  width: "40px",
@@ -235162,7 +235165,7 @@ const useStyles$6 = makeStyles((theme) => ({
235162
235165
  function GlobalDimensionSlider(props) {
235163
235166
  const { label: label2, targetValue, setTargetValue, min: min2 = 0, max: max2 = 0, spatialRenderingMode = null, setSpatialRenderingMode = null } = props;
235164
235167
  const lcClasses = useControllerSectionStyles();
235165
- const classes = useStyles$6();
235168
+ const classes = useStyles$7();
235166
235169
  const isForZ = spatialRenderingMode !== null;
235167
235170
  function handleRenderingModeChange(event2) {
235168
235171
  setSpatialRenderingMode(event2.target.checked ? "3D" : "2D");
@@ -235403,7 +235406,7 @@ function LinkControllerSubscriber(props) {
235403
235406
  } = props;
235404
235407
  return jsxRuntimeExports.jsx(TitleInfo, { title: title2, closeButtonVisible, removeGridComponent, isScroll: true, theme, isReady: true, children: jsxRuntimeExports.jsx(LinkController, { linkIDInit: linkID, authToken, linkEndpoint, websocketEndpoint, fileTypes, stores, coordinationTypes }) });
235405
235408
  }
235406
- const useStyles$5 = makeStyles(() => ({
235409
+ const useStyles$6 = makeStyles(() => ({
235407
235410
  info: {
235408
235411
  // details
235409
235412
  fontSize: "80%",
@@ -235424,7 +235427,7 @@ const useStyles$5 = makeStyles(() => ({
235424
235427
  }));
235425
235428
  function Status(props) {
235426
235429
  const { info: info2, warn: warn2 } = props;
235427
- const classes = useStyles$5();
235430
+ const classes = useStyles$6();
235428
235431
  const messages2 = [];
235429
235432
  if (info2) {
235430
235433
  messages2.push(jsxRuntimeExports.jsx("p", { className: classes.info, children: info2 }, "info"));
@@ -237130,7 +237133,7 @@ ZarrMultivecDataFetcher.config = {
237130
237133
  type: "zarr-multivec"
237131
237134
  };
237132
237135
  var ZarrMultivecDataFetcher_default = ZarrMultivecDataFetcher;
237133
- const useStyles$4 = makeStyles((theme) => ({
237136
+ const useStyles$5 = makeStyles((theme) => ({
237134
237137
  higlassTitleWrapper: {
237135
237138
  height: "calc(100% - 20px)",
237136
237139
  "& > div:nth-child(2)": {
@@ -237181,7 +237184,7 @@ const useStyles$4 = makeStyles((theme) => ({
237181
237184
  }));
237182
237185
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
237183
237186
  const LazyHiGlassComponent = React__default.lazy(async () => {
237184
- const { HiGlassComponent } = await import("./higlass-a3a7cee0.js");
237187
+ const { HiGlassComponent } = await import("./higlass-43653f8b.js");
237185
237188
  return { default: HiGlassComponent };
237186
237189
  });
237187
237190
  const HG_SIZE = 800;
@@ -237295,7 +237298,7 @@ function HiGlassLazy(props) {
237295
237298
  setGenomicTargetX,
237296
237299
  setGenomicTargetY
237297
237300
  ]);
237298
- const classes = useStyles$4();
237301
+ const classes = useStyles$5();
237299
237302
  return jsxRuntimeExports.jsx("div", { className: classes.higlassWrapperParent, children: jsxRuntimeExports.jsx("div", { className: classes.higlassWrapper, ref: containerRef, style: { height: `${height2}px` }, children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazyHiGlassComponent, { ref: setHgInstance, zoomFixed: false, viewConfig: hgViewConfig, options: hgOptions }) }) }) });
237300
237303
  }
237301
237304
  HiGlassLazy.defaultProps = {
@@ -237312,7 +237315,7 @@ const urls = [];
237312
237315
  function HiGlassSubscriber(props) {
237313
237316
  const { coordinationScopes, theme, hgViewConfig, closeButtonVisible, downloadButtonVisible, removeGridComponent } = props;
237314
237317
  const [width2, height2, containerRef] = useGridItemSize();
237315
- const classes = useStyles$4();
237318
+ const classes = useStyles$5();
237316
237319
  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 }) }) }) });
237317
237320
  }
237318
237321
  const REFERENCE_TILESETS = {
@@ -237482,7 +237485,7 @@ function GenomicProfilesSubscriber(props) {
237482
237485
  higlassServer,
237483
237486
  assembly
237484
237487
  ]);
237485
- const classes = useStyles$4();
237488
+ const classes = useStyles$5();
237486
237489
  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 }) }) });
237487
237490
  }
237488
237491
  function decodeBase64(base64, enableUnicode) {
@@ -238149,7 +238152,7 @@ span.CodeMirror-selectedtext {
238149
238152
  height: 100%
238150
238153
  }
238151
238154
  `;
238152
- const useStyles$3 = makeStyles(() => ({
238155
+ const useStyles$4 = makeStyles(() => ({
238153
238156
  neuroglancerWrapper: {
238154
238157
  position: "relative",
238155
238158
  height: "100%",
@@ -240128,7 +240131,7 @@ const useStyles$3 = makeStyles(() => ({
240128
240131
  }
240129
240132
  }));
240130
240133
  const LazyReactNeuroglancer = React__default.lazy(async () => {
240131
- const ReactNeuroglancer = await import("./index-60c5503b.js").then((n3) => n3.i);
240134
+ const ReactNeuroglancer = await import("./index-9e0e0443.js").then((n3) => n3.i);
240132
240135
  return ReactNeuroglancer;
240133
240136
  });
240134
240137
  function createWorker() {
@@ -240136,7 +240139,7 @@ function createWorker() {
240136
240139
  }
240137
240140
  function Neuroglancer(props) {
240138
240141
  const { viewerState, onViewerStateChanged } = props;
240139
- const classes = useStyles$3();
240142
+ const classes = useStyles$4();
240140
240143
  const bundleRoot = useMemo(() => createWorker(), []);
240141
240144
  const handleStateChanged = useCallback((newState) => {
240142
240145
  if (JSON.stringify(newState) !== JSON.stringify(viewerState)) {
@@ -240154,7 +240157,7 @@ function NeuroglancerSubscriber(props) {
240154
240157
  function CellSetExpressionPlotOptions(props) {
240155
240158
  const { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold, setFeatureValuePositivityThreshold, featureValueColormap, setFeatureValueColormap } = props;
240156
240159
  const cellSetExpressionPlotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
240157
- const classes = useStyles$s();
240160
+ const classes = useStyles$t();
240158
240161
  function handleFeatureValueColormapChange(event2) {
240159
240162
  setFeatureValueColormap(event2.target.value);
240160
240163
  }
@@ -245140,7 +245143,7 @@ function CellSetExpressionPlot(props) {
245140
245143
  position: "relative"
245141
245144
  } });
245142
245145
  }
245143
- const useStyles$2 = makeStyles(() => ({
245146
+ const useStyles$3 = makeStyles(() => ({
245144
245147
  vegaContainer: {
245145
245148
  display: "flex",
245146
245149
  flex: "1 1 auto",
@@ -245279,7 +245282,7 @@ function useExpressionByCellSet(sampleEdges, sampleSets, sampleSetSelection, exp
245279
245282
  }
245280
245283
  function CellSetExpressionPlotSubscriber(props) {
245281
245284
  const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, jitter: jitter2 = false, yMin = null, yUnits = null, helpText = ViewHelpMapping.OBS_SET_FEATURE_VALUE_DISTRIBUTION } = props;
245282
- const classes = useStyles$2();
245285
+ const classes = useStyles$3();
245283
245286
  const loaders = useLoaders();
245284
245287
  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);
245285
245288
  const [width2, height2, containerRef] = useGridItemSize();
@@ -296941,7 +296944,7 @@ const VEGA_THEMES = {
296941
296944
  }
296942
296945
  };
296943
296946
  const DATASET_NAME = "table";
296944
- const useStyles$1 = makeStyles((theme) => ({
296947
+ const useStyles$2 = makeStyles((theme) => ({
296945
296948
  "@global": {
296946
296949
  "#vg-tooltip-element.vg-tooltip.custom-theme": {
296947
296950
  boxShadow: "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
@@ -296975,7 +296978,7 @@ function renderTooltipContents(tooltipText) {
296975
296978
  }
296976
296979
  function VegaPlot(props) {
296977
296980
  const { spec: partialSpec, data: data2, getTooltipText, signalListeners } = props;
296978
- const classes = useStyles$1();
296981
+ const classes = useStyles$2();
296979
296982
  const tooltipClasses = styles$1();
296980
296983
  const tooltipHandler = useMemo(() => {
296981
296984
  if (typeof getTooltipText === "function") {
@@ -297135,7 +297138,7 @@ function CellSetSizesPlot(props) {
297135
297138
  }
297136
297139
  function CellSetSizesPlotSubscriber(props) {
297137
297140
  const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, helpText = ViewHelpMapping.OBS_SET_SIZES } = props;
297138
- const classes = useStyles$2();
297141
+ const classes = useStyles$3();
297139
297142
  const loaders = useLoaders();
297140
297143
  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);
297141
297144
  const title2 = titleOverride || `${capitalize$2(obsType)} Set Sizes`;
@@ -297241,7 +297244,7 @@ function ExpressionHistogram(props) {
297241
297244
  }
297242
297245
  function ExpressionHistogramSubscriber(props) {
297243
297246
  const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_VALUE_HISTOGRAM } = props;
297244
- const classes = useStyles$2();
297247
+ const classes = useStyles$3();
297245
297248
  const loaders = useLoaders();
297246
297249
  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);
297247
297250
  const [width2, height2, containerRef] = useGridItemSize();
@@ -297438,7 +297441,7 @@ function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, exp
297438
297441
  }
297439
297442
  function DotPlotSubscriber(props) {
297440
297443
  const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true, helpText = ViewHelpMapping.DOT_PLOT } = props;
297441
- const classes = useStyles$2();
297444
+ const classes = useStyles$3();
297442
297445
  const loaders = useLoaders();
297443
297446
  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);
297444
297447
  const [width2, height2, containerRef] = useGridItemSize();
@@ -297579,7 +297582,7 @@ function FeatureBarPlot(props) {
297579
297582
  }
297580
297583
  function FeatureBarPlotSubscriber(props) {
297581
297584
  const { coordinationScopes, removeGridComponent, theme, yMin = 0, yUnits = null, helpText = ViewHelpMapping.FEATURE_BAR_PLOT } = props;
297582
- const classes = useStyles$2();
297585
+ const classes = useStyles$3();
297583
297586
  const loaders = useLoaders();
297584
297587
  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);
297585
297588
  const [width2, height2, containerRef] = useGridItemSize();
@@ -297664,7 +297667,7 @@ function uidGenerator(prefix2) {
297664
297667
  };
297665
297668
  }
297666
297669
  function Treemap(props) {
297667
- const { obsCounts, obsColorEncoding, hierarchyLevels, theme, width: width2, height: height2, obsType, sampleType, obsSetColor, sampleSetColor, obsSetSelection, sampleSetSelection, marginTop = 5, marginRight = 5, marginLeft = 80, marginBottom } = props;
297670
+ const { obsCounts, obsColorEncoding, hierarchyLevels, theme, width: width2, height: height2, obsType, sampleType, obsSetColor, sampleSetColor, obsSetSelection, sampleSetSelection, marginTop = 5, marginRight = 5, marginLeft = 80, marginBottom, onNodeClick } = props;
297668
297671
  const hierarchyData = useMemo(() => {
297669
297672
  if (!obsCounts) {
297670
297673
  return null;
@@ -297714,7 +297717,10 @@ function Treemap(props) {
297714
297717
  leaf.append("rect").attr("id", (d) => {
297715
297718
  d.leafUid = getLeafUid();
297716
297719
  return d.leafUid.id;
297717
- }).attr("fill", (d) => colorScale2(getPathForColoring(d))).attr("fill-opacity", 0.8).attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0);
297720
+ }).attr("fill", (d) => colorScale2(getPathForColoring(d))).attr("fill-opacity", 0.8).attr("width", (d) => d.x1 - d.x0).attr("height", (d) => d.y1 - d.y0).on("click", (e3, d) => {
297721
+ const obsSetPath2 = hierarchyLevels[0] === "obsSet" ? d.parent?.data?.[0] : d.data?.[0];
297722
+ onNodeClick(obsSetPath2);
297723
+ });
297718
297724
  leaf.append("clipPath").attr("id", (d) => {
297719
297725
  d.clipUid = getClipUid();
297720
297726
  return d.clipUid.id;
@@ -297743,7 +297749,8 @@ function Treemap(props) {
297743
297749
  obsSetColorScale,
297744
297750
  sampleSetColorScale,
297745
297751
  obsColorEncoding,
297746
- hierarchyLevels
297752
+ hierarchyLevels,
297753
+ onNodeClick
297747
297754
  ]);
297748
297755
  return jsxRuntimeExports.jsx("svg", { ref: svgRef, style: {
297749
297756
  top: 0,
@@ -297756,7 +297763,7 @@ function Treemap(props) {
297756
297763
  function TreemapOptions(props) {
297757
297764
  const { children: children3, obsType, sampleType, hierarchyLevels, setHierarchyLevels, obsColorEncoding, setObsColorEncoding } = props;
297758
297765
  const treemapOptionsId = $bdb11010cef70236$export$f680877a34711e37();
297759
- const classes = useStyles$s();
297766
+ const classes = useStyles$t();
297760
297767
  function handleColorEncodingChange(event2) {
297761
297768
  setObsColorEncoding(event2.target.value);
297762
297769
  }
@@ -297777,7 +297784,7 @@ function TreemapOptions(props) {
297777
297784
  const DEFAULT_HIERARCHY_LEVELS = ["obsSet", "sampleSet"];
297778
297785
  function TreemapSubscriber(props) {
297779
297786
  const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.TREEMAP } = props;
297780
- const classes = useStyles$2();
297787
+ const classes = useStyles$3();
297781
297788
  const loaders = useLoaders();
297782
297789
  const [{ dataset, obsType, featureType, featureValueType, obsFilter, obsHighlight, obsSetSelection, obsSetFilter, obsSelection, obsSelectionMode, obsSetHighlight, obsSetColor, obsColorEncoding, additionalObsSets, sampleType, sampleSetSelection, sampleSetFilter, sampleSetColor, sampleSelection, sampleSelectionMode, sampleFilter, sampleFilterMode, sampleHighlight, hierarchyLevels }, { setObsFilter, setObsSelection: setObsSelection2, setObsSetFilter, setObsSetSelection, setObsSelectionMode, setObsFilterMode, setObsHighlight, setObsSetColor, setObsColorEncoding, setAdditionalObsSets, setSampleFilter, setSampleSetFilter, setSampleFilterMode, setSampleSelection, setSampleSetSelection, setSampleSelectionMode, setSampleHighlight, setSampleSetColor, setHierarchyLevels }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.TREEMAP], coordinationScopes);
297783
297790
  const [width2, height2, containerRef] = useGridItemSize();
@@ -297868,7 +297875,10 @@ function TreemapSubscriber(props) {
297868
297875
  sampleSetSelection
297869
297876
  // TODO: consider filtering-related coordination values
297870
297877
  ]);
297871
- return jsxRuntimeExports.jsx(TitleInfo, { title: `Treemap of ${capitalize$2(pluralize(obsType, 2))}`, info: `${commaNumber(obsCount)} ${pluralize(obsType, obsCount)} from ${commaNumber(sampleCount)} ${pluralize(sampleType, sampleCount)}`, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(TreemapOptions, { obsType, sampleType, obsColorEncoding, setObsColorEncoding, hierarchyLevels: hierarchyLevels || DEFAULT_HIERARCHY_LEVELS, setHierarchyLevels }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(Treemap, { obsCounts, sampleCounts, obsColorEncoding, hierarchyLevels: hierarchyLevels || DEFAULT_HIERARCHY_LEVELS, theme, width: width2, height: height2, obsType, sampleType, obsSetColor, sampleSetColor, obsSetSelection, sampleSetSelection }) }) });
297878
+ const onNodeClick = useCallback((obsSetPath2) => {
297879
+ setObsSetSelection([obsSetPath2]);
297880
+ }, [setObsSetSelection]);
297881
+ return jsxRuntimeExports.jsx(TitleInfo, { title: `Treemap of ${capitalize$2(pluralize(obsType, 2))}`, info: `${commaNumber(obsCount)} ${pluralize(obsType, obsCount)} from ${commaNumber(sampleCount)} ${pluralize(sampleType, sampleCount)}`, removeGridComponent, urls: urls2, theme, isReady, helpText, options: jsxRuntimeExports.jsx(TreemapOptions, { obsType, sampleType, obsColorEncoding, setObsColorEncoding, hierarchyLevels: hierarchyLevels || DEFAULT_HIERARCHY_LEVELS, setHierarchyLevels }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes.vegaContainer, children: jsxRuntimeExports.jsx(Treemap, { obsCounts, sampleCounts, obsColorEncoding, hierarchyLevels: hierarchyLevels || DEFAULT_HIERARCHY_LEVELS, theme, width: width2, height: height2, obsType, sampleType, obsSetColor, sampleSetColor, obsSetSelection, sampleSetSelection, onNodeClick }) }) });
297872
297882
  }
297873
297883
  function VolcanoPlot(props) {
297874
297884
  const { theme, width: width2, height: height2, obsType, featureType, obsSetsColumnNameMapping, sampleSetsColumnNameMapping, sampleSetSelection, obsSetSelection, obsSetColor, sampleSetColor, data: data2, marginTop = 5, marginRight = 5, marginLeft = 50, marginBottom = 50, onFeatureClick, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold } = props;
@@ -297910,7 +297920,7 @@ function VolcanoPlot(props) {
297910
297920
  svg2.append("g").attr("transform", `translate(0,${height2 - marginBottom})`).call(axisBottom(xScale));
297911
297921
  svg2.append("g").attr("transform", `translate(${marginLeft},0)`).call(axisLeft(yScale));
297912
297922
  const titleG = svg2.append("g");
297913
- const fgColor = "black";
297923
+ const fgColor = colorArrayToString(getDefaultForegroundColor(theme));
297914
297924
  titleG.append("text").attr("text-anchor", "middle").attr("x", -innerHeight2 / 2).attr("y", 15).attr("transform", "rotate(-90)").text("-log10 p-value").style("font-size", "12px").style("fill", fgColor);
297915
297925
  titleG.append("text").attr("text-anchor", "middle").attr("x", marginLeft + innerWidth2 / 2).attr("y", height2 - 10).text("log2 fold-change").style("font-size", "12px").style("fill", fgColor);
297916
297926
  const obsSetsColumnNameMappingReversed = Object.fromEntries(Object.entries(obsSetsColumnNameMapping).map(([key2, value2]) => [value2, key2]));
@@ -297998,7 +298008,7 @@ p-value: ${d.featureSignificance}`);
297998
298008
  function VolcanoPlotOptions(props) {
297999
298009
  const { children: children3, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold } = props;
298000
298010
  const volcanoOptionsId = $bdb11010cef70236$export$f680877a34711e37();
298001
- const classes = useStyles$s();
298011
+ const classes = useStyles$t();
298002
298012
  function handlePointSignificanceChange(event2, value2) {
298003
298013
  setFeaturePointSignificanceThreshold(10 ** -value2);
298004
298014
  }
@@ -298015,7 +298025,7 @@ function VolcanoPlotOptions(props) {
298015
298025
  }
298016
298026
  function VolcanoPlotSubscriber(props) {
298017
298027
  const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.VOLCANO_PLOT } = props;
298018
- const classes = useStyles$2();
298028
+ const classes = useStyles$3();
298019
298029
  const loaders = useLoaders();
298020
298030
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.VOLCANO_PLOT], coordinationScopes);
298021
298031
  const [width2, height2, containerRef] = useGridItemSize();
@@ -298197,7 +298207,7 @@ function CellSetCompositionBarPlot(props) {
298197
298207
  }
298198
298208
  function CellSetCompositionBarPlotSubscriber(props) {
298199
298209
  const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.OBS_SET_COMPOSITION_BAR_PLOT } = props;
298200
- const classes = useStyles$2();
298210
+ const classes = useStyles$3();
298201
298211
  const loaders = useLoaders();
298202
298212
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.OBS_SET_COMPOSITION_BAR_PLOT], coordinationScopes);
298203
298213
  const [width2, height2, containerRef] = useGridItemSize();
@@ -298327,7 +298337,7 @@ function FeatureSetEnrichmentBarPlot(props) {
298327
298337
  x: {
298328
298338
  field: "minusLog10p",
298329
298339
  type: "quantitative",
298330
- title: "- log10 p-value"
298340
+ title: "-log10 p-value"
298331
298341
  },
298332
298342
  color: {
298333
298343
  field: "key",
@@ -298377,7 +298387,7 @@ function FeatureSetEnrichmentBarPlot(props) {
298377
298387
  }
298378
298388
  function FeatureSetEnrichmentBarPlotSubscriber(props) {
298379
298389
  const { coordinationScopes, removeGridComponent, theme, helpText = ViewHelpMapping.FEATURE_SET_ENRICHMENT_BAR_PLOT } = props;
298380
- const classes = useStyles$2();
298390
+ const classes = useStyles$3();
298381
298391
  const loaders = useLoaders();
298382
298392
  useAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE);
298383
298393
  const [{ dataset, obsType, sampleType, featureType, featureValueType, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection, obsSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, featureSelection, sampleSetSelection, sampleSetColor }, { setObsFilter: setCellFilter, setObsSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, setFeatureSelection, setSampleSetSelection, setSampleSetColor }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_SET_ENRICHMENT_BAR_PLOT], coordinationScopes);
@@ -350590,7 +350600,7 @@ class GlbDataLoader extends AbstractTwoStepLoader {
350590
350600
  });
350591
350601
  }
350592
350602
  }
350593
- const useStyles = makeStyles(() => ({
350603
+ const useStyles$1 = makeStyles(() => ({
350594
350604
  header: {
350595
350605
  marginTop: "10px",
350596
350606
  marginBottom: "10px"
@@ -350633,7 +350643,7 @@ function ConfirmatoryCart(props) {
350633
350643
  // eslint-disable-next-line no-unused-vars
350634
350644
  setCurrentStratificationSelection
350635
350645
  } = props;
350636
- const classes = useStyles();
350646
+ const classes = useStyles$1();
350637
350647
  const [expandedAccordions, setExpandedAccordions] = React__default.useState([
350638
350648
  "agnostic",
350639
350649
  "specific",
@@ -352829,7 +352839,7 @@ const ListboxComponent = React__default.forwardRef((props, ref2) => {
352829
352839
  });
352830
352840
  function SelectAgnostic(props) {
352831
352841
  const { autocompleteNode, currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection } = props;
352832
- const classes = useStyles();
352842
+ const classes = useStyles$1();
352833
352843
  const [selectedItem, setSelectedItem] = React__default.useState(null);
352834
352844
  const [potentialItems, setPotentialItems] = React__default.useState([]);
352835
352845
  const handleChange = async (event2) => {
@@ -357595,7 +357605,7 @@ const columns = [
357595
357605
  ];
357596
357606
  function SelectSpecific(props) {
357597
357607
  const { currentModalityAgnosticSelection, currentModalitySpecificSelection, setCurrentModalitySpecificSelection, getEdges } = props;
357598
- const classes = useStyles();
357608
+ const classes = useStyles$1();
357599
357609
  const queries = useQueries({
357600
357610
  queries: currentModalityAgnosticSelection?.map((item) => ({
357601
357611
  queryKey: [item.nodeType, item.kgId],
@@ -357644,7 +357654,7 @@ const steps$1 = [
357644
357654
  ];
357645
357655
  function ConfirmatoryStepper(props) {
357646
357656
  const { autocompleteNode, currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection, currentModalitySpecificSelection, setCurrentModalitySpecificSelection, currentStratificationSelection, setCurrentStratificationSelection, getEdges, stratifications, onFinish } = props;
357647
- const classes = useStyles();
357657
+ const classes = useStyles$1();
357648
357658
  const [activeStep, setActiveStep] = React__default.useState(0);
357649
357659
  const [skipped, setSkipped] = React__default.useState(/* @__PURE__ */ new Set());
357650
357660
  const isStepOptional = (step2) => step2 === 2;
@@ -357697,7 +357707,7 @@ const steps = [
357697
357707
  ];
357698
357708
  function ExploratoryStepper(props) {
357699
357709
  const { autocompleteNode, currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection, currentModalitySpecificSelection, setCurrentModalitySpecificSelection, currentStratificationSelection, setCurrentStratificationSelection, getEdges, stratifications, onFinish } = props;
357700
- const classes = useStyles();
357710
+ const classes = useStyles$1();
357701
357711
  const [activeStep, setActiveStep] = React__default.useState(0);
357702
357712
  const [skipped, setSkipped] = React__default.useState(/* @__PURE__ */ new Set());
357703
357713
  const isStepOptional = (step2) => step2 === 2;
@@ -357747,7 +357757,7 @@ function ExploratoryStepper(props) {
357747
357757
  }
357748
357758
  function ScmdUi(props) {
357749
357759
  const { mode: modeProp, setMode, step: stepProp, setStep, currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection, currentModalitySpecificSelection, setCurrentModalitySpecificSelection, currentStratificationSelection, setCurrentStratificationSelection, autocompleteNode, getEdges, stratifications, onFinish } = props;
357750
- const classes = useStyles();
357760
+ const classes = useStyles$1();
357751
357761
  const mode = modeProp || "confirmatory";
357752
357762
  const [tempIsVisible, setTempIsVisible] = useState(true);
357753
357763
  const isConfirmatoryMode = mode === "confirmatory";
@@ -357822,10 +357832,46 @@ function BiomarkerSelectSubscriber(props) {
357822
357832
  setViewConfig(newViewConfig);
357823
357833
  } }) : null });
357824
357834
  }
357835
+ const useStyles = makeStyles((theme) => ({
357836
+ buttonContainer: {
357837
+ position: "absolute",
357838
+ right: 0,
357839
+ display: "flex",
357840
+ flexDirection: "column",
357841
+ justifyContent: "center",
357842
+ height: "100%"
357843
+ },
357844
+ headingContainer: {
357845
+ backgroundColor: "transparent"
357846
+ },
357847
+ headingSectionContainer: {
357848
+ width: "100%",
357849
+ display: "flex",
357850
+ flexDirection: "row",
357851
+ position: "relative"
357852
+ },
357853
+ headingText: {
357854
+ margin: 0,
357855
+ color: theme.palette.primaryForeground
357856
+ }
357857
+ }));
357825
357858
  function ComparativeHeadingSubscriber(props) {
357826
357859
  const { coordinationScopes } = props;
357827
- const [{ sampleSetSelection }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.COMPARATIVE_HEADING], coordinationScopes);
357828
- return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: sampleSetSelection && sampleSetSelection.length === 2 ? jsxRuntimeExports.jsxs("div", { style: { width: "100%", display: "flex", flexDirection: "row" }, children: [jsxRuntimeExports.jsx("div", { style: { width: "45%" }, children: jsxRuntimeExports.jsx("h2", { children: sampleSetSelection?.[0]?.at(-1) }) }), jsxRuntimeExports.jsx("div", { style: { width: "5%" }, children: jsxRuntimeExports.jsx("h2", { style: { textAlign: "right" }, children: "vs. " }) }), jsxRuntimeExports.jsx("div", { style: { width: "50%" }, children: jsxRuntimeExports.jsx("h2", { children: sampleSetSelection?.[1]?.at(-1) }) })] }) : null });
357860
+ const [{ sampleSetSelection, featureSelection }, {
357861
+ setSampleSetSelection
357862
+ // TODO: buttons for modification of featureSelection
357863
+ // setFeatureSelection,
357864
+ }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.COMPARATIVE_HEADING], coordinationScopes);
357865
+ const classes = useStyles();
357866
+ const swapSampleSets = useCallback(() => {
357867
+ if (sampleSetSelection?.length === 2) {
357868
+ setSampleSetSelection([
357869
+ sampleSetSelection[1],
357870
+ sampleSetSelection[0]
357871
+ ]);
357872
+ }
357873
+ }, [sampleSetSelection, setSampleSetSelection]);
357874
+ return jsxRuntimeExports.jsxs("div", { className: classes.headingContainer, children: [sampleSetSelection && sampleSetSelection.length === 2 ? jsxRuntimeExports.jsxs("div", { className: classes.headingSectionContainer, children: [jsxRuntimeExports.jsx("div", { style: { width: "45%" }, children: jsxRuntimeExports.jsx("h2", { className: classes.headingText, children: sampleSetSelection?.[0]?.at(-1) }) }), jsxRuntimeExports.jsx("div", { style: { width: "5%" }, children: jsxRuntimeExports.jsx("h2", { className: classes.headingText, style: { textAlign: "right" }, children: "vs. " }) }), jsxRuntimeExports.jsx("div", { style: { width: "50%" }, children: jsxRuntimeExports.jsx("h2", { className: classes.headingText, children: sampleSetSelection?.[1]?.at(-1) }) }), jsxRuntimeExports.jsx("div", { className: classes.buttonContainer, children: jsxRuntimeExports.jsx("button", { onClick: swapSampleSets, type: "button", children: "Swap" }) })] }) : null, featureSelection && featureSelection.length > 0 ? jsxRuntimeExports.jsxs("div", { className: classes.headingSectionContainer, children: [jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx("h3", { className: classes.headingText, children: "Selected Biomarkers: " }) }), featureSelection?.map((featureName, i2) => jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsxs("h3", { className: classes.headingText, children: [featureName, i2 < featureSelection.length - 1 ? jsxRuntimeExports.jsx("span", { children: ", " }) : null] }) }))] }) : null] });
357829
357875
  }
357830
357876
  function isArray3(value2) {
357831
357877
  return !Array.isArray ? getTag(value2) === "[object Array]" : Array.isArray(value2);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bS, bN, bL, bM, bW, bX, bO, c3, c1, b$, c2, c0, bK, b_, bP, bJ, bI, bU, bT, bV, bZ, bY, bR, c8, cb, c5, cc, cd, c6, c9, ca, c7, bQ, c4 } from "./index-e99eb947.js";
1
+ import { bS, bN, bL, bM, bW, bX, bO, c3, c1, b$, c2, c0, bK, b_, bP, bJ, bI, bU, bT, bV, bZ, bY, bR, c8, cb, c5, cc, cd, c6, c9, ca, c7, bQ, c4 } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-e99eb947.js";
1
+ import { aQ as BaseDecoder } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const dctZigZag = new Int32Array([
@@ -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-e99eb947.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-c50bb142.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-e99eb947.js";
1
+ import { aQ as BaseDecoder } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-e99eb947.js";
1
+ import { aQ as BaseDecoder } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-e99eb947.js";
1
+ import { aQ as BaseDecoder } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aC as UniformsUtils, bC as MeshDepthMaterial, bD as RGBADepthPacking, bE as MeshDistanceMaterial, bF as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, bG as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, bH as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-e99eb947.js";
1
+ import { aC as UniformsUtils, bC as MeshDepthMaterial, bD as RGBADepthPacking, bE as MeshDistanceMaterial, bF as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, bG as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, bH as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  function workerBootstrap() {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-e99eb947.js";
1
+ import { aQ as BaseDecoder } from "./index-c50bb142.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "3.5.8",
3
+ "version": "3.5.9",
4
4
  "author": "HIDIVE Lab at HMS",
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.5.8",
20
- "@vitessce/config": "3.5.8",
21
- "@vitessce/constants": "3.5.8",
22
- "@vitessce/export-utils": "3.5.8"
19
+ "@vitessce/all": "3.5.9",
20
+ "@vitessce/config": "3.5.9",
21
+ "@vitessce/constants": "3.5.9",
22
+ "@vitessce/export-utils": "3.5.9"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",