@vitessce/dev 3.9.8 → 3.9.10

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 { aI as getDefaultExportFromCjs, aJ as Raycaster, W as OrthographicCamera, K as PerspectiveCamera, av as Scene, aK as PCFSoftShadowMap, aL as VSMShadowMap, aM as PCFShadowMap, aN as BasicShadowMap, aO as NoToneMapping, aP as ACESFilmicToneMapping, e as Vector3, V as Vector2, aQ as Clock, aR as WebGLRenderer, aS as Camera, x as BufferGeometry, r as Material, aT as Layers, a1 as Texture, aE as RGBAFormat, az as UnsignedByteType, C as Color, aj as _extends, aU as THREE, aV as EventDispatcher, aW as MOUSE, aX as TOUCH, aY as Spherical, Q as Quaternion, an as Ray, ak as Plane } from "./index-DjEMnpx3.js";
1
+ import { aI as getDefaultExportFromCjs, aJ as Raycaster, W as OrthographicCamera, K as PerspectiveCamera, av as Scene, aK as PCFSoftShadowMap, aL as VSMShadowMap, aM as PCFShadowMap, aN as BasicShadowMap, aO as NoToneMapping, aP as ACESFilmicToneMapping, e as Vector3, V as Vector2, aQ as Clock, aR as WebGLRenderer, aS as Camera, x as BufferGeometry, r as Material, aT as Layers, a1 as Texture, aE as RGBAFormat, az as UnsignedByteType, C as Color, aj as _extends, aU as THREE, aV as EventDispatcher, aW as MOUSE, aX as TOUCH, aY as Spherical, Q as Quaternion, an as Ray, ak as Plane } from "./index-nXSTX-n5.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo } from "react";
4
4
  var constants = { exports: {} };
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { aI as getDefaultExportFromCjs, b3 as requireAssign, b4 as require_export, b5 as require_core, b6 as require_fails, b7 as require_toObject, b8 as require_objectKeys, b9 as require_cof, ba as require_wks, bb as require_iterators, bc as requireWeb_dom_iterable, bd as requireEs6_string_iterator, be as require_anObject, bf as require_hide, bg as require_ctx, bh as require_toLength, bi as require_global, bj as require_objectDp, bk as require_descriptors, bl as require_isObject, bm as require_objectCreate, bn as require_iterDefine, bo as require_iterStep, bp as require_meta, bq as require_isArray, br as require_iobject, bs as require_setToStringTag, bt as require_aFunction, bu as requireIterator, bv as require_propertyDesc, bw as require_root, bx as require_baseGetTag, by as requireIsObjectLike, bz as requireIsObject, bA as requireEs6_symbol, bB as requireDefineProperty, bC as require_toIobject, bD as require_objectGopd, bE as require_html, bF as require_domCreate, bG as require_library, bH as requireSymbol, bI as require_objectPie, bJ as require_has, bK as require_redefine, bL as require_objectAssign, bM as diffCameraState, ao as jsxRuntimeExports } from "./index-DjEMnpx3.js";
4
+ import { aI as getDefaultExportFromCjs, b3 as requireAssign, b4 as require_export, b5 as require_core, b6 as require_fails, b7 as require_toObject, b8 as require_objectKeys, b9 as require_cof, ba as require_wks, bb as require_iterators, bc as requireWeb_dom_iterable, bd as requireEs6_string_iterator, be as require_anObject, bf as require_hide, bg as require_ctx, bh as require_toLength, bi as require_global, bj as require_objectDp, bk as require_descriptors, bl as require_isObject, bm as require_objectCreate, bn as require_iterDefine, bo as require_iterStep, bp as require_meta, bq as require_isArray, br as require_iobject, bs as require_setToStringTag, bt as require_aFunction, bu as requireIterator, bv as require_propertyDesc, bw as require_root, bx as require_baseGetTag, by as requireIsObjectLike, bz as requireIsObject, bA as requireEs6_symbol, bB as requireDefineProperty, bC as require_toIobject, bD as require_objectGopd, bE as require_html, bF as require_domCreate, bG as require_library, bH as requireSymbol, bI as require_objectPie, bJ as require_has, bK as require_redefine, bL as require_objectAssign, bM as diffCameraState, ao as jsxRuntimeExports } from "./index-nXSTX-n5.js";
5
5
  import React__default from "react";
6
6
  var assignExports = requireAssign();
7
7
  const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assignExports);
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { aZ as BaseDecoder } from "./index-DjEMnpx3.js";
2
+ import { aZ as BaseDecoder } from "./index-nXSTX-n5.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 { b0 as commonjsGlobal$1, b1 as requireObjectAssign, aI as getDefaultExportFromCjs$1, b2 as earcut } from "./index-DjEMnpx3.js";
4
+ import { b0 as commonjsGlobal$1, b1 as requireObjectAssign, aI as getDefaultExportFromCjs$1, b2 as earcut } from "./index-nXSTX-n5.js";
5
5
  var promise = {};
6
6
  var hasRequiredPromise;
7
7
  function requirePromise() {
@@ -1,7 +1,7 @@
1
- import { G as Group, M as Matrix4, T as TrianglesDrawMode, a as TriangleFanDrawMode, b as TriangleStripDrawMode, R as REVISION, L as Loader, c as LoaderUtils, F as FileLoader, d as MeshPhysicalMaterial, V as Vector2, C as Color, S as SpotLight, P as PointLight, D as DirectionalLight, e as Vector3, I as InstancedMesh, Q as Quaternion, O as Object3D, f as TextureLoader, g as ImageBitmapLoader, B as BufferAttribute, h as InterleavedBuffer, i as LinearMipmapLinearFilter, N as NearestMipmapLinearFilter, j as LinearMipmapNearestFilter, k as NearestMipmapNearestFilter, l as LinearFilter, m as NearestFilter, n as RepeatWrapping, o as MirroredRepeatWrapping, p as ClampToEdgeWrapping, q as PointsMaterial, r as Material, s as LineBasicMaterial, t as MeshStandardMaterial, u as DoubleSide, v as MeshBasicMaterial, w as PropertyBinding, x as BufferGeometry, y as SkinnedMesh, z as Mesh, A as LineSegments, E as Line$1, H as LineLoop, J as Points, K as PerspectiveCamera, U as MathUtils, W as OrthographicCamera, X as Skeleton, Y as InterpolateDiscrete, Z as InterpolateLinear, _ as AnimationClip, $ as Bone, a0 as InterleavedBufferAttribute, a1 as Texture, a2 as VectorKeyframeTrack, a3 as QuaternionKeyframeTrack, a4 as NumberKeyframeTrack, a5 as FrontSide, a6 as Interpolant, a7 as Box3, a8 as Sphere, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as WireframeGeometry, ad as ShaderMaterial, ae as UniformsUtils, af as UniformsLib, ag as Vector4, ah as Line3, ai as SphereGeometry, aj as _extends, ak as Plane, al as Triangle, am as BackSide, an as Ray$1, ao as jsxRuntimeExports, ap as Matrix3, aq as CoordinationType, ar as Data3DTexture, as as RedFormat, at as FloatType, au as getImageSize, av as Scene } from "./index-DjEMnpx3.js";
1
+ import { G as Group, M as Matrix4, T as TrianglesDrawMode, a as TriangleFanDrawMode, b as TriangleStripDrawMode, R as REVISION, L as Loader, c as LoaderUtils, F as FileLoader, d as MeshPhysicalMaterial, V as Vector2, C as Color, S as SpotLight, P as PointLight, D as DirectionalLight, e as Vector3, I as InstancedMesh, Q as Quaternion, O as Object3D, f as TextureLoader, g as ImageBitmapLoader, B as BufferAttribute, h as InterleavedBuffer, i as LinearMipmapLinearFilter, N as NearestMipmapLinearFilter, j as LinearMipmapNearestFilter, k as NearestMipmapNearestFilter, l as LinearFilter, m as NearestFilter, n as RepeatWrapping, o as MirroredRepeatWrapping, p as ClampToEdgeWrapping, q as PointsMaterial, r as Material, s as LineBasicMaterial, t as MeshStandardMaterial, u as DoubleSide, v as MeshBasicMaterial, w as PropertyBinding, x as BufferGeometry, y as SkinnedMesh, z as Mesh, A as LineSegments, E as Line$1, H as LineLoop, J as Points, K as PerspectiveCamera, U as MathUtils, W as OrthographicCamera, X as Skeleton, Y as InterpolateDiscrete, Z as InterpolateLinear, _ as AnimationClip, $ as Bone, a0 as InterleavedBufferAttribute, a1 as Texture, a2 as VectorKeyframeTrack, a3 as QuaternionKeyframeTrack, a4 as NumberKeyframeTrack, a5 as FrontSide, a6 as Interpolant, a7 as Box3, a8 as Sphere, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as WireframeGeometry, ad as ShaderMaterial, ae as UniformsUtils, af as UniformsLib, ag as Vector4, ah as Line3, ai as SphereGeometry, aj as _extends, ak as Plane, al as Triangle, am as BackSide, an as Ray$1, ao as jsxRuntimeExports, ap as Matrix3, aq as CoordinationType, ar as Data3DTexture, as as RedFormat, at as FloatType, au as getImageSize, av as Scene } from "./index-nXSTX-n5.js";
2
2
  import * as React from "react";
3
3
  import { useRef, useEffect, useState, forwardRef } from "react";
4
- import { u as useThree, a as useFrame, c as create, e as extend, b as createPortal, O as OrbitControls, C as Canvas } from "./OrbitControls-DjHg7LmD.js";
4
+ import { u as useThree, a as useFrame, c as create, e as extend, b as createPortal, O as OrbitControls, C as Canvas } from "./OrbitControls-0nDAbB3P.js";
5
5
  const isPromise = (promise) => typeof promise === "object" && typeof promise.then === "function";
6
6
  const globalCache = [];
7
7
  function shallowEqualArrays(arrA, arrB, equal = (a, b) => a === b) {
@@ -5027,7 +5027,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
5027
5027
  const {
5028
5028
  Text: TextMeshImpl,
5029
5029
  preloadFont
5030
- } = suspend(async () => import("./troika-three-text.esm-Wh8GRZYy.js"), []);
5030
+ } = suspend(async () => import("./troika-three-text.esm-JQci2rpD.js"), []);
5031
5031
  const invalidate = useThree(({
5032
5032
  invalidate: invalidate2
5033
5033
  }) => invalidate2);
@@ -1,6 +1,6 @@
1
- import { aw as log, ax as isEqual, ay as atLeastLogLevel, ar as Data3DTexture, as as RedFormat, az as UnsignedByteType, l as LinearFilter, aA as RedIntegerFormat, aB as UnsignedIntType, m as NearestFilter, aC as LogLevel, e as Vector3, V as Vector2, ag as Vector4, ae as UniformsUtils, aq as CoordinationType, aD as WebGLMultipleRenderTargets, aE as RGBAFormat, av as Scene, W as OrthographicCamera, ad as ShaderMaterial, z as Mesh, aF as PlaneGeometry, aG as useEventCallback, ao as jsxRuntimeExports, aH as GLSL3, am as BackSide } from "./index-DjEMnpx3.js";
1
+ import { aw as log, ax as isEqual, ay as atLeastLogLevel, ar as Data3DTexture, as as RedFormat, az as UnsignedByteType, l as LinearFilter, aA as RedIntegerFormat, aB as UnsignedIntType, m as NearestFilter, aC as LogLevel, e as Vector3, V as Vector2, ag as Vector4, ae as UniformsUtils, aq as CoordinationType, aD as WebGLMultipleRenderTargets, aE as RGBAFormat, av as Scene, W as OrthographicCamera, ad as ShaderMaterial, z as Mesh, aF as PlaneGeometry, aG as useEventCallback, ao as jsxRuntimeExports, aH as GLSL3, am as BackSide } from "./index-nXSTX-n5.js";
2
2
  import { useRef, useState, useMemo, useEffect, Suspense } from "react";
3
- import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-DjHg7LmD.js";
3
+ import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-0nDAbB3P.js";
4
4
  const BRICK_SIZE = 32;
5
5
  const BRICK_CACHE_SIZE_X = 64;
6
6
  const BRICK_CACHE_SIZE_Y = 64;
@@ -210,6 +210,7 @@ const FileType$2 = {
210
210
  OBS_LABELS_MUDATA_ZARR: "obsLabels.mudata.zarr",
211
211
  FEATURE_LABELS_MUDATA_ZARR: "featureLabels.mudata.zarr",
212
212
  GENOMIC_PROFILES_ZARR: "genomic-profiles.zarr",
213
+ GENOMIC_PROFILES_ZARR_ZIP: "genomic-profiles.zarr.zip",
213
214
  NEIGHBORHOODS_JSON: "neighborhoods.json",
214
215
  // OME-TIFF
215
216
  IMAGE_OME_TIFF: "image.ome-tiff",
@@ -506,6 +507,7 @@ const ViewHelpMapping = {
506
507
  [FileType$2.OBS_LABELS_MOLECULES_JSON]: DataType$4.OBS_LABELS,
507
508
  // For old file types
508
509
  [FileType$2.GENOMIC_PROFILES_ZARR]: DataType$4.GENOMIC_PROFILES,
510
+ [FileType$2.GENOMIC_PROFILES_ZARR_ZIP]: DataType$4.GENOMIC_PROFILES,
509
511
  [FileType$2.NEIGHBORHOODS_JSON]: DataType$4.NEIGHBORHOODS
510
512
  });
511
513
  const DATA_TYPE_COORDINATION_VALUE_USAGE = {
@@ -670,6 +672,10 @@ const ALT_ZARR_STORE_TYPES = {
670
672
  },
671
673
  [FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
672
674
  zip: FileType$2.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
675
+ },
676
+ // For genomic profiles:
677
+ [FileType$2.GENOMIC_PROFILES_ZARR]: {
678
+ zip: FileType$2.GENOMIC_PROFILES_ZARR_ZIP
673
679
  }
674
680
  };
675
681
  const AUTO_INDEPENDENT_COORDINATION_TYPES = [
@@ -1383,7 +1389,7 @@ const COMPONENT_COORDINATION_TYPES = {
1383
1389
  CoordinationType$2.HIERARCHY_LEVELS
1384
1390
  ]
1385
1391
  };
1386
- const version$6 = "3.9.8";
1392
+ const version$6 = "3.9.10";
1387
1393
  const META_VERSION = {
1388
1394
  version: version$6
1389
1395
  };
@@ -7320,7 +7326,9 @@ const fileTypeToExtensions = {
7320
7326
  // TODO: how to handle h5ad-based AnnData (since needs reference JSON file).
7321
7327
  // Perhaps just assume one H5AD+one JSON (or .ref.json) file correspond to each other?
7322
7328
  [FileType$2.SPATIALDATA_ZARR]: [".sd.zarr", ".sdata.zarr", ".spatialdata.zarr"],
7323
- [FileType$2.SPATIALDATA_ZARR_ZIP]: [".sd.zarr.zip", ".sdata.zarr.zip", ".spatialdata.zarr.zip"]
7329
+ [FileType$2.SPATIALDATA_ZARR_ZIP]: [".sd.zarr.zip", ".sdata.zarr.zip", ".spatialdata.zarr.zip"],
7330
+ [FileType$2.GENOMIC_PROFILES_ZARR]: [".multivec.zarr"],
7331
+ [FileType$2.GENOMIC_PROFILES_ZARR_ZIP]: [".multivec.zarr.zip"]
7324
7332
  };
7325
7333
  const fileTypeToClass = {
7326
7334
  // OME-TIFF
@@ -7346,7 +7354,9 @@ const ZARR_FILETYPES = [
7346
7354
  FileType$2.IMAGE_OME_ZARR,
7347
7355
  FileType$2.IMAGE_OME_ZARR_ZIP,
7348
7356
  FileType$2.OBS_SEGMENTATIONS_OME_ZARR,
7349
- FileType$2.OBS_SEGMENTATIONS_OME_ZARR_ZIP
7357
+ FileType$2.OBS_SEGMENTATIONS_OME_ZARR_ZIP,
7358
+ FileType$2.GENOMIC_PROFILES_ZARR,
7359
+ FileType$2.GENOMIC_PROFILES_ZARR_ZIP
7350
7360
  ];
7351
7361
  function urlToFileType(url) {
7352
7362
  const match2 = Object.entries(fileTypeToExtensions).find(
@@ -230369,22 +230379,22 @@ async function getDecoder(fileDirectory) {
230369
230379
  const Decoder = await importFn();
230370
230380
  return new Decoder(fileDirectory);
230371
230381
  }
230372
- addDecoder([void 0, 1], () => import("./raw-DMpwMWTL.js").then((m2) => m2.default));
230373
- addDecoder(5, () => import("./lzw-BtBv3TjK.js").then((m2) => m2.default));
230382
+ addDecoder([void 0, 1], () => import("./raw-CzxxAUSD.js").then((m2) => m2.default));
230383
+ addDecoder(5, () => import("./lzw-QhEUmptB.js").then((m2) => m2.default));
230374
230384
  addDecoder(6, () => {
230375
230385
  throw new Error("old style JPEG compression is not supported.");
230376
230386
  });
230377
- addDecoder(7, () => import("./jpeg-B63iC4Df.js").then((m2) => m2.default));
230378
- addDecoder([8, 32946], () => import("./deflate-BO8U0f-B.js").then((m2) => m2.default));
230379
- addDecoder(32773, () => import("./packbits-DIdOwI-e.js").then((m2) => m2.default));
230387
+ addDecoder(7, () => import("./jpeg-BEwVpnJJ.js").then((m2) => m2.default));
230388
+ addDecoder([8, 32946], () => import("./deflate-CBTIh8Aq.js").then((m2) => m2.default));
230389
+ addDecoder(32773, () => import("./packbits-CJC5Wtxo.js").then((m2) => m2.default));
230380
230390
  addDecoder(
230381
230391
  34887,
230382
- () => import("./lerc-Cq3zOE2J.js").then(async (m2) => {
230392
+ () => import("./lerc-C3nTc4XZ.js").then(async (m2) => {
230383
230393
  await m2.zstd.init();
230384
230394
  return m2;
230385
230395
  }).then((m2) => m2.default)
230386
230396
  );
230387
- addDecoder(50001, () => import("./webimage-DQvrB4B4.js").then((m2) => m2.default));
230397
+ addDecoder(50001, () => import("./webimage-Dv36xdns.js").then((m2) => m2.default));
230388
230398
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
230389
230399
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
230390
230400
  }
@@ -271801,12 +271811,12 @@ class ErrorBoundary2 extends React__default.Component {
271801
271811
  }
271802
271812
  }
271803
271813
  const LazySpatialThree = React__default.lazy(async () => {
271804
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-Iv8UkaIJ.js");
271814
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-BLanIfXY.js");
271805
271815
  return { default: SpatialWrapper2 };
271806
271816
  });
271807
271817
  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 }) }) }) }));
271808
271818
  const LazySpatialAccelerated = React__default.lazy(async () => {
271809
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-BmJxxT9m.js");
271819
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-DYZDskIj.js");
271810
271820
  return { default: SpatialWrapper2 };
271811
271821
  });
271812
271822
  const SpatialAcceleratedAdapter = 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(LazySpatialAccelerated, { ...props }) }) }) }));
@@ -281679,7 +281689,7 @@ function PointLayerController(props) {
281679
281689
  const [coloringTabIndex, setColoringTabIndex] = useState(0);
281680
281690
  const { featureIndex } = pointMatrixIndicesData || {};
281681
281691
  const hasSelectedFeatures = Array.isArray(featureSelection) && featureSelection.length > 0;
281682
- return jsxRuntimeExports.jsxs(Grid$1, { className: lcClasses.layerControllerGrid, children: [jsxRuntimeExports.jsxs(Paper, { elevation: 4, className: lcClasses.layerControllerRoot, children: [jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor: setColor2, palette, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { 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$1, { size: 1, children: jsxRuntimeExports.jsx(PointLayerEllipsisMenu, { featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible, featureFilterMode, setFeatureFilterMode }) }), jsxRuntimeExports.jsxs(Grid$1, { size: 1, container: true, direction: "row", children: [jsxRuntimeExports.jsx(SvgPoints, { className: classes2.layerTypePointIcon }), null] })] }), loadingDoneFraction < 1 ? jsxRuntimeExports.jsx(Grid$1, { size: 12, container: true, direction: "column", justifyContent: "space-between", className: classes2.pointFeatureControllerGrid, children: jsxRuntimeExports.jsx(LinearProgress, { variant: loadingDoneFraction === 0 ? "indeterminate" : "determinate", value: loadingDoneFraction * 100 }) }) : null, null] }), hasSelectedFeatures ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [featureSelection.map((featureName) => jsxRuntimeExports.jsx(LayerPerFeatureController, { theme, featureName, featureColor, setFeatureColor, spatialLayerColor, featureIndex, featureValueColormap, featureSelection, setFeatureSelection, obsColorEncoding, loadingDoneFraction, opacity: opacity2, handleOpacityChange }, featureName)), jsxRuntimeExports.jsx(Grid$1, { className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(Paper, { elevation: 2, className: lcClasses.layerControllerSubRow, children: jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: () => setFeatureFilterMode(featureFilterMode === "featureSelection" ? null : "featureSelection"), className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle visibility of unselected points", children: featureFilterMode === "featureSelection" ? jsxRuntimeExports.jsx(VisibilityOffIcon, {}) : jsxRuntimeExports.jsx(VisibilityIcon, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: getDefaultColor("dark"), setColor: null, isStaticColor: true, isColormap: false, visible: true }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: "Unselected" }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, sx: { paddingRight: "12px", overflow: "visible" }, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": "Adjust opacity for unselected layer" }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SvgPoints, { className: classes2.layerTypePointIcon }) })] }) }) })] }) : null] });
281692
+ return jsxRuntimeExports.jsxs(Grid$1, { className: lcClasses.layerControllerGrid, children: [jsxRuntimeExports.jsxs(Paper, { elevation: 4, className: lcClasses.layerControllerRoot, children: [jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: handleVisibleChange, className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: color2, setColor: setColor2, palette, isStaticColor, isColormap, featureValueColormap, visible }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, children: jsxRuntimeExports.jsx(Slider, { 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$1, { size: 1, children: jsxRuntimeExports.jsx(PointLayerEllipsisMenu, { featureSelection, obsColorEncoding, setObsColorEncoding, featureValueColormapRange, setFeatureValueColormapRange, tooltipsVisible, setTooltipsVisible, tooltipCrosshairsVisible, setTooltipCrosshairsVisible, legendVisible, setLegendVisible, featureFilterMode, setFeatureFilterMode }) }), jsxRuntimeExports.jsxs(Grid$1, { size: 1, container: true, direction: "row", children: [jsxRuntimeExports.jsx(SvgPoints, { className: classes2.layerTypePointIcon }), null] })] }), loadingDoneFraction < 1 ? jsxRuntimeExports.jsx(Grid$1, { size: 12, container: true, direction: "column", justifyContent: "space-between", className: classes2.pointFeatureControllerGrid, children: jsxRuntimeExports.jsx(LinearProgress, { variant: loadingDoneFraction === 0 ? "indeterminate" : "determinate", value: loadingDoneFraction * 100 }) }) : null, null] }), layerPerFeatureForPoints && hasSelectedFeatures ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [featureSelection.map((featureName) => jsxRuntimeExports.jsx(LayerPerFeatureController, { theme, featureName, featureColor, setFeatureColor, spatialLayerColor, featureIndex, featureValueColormap, featureSelection, setFeatureSelection, obsColorEncoding, loadingDoneFraction, opacity: opacity2, handleOpacityChange }, featureName)), jsxRuntimeExports.jsx(Grid$1, { className: lcClasses.layerControllerGrid, children: jsxRuntimeExports.jsx(Paper, { elevation: 2, className: lcClasses.layerControllerSubRow, children: jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(Button, { onClick: () => setFeatureFilterMode(featureFilterMode === "featureSelection" ? null : "featureSelection"), className: menuClasses.imageLayerVisibleButton, "aria-label": "Toggle visibility of unselected points", children: featureFilterMode === "featureSelection" ? jsxRuntimeExports.jsx(VisibilityOffIcon, {}) : jsxRuntimeExports.jsx(VisibilityIcon, {}) }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(ChannelColorPickerMenu, { theme, color: getDefaultColor("dark"), setColor: null, isStaticColor: true, isColormap: false, visible: true }) }), jsxRuntimeExports.jsx(Grid$1, { size: 6, children: jsxRuntimeExports.jsx(Typography, { className: menuClasses.imageLayerName, children: "Unselected" }) }), jsxRuntimeExports.jsx(Grid$1, { size: 2, sx: { paddingRight: "12px", overflow: "visible" }, children: jsxRuntimeExports.jsx(Slider, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": "Adjust opacity for unselected layer" }) }), jsxRuntimeExports.jsx(Grid$1, { size: 1, children: jsxRuntimeExports.jsx(SvgPoints, { className: classes2.layerTypePointIcon }) })] }) }) })] }) : null] });
281683
281693
  }
281684
281694
  const useStyles$d = makeStyles()(() => ({
281685
281695
  layerTypeSegmentationIcon: {
@@ -284284,7 +284294,7 @@ function HiglassGlobalStyles(props) {
284284
284294
  }
284285
284295
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
284286
284296
  const LazyHiGlassComponent = React__default.lazy(async () => {
284287
- const { HiGlassComponent } = await import("./higlass-OmKZOSSo.js");
284297
+ const { HiGlassComponent } = await import("./higlass-CyICoKCT.js");
284288
284298
  return { default: HiGlassComponent };
284289
284299
  });
284290
284300
  const HG_SIZE = 800;
@@ -287232,7 +287242,7 @@ function NeuroglancerGlobalStyles(props) {
287232
287242
  const { classes: classes2 } = props;
287233
287243
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
287234
287244
  }
287235
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-BeBHVTed.js"));
287245
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-B48-L-8L.js"));
287236
287246
  function createWorker() {
287237
287247
  const worker = new WorkerFactory$1();
287238
287248
  worker.AsyncComputationWorker = WorkerFactory;
@@ -373622,11 +373632,21 @@ class AnnDataSource extends ZarrDataSource {
373622
373632
  categoriesValues = await this.getFlatArrDecompressed(`${prefix2}/${categories}`);
373623
373633
  }
373624
373634
  } else if (encodingType === "categorical") {
373625
- const { dtype } = await open$1(storeRoot.resolve(`${path2}/categories`), { kind: "array" });
373626
- if (dtype === "v2:object" || dtype === "|O") {
373635
+ const categoriesZattrs = await this.getJson(`${path2}/categories/.zattrs`);
373636
+ const categoriesEncodingType = categoriesZattrs?.["encoding-type"];
373637
+ if (categoriesEncodingType === "nullable-string-array") {
373638
+ categoriesValues = await this.getFlatArrDecompressed(`${path2}/categories/values`);
373639
+ } else if (categoriesEncodingType === "string-array") {
373627
373640
  categoriesValues = await this.getFlatArrDecompressed(`${path2}/categories`);
373641
+ } else {
373642
+ const { dtype } = await open$1(storeRoot.resolve(`${path2}/categories`), { kind: "array" });
373643
+ if (dtype === "v2:object" || dtype === "|O") {
373644
+ categoriesValues = await this.getFlatArrDecompressed(`${path2}/categories`);
373645
+ }
373628
373646
  }
373629
373647
  codesPath = `${path2}/codes`;
373648
+ } else if (encodingType === "nullable-string-array") {
373649
+ return this.getFlatArrDecompressed(`${path2}/values`);
373630
373650
  } else if (encodingType === "string-array") {
373631
373651
  return this.getFlatArrDecompressed(path2);
373632
373652
  } else {
@@ -374790,16 +374810,25 @@ let FeatureStatsAnndataLoader$1 = class FeatureStatsAnndataLoader extends Abstra
374790
374810
  return this.dataSource.loadDataFrameIndex(dfPath);
374791
374811
  }
374792
374812
  async loadDataFrame(dfPath) {
374793
- const [featureId2, featureFoldChange, featureSignificance] = await Promise.all([
374794
- this.loadFeatureNames(dfPath),
374795
- this.loadFoldChanges(dfPath),
374796
- this.loadSignificances(dfPath)
374797
- ]);
374798
- return {
374799
- featureId: featureId2,
374800
- featureFoldChange,
374801
- featureSignificance
374802
- };
374813
+ try {
374814
+ const [featureId2, featureFoldChange, featureSignificance] = await Promise.all([
374815
+ this.loadFeatureNames(dfPath),
374816
+ this.loadFoldChanges(dfPath),
374817
+ this.loadSignificances(dfPath)
374818
+ ]);
374819
+ return {
374820
+ featureId: featureId2,
374821
+ featureFoldChange,
374822
+ featureSignificance
374823
+ };
374824
+ } catch (e3) {
374825
+ log$c.warn("Dataframe not found at", dfPath);
374826
+ return {
374827
+ featureId: [],
374828
+ featureFoldChange: [],
374829
+ featureSignificance: []
374830
+ };
374831
+ }
374803
374832
  }
374804
374833
  /**
374805
374834
  *
@@ -374826,7 +374855,7 @@ let FeatureStatsAnndataLoader$1 = class FeatureStatsAnndataLoader extends Abstra
374826
374855
  * @returns {Promise<LoaderResult<FeatureStatsData>>}
374827
374856
  */
374828
374857
  async loadMulti(volcanoOptions) {
374829
- const { analysisType: targetAnalysisType = "rank_genes_groups" } = this.options;
374858
+ const { analysisType: targetAnalysisType = "pydeseq2" } = this.options;
374830
374859
  const { sampleSetSelection, obsSetSelection } = volcanoOptions || {};
374831
374860
  const rawObsSetSelection = obsSetSelection;
374832
374861
  const rawSampleSetSelection = sampleSetSelection;
@@ -376021,7 +376050,7 @@ class SpatialDataObsPointsLoader extends AbstractTwoStepLoader {
376021
376050
  }
376022
376051
  let locations;
376023
376052
  const formatVersion = await this.dataSource.getPointsFormatVersion(path2);
376024
- if (formatVersion === "0.1") {
376053
+ if (formatVersion === "0.1" || formatVersion === "0.2") {
376025
376054
  locations = await this.dataSource.loadPoints(path2);
376026
376055
  } else {
376027
376056
  throw new UnknownSpatialDataFormatError("Only points format version 0.1 is supported.");
@@ -376040,7 +376069,7 @@ class SpatialDataObsPointsLoader extends AbstractTwoStepLoader {
376040
376069
  }
376041
376070
  let locationsFeatureIndex;
376042
376071
  const formatVersion = await this.dataSource.getPointsFormatVersion(path2);
376043
- if (formatVersion === "0.1") {
376072
+ if (formatVersion === "0.1" || formatVersion === "0.2") {
376044
376073
  locationsFeatureIndex = await this.dataSource.loadPointsFeatureIds(path2);
376045
376074
  } else {
376046
376075
  throw new UnknownSpatialDataFormatError("Only points format version 0.1 is supported.");
@@ -376052,7 +376081,7 @@ class SpatialDataObsPointsLoader extends AbstractTwoStepLoader {
376052
376081
  const { path: path2, featureIndexColumn, mortonCodeColumn } = this.options;
376053
376082
  let locations;
376054
376083
  const formatVersion = await this.dataSource.getPointsFormatVersion(path2);
376055
- if (formatVersion === "0.1") {
376084
+ if (formatVersion === "0.1" || formatVersion === "0.2") {
376056
376085
  locations = await this.dataSource.loadPointsInRect(path2, bounds2, signal, featureIndexColumn, mortonCodeColumn);
376057
376086
  } else {
376058
376087
  throw new UnknownSpatialDataFormatError("Only points format version 0.1 is supported.");
@@ -376084,10 +376113,8 @@ class SpatialDataObsPointsLoader extends AbstractTwoStepLoader {
376084
376113
  // and for the presence of morton_code_2d and feature_index columns.
376085
376114
  this.dataSource.supportsLoadPointsInRect(path2, featureIndexColumnName, mortonCodeColumn)
376086
376115
  ]);
376087
- const isSupportedVersion = formatVersion === "0.1";
376088
- const boundingBox = zattrs?.bounding_box;
376089
- const hasBoundingBox2D = typeof boundingBox?.x_max === "number" && typeof boundingBox?.x_min === "number" && typeof boundingBox?.y_max === "number" && typeof boundingBox?.y_min === "number";
376090
- return isSupportedVersion && hasBoundingBox2D && hasRequiredColumnsAndRowGroupSize;
376116
+ const isSupportedVersion = formatVersion === "0.1" || formatVersion === "0.2";
376117
+ return isSupportedVersion && hasRequiredColumnsAndRowGroupSize;
376091
376118
  }
376092
376119
  async load() {
376093
376120
  const [modelMatrix2, supportsTiling] = await Promise.all([
@@ -376125,7 +376152,7 @@ class SpatialDataObsPointsLoader extends AbstractTwoStepLoader {
376125
376152
  featureIds,
376126
376153
  obsPointsModelMatrix: modelMatrix2,
376127
376154
  // Return 'tiled' if the morton_code_2d column
376128
- // and bounding_box metadata are present,
376155
+ // is present,
376129
376156
  // and the row group size is small enough.
376130
376157
  // Otherwise, return 'full'.
376131
376158
  obsPointsTilingType: supportsTiling ? "tiled" : "full",
@@ -385634,6 +385661,7 @@ function sdataMortonQueryRectAux(boundingBox, origRect) {
385634
385661
  const mortonIntervals = zcoverRectangle(normRect[0][0], normRect[0][1], normRect[1][0], normRect[1][1], 16, null, true);
385635
385662
  return mortonIntervals;
385636
385663
  }
385664
+ const MORTON_CODE_EXTREME_VALUE_INDICATOR = 0;
385637
385665
  async function getParquetModule() {
385638
385666
  const module2 = await import(
385639
385667
  /* webpackIgnore: true */
@@ -385712,7 +385740,7 @@ async function _loadParquetSchemaBytes({ queryClient, store }, parquetPath, part
385712
385740
  if (!tailBytes || tailBytes.length < TAIL_LENGTH) {
385713
385741
  throw new Error(`Failed to load parquet footerLength for ${partZeroPath}`);
385714
385742
  }
385715
- const footerLength = new DataView(tailBytes.buffer).getInt32(0, true);
385743
+ const footerLength = new DataView(tailBytes.buffer, tailBytes.byteOffset, tailBytes.byteLength).getInt32(0, true);
385716
385744
  const magic = new TextDecoder().decode(tailBytes.slice(4, 8));
385717
385745
  if (magic !== "PAR1") {
385718
385746
  throw new Error("Invalid Parquet file: missing PAR1 magic number");
@@ -385759,22 +385787,22 @@ async function _loadParquetMetadataByPart({ queryClient, store }, parquetPath) {
385759
385787
  } catch (error2) {
385760
385788
  if (error2.message.includes("Failed to load parquet footerLength")) {
385761
385789
  numParts = partIndex;
385790
+ log$c.info(`Found ${numParts} parts for parquet path ${parquetPath}; An above "Failed to load parquet footerLength" error is expected for the subsequent part.`);
385762
385791
  }
385763
385792
  }
385764
385793
  } while (numParts === void 0);
385794
+ const numRows = allMetadata.map((part) => part.metadata.fileMetadata().numRows());
385795
+ const numRowGroups = allMetadata.map((part) => part.metadata.numRowGroups());
385796
+ const numRowsPerGroup = allMetadata.map((part) => part.metadata.rowGroup(0).numRows());
385765
385797
  const metadata2 = {
385766
- numRows: 0,
385767
- numRowGroups: 0,
385768
- numRowsPerGroup: 0,
385769
- schema: null
385770
- };
385771
- if (allMetadata.length > 0) {
385772
- const firstPart = allMetadata[0];
385773
- metadata2.numRows = allMetadata.reduce((sum2, part) => sum2 + part.metadata.fileMetadata().numRows(), 0);
385774
- metadata2.numRowGroups = allMetadata.reduce((sum2, part) => sum2 + part.metadata.numRowGroups(), 0);
385775
- metadata2.numRowsPerGroup = firstPart.metadata.rowGroup(0).numRows();
385776
- metadata2.schema = firstPart.schema.schema;
385777
- }
385798
+ totalNumRows: numRows.reduce((a2, b2) => a2 + b2, 0),
385799
+ totalNumRowGroups: numRowGroups.reduce((a2, b2) => a2 + b2, 0),
385800
+ // Array of count per part (length equal to numParts).
385801
+ numRowsByPart: numRows,
385802
+ numRowGroupsByPart: numRowGroups,
385803
+ numRowsPerGroupByPart: numRowsPerGroup,
385804
+ schema: allMetadata?.[0]?.schema?.schema
385805
+ };
385778
385806
  const result = {
385779
385807
  ...metadata2,
385780
385808
  // TODO: extract metadata per part and rowGroup into plain objects that match the hyparquet parquetMetadata() return value?
@@ -385798,8 +385826,8 @@ async function _loadParquetRowGroupByGroupIndex({ queryClient, store }, parquetP
385798
385826
  const store2 = ctx.meta?.store;
385799
385827
  const { readParquetRowGroup } = await _getParquetModule({ queryClient: queryClient2 });
385800
385828
  const allMetadata = await _loadParquetMetadataByPart({ queryClient: queryClient2, store: store2 }, parquetPath);
385801
- if (rowGroupIndex < 0 || rowGroupIndex >= allMetadata.numRowGroups) {
385802
- throw new Error(`Row group index ${rowGroupIndex} is out of bounds for parquet table with ${allMetadata.numRowGroups} row groups.`);
385829
+ if (rowGroupIndex < 0 || rowGroupIndex >= allMetadata.totalNumRowGroups) {
385830
+ throw new Error(`Row group index ${rowGroupIndex} is out of bounds for parquet table with ${allMetadata.totalNumRowGroups} row groups.`);
385803
385831
  }
385804
385832
  let partIndex;
385805
385833
  let cumulativeRowGroups = 0;
@@ -385909,9 +385937,9 @@ async function _bisectRowGroupsRight({ queryClient, store }, parquetPath, column
385909
385937
  );
385910
385938
  const store2 = ctx.meta?.store;
385911
385939
  const allMetadata = await _loadParquetMetadataByPart({ queryClient: queryClient2, store: store2 }, parquetPath);
385912
- const { numRowGroups } = allMetadata;
385940
+ const { totalNumRowGroups } = allMetadata;
385913
385941
  let lo = 0;
385914
- let hi = numRowGroups;
385942
+ let hi = totalNumRowGroups;
385915
385943
  while (lo < hi) {
385916
385944
  const cachedInRange = await getCachedInRange(queryClient2, parquetPath, columnName, lo, hi);
385917
385945
  const betterLo = cachedInRange.slice().reverse().find((c2) => c2.index > lo && targetValue >= c2.max);
@@ -386314,11 +386342,12 @@ class SpatialDataTableSource extends AnnDataSource {
386314
386342
  const { queryClient } = this;
386315
386343
  const { store } = this.storeRoot;
386316
386344
  const allMetadata = await _loadParquetMetadataByPart({ queryClient, store }, parquetPath);
386317
- const { numRowsPerGroup } = allMetadata;
386318
- const numRowsTotal = allMetadata.numRows;
386319
- if (numRowsPerGroup >= 1e5) {
386345
+ const { numRowsPerGroupByPart } = allMetadata;
386346
+ const numRowsTotal = allMetadata.totalNumRows;
386347
+ const maxNumRowsPerGroup = Math.max(...numRowsPerGroupByPart);
386348
+ if (maxNumRowsPerGroup >= 1e5) {
386320
386349
  if (numRowsTotal > 5e6) {
386321
- throw new Error(`The Parquet table at ${parquetPath} has ${numRowsTotal} total rows, which necessitates tiled loading, but it was not possible because the row group size is too large (${numRowsPerGroup}). See the Vitessce documentation at Data Troubleshooting -> Points for more details.`);
386350
+ throw new Error(`The Parquet table at ${parquetPath} has ${numRowsTotal} total rows, which necessitates tiled loading, but it was not possible because the row group size is too large (${maxNumRowsPerGroup}). See the Vitessce documentation at Data Troubleshooting -> Points for more details.`);
386322
386351
  }
386323
386352
  return false;
386324
386353
  }
@@ -386342,7 +386371,7 @@ class SpatialDataTableSource extends AnnDataSource {
386342
386371
  * @param {string[]|undefined} columns An optional list of column names to load.
386343
386372
  * @returns
386344
386373
  */
386345
- async loadParquetTableInRect(parquetPath, tileBbox, allPointsBbox, signal, featureIndexColumnName, mortonCodeColumn) {
386374
+ async loadParquetTableInRect(parquetPath, tileBbox, signal, featureIndexColumnName, mortonCodeColumn) {
386346
386375
  const { queryClient } = this;
386347
386376
  const { store } = this.storeRoot;
386348
386377
  const mortonCodeColumnName = mortonCodeColumn ?? "morton_code_2d";
@@ -386367,15 +386396,46 @@ class SpatialDataTableSource extends AnnDataSource {
386367
386396
  } else {
386368
386397
  tileBboxes = [tileBbox];
386369
386398
  }
386399
+ const firstRowGroupTable = await _loadParquetRowGroupByGroupIndex({ queryClient, store }, parquetPath, 0);
386400
+ const xColumnForBoundingBox = firstRowGroupTable.getChild("x");
386401
+ const yColumnForBoundingBox = firstRowGroupTable.getChild("y");
386402
+ const mortonCodeColumnForBoundingBox = firstRowGroupTable.getChild(mortonCodeColumnName);
386403
+ const boundingBoxMaxNumRows = Math.min(4, firstRowGroupTable.numRows);
386404
+ const firstMortonCodes = range$b(boundingBoxMaxNumRows).map((i2) => mortonCodeColumnForBoundingBox.get(i2));
386405
+ const boundingBoxNumRows = firstMortonCodes.filter((code2) => code2 === MORTON_CODE_EXTREME_VALUE_INDICATOR).length;
386406
+ const boundingBoxXValues = range$b(boundingBoxNumRows).map((i2) => xColumnForBoundingBox.get(i2));
386407
+ const boundingBoxYValues = range$b(boundingBoxNumRows).map((i2) => yColumnForBoundingBox.get(i2));
386408
+ const xMin = Math.min(...boundingBoxXValues);
386409
+ const xMax = Math.max(...boundingBoxXValues);
386410
+ const yMin = Math.min(...boundingBoxYValues);
386411
+ const yMax = Math.max(...boundingBoxYValues);
386412
+ const allPointsBbox = {
386413
+ x_min: xMin,
386414
+ x_max: xMax,
386415
+ y_min: yMin,
386416
+ y_max: yMax
386417
+ };
386370
386418
  const rowGroupIndicesPerTile = await Promise.all(tileBboxes.map(async (subTileBbox) => _rectToRowGroupIndices({ queryClient, store }, parquetPath, subTileBbox, allPointsBbox, mortonCodeColumnName)));
386371
386419
  const uniqueCoveredRowGroupIndices = Array.from(new Set(rowGroupIndicesPerTile.flat())).toSorted((a2, b2) => a2 - b2);
386372
386420
  const allMetadata = await _loadParquetMetadataByPart({ queryClient, store }, parquetPath);
386373
- const { numRowsPerGroup } = allMetadata;
386374
- const numRowGroups = uniqueCoveredRowGroupIndices.length;
386375
- const totalNumRows = numRowsPerGroup * numRowGroups;
386376
- const xArr = new Float32Array(totalNumRows);
386377
- const yArr = new Float32Array(totalNumRows);
386378
- const featureIndexArr = new Uint32Array(totalNumRows);
386421
+ const { numRowsPerGroupByPart, numRowGroupsByPart } = allMetadata;
386422
+ const rowGroupIToNumRows = (rowGroupI) => {
386423
+ let currPartIndex = 0;
386424
+ let prevTotalRowGroupCount = 0;
386425
+ for (let partIndex = 0; partIndex < numRowGroupsByPart.length; partIndex++) {
386426
+ const numRowGroupsInPart = numRowGroupsByPart[partIndex];
386427
+ if (prevTotalRowGroupCount <= rowGroupI && rowGroupI < prevTotalRowGroupCount + numRowGroupsInPart) {
386428
+ currPartIndex = partIndex;
386429
+ break;
386430
+ }
386431
+ prevTotalRowGroupCount += numRowGroupsInPart;
386432
+ }
386433
+ return numRowsPerGroupByPart[currPartIndex];
386434
+ };
386435
+ const totalNumRowsToLoad = uniqueCoveredRowGroupIndices.reduce((acc, rowGroupI) => acc + rowGroupIToNumRows(rowGroupI), 0);
386436
+ const xArr = new Float32Array(totalNumRowsToLoad);
386437
+ const yArr = new Float32Array(totalNumRowsToLoad);
386438
+ const featureIndexArr = new Uint32Array(totalNumRowsToLoad);
386379
386439
  const rowGroupTables = await Promise.all(uniqueCoveredRowGroupIndices.map(async (rowGroupIndex) => _loadParquetRowGroupByGroupIndex({ queryClient, store }, parquetPath, rowGroupIndex)));
386380
386440
  let rowOffset = 0;
386381
386441
  rowGroupTables.forEach((table2) => {
@@ -386388,7 +386448,7 @@ class SpatialDataTableSource extends AnnDataSource {
386388
386448
  xArr.set(xColumn.toArray(), rowOffset);
386389
386449
  yArr.set(yColumn.toArray(), rowOffset);
386390
386450
  featureIndexArr.set(featureIndexColumn.toArray(), rowOffset);
386391
- rowOffset += numRowsPerGroup;
386451
+ rowOffset += table2.numRows;
386392
386452
  });
386393
386453
  return {
386394
386454
  data: {
@@ -386396,7 +386456,7 @@ class SpatialDataTableSource extends AnnDataSource {
386396
386456
  y: yArr,
386397
386457
  featureIndices: featureIndexArr
386398
386458
  },
386399
- shape: [3, totalNumRows]
386459
+ shape: [3, totalNumRowsToLoad]
386400
386460
  };
386401
386461
  }
386402
386462
  }
@@ -392488,7 +392548,7 @@ class SpatialDataPointsSource extends SpatialDataTableSource {
392488
392548
  const zattrs = await this.loadSpatialDataElementAttrs(path2);
392489
392549
  const formatVersion = zattrs.spatialdata_attrs.version;
392490
392550
  const encodingType = zattrs["encoding-type"];
392491
- if (encodingType === "ngff:points" && !(formatVersion === "0.1")) {
392551
+ if (encodingType === "ngff:points" && !(formatVersion === "0.1" || formatVersion === "0.2")) {
392492
392552
  throw new Error(`Unexpected version for points spatialdata_attrs: ${formatVersion}`);
392493
392553
  }
392494
392554
  return formatVersion;
@@ -392591,16 +392651,11 @@ class SpatialDataPointsSource extends SpatialDataTableSource {
392591
392651
  const zattrs = await this.loadSpatialDataElementAttrs(elementPath);
392592
392652
  const {
392593
392653
  // axes,
392594
- spatialdata_attrs: spatialDataAttrs,
392595
- // The bounding box (extent) of all points.
392596
- // Required for un-normalization from uints back to floats.
392597
- // TODO: decide whether these will be stored here or somewhere else.
392598
- // Reference: https://github.com/vitessce/vitessce-python/pull/476#issuecomment-3362656956
392599
- bounding_box: allPointsBbox
392654
+ spatialdata_attrs: spatialDataAttrs
392600
392655
  } = zattrs;
392601
392656
  const { feature_key: featureKey } = spatialDataAttrs;
392602
392657
  const featureIndexColumnName = featureIndexColumnNameFromOptions ?? `${featureKey}_codes`;
392603
- return this.loadParquetTableInRect(parquetPath, tileBbox, allPointsBbox, signal, featureIndexColumnName, mortonCodeColumn);
392658
+ return this.loadParquetTableInRect(parquetPath, tileBbox, signal, featureIndexColumnName, mortonCodeColumn);
392604
392659
  }
392605
392660
  async supportsLoadPointsInRect(elementPath, featureIndexColumnName, mortonCodeColumn) {
392606
392661
  const parquetPath = getParquetPath(elementPath);
@@ -398160,7 +398215,8 @@ const baseFileTypes = [
398160
398215
  makeFileType(FileType$2.OBS_LOCATIONS_MOLECULES_JSON, DataType$4.OBS_LOCATIONS, MoleculesJsonAsObsLocationsLoader, JsonSource, z.null()),
398161
398216
  makeFileType(FileType$2.OBS_LABELS_MOLECULES_JSON, DataType$4.OBS_LABELS, MoleculesJsonAsObsLabelsLoader, JsonSource, z.null()),
398162
398217
  makeFileType(FileType$2.NEIGHBORHOODS_JSON, DataType$4.NEIGHBORHOODS, JsonLoader, JsonSource, z.null()),
398163
- makeFileType(FileType$2.GENOMIC_PROFILES_ZARR, DataType$4.GENOMIC_PROFILES, GenomicProfilesZarrLoader, ZarrDataSource, z.null())
398218
+ makeFileType(FileType$2.GENOMIC_PROFILES_ZARR, DataType$4.GENOMIC_PROFILES, GenomicProfilesZarrLoader, ZarrDataSource, z.null()),
398219
+ makeFileType(FileType$2.GENOMIC_PROFILES_ZARR_ZIP, DataType$4.GENOMIC_PROFILES, GenomicProfilesZarrLoader, ZarrDataSource, z.null())
398164
398220
  ];
398165
398221
  const baseJointFileTypes = [
398166
398222
  new PluginJointFileType(FileType$2.ANNDATA_ZARR, expandAnndataZarr, anndataZarrSchema),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c0, bX, bV, bW, c4, c5, bY, cg, ce, cc, cf, cd, bU, cb, bZ, bT, bS, c2, c8, c1, c3, c7, c6, b$, c9, ca, cl, co, ci, cp, cq, cj, cm, cn, ck, b_, ch } from "./index-DjEMnpx3.js";
1
+ import { c0, bX, bV, bW, c4, c5, bY, cg, ce, cc, cf, cd, bU, cb, bZ, bT, bS, c2, c8, c1, c3, c7, c6, b$, c9, ca, cl, co, ci, cp, cq, cj, cm, cn, ck, b_, ch } from "./index-nXSTX-n5.js";
2
2
  import "react";
3
3
  export {
4
4
  c0 as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { aZ as BaseDecoder } from "./index-DjEMnpx3.js";
1
+ import { aZ as BaseDecoder } from "./index-nXSTX-n5.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 { aI as getDefaultExportFromCjs, aZ as BaseDecoder, a_ as LercParameters, a$ as LercAddCompression } from "./index-DjEMnpx3.js";
2
+ import { aI as getDefaultExportFromCjs, aZ as BaseDecoder, a_ as LercParameters, a$ as LercAddCompression } from "./index-nXSTX-n5.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { aZ as BaseDecoder } from "./index-DjEMnpx3.js";
1
+ import { aZ as BaseDecoder } from "./index-nXSTX-n5.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 { aZ as BaseDecoder } from "./index-DjEMnpx3.js";
1
+ import { aZ as BaseDecoder } from "./index-nXSTX-n5.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { aZ as BaseDecoder } from "./index-DjEMnpx3.js";
1
+ import { aZ as BaseDecoder } from "./index-nXSTX-n5.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { bN as MeshDistanceMaterial, bO as MeshDepthMaterial, bP as RGBADepthPacking, ae as UniformsUtils, bQ as ShaderChunk, a9 as InstancedBufferGeometry, a8 as Sphere, a7 as Box3, am as BackSide, u as DoubleSide, z as Mesh, a5 as FrontSide, v as MeshBasicMaterial, C as Color, e as Vector3, M as Matrix4, V as Vector2, ap as Matrix3, ag as Vector4, a1 as Texture, l as LinearFilter, aF as PlaneGeometry, x as BufferGeometry, aa as Float32BufferAttribute, bR as InstancedBufferAttribute } from "./index-DjEMnpx3.js";
1
+ import { bN as MeshDistanceMaterial, bO as MeshDepthMaterial, bP as RGBADepthPacking, ae as UniformsUtils, bQ as ShaderChunk, a9 as InstancedBufferGeometry, a8 as Sphere, a7 as Box3, am as BackSide, u as DoubleSide, z as Mesh, a5 as FrontSide, v as MeshBasicMaterial, C as Color, e as Vector3, M as Matrix4, V as Vector2, ap as Matrix3, ag as Vector4, a1 as Texture, l as LinearFilter, aF as PlaneGeometry, x as BufferGeometry, aa as Float32BufferAttribute, bR as InstancedBufferAttribute } from "./index-nXSTX-n5.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 { aZ as BaseDecoder } from "./index-DjEMnpx3.js";
1
+ import { aZ as BaseDecoder } from "./index-nXSTX-n5.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.9.8",
3
+ "version": "3.9.10",
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.9.8",
20
- "@vitessce/config": "3.9.8",
21
- "@vitessce/constants": "3.9.8",
22
- "@vitessce/export-utils": "3.9.8"
19
+ "@vitessce/constants": "3.9.10",
20
+ "@vitessce/all": "3.9.10",
21
+ "@vitessce/export-utils": "3.9.10",
22
+ "@vitessce/config": "3.9.10"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",