@vitessce/dev 3.6.13 → 3.6.14

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,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, aV as requireAssign, aW as require_export, aX as require_core, aY as require_fails, aZ as require_toObject, a_ as require_objectKeys, a$ as require_cof, b0 as require_wks, b1 as require_iterators, b2 as requireWeb_dom_iterable, b3 as requireEs6_string_iterator, b4 as require_anObject, b5 as require_hide, b6 as require_ctx, b7 as require_toLength, b8 as require_global, b9 as require_objectDp, ba as require_descriptors, bb as require_isObject, bc as require_objectCreate, bd as require_iterDefine, be as require_iterStep, bf as require_meta, bg as require_isArray, bh as require_iobject, bi as require_setToStringTag, bj as require_aFunction, bk as requireIterator, bl as require_propertyDesc, bm as require_root, bn as require_baseGetTag, bo as requireIsObjectLike, bp as requireIsObject, bq as requireEs6_symbol, br as requireDefineProperty, bs as require_toIobject, bt as require_objectGopd, bu as require_html, bv as require_domCreate, bw as require_library, bx as requireSymbol, by as require_objectPie, bz as require_has, bA as require_redefine, bB as require_objectAssign, bC as getAugmentedNamespace, bD as requirePropTypes, aI as jsxRuntimeExports } from "./index-BsLyjMi2.js";
1
+ import { g as getDefaultExportFromCjs, aV as requireAssign, aW as require_export, aX as require_core, aY as require_fails, aZ as require_toObject, a_ as require_objectKeys, a$ as require_cof, b0 as require_wks, b1 as require_iterators, b2 as requireWeb_dom_iterable, b3 as requireEs6_string_iterator, b4 as require_anObject, b5 as require_hide, b6 as require_ctx, b7 as require_toLength, b8 as require_global, b9 as require_objectDp, ba as require_descriptors, bb as require_isObject, bc as require_objectCreate, bd as require_iterDefine, be as require_iterStep, bf as require_meta, bg as require_isArray, bh as require_iobject, bi as require_setToStringTag, bj as require_aFunction, bk as requireIterator, bl as require_propertyDesc, bm as require_root, bn as require_baseGetTag, bo as requireIsObjectLike, bp as requireIsObject, bq as requireEs6_symbol, br as requireDefineProperty, bs as require_toIobject, bt as require_objectGopd, bu as require_html, bv as require_domCreate, bw as require_library, bx as requireSymbol, by as require_objectPie, bz as require_has, bA as require_redefine, bB as require_objectAssign, bC as getAugmentedNamespace, bD as requirePropTypes, aI as jsxRuntimeExports } from "./index-B_EJNClG.js";
2
2
  import React__default from "react";
3
3
  var lib = {};
4
4
  var assignExports = requireAssign();
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { aP as BaseDecoder } from "./index-BsLyjMi2.js";
2
+ import { aP as BaseDecoder } from "./index-B_EJNClG.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -1,7 +1,7 @@
1
1
  import * as React$7 from "react";
2
2
  import React__default, { isValidElement, PureComponent, Component, createElement, createContext, createRef } from "react";
3
3
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
4
- import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-BsLyjMi2.js";
4
+ import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-B_EJNClG.js";
5
5
  var promise = {};
6
6
  var hasRequiredPromise;
7
7
  function requirePromise() {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, V as VSMShadowMap, b as PCFShadowMap, B as BasicShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, c as Vector3, d as Vector2, C as Clock, W as WebGLRenderer, e as Camera, f as BufferGeometry, M as Material, L as Layers, T as Texture, h as RGBAFormat, U as UnsignedByteType, i as Color, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, E as EventDispatcher, p as MOUSE, q as TOUCH, r as Spherical, Q as Quaternion, s as Ray$1, t as Plane, u as Loader, v as LoaderUtils, F as FileLoader, w as MeshPhysicalMaterial, x as SpotLight, y as PointLight, D as DirectionalLight, I as InstancedMesh, z as Object3D, H as TextureLoader, J as ImageBitmapLoader, K as BufferAttribute, X as InterleavedBuffer, Y as LinearMipmapLinearFilter, Z as NearestMipmapLinearFilter, $ as LinearMipmapNearestFilter, a0 as NearestMipmapNearestFilter, a1 as LinearFilter, a2 as NearestFilter, a3 as RepeatWrapping, a4 as MirroredRepeatWrapping, a5 as ClampToEdgeWrapping, a6 as PointsMaterial, a7 as LineBasicMaterial, a8 as MeshStandardMaterial, a9 as DoubleSide, aa as MeshBasicMaterial, ab as PropertyBinding, ac as SkinnedMesh, ad as Mesh, ae as LineSegments, af as Line$1, ag as LineLoop, ah as Points, ai as MathUtils, aj as Skeleton, ak as InterpolateDiscrete, al as InterpolateLinear, am as AnimationClip, an as Bone, ao as InterleavedBufferAttribute, ap as VectorKeyframeTrack, aq as QuaternionKeyframeTrack, ar as NumberKeyframeTrack, as as FrontSide, at as Interpolant, au as Box3, av as Sphere, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-BsLyjMi2.js";
1
+ import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, V as VSMShadowMap, b as PCFShadowMap, B as BasicShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, c as Vector3, d as Vector2, C as Clock, W as WebGLRenderer, e as Camera, f as BufferGeometry, M as Material, L as Layers, T as Texture, h as RGBAFormat, U as UnsignedByteType, i as Color, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, E as EventDispatcher, p as MOUSE, q as TOUCH, r as Spherical, Q as Quaternion, s as Ray$1, t as Plane, u as Loader, v as LoaderUtils, F as FileLoader, w as MeshPhysicalMaterial, x as SpotLight, y as PointLight, D as DirectionalLight, I as InstancedMesh, z as Object3D, H as TextureLoader, J as ImageBitmapLoader, K as BufferAttribute, X as InterleavedBuffer, Y as LinearMipmapLinearFilter, Z as NearestMipmapLinearFilter, $ as LinearMipmapNearestFilter, a0 as NearestMipmapNearestFilter, a1 as LinearFilter, a2 as NearestFilter, a3 as RepeatWrapping, a4 as MirroredRepeatWrapping, a5 as ClampToEdgeWrapping, a6 as PointsMaterial, a7 as LineBasicMaterial, a8 as MeshStandardMaterial, a9 as DoubleSide, aa as MeshBasicMaterial, ab as PropertyBinding, ac as SkinnedMesh, ad as Mesh, ae as LineSegments, af as Line$1, ag as LineLoop, ah as Points, ai as MathUtils, aj as Skeleton, ak as InterpolateDiscrete, al as InterpolateLinear, am as AnimationClip, an as Bone, ao as InterleavedBufferAttribute, ap as VectorKeyframeTrack, aq as QuaternionKeyframeTrack, ar as NumberKeyframeTrack, as as FrontSide, at as Interpolant, au as Box3, av as Sphere, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-B_EJNClG.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo, forwardRef } from "react";
4
4
  var constants = { exports: {} };
@@ -23637,7 +23637,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23637
23637
  const {
23638
23638
  Text: TextMeshImpl,
23639
23639
  preloadFont
23640
- } = suspend(async () => import("./troika-three-text.esm-d4voIYSE.js"), []);
23640
+ } = suspend(async () => import("./troika-three-text.esm-7heB0NXX.js"), []);
23641
23641
  const invalidate2 = useThree(({
23642
23642
  invalidate: invalidate3
23643
23643
  }) => invalidate3);
@@ -186,6 +186,7 @@ const FileType$2 = {
186
186
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
187
187
  FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
188
188
  OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
189
+ OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
189
190
  // SpatialData - zipped
190
191
  IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
191
192
  LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
@@ -195,6 +196,7 @@ const FileType$2 = {
195
196
  OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
196
197
  FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
197
198
  OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
199
+ OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
198
200
  // MuData
199
201
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
200
202
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -474,6 +476,7 @@ const ViewHelpMapping = {
474
476
  [FileType$2.OBS_SETS_SPATIALDATA_ZARR]: DataType$4.OBS_SETS,
475
477
  [FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$4.FEATURE_LABELS,
476
478
  [FileType$2.OBS_POINTS_SPATIALDATA_ZARR]: DataType$4.OBS_POINTS,
479
+ [FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$4.OBS_EMBEDDING,
477
480
  // For new file types to support old file types
478
481
  [FileType$2.OBS_EMBEDDING_CELLS_JSON]: DataType$4.OBS_EMBEDDING,
479
482
  [FileType$2.OBS_LOCATIONS_CELLS_JSON]: DataType$4.OBS_LOCATIONS,
@@ -650,6 +653,9 @@ const ALT_ZARR_STORE_TYPES = {
650
653
  },
651
654
  [FileType$2.OBS_POINTS_SPATIALDATA_ZARR]: {
652
655
  zip: FileType$2.OBS_POINTS_SPATIALDATA_ZARR_ZIP
656
+ },
657
+ [FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
658
+ zip: FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
653
659
  }
654
660
  };
655
661
  const AUTO_INDEPENDENT_COORDINATION_TYPES = [
@@ -1324,7 +1330,7 @@ const COMPONENT_COORDINATION_TYPES = {
1324
1330
  CoordinationType$2.HIERARCHY_LEVELS
1325
1331
  ]
1326
1332
  };
1327
- const version$6 = "3.6.13";
1333
+ const version$6 = "3.6.14";
1328
1334
  const META_VERSION = {
1329
1335
  version: version$6
1330
1336
  };
@@ -12750,7 +12756,7 @@ const { tss } = createTss({
12750
12756
  },
12751
12757
  "usePlugin": useMuiThemeStyleOverridesPlugin
12752
12758
  });
12753
- const useStyles$z = tss.create({});
12759
+ const useStyles$A = tss.create({});
12754
12760
  function chainPropTypes(propType1, propType2) {
12755
12761
  return function validate2(...args) {
12756
12762
  return propType1(...args) || propType2(...args);
@@ -67504,7 +67510,7 @@ const Popper = React.forwardRef((props, ref2) => {
67504
67510
  }, [handlePopperRef]);
67505
67511
  React.useImperativeHandle(popperRefProp, () => popperRef.current, []);
67506
67512
  const [exited, setExited] = React.useState(true);
67507
- const { theme } = useStyles$z();
67513
+ const { theme } = useStyles$A();
67508
67514
  const rtlPlacement = flipPlacement(initialPlacement, theme);
67509
67515
  const [placement, setPlacement] = React.useState(rtlPlacement);
67510
67516
  React.useEffect(() => {
@@ -78744,6 +78750,16 @@ const obsSetsSpatialdataSchema = z.object({
78744
78750
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
78745
78751
  obsSets: annDataObsSetsArr
78746
78752
  });
78753
+ const obsEmbeddingSpatialdataSchema = annDataObsEmbedding.extend({
78754
+ // We extend anndataObsEmbedding which already has properties like `dims` and `path`.
78755
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
78756
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
78757
+ });
78758
+ const obsEmbeddingSpatialdataSchemaConvenience = z.union([
78759
+ annDataObsEmbedding,
78760
+ // For convenience, allow an array of items with `embeddingType` properties.
78761
+ z.array(annDataConvenienceObsEmbeddingItem)
78762
+ ]);
78747
78763
  const meshGlbSchema = z.object({
78748
78764
  targetX: z.number(),
78749
78765
  targetY: z.number(),
@@ -78868,9 +78884,10 @@ const spatialdataZarrSchema = z.object({
78868
78884
  // TODO: obsPoints
78869
78885
  // TODO: obsLocations
78870
78886
  obsSets: obsSetsSpatialdataSchema,
78871
- // TODO: obsEmbedding
78887
+ obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
78872
78888
  // TODO: obsLabels
78873
78889
  // TODO: featureLabels
78890
+ // TODO: allow specifying tablePath and region at the top-level here.
78874
78891
  coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
78875
78892
  }).partial();
78876
78893
  const cellsJsonSchema = z.object({
@@ -87954,7 +87971,7 @@ function VitessceGrid(props) {
87954
87971
  }, [success, configKey]);
87955
87972
  return jsxRuntimeExports.jsxs("div", { ref: containerRef, className: clsx(VITESSCE_CONTAINER, classes2.vitessceContainer), role: "group", "aria-label": altText, children: [jsxRuntimeExports.jsx(GridLayoutGlobalStyles, { classes: classes2 }), layout ? jsxRuntimeExports.jsx(VitessceGridLayout, { pageMode, role: "group", layout, height: height2, rowHeight, theme, viewTypes, fileTypes, coordinationTypes, stores, draggableHandle: titleClasses.titleLeft, margin, padding: padding$2, onRemoveComponent: removeComponent, onLayoutChange: changeLayoutPostMount, isBounded, onResize: onResize4, onResizeStop: onResize4, children: children3 }) : null] });
87956
87973
  }
87957
- const useStyles$y = makeStyles()((theme) => ({
87974
+ const useStyles$z = makeStyles()((theme) => ({
87958
87975
  warningLayout: {
87959
87976
  backgroundColor: theme.palette.gridLayoutBackground,
87960
87977
  position: "absolute",
@@ -87992,11 +88009,11 @@ const useStyles$y = makeStyles()((theme) => ({
87992
88009
  }));
87993
88010
  function Warning(props) {
87994
88011
  const { title: title2, preformatted, unformatted } = props;
87995
- const { classes: classes2 } = useStyles$y();
88012
+ const { classes: classes2 } = useStyles$z();
87996
88013
  return jsxRuntimeExports.jsx("div", { className: VITESSCE_CONTAINER, children: jsxRuntimeExports.jsx("div", { className: clsx(classes2.warningLayout, classes2.containerFluid), children: jsxRuntimeExports.jsx("div", { className: classes2.row, children: jsxRuntimeExports.jsxs("div", { className: classes2.warningCard, children: [jsxRuntimeExports.jsx("h1", { children: title2 }), preformatted ? jsxRuntimeExports.jsx("pre", { children: preformatted }) : null, jsxRuntimeExports.jsx("p", { children: unformatted })] }) }) }) });
87997
88014
  }
87998
88015
  function DebugWindow({ debugErrors }) {
87999
- const { classes: classes2 } = useStyles$y();
88016
+ const { classes: classes2 } = useStyles$z();
88000
88017
  return jsxRuntimeExports.jsx("div", { className: VITESSCE_CONTAINER, children: jsxRuntimeExports.jsx("div", { className: clsx(classes2.warningLayout, classes2.containerFluid), children: jsxRuntimeExports.jsx("div", { className: classes2.row, children: jsxRuntimeExports.jsx("div", { className: classes2.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)) }) }) }) });
88001
88018
  }
88002
88019
  function validateViewConfig(viewConfig, pluginSpecificConfigSchema) {
@@ -88307,7 +88324,7 @@ function FallbackForVitS(props) {
88307
88324
  function VitSContainer(props) {
88308
88325
  return jsxRuntimeExports.jsx(ErrorBoundary$1, { FallbackComponent: FallbackForVitS, children: jsxRuntimeExports.jsx(VitS, { ...props }) });
88309
88326
  }
88310
- const useStyles$x = makeStyles()(() => ({
88327
+ const useStyles$y = makeStyles()(() => ({
88311
88328
  loadingIndicatorBackdrop: {
88312
88329
  position: "absolute",
88313
88330
  top: "0",
@@ -88335,10 +88352,10 @@ const useStyles$x = makeStyles()(() => ({
88335
88352
  }
88336
88353
  }));
88337
88354
  function LoadingIndicator() {
88338
- const { classes: classes2 } = useStyles$x();
88355
+ const { classes: classes2 } = useStyles$y();
88339
88356
  return jsxRuntimeExports.jsx("div", { className: classes2.loadingIndicatorBackdrop, children: jsxRuntimeExports.jsxs("div", { className: classes2.loadingIndicatorContainer, role: "status", "aria-live": "polite", children: [jsxRuntimeExports.jsx(CircularProgress, {}), jsxRuntimeExports.jsx("span", { className: classes2.visuallyHidden, children: "Loading..." })] }) });
88340
88357
  }
88341
- const useStyles$w = makeStyles()(() => ({
88358
+ const useStyles$x = makeStyles()(() => ({
88342
88359
  paper: {
88343
88360
  maxHeight: 200,
88344
88361
  overflow: "auto"
@@ -88351,7 +88368,7 @@ const useStyles$w = makeStyles()(() => ({
88351
88368
  }));
88352
88369
  function PopperMenu(props) {
88353
88370
  const { buttonIcon, open: open2, setOpen, children: children3, buttonClassName, placement = "bottom-end", withPaper = true, containerClassName, paperClassName, "aria-label": ariaLabel2 } = props;
88354
- const { classes: classes2 } = useStyles$w();
88371
+ const { classes: classes2 } = useStyles$x();
88355
88372
  const anchorRef = useRef();
88356
88373
  const handleClick = () => {
88357
88374
  setOpen((prev2) => !prev2);
@@ -88363,7 +88380,7 @@ function PopperMenu(props) {
88363
88380
  const getTooltipContainer = useVitessceContainer(anchorRef);
88364
88381
  return jsxRuntimeExports.jsxs("div", { ref: anchorRef, className: clsx(classes2.container, containerClassName), children: [jsxRuntimeExports.jsx(IconButton$1, { "aria-describedby": id2, onClick: handleClick, onTouchEnd: handleClick, size: "small", className: buttonClassName, "aria-label": ariaLabel2, children: buttonIcon }), jsxRuntimeExports.jsx(Popper$2, { 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, { ...TransitionProps, timeout: 100, children: jsxRuntimeExports.jsx("div", { children: withPaper ? jsxRuntimeExports.jsx(Paper, { elevation: 16, className: clsx(classes2.paper, paperClassName), children: jsxRuntimeExports.jsx(MenuList, { children: children3 }) }) : children3 }) }) }) })] });
88365
88382
  }
88366
- const useStyles$v = makeStyles()((theme) => ({
88383
+ const useStyles$w = makeStyles()((theme) => ({
88367
88384
  iconButton: {
88368
88385
  border: "none",
88369
88386
  marginLeft: 0,
@@ -88422,7 +88439,7 @@ function SettingsIconWithArrow({ open: open2 }) {
88422
88439
  function PlotOptions(props) {
88423
88440
  const { options } = props;
88424
88441
  const [open2, setOpen] = useState(false);
88425
- const { classes: classes2 } = useStyles$v();
88442
+ const { classes: classes2 } = useStyles$w();
88426
88443
  const buttonIcon = useMemo$1(() => jsxRuntimeExports.jsx(SettingsIconWithArrow, { open: open2 }), [open2]);
88427
88444
  return options ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes2.iconButton, placement: "bottom-end", title: "Plot Options", "aria-label": "Open plot options menu", children: options }) : null;
88428
88445
  }
@@ -88432,20 +88449,20 @@ function CloudDownloadIconWithArrow({ open: open2 }) {
88432
88449
  function DownloadOptions(props) {
88433
88450
  const { urls: urls2 } = props;
88434
88451
  const [open2, setOpen] = useState(false);
88435
- const { classes: classes2 } = useStyles$v();
88452
+ const { classes: classes2 } = useStyles$w();
88436
88453
  const buttonIcon = useMemo$1(() => jsxRuntimeExports.jsx(CloudDownloadIconWithArrow, { open: open2 }), [open2]);
88437
88454
  return urls2 && urls2.length ? jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon, buttonClassName: classes2.iconButton, placement: "bottom-end", title: "Download Options", "aria-label": "Open download options menu", children: urls2.map(({ url, name: name2 }) => jsxRuntimeExports.jsx(MenuItem, { dense: true, "aria-label": `Click to download ${name2}`, children: jsxRuntimeExports.jsxs(Link, { underline: "always", href: url, target: "_blank", rel: "noopener", className: classes2.downloadLink, children: ["Download ", name2] }) }, `${url}_${name2}`)) }) : null;
88438
88455
  }
88439
88456
  function HelpButton(props) {
88440
88457
  const { helpText } = props;
88441
88458
  const [open2, setOpen] = useState(false);
88442
- const { classes: classes2 } = useStyles$v();
88459
+ const { classes: classes2 } = useStyles$w();
88443
88460
  return jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(HelpIcon, {}), buttonClassName: classes2.iconButton, placement: "bottom-end", title: "Help Info", "aria-label": "Open help info", withPaper: false, children: jsxRuntimeExports.jsx("span", { className: classes2.helpTextSpan, children: helpText }) });
88444
88461
  }
88445
88462
  function ErrorInfo(props) {
88446
88463
  const { errors } = props;
88447
88464
  const [open2, setOpen] = useState(false);
88448
- const { classes: classes2 } = useStyles$v();
88465
+ const { classes: classes2 } = useStyles$w();
88449
88466
  return jsxRuntimeExports.jsx(PopperMenu, { open: open2, setOpen, buttonIcon: jsxRuntimeExports.jsx(WarningIcon, { color: "error" }), buttonClassName: classes2.iconButton, placement: "bottom-end", title: "View Errors", "aria-label": "Open error info", children: jsxRuntimeExports.jsx(List$4, { className: classes2.errorList, children: errors.map((error2, index2) => jsxRuntimeExports.jsxs(
88450
88467
  Alert,
88451
88468
  { severity: "error", className: classes2.errorListAlert, slots: { message: "span" }, slotProps: { message: { className: classes2.errorListItemText } }, children: [error2.name, ": ", error2.message] },
@@ -88454,7 +88471,7 @@ function ErrorInfo(props) {
88454
88471
  }
88455
88472
  function ClosePaneButton(props) {
88456
88473
  const { removeGridComponent } = props;
88457
- const { classes: classes2 } = useStyles$v();
88474
+ const { classes: classes2 } = useStyles$w();
88458
88475
  return jsxRuntimeExports.jsx(IconButton$1, { onClick: removeGridComponent, size: "small", className: classes2.iconButton, title: "Close View", "aria-label": "Close panel button", children: jsxRuntimeExports.jsx(CloseIcon, {}) });
88459
88476
  }
88460
88477
  function TitleInfo(props) {
@@ -89568,7 +89585,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppr
89568
89585
  var e3 = new Error(message);
89569
89586
  return e3.name = "SuppressedError", e3.error = error2, e3.suppressed = suppressed, e3;
89570
89587
  };
89571
- const useStyles$u = makeStyles()((theme) => ({
89588
+ const useStyles$v = makeStyles()((theme) => ({
89572
89589
  box: {
89573
89590
  boxSizing: "border-box"
89574
89591
  },
@@ -89618,7 +89635,7 @@ const useStyles$u = makeStyles()((theme) => ({
89618
89635
  }));
89619
89636
  function OptionSelect(props) {
89620
89637
  const { classes: classesProp = {} } = props;
89621
- const { classes: classes2 } = useStyles$u();
89638
+ const { classes: classes2 } = useStyles$v();
89622
89639
  return jsxRuntimeExports.jsx(NativeSelect, { disableUnderline: true, ...props, classes: {
89623
89640
  root: classes2.optionSelectRoot,
89624
89641
  ...classesProp
@@ -89626,7 +89643,7 @@ function OptionSelect(props) {
89626
89643
  }
89627
89644
  function CellColorEncodingOption(props) {
89628
89645
  const { observationsLabel, cellColorEncoding, setCellColorEncoding } = props;
89629
- const { classes: classes2 } = useStyles$u();
89646
+ const { classes: classes2 } = useStyles$v();
89630
89647
  const cellColorEncodingId = $bdb11010cef70236$export$f680877a34711e37();
89631
89648
  const observationsLabelNice = capitalize$3(observationsLabel);
89632
89649
  function handleColorEncodingChange(event2) {
@@ -89638,7 +89655,7 @@ function CellColorEncodingOption(props) {
89638
89655
  }
89639
89656
  function OptionsContainer(props) {
89640
89657
  const { children: children3 } = props;
89641
- const { classes: classes2 } = useStyles$u();
89658
+ const { classes: classes2 } = useStyles$v();
89642
89659
  return jsxRuntimeExports.jsx(Box, { className: classes2.box, children: jsxRuntimeExports.jsx(TableContainer, { className: classes2.tableContainer, children: jsxRuntimeExports.jsx(Table$2, { className: classes2.table, size: "small", "aria-label": "Menu of options available for the view", children: jsxRuntimeExports.jsx(TableBody, { children: children3 }) }) }) });
89643
89660
  }
89644
89661
  class PluginViewType {
@@ -99230,7 +99247,7 @@ function defaultUrlTransform(value2) {
99230
99247
  }
99231
99248
  return "";
99232
99249
  }
99233
- const useStyles$t = makeStyles()((theme) => ({
99250
+ const useStyles$u = makeStyles()((theme) => ({
99234
99251
  description: {
99235
99252
  "& p, details, table": {
99236
99253
  fontSize: "80%",
@@ -99267,7 +99284,7 @@ const useStyles$t = makeStyles()((theme) => ({
99267
99284
  }));
99268
99285
  function Description(props) {
99269
99286
  const { description: description2, metadata: metadata2, descriptionType } = props;
99270
- const { classes: classes2 } = useStyles$t();
99287
+ const { classes: classes2 } = useStyles$u();
99271
99288
  return jsxRuntimeExports.jsxs("div", { className: classes2.description, children: [descriptionType && descriptionType === DescriptionType.MARKDOWN ? jsxRuntimeExports.jsx(Markdown, { children: description2 }) : jsxRuntimeExports.jsx("p", { children: description2 }), metadata2 && Array.from(metadata2.entries()).map(([layerIndex, { name: layerName, metadata: metadataRecord }]) => metadataRecord && Object.entries(metadataRecord).length > 0 ? jsxRuntimeExports.jsxs("details", { children: [jsxRuntimeExports.jsx("summary", { children: layerName }), jsxRuntimeExports.jsx("div", { className: classes2.metadataContainer, children: jsxRuntimeExports.jsx("table", { children: jsxRuntimeExports.jsx("tbody", { children: Object.entries(metadataRecord).map(([key2, value2]) => jsxRuntimeExports.jsxs("tr", { children: [jsxRuntimeExports.jsx("th", { title: key2, children: key2 }), jsxRuntimeExports.jsx("td", { title: value2, children: value2 })] }, key2)) }) }) })] }, layerIndex) : null)] });
99272
99289
  }
99273
99290
  function DescriptionSubscriber(props) {
@@ -114270,7 +114287,7 @@ const Tooltip$2 = /* @__PURE__ */ React.forwardRef((props, ref2) => {
114270
114287
  }, extraProps), getChildren());
114271
114288
  });
114272
114289
  const nodeHeight = 32;
114273
- const useStyles$s = makeStyles()((theme) => ({
114290
+ const useStyles$t = makeStyles()((theme) => ({
114274
114291
  setsManager: {
114275
114292
  position: "relative",
114276
114293
  width: "100%",
@@ -114437,7 +114454,7 @@ const useStyles$s = makeStyles()((theme) => ({
114437
114454
  }));
114438
114455
  function SetsManagerTreeGlobalStyles(props) {
114439
114456
  const { classes: classes2 } = props;
114440
- const { theme } = useStyles$z();
114457
+ const { theme } = useStyles$A();
114441
114458
  return jsxRuntimeExports.jsx(ScopedGlobalStyles, { parentClassName: classes2.setsManagerTree, styles: {
114442
114459
  ".rc-tree": {
114443
114460
  paddingLeft: "0",
@@ -114778,7 +114795,7 @@ function HelpTooltipGlobalStyles(props) {
114778
114795
  }
114779
114796
  function PopoverGlobalStyles(props) {
114780
114797
  const { classes: classes2 } = props;
114781
- const { theme } = useStyles$z();
114798
+ const { theme } = useStyles$A();
114782
114799
  return jsxRuntimeExports.jsx(ScopedGlobalStyles, { parentClassName: classes2.popover, styles: {
114783
114800
  ".rc-tooltip-inner": {
114784
114801
  boxSizing: "border-box",
@@ -119462,7 +119479,7 @@ function NamedSetNodeStatic(props) {
119462
119479
  const onClick = level === 0 && !expanded ? () => onCheckLevel(nodeKey, nextLevelToCheck) : () => onNodeView(path2);
119463
119480
  const tooltipProps = disableTooltip ? { visible: false } : {};
119464
119481
  const popoverMenuConfig = makeNodeViewMenuConfig(props);
119465
- const { classes: classes2 } = useStyles$s();
119482
+ const { classes: classes2 } = useStyles$t();
119466
119483
  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: classes2.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("span", { children: jsxRuntimeExports.jsx(SvgMenu, { className: classes2.nodeMenuIcon, "aria-label": "Open Node View Menu" }) }) }) : null, level > 0 && isChecking ? checkbox2 : null, level > 0 && jsxRuntimeExports.jsx("span", { className: classes2.nodeSizeLabel, children: niceSize })] });
119467
119484
  }
119468
119485
  function NamedSetNodeEditing(props) {
@@ -119474,7 +119491,7 @@ function NamedSetNodeEditing(props) {
119474
119491
  onNodeSetName(path2, currentTitle, true);
119475
119492
  }
119476
119493
  }
119477
- const { classes: classes2 } = useStyles$s();
119494
+ const { classes: classes2 } = useStyles$t();
119478
119495
  return jsxRuntimeExports.jsxs("span", { className: classes2.titleButtonWithInput, children: [jsxRuntimeExports.jsx("input", {
119479
119496
  // eslint-disable-next-line jsx-a11y/no-autofocus
119480
119497
  autoFocus: true,
@@ -119500,7 +119517,7 @@ function LevelsButtons(props) {
119500
119517
  onCheckLevel(nodeKey, newLevel);
119501
119518
  }
119502
119519
  }
119503
- const { classes: classes2 } = useStyles$s();
119520
+ const { classes: classes2 } = useStyles$t();
119504
119521
  return jsxRuntimeExports.jsx("div", { className: classes2.levelButtonsContainer, children: range$d(1, height2 + 1).map((i2) => {
119505
119522
  const isChecked = isEqual$3(path2, checkedLevelPath) && i2 === checkedLevelIndex;
119506
119523
  return jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx(HelpTooltip, { title: getLevelTooltipText(i2), children: jsxRuntimeExports.jsx("input", { className: clsx(classes2.levelRadioButton, { [classes2.levelRadioButtonChecked]: isChecked && !hasColorEncoding }), type: "checkbox", value: i2, checked: isChecked && hasColorEncoding, onChange: onCheck }) }) }, i2);
@@ -119587,7 +119604,7 @@ let TreeNode$1 = class TreeNode extends TreeNode$2 {
119587
119604
  };
119588
119605
  function PlusButton(props) {
119589
119606
  const { datatype, onError, onImportTree, onCreateLevelZeroNode, importable, editable } = props;
119590
- const { classes: classes2 } = useStyles$s();
119607
+ const { classes: classes2 } = useStyles$t();
119591
119608
  const onImport = useCallback((importHandler, mimeType) => () => {
119592
119609
  const uploadInputNode = document.createElement("input");
119593
119610
  uploadInputNode.setAttribute("type", "file");
@@ -119704,7 +119721,7 @@ function SetsManager(props) {
119704
119721
  }, onNodeCheckNewName, onNodeSetIsEditing: setIsEditingNodeName, onNodeRemove, onExportLevelZeroNodeJSON, onExportLevelZeroNodeTabular, onExportSetJSON, disableTooltip: isDragging, onDragStart: () => setIsDragging(true), onDragEnd: () => setIsDragging(false), children: renderTreeNodes(node2.children, readOnly, newPath) }, pathToKey(newPath));
119705
119722
  });
119706
119723
  }
119707
- const { classes: classes2 } = useStyles$s();
119724
+ const { classes: classes2 } = useStyles$t();
119708
119725
  return jsxRuntimeExports.jsxs("div", { className: classes2.setsManager, children: [jsxRuntimeExports.jsx(SetsManagerTreeGlobalStyles, { classes: classes2 }), jsxRuntimeExports.jsxs("div", { className: classes2.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) => {
119709
119726
  const { eventKey: dropKey } = info2.node.props;
119710
119727
  const { eventKey: dragKey } = info2.dragNode.props;
@@ -225676,22 +225693,22 @@ async function getDecoder(fileDirectory) {
225676
225693
  const Decoder = await importFn();
225677
225694
  return new Decoder(fileDirectory);
225678
225695
  }
225679
- addDecoder([void 0, 1], () => import("./raw-CBlbbCrj.js").then((m2) => m2.default));
225680
- addDecoder(5, () => import("./lzw-BBM6Xm4R.js").then((m2) => m2.default));
225696
+ addDecoder([void 0, 1], () => import("./raw-ONJDg6KR.js").then((m2) => m2.default));
225697
+ addDecoder(5, () => import("./lzw-CSU4-tEq.js").then((m2) => m2.default));
225681
225698
  addDecoder(6, () => {
225682
225699
  throw new Error("old style JPEG compression is not supported.");
225683
225700
  });
225684
- addDecoder(7, () => import("./jpeg-DC6EhC9e.js").then((m2) => m2.default));
225685
- addDecoder([8, 32946], () => import("./deflate-DXxvDuxS.js").then((m2) => m2.default));
225686
- addDecoder(32773, () => import("./packbits-C8SMglgQ.js").then((m2) => m2.default));
225701
+ addDecoder(7, () => import("./jpeg-Dt2P7Q4n.js").then((m2) => m2.default));
225702
+ addDecoder([8, 32946], () => import("./deflate-Ck1FpEvw.js").then((m2) => m2.default));
225703
+ addDecoder(32773, () => import("./packbits-DAxS1wTT.js").then((m2) => m2.default));
225687
225704
  addDecoder(
225688
225705
  34887,
225689
- () => import("./lerc-B_WzdfsG.js").then(async (m2) => {
225706
+ () => import("./lerc-CL069jcD.js").then(async (m2) => {
225690
225707
  await m2.zstd.init();
225691
225708
  return m2;
225692
225709
  }).then((m2) => m2.default)
225693
225710
  );
225694
- addDecoder(50001, () => import("./webimage-C2MT0eHP.js").then((m2) => m2.default));
225711
+ addDecoder(50001, () => import("./webimage-DfwdJYlt.js").then((m2) => m2.default));
225695
225712
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
225696
225713
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
225697
225714
  }
@@ -242441,7 +242458,7 @@ class ContourLayerWithText extends ContourLayer {
242441
242458
  }
242442
242459
  ContourLayerWithText.layerName = "ContourLayerWithText";
242443
242460
  ContourLayerWithText.defaultProps = defaultProps;
242444
- const useStyles$r = makeStyles()(() => ({
242461
+ const useStyles$s = makeStyles()(() => ({
242445
242462
  toolButton: {
242446
242463
  display: "inline-flex",
242447
242464
  "&:active": {
@@ -242503,12 +242520,12 @@ const useStyles$r = makeStyles()(() => ({
242503
242520
  }));
242504
242521
  function IconTool(props) {
242505
242522
  const { alt, onClick, isActive: isActive2, children: children3 } = props;
242506
- const { classes: classes2 } = useStyles$r();
242523
+ const { classes: classes2 } = useStyles$s();
242507
242524
  return jsxRuntimeExports.jsx("button", { className: clsx(classes2.toolIcon, { [classes2.toolActive]: isActive2 }), onClick, type: "button", title: alt, children: children3 });
242508
242525
  }
242509
242526
  function IconButton(props) {
242510
242527
  const { alt, onClick, children: children3 } = props;
242511
- const { classes: classes2 } = useStyles$r();
242528
+ const { classes: classes2 } = useStyles$s();
242512
242529
  return jsxRuntimeExports.jsx("button", { className: clsx(classes2.toolIcon, classes2.toolButton), onClick, type: "button", title: alt, children: children3 });
242513
242530
  }
242514
242531
  function ToolMenu(props) {
@@ -242516,7 +242533,7 @@ function ToolMenu(props) {
242516
242533
  const lassoIconAltText = "Select lasso";
242517
242534
  const { setActiveTool, activeTool, visibleTools = { pan: true, selectLasso: true }, recenterOnClick = () => {
242518
242535
  } } = props;
242519
- const { classes: classes2 } = useStyles$r();
242536
+ const { classes: classes2 } = useStyles$s();
242520
242537
  const onRecenterButtonCLick = () => {
242521
242538
  recenterOnClick();
242522
242539
  };
@@ -243318,7 +243335,7 @@ function ScatterplotOptions(props) {
243318
243335
  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, featureAggregationStrategy, setFeatureAggregationStrategy } = props;
243319
243336
  const scatterplotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
243320
243337
  const observationsLabelNice = capitalize$3(observationsLabel);
243321
- const { classes: classes2 } = useStyles$u();
243338
+ const { classes: classes2 } = useStyles$v();
243322
243339
  function handleCellRadiusModeChange(event2) {
243323
243340
  setCellRadiusMode(event2.target.value);
243324
243341
  }
@@ -243440,7 +243457,7 @@ function ScatterplotOptions(props) {
243440
243457
  id: `feature-aggregation-strategy-${scatterplotOptionsId}`
243441
243458
  }, children: FEATURE_AGGREGATION_STRATEGIES$1.map((opt) => jsxRuntimeExports.jsx("option", { value: opt, children: capitalize$3(opt) }, opt)) }) })] }) : null] });
243442
243459
  }
243443
- const useStyles$q = makeStyles()((theme) => ({
243460
+ const useStyles$r = makeStyles()((theme) => ({
243444
243461
  tooltipAnchor: {
243445
243462
  position: "relative",
243446
243463
  width: "0px",
@@ -243471,7 +243488,7 @@ const useStyles$q = makeStyles()((theme) => ({
243471
243488
  function Tooltip3(props) {
243472
243489
  const { x: x2, y: y2, parentWidth, parentHeight, children: children3 } = props;
243473
243490
  const ref2 = useRef();
243474
- const { classes: classes2 } = useStyles$q();
243491
+ const { classes: classes2 } = useStyles$r();
243475
243492
  const [placementX, setPlacementX] = useState("start");
243476
243493
  const [placementY, setPlacementY] = useState("bottom");
243477
243494
  const getTooltipContainer = useVitessceContainer(ref2);
@@ -243487,7 +243504,7 @@ function Tooltip3(props) {
243487
243504
  }, [x2, y2, parentWidth, parentHeight]);
243488
243505
  return jsxRuntimeExports.jsx("div", { ref: ref2, className: classes2.tooltipAnchor, children: ref2 && ref2.current ? jsxRuntimeExports.jsx(Popper, { open: true, anchorEl: ref2.current, container: getTooltipContainer, transition: true, placement: `${placementY}-${placementX}`, children: jsxRuntimeExports.jsx(Paper, { elevation: 8, className: classes2.tooltipContent, children: children3 }) }) : null });
243489
243506
  }
243490
- const useStyles$p = makeStyles()((theme) => ({
243507
+ const useStyles$q = makeStyles()((theme) => ({
243491
243508
  cellEmphasisCrosshair: {
243492
243509
  zIndex: 50,
243493
243510
  position: "absolute",
@@ -243498,7 +243515,7 @@ const useStyles$p = makeStyles()((theme) => ({
243498
243515
  }));
243499
243516
  function Tooltip2D(props) {
243500
243517
  const { parentUuid, sourceUuid, x: x2, y: y2, parentWidth, parentHeight, children: children3 } = props;
243501
- const { classes: classes2 } = useStyles$p();
243518
+ const { classes: classes2 } = useStyles$q();
243502
243519
  if (x2 < 0 || x2 > parentWidth || y2 < 0 || y2 > parentHeight) {
243503
243520
  return null;
243504
243521
  }
@@ -247385,7 +247402,7 @@ function getXlinkHref(cmap) {
247385
247402
  const xlinkHref = ramp(color2.copy().domain(quantize$3(interpolate$1$1(0, 1), n3))).toDataURL();
247386
247403
  return xlinkHref;
247387
247404
  }
247388
- const useStyles$o = makeStyles()(() => ({
247405
+ const useStyles$p = makeStyles()(() => ({
247389
247406
  legend: {
247390
247407
  top: "2px",
247391
247408
  right: "2px",
@@ -247473,7 +247490,7 @@ function combineMissings(missings, featureAggregationStrategy) {
247473
247490
  function Legend(props) {
247474
247491
  const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, featureAggregationStrategy, extent: extent2, missing, width: width2 = 100, height: height2 = 36, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
247475
247492
  const svgRef = useRef();
247476
- const { classes: classes2 } = useStyles$o();
247493
+ const { classes: classes2 } = useStyles$p();
247477
247494
  const isDarkTheme = theme === "dark";
247478
247495
  const isStaticColor = obsColorEncoding === "spatialChannelColor" || obsColorEncoding === "spatialLayerColor";
247479
247496
  const isSetColor = obsColorEncoding === "cellSetSelection";
@@ -247567,6 +247584,8 @@ function Legend(props) {
247567
247584
  featureSelectionLabelRawStr = "Sum of features";
247568
247585
  } else if (featureAggregationStrategy === "mean") {
247569
247586
  featureSelectionLabelRawStr = "Mean of features";
247587
+ } else {
247588
+ featureSelectionLabelRawStr = featureSelectionLabelRaw?.[0];
247570
247589
  }
247571
247590
  const combinedMissing = combineMissings(missing, featureAggregationStrategy);
247572
247591
  const featureSelectionLabel = combinedMissing ? `${featureSelectionLabelRawStr} (${Math.round(combinedMissing * 100)}% NaN)` : featureSelectionLabelRawStr;
@@ -247617,7 +247636,7 @@ function Legend(props) {
247617
247636
  height: `${dynamicHeight}px`
247618
247637
  } }) });
247619
247638
  }
247620
- const useStyles$n = makeStyles()(() => ({
247639
+ const useStyles$o = makeStyles()(() => ({
247621
247640
  multiLegend: {
247622
247641
  position: "absolute",
247623
247642
  top: "0px",
@@ -247642,7 +247661,7 @@ function MultiLegend(props) {
247642
247661
  pointLayerScopes,
247643
247662
  pointLayerCoordination
247644
247663
  } = props;
247645
- const { classes: classes2 } = useStyles$n();
247664
+ const { classes: classes2 } = useStyles$o();
247646
247665
  const reversedSegmentationLayerScopes = useMemo$1(() => [...segmentationLayerScopes || []].reverse(), [segmentationLayerScopes]);
247647
247666
  const reversedSpotLayerScopes = useMemo$1(() => [...spotLayerScopes || []].reverse(), [spotLayerScopes]);
247648
247667
  const reversedPointLayerScopes = useMemo$1(() => [...pointLayerScopes || []].reverse(), [pointLayerScopes]);
@@ -247714,7 +247733,7 @@ function MultiLegend(props) {
247714
247733
  }) : null;
247715
247734
  }) : null] });
247716
247735
  }
247717
- const useStyles$m = makeStyles()(() => ({
247736
+ const useStyles$n = makeStyles()(() => ({
247718
247737
  channelNamesLegendContainer: {
247719
247738
  position: "absolute",
247720
247739
  bottom: "0px",
@@ -247737,7 +247756,7 @@ const useStyles$m = makeStyles()(() => ({
247737
247756
  }));
247738
247757
  function ChannelNamesLegend(props) {
247739
247758
  const { images, imageLayerScopes, imageLayerCoordination, imageChannelScopesByLayer, imageChannelCoordination } = props;
247740
- const { classes: classes2 } = useStyles$m();
247759
+ const { classes: classes2 } = useStyles$n();
247741
247760
  const reversedImageLayerScopes = useMemo$1(() => [...imageLayerScopes || []].reverse(), [imageLayerScopes]);
247742
247761
  return jsxRuntimeExports.jsx("div", { className: classes2.channelNamesLegendContainer, children: imageLayerScopes ? reversedImageLayerScopes.map((layerScope) => {
247743
247762
  const layerCoordination = imageLayerCoordination[0][layerScope];
@@ -248134,7 +248153,7 @@ function DualEmbeddingScatterplotSubscriber(props) {
248134
248153
  function GatingScatterplotOptions(props) {
248135
248154
  const { featureType, gatingFeatureSelectionX, setGatingFeatureSelectionX, gatingFeatureSelectionY, setGatingFeatureSelectionY, gatingFeatureValueTransform, setGatingFeatureValueTransform, gatingFeatureValueTransformCoefficient, setGatingFeatureValueTransformCoefficient, geneSelectOptions, transformOptions } = props;
248136
248155
  const gatingScatterplotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
248137
- const { classes: classes2 } = useStyles$u();
248156
+ const { classes: classes2 } = useStyles$v();
248138
248157
  const handleGeneSelectChange = (event2) => {
248139
248158
  const { options } = event2.target;
248140
248159
  const newValues = [];
@@ -267437,7 +267456,7 @@ function SpatialOptions(props) {
267437
267456
  function handleTooltipsVisibilityChange(event2) {
267438
267457
  setTooltipsVisible(event2.target.checked);
267439
267458
  }
267440
- const { classes: classes2 } = useStyles$u();
267459
+ const { classes: classes2 } = useStyles$v();
267441
267460
  return jsxRuntimeExports.jsxs(OptionsContainer, { children: [canShowColorEncodingOption ? jsxRuntimeExports.jsx(CellColorEncodingOption, { observationsLabel, cellColorEncoding, setCellColorEncoding }) : null, canShow3DOptions ? jsxRuntimeExports.jsx(ToggleFixedAxisButton, { setSpatialAxisFixed, spatialAxisFixed, use3d }) : null, jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `gene-expression-colormap-option-tooltip-visibility-${spatialOptionsId}`, children: "Tooltips Visible" }) }), jsxRuntimeExports.jsx(TableCell, { className: classes2.inputCell, variant: "body", children: jsxRuntimeExports.jsx(Checkbox$1, {
267442
267461
  className: classes2.checkbox,
267443
267462
  /**
@@ -268151,11 +268170,11 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
268151
268170
  obsColorEncoding,
268152
268171
  staticColor,
268153
268172
  layerColors
268154
- ]
268173
+ ],
268174
+ getExpressionValue: [getExpressionValue]
268155
268175
  /*
268156
268176
  getLineWidth: [stroked],
268157
268177
  isSelected: cellSelection,
268158
- getExpressionValue,
268159
268178
  getFillColor: [opacity, cellColorEncoding, cellSelection, cellColors],
268160
268179
  getLineColor: [cellColorEncoding, cellSelection, cellColors],
268161
268180
  getPolygon: [radius],
@@ -269174,7 +269193,7 @@ class ErrorBoundary2 extends React__default.Component {
269174
269193
  }
269175
269194
  }
269176
269195
  const LazySpatialThree = React__default.lazy(async () => {
269177
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-NxuTLT6r.js");
269196
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-BH6CArlL.js");
269178
269197
  return { default: SpatialWrapper2 };
269179
269198
  });
269180
269199
  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 }) }) }) }));
@@ -270628,7 +270647,7 @@ function HeatmapTooltipSubscriber(props) {
270628
270647
  }
270629
270648
  function HeatmapOptions(props) {
270630
270649
  const { geneExpressionColormap, setGeneExpressionColormap, geneExpressionColormapRange, setGeneExpressionColormapRange, tooltipsVisible, setTooltipsVisible } = props;
270631
- const { classes: classes2 } = useStyles$u();
270650
+ const { classes: classes2 } = useStyles$v();
270632
270651
  const heatmapOptionsId = $bdb11010cef70236$export$f680877a34711e37();
270633
270652
  function handleGeneExpressionColormapChange(event2) {
270634
270653
  setGeneExpressionColormap(event2.target.value);
@@ -277236,7 +277255,7 @@ _defineProperty$3(WindowScroller, "defaultProps", {
277236
277255
  serverHeight: 0,
277237
277256
  serverWidth: 0
277238
277257
  });
277239
- const useStyles$l = makeStyles()((theme) => ({
277258
+ const useStyles$m = makeStyles()((theme) => ({
277240
277259
  selectableTable: {
277241
277260
  flex: "1 1 auto",
277242
277261
  outline: "none"
@@ -277269,7 +277288,8 @@ const useStyles$l = makeStyles()((theme) => ({
277269
277288
  flexBasis: 0,
277270
277289
  flexGrow: 1,
277271
277290
  textOverflow: "ellipsis",
277272
- whiteSpace: "nowrap"
277291
+ whiteSpace: "nowrap",
277292
+ paddingLeft: "10px"
277273
277293
  },
277274
277294
  inputContainer: {
277275
277295
  width: "1em",
@@ -277313,7 +277333,7 @@ const useStyles$l = makeStyles()((theme) => ({
277313
277333
  }));
277314
277334
  const SHIFT_KEYCODE = 16;
277315
277335
  function SelectableTable(props) {
277316
- const { hasColorEncoding, columns: columns2, columnLabels, data: data2, onChange, idKey = "id", valueKey = "value", allowMultiple = false, allowUncheck = false, showTableHead = true, showTableInputs = false, testHeight = void 0, testWidth = void 0 } = props;
277336
+ const { hasColorEncoding, columns: columns2, columnLabels, data: data2, onChange, idKey = "id", valueKey = "value", allowMultiple = false, allowUncheck = false, showTableHead = true, showTableInputs = false, testHeight = void 0, testWidth = void 0, width: width2, height: height2 } = props;
277317
277337
  const [selectedRows, setSelectedRows] = useState(null);
277318
277338
  const [isCheckingMultiple, setIsCheckingMultiple] = useState(false);
277319
277339
  useEffect(() => {
@@ -277384,14 +277404,14 @@ function SelectableTable(props) {
277384
277404
  onChange(null);
277385
277405
  }
277386
277406
  }, [selectedRows, allowMultiple]);
277387
- const { classes: classes2 } = useStyles$l();
277407
+ const { classes: classes2 } = useStyles$m();
277388
277408
  const inputUuid = v4$1();
277389
277409
  const rowRenderer = ({ index: index2, style: style2 }) => (
277390
277410
  // eslint-disable-next-line jsx-a11y/interactive-supports-focus
277391
277411
  jsxRuntimeExports.jsxs("div", { className: clsx(classes2.tableItem, classes2.tableRow, { "row-checked": isSelected(data2[index2][idKey]) }), style: style2, role: "button", onClick: () => onSelectRow(data2[index2][idKey], !isSelected(data2[index2][idKey]) || !hasColorEncoding), children: [jsxRuntimeExports.jsx("div", { className: clsx(classes2.inputContainer, classes2.tableCell, { [classes2.hiddenInputColumn]: !showTableInputs }), children: jsxRuntimeExports.jsx("label", { htmlFor: `${inputUuid}_${data2[index2][idKey]}`, children: jsxRuntimeExports.jsx("input", { id: `${inputUuid}_${data2[index2][idKey]}`, type: "checkbox", className: clsx(classes2.radioOrCheckbox, isCheckingMultiple ? classes2.tableCheckbox : classes2.tableRadio), name: inputUuid, value: data2[index2][idKey], onChange: handleInputChange, checked: isSelected(data2[index2][idKey]) }) }) }), columns2.map((column2) => jsxRuntimeExports.jsx("div", { className: classes2.tableCell, children: data2[index2][column2] }, column2))] }, data2[index2][idKey])
277392
277412
  );
277393
277413
  const headerRowRenderer = ({ style: style2 }) => jsxRuntimeExports.jsx("div", { className: classes2.tableRow, style: style2, children: columnLabels.map((columnLabel) => jsxRuntimeExports.jsx("div", { className: classes2.tableCell, style: { fontWeight: "bold" }, children: columnLabel }, columnLabel)) });
277394
- return jsxRuntimeExports.jsx("div", { className: classes2.selectableTable, children: jsxRuntimeExports.jsx(AutoSizer, { children: ({ width: width2, height: height2 }) => jsxRuntimeExports.jsx(Table$1, {
277414
+ return jsxRuntimeExports.jsx("div", { className: classes2.selectableTable, children: jsxRuntimeExports.jsx(Table$1, {
277395
277415
  height: testHeight || height2,
277396
277416
  gridStyle: { outline: "none" },
277397
277417
  rowCount: data2.length,
@@ -277402,15 +277422,18 @@ function SelectableTable(props) {
277402
277422
  width: testWidth || width2,
277403
277423
  headerRowRenderer: showTableHead ? headerRowRenderer : void 0,
277404
277424
  rowGetter: ({ index: index2 }) => data2[index2]
277405
- }) }) });
277425
+ }) });
277406
277426
  }
277407
277427
  const FEATURELIST_SORT_OPTIONS = [
277408
277428
  "alphabetical",
277409
277429
  "original"
277410
277430
  ];
277411
277431
  const ALT_COLNAME = "Alternate ID";
277412
- const useStyles$k = makeStyles()(() => ({
277432
+ const useStyles$l = makeStyles()(() => ({
277413
277433
  searchBar: {
277434
+ marginTop: "10px",
277435
+ marginLeft: "10px",
277436
+ marginRight: "10px",
277414
277437
  marginBottom: "4px",
277415
277438
  border: "0",
277416
277439
  padding: "2px",
@@ -277418,8 +277441,8 @@ const useStyles$k = makeStyles()(() => ({
277418
277441
  }
277419
277442
  }));
277420
277443
  function FeatureList(props) {
277421
- const { hasColorEncoding, geneList = [], featureLabelsMap, geneSelection = [], geneFilter = null, setGeneSelection, enableMultiSelect, showFeatureTable, featureListSort, featureListSortKey, hasFeatureLabels, primaryColumnName } = props;
277422
- const { classes: classes2 } = useStyles$k();
277444
+ const { width: width2, height: height2, hasColorEncoding, geneList = [], featureLabelsMap, geneSelection = [], geneFilter = null, setGeneSelection, enableMultiSelect, showFeatureTable, featureListSort, featureListSortKey, hasFeatureLabels, primaryColumnName } = props;
277445
+ const { classes: classes2 } = useStyles$l();
277423
277446
  const [searchTerm, setSearchTerm] = useState("");
277424
277447
  const [searchResults, setSearchResults] = useState(geneList);
277425
277448
  const selectableTableSortKey = featureListSortKey === "featureIndex" ? "key" : "name";
@@ -277473,7 +277496,7 @@ function FeatureList(props) {
277473
277496
  [primaryColumnName]
277474
277497
  ];
277475
277498
  }, [showFeatureTable, primaryColumnName, hasFeatureLabels]);
277476
- return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("input", { className: classes2.searchBar, type: "text", placeholder: "Search", value: searchTerm, onChange: handleChange }), jsxRuntimeExports.jsx(SelectableTable, { columns: columns2, columnLabels, data: data2, hasColorEncoding, idKey: "key", valueKey: "value", onChange, allowMultiple: enableMultiSelect, allowUncheck: enableMultiSelect, showTableHead: columnLabels.length > 1 })] });
277499
+ return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("input", { className: classes2.searchBar, type: "text", placeholder: "Search", value: searchTerm, onChange: handleChange }), jsxRuntimeExports.jsx(SelectableTable, { columns: columns2, columnLabels, data: data2, hasColorEncoding, idKey: "key", valueKey: "value", onChange, allowMultiple: enableMultiSelect, allowUncheck: enableMultiSelect, showTableHead: columnLabels.length > 1, width: width2, height: height2 - 34 })] });
277477
277500
  }
277478
277501
  function FeatureListOptions(props) {
277479
277502
  const { children: children3, featureListSort, setFeatureListSort, featureListSortKey, setFeatureListSortKey, showFeatureTable, setShowFeatureTable, hasFeatureLabels, primaryColumnName } = props;
@@ -277487,7 +277510,7 @@ function FeatureListOptions(props) {
277487
277510
  function handleShowTableChange(event2) {
277488
277511
  setShowFeatureTable(event2.target.checked);
277489
277512
  }
277490
- const { classes: classes2 } = useStyles$u();
277513
+ const { classes: classes2 } = useStyles$v();
277491
277514
  return jsxRuntimeExports.jsxs(OptionsContainer, { children: [children3, jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-sort-option-${featureListId}`, children: "Sort Ordering" }) }), jsxRuntimeExports.jsx(TableCell, { variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes2.select, value: featureListSort, onChange: handleFeatureListSortChange, inputProps: {
277492
277515
  id: `feature-list-sort-option-${featureListId}`
277493
277516
  }, children: FEATURELIST_SORT_OPTIONS.map((option) => jsxRuntimeExports.jsx("option", { value: option, children: option }, option)) }) })] }), hasFeatureLabels ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(TableRow, { children: [jsxRuntimeExports.jsx(TableCell, { className: classes2.labelCell, variant: "head", scope: "row", children: jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-sort-key-${featureListId}`, children: "Sort Key" }) }), jsxRuntimeExports.jsx(TableCell, { variant: "body", children: jsxRuntimeExports.jsx(OptionSelect, { className: classes2.select, disabled: featureListSort === "original", value: featureListSortKey, onChange: handleFeatureListSortKeyChange, inputProps: {
@@ -277498,9 +277521,21 @@ function FeatureListOptions(props) {
277498
277521
  id: `feature-list-show-alternative-ids-${featureListId}`
277499
277522
  } } }) })] })] }) : null] });
277500
277523
  }
277524
+ const useStyles$k = makeStyles()((theme) => ({
277525
+ featureListContainer: {
277526
+ width: "100%",
277527
+ height: "100%",
277528
+ display: "flex",
277529
+ flexDirection: "column",
277530
+ backgroundColor: theme.palette.primaryBackground,
277531
+ color: theme.palette.primaryForeground
277532
+ }
277533
+ }));
277501
277534
  function FeatureListSubscriber(props) {
277502
277535
  const { coordinationScopes, removeGridComponent, variablesLabelOverride, theme, title: titleOverride, enableMultiSelect = false, showTable = false, sort: sort2 = "alphabetical", sortKey: sortKey2 = null, closeButtonVisible, downloadButtonVisible, helpText = ViewHelpMapping.FEATURE_LIST } = props;
277503
277536
  const loaders = useLoaders();
277537
+ const [width2, height2, containerRef] = useGridItemSize();
277538
+ const { classes: classes2 } = useStyles$k();
277504
277539
  const [{ dataset, obsType, featureType, featureSelection: geneSelection, featureFilter: geneFilter, obsColorEncoding: cellColorEncoding }, { setFeatureSelection: setGeneSelection, setFeatureFilter: setGeneFilter, setFeatureHighlight: setGeneHighlight, setObsColorEncoding: setCellColorEncoding }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.FEATURE_LIST], coordinationScopes);
277505
277540
  const variablesLabel = variablesLabelOverride || featureType;
277506
277541
  const title2 = titleOverride || `${capitalize$3(variablesLabel)} List`;
@@ -277532,24 +277567,7 @@ function FeatureListSubscriber(props) {
277532
277567
  const [featureListSortKey, setFeatureListSortKey] = useState(null);
277533
277568
  const initialSortKey = sortKey2 || (hasFeatureLabels ? "featureLabels" : "featureIndex");
277534
277569
  const primaryColumnName = `${capitalize$3(featureType)} ID`;
277535
- return jsxRuntimeExports.jsx(TitleInfo, {
277536
- title: title2,
277537
- info: `${commaNumber(numGenes)} ${pluralize(variablesLabel, numGenes)}`,
277538
- theme,
277539
- // Virtual scroll is used but this allows for the same styling as a scroll component
277540
- // even though this no longer uses the TitleInfo component's
277541
- // scroll css (SelectableTable is virtual scroll).
277542
- isScroll: true,
277543
- closeButtonVisible,
277544
- downloadButtonVisible,
277545
- removeGridComponent,
277546
- isReady,
277547
- urls: urls2,
277548
- helpText,
277549
- errors,
277550
- options: jsxRuntimeExports.jsx(FeatureListOptions, { featureListSort, setFeatureListSort, featureListSortKey: featureListSortKey || initialSortKey, setFeatureListSortKey, showFeatureTable, setShowFeatureTable, hasFeatureLabels, primaryColumnName }),
277551
- children: jsxRuntimeExports.jsx(FeatureList, { hasColorEncoding: cellColorEncoding === "geneSelection", showFeatureTable, geneList, featureListSort, featureListSortKey: featureListSortKey || initialSortKey, featureLabelsMap: expandedFeatureLabelsMap, featureType, geneSelection, geneFilter, setGeneSelection: setGeneSelectionAndColorEncoding, setGeneFilter, setGeneHighlight, enableMultiSelect, hasFeatureLabels, primaryColumnName })
277552
- });
277570
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, info: `${commaNumber(numGenes)} ${pluralize(variablesLabel, numGenes)}`, theme, withPadding: false, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, urls: urls2, helpText, errors, options: jsxRuntimeExports.jsx(FeatureListOptions, { featureListSort, setFeatureListSort, featureListSortKey: featureListSortKey || initialSortKey, setFeatureListSortKey, showFeatureTable, setShowFeatureTable, hasFeatureLabels, primaryColumnName }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes2.featureListContainer, children: jsxRuntimeExports.jsx(FeatureList, { width: width2, height: height2, hasColorEncoding: cellColorEncoding === "geneSelection", showFeatureTable, geneList, featureListSort, featureListSortKey: featureListSortKey || initialSortKey, featureLabelsMap: expandedFeatureLabelsMap, featureType, geneSelection, geneFilter, setGeneSelection: setGeneSelectionAndColorEncoding, setGeneFilter, setGeneHighlight, enableMultiSelect, hasFeatureLabels, primaryColumnName }) }) });
277553
277571
  }
277554
277572
  const useSpanStyles = makeStyles()(() => ({
277555
277573
  span: {
@@ -279706,7 +279724,7 @@ function HiglassGlobalStyles(props) {
279706
279724
  }
279707
279725
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
279708
279726
  const LazyHiGlassComponent = React__default.lazy(async () => {
279709
- const { HiGlassComponent } = await import("./higlass-ZA8QVeYb.js");
279727
+ const { HiGlassComponent } = await import("./higlass-C9yhpeJG.js");
279710
279728
  return { default: HiGlassComponent };
279711
279729
  });
279712
279730
  const HG_SIZE = 800;
@@ -282649,7 +282667,7 @@ function NeuroglancerGlobalStyles(props) {
282649
282667
  const { classes: classes2 } = props;
282650
282668
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
282651
282669
  }
282652
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-CG0BfwKU.js"));
282670
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-8kBII_h0.js"));
282653
282671
  function createWorker() {
282654
282672
  return new WorkerFactory();
282655
282673
  }
@@ -282890,7 +282908,7 @@ const FEATURE_AGGREGATION_STRATEGIES = ["first", "last", "sum", "mean"];
282890
282908
  function CellSetExpressionPlotOptions(props) {
282891
282909
  const { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold, setFeatureValuePositivityThreshold, featureValueColormap, setFeatureValueColormap, featureAggregationStrategy, setFeatureAggregationStrategy } = props;
282892
282910
  const cellSetExpressionPlotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
282893
- const { classes: classes2 } = useStyles$u();
282911
+ const { classes: classes2 } = useStyles$v();
282894
282912
  function handleFeatureValueColormapChange(event2) {
282895
282913
  setFeatureValueColormap(event2.target.value);
282896
282914
  }
@@ -335781,7 +335799,7 @@ const VEGA_THEMES = {
335781
335799
  };
335782
335800
  const DATASET_NAME = "table";
335783
335801
  function VegaGlobalStyles() {
335784
- const { theme } = useStyles$z();
335802
+ const { theme } = useStyles$A();
335785
335803
  return jsxRuntimeExports.jsx(GlobalStyles$3, { styles: {
335786
335804
  "#vg-tooltip-element.vg-tooltip.custom-theme": {
335787
335805
  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)",
@@ -335815,7 +335833,7 @@ function renderTooltipContents(tooltipText) {
335815
335833
  }
335816
335834
  function VegaPlot(props) {
335817
335835
  const { spec: partialSpec, data: data2, getTooltipText, signalListeners, renderer = "svg", onNewView } = props;
335818
- const { classes: tooltipClasses2 } = useStyles$q();
335836
+ const { classes: tooltipClasses2 } = useStyles$r();
335819
335837
  const tooltipHandler = useMemo$1(() => {
335820
335838
  if (typeof getTooltipText === "function") {
335821
335839
  const tooltipConfig = {
@@ -336709,7 +336727,7 @@ function Treemap(props) {
336709
336727
  function TreemapOptions(props) {
336710
336728
  const { children: children3, obsType, sampleType, hierarchyLevels, setHierarchyLevels, obsColorEncoding, setObsColorEncoding } = props;
336711
336729
  const treemapOptionsId = $bdb11010cef70236$export$f680877a34711e37();
336712
- const { classes: classes2 } = useStyles$u();
336730
+ const { classes: classes2 } = useStyles$v();
336713
336731
  function handleColorEncodingChange(event2) {
336714
336732
  setObsColorEncoding(event2.target.value);
336715
336733
  }
@@ -336946,7 +336964,7 @@ p-value: ${d.featureSignificance}`);
336946
336964
  function VolcanoPlotOptions(props) {
336947
336965
  const { children: children3, featurePointSignificanceThreshold, featurePointFoldChangeThreshold, featureLabelSignificanceThreshold, featureLabelFoldChangeThreshold, setFeaturePointSignificanceThreshold, setFeaturePointFoldChangeThreshold, setFeatureLabelSignificanceThreshold, setFeatureLabelFoldChangeThreshold } = props;
336948
336966
  const volcanoOptionsId = $bdb11010cef70236$export$f680877a34711e37();
336949
- const { classes: classes2 } = useStyles$u();
336967
+ const { classes: classes2 } = useStyles$v();
336950
336968
  function handlePointSignificanceChange(event2, value2) {
336951
336969
  setFeaturePointSignificanceThreshold(10 ** -value2);
336952
336970
  }
@@ -340939,6 +340957,13 @@ class SpatialDataObsSetsLoader extends ObsSetsAnndataLoader {
340939
340957
  this.tablePath = this.options.tablePath;
340940
340958
  }
340941
340959
  }
340960
+ class SpatialDataObsEmbeddingLoader extends ObsEmbeddingAnndataLoader {
340961
+ constructor(dataSource, params2) {
340962
+ super(dataSource, params2);
340963
+ this.region = this.options.region;
340964
+ this.tablePath = this.options.tablePath;
340965
+ }
340966
+ }
340942
340967
  const decoder = new TextDecoder("utf-8");
340943
340968
  const decodeUtf8 = (buffer2) => decoder.decode(buffer2);
340944
340969
  const encoder = new TextEncoder();
@@ -391846,7 +391871,39 @@ function expandSpatialdataZarr(fileDef) {
391846
391871
  // TODO: obsLocations?
391847
391872
  // TODO: obsLabels
391848
391873
  // TODO: featureLabels
391849
- // TODO: obsEmbedding
391874
+ // obsEmbedding
391875
+ // eslint-disable-next-line no-nested-ternary
391876
+ ...options.obsEmbedding ? Array.isArray(options.obsEmbedding) ? options.obsEmbedding.map((oe) => ({
391877
+ // obsEmbedding was an array, process each element.
391878
+ ...baseFileDef,
391879
+ fileType: getFileType2(FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR),
391880
+ options: {
391881
+ path: oe.path,
391882
+ dims: oe.dims,
391883
+ tablePath: options.tablePath,
391884
+ region: options.region
391885
+ },
391886
+ coordinationValues: {
391887
+ ...extraCoordinationValues,
391888
+ obsType: baseFileDef.coordinationValues.obsType,
391889
+ // Move embedding type property out of options and into coordinationValues.
391890
+ embeddingType: oe.embeddingType
391891
+ }
391892
+ })) : [{
391893
+ // obsEmbedding was an object.
391894
+ ...baseFileDef,
391895
+ fileType: getFileType2(FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR),
391896
+ options: {
391897
+ ...options.obsEmbedding,
391898
+ tablePath: options.tablePath,
391899
+ region: options.region
391900
+ },
391901
+ coordinationValues: {
391902
+ ...extraCoordinationValues,
391903
+ obsType: baseFileDef.coordinationValues.obsType,
391904
+ embeddingType: baseFileDef.coordinationValues.embeddingType
391905
+ }
391906
+ }] : [],
391850
391907
  // image
391851
391908
  // TODO: handle multiple image elements?
391852
391909
  ...options.image ? [{
@@ -392265,6 +392322,7 @@ const baseFileTypes = [
392265
392322
  ...makeZarrFileTypes(FileType$2.OBS_POINTS_SPATIALDATA_ZARR, DataType$4.OBS_POINTS, SpatialDataObsPointsLoader, SpatialDataPointsSource, obsPointsSpatialdataSchema),
392266
392323
  ...makeZarrFileTypes(FileType$2.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR, DataType$4.OBS_FEATURE_MATRIX, ObsFeatureMatrixAnndataLoader, SpatialDataTableSource, obsFeatureMatrixSpatialdataSchema),
392267
392324
  ...makeZarrFileTypes(FileType$2.OBS_SETS_SPATIALDATA_ZARR, DataType$4.OBS_SETS, SpatialDataObsSetsLoader, SpatialDataTableSource, obsSetsSpatialdataSchema),
392325
+ ...makeZarrFileTypes(FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR, DataType$4.OBS_EMBEDDING, SpatialDataObsEmbeddingLoader, SpatialDataTableSource, obsEmbeddingSpatialdataSchema),
392268
392326
  ...makeZarrFileTypes(FileType$2.FEATURE_LABELS_SPATIALDATA_ZARR, DataType$4.FEATURE_LABELS, FeatureLabelsAnndataLoader, SpatialDataTableSource, featureLabelsAnndataSchema),
392269
392327
  makeFileType(FileType$2.OBS_SEGMENTATIONS_GLB, DataType$4.OBS_SEGMENTATIONS, GlbDataLoader, GlbSource, meshGlbSchema),
392270
392328
  // All legacy file types
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bU, bP, bN, bO, bY, bZ, bQ, c5, c3, c1, c4, c2, bM, c0, bR, bL, bK, bW, bV, bX, b$, b_, bT, ca, cd, c7, ce, cf, c8, cb, cc, c9, bS, c6 } from "./index-BsLyjMi2.js";
1
+ import { bU, bP, bN, bO, bY, bZ, bQ, c5, c3, c1, c4, c2, bM, c0, bR, bL, bK, bW, bV, bX, b$, b_, bT, ca, cd, c7, ce, cf, c8, cb, cc, c9, bS, c6 } from "./index-B_EJNClG.js";
2
2
  import "react";
3
3
  export {
4
4
  bU as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-BsLyjMi2.js";
1
+ import { aP as BaseDecoder } from "./index-B_EJNClG.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-BsLyjMi2.js";
2
+ import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-B_EJNClG.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-BsLyjMi2.js";
1
+ import { aP as BaseDecoder } from "./index-B_EJNClG.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-BsLyjMi2.js";
1
+ import { aP as BaseDecoder } from "./index-B_EJNClG.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-BsLyjMi2.js";
1
+ import { aP as BaseDecoder } from "./index-B_EJNClG.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { bE as MeshDistanceMaterial, bF as MeshDepthMaterial, bG as RGBADepthPacking, aB as UniformsUtils, bH as ShaderChunk, aw as InstancedBufferGeometry, av as Sphere, au as Box3, aH as BackSide, a9 as DoubleSide, ad as Mesh, as as FrontSide, aa as MeshBasicMaterial, i as Color, c as Vector3, k as Matrix4, d as Vector2, aJ as Matrix3, aD as Vector4, T as Texture, a1 as LinearFilter, bI as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, bJ as InstancedBufferAttribute } from "./index-BsLyjMi2.js";
1
+ import { bE as MeshDistanceMaterial, bF as MeshDepthMaterial, bG as RGBADepthPacking, aB as UniformsUtils, bH as ShaderChunk, aw as InstancedBufferGeometry, av as Sphere, au as Box3, aH as BackSide, a9 as DoubleSide, ad as Mesh, as as FrontSide, aa as MeshBasicMaterial, i as Color, c as Vector3, k as Matrix4, d as Vector2, aJ as Matrix3, aD as Vector4, T as Texture, a1 as LinearFilter, bI as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, bJ as InstancedBufferAttribute } from "./index-B_EJNClG.js";
2
2
  function workerBootstrap() {
3
3
  var modules = /* @__PURE__ */ Object.create(null);
4
4
  function registerModule(ref, callback) {
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-BsLyjMi2.js";
1
+ import { aP as BaseDecoder } from "./index-B_EJNClG.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "3.6.13",
3
+ "version": "3.6.14",
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.6.13",
20
- "@vitessce/config": "3.6.13",
21
- "@vitessce/constants": "3.6.13",
22
- "@vitessce/export-utils": "3.6.13"
19
+ "@vitessce/all": "3.6.14",
20
+ "@vitessce/config": "3.6.14",
21
+ "@vitessce/constants": "3.6.14",
22
+ "@vitessce/export-utils": "3.6.14"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",