@vitessce/dev 3.6.9 → 3.6.11

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-CliaAL-R.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-M1VivJi6.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-CliaAL-R.js";
2
+ import { aP as BaseDecoder } from "./index-M1VivJi6.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-CliaAL-R.js";
4
+ import { aS as commonjsGlobal$1, aT as requireObjectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-M1VivJi6.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-CliaAL-R.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-M1VivJi6.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-DMVFT1Fz.js"), []);
23640
+ } = suspend(async () => import("./troika-three-text.esm-CiBgI1UH.js"), []);
23641
23641
  const invalidate2 = useThree(({
23642
23642
  invalidate: invalidate3
23643
23643
  }) => invalidate3);
@@ -1324,7 +1324,7 @@ const COMPONENT_COORDINATION_TYPES = {
1324
1324
  CoordinationType$2.HIERARCHY_LEVELS
1325
1325
  ]
1326
1326
  };
1327
- const version$6 = "3.6.9";
1327
+ const version$6 = "3.6.11";
1328
1328
  const META_VERSION = {
1329
1329
  version: version$6
1330
1330
  };
@@ -87808,6 +87808,7 @@ const useTitleStyles = makeStyles()((theme) => ({
87808
87808
  flexDirection: "row",
87809
87809
  flexShrink: "0"
87810
87810
  },
87811
+ // Note: This class is specified as the draggable handle for the grid layout.
87811
87812
  titleLeft: {
87812
87813
  flexShrink: "1",
87813
87814
  textOverflow: "ellipsis",
@@ -87942,7 +87943,7 @@ function VitessceGrid(props) {
87942
87943
  setViewConfig(newConfig);
87943
87944
  setLoaders(newLoaders);
87944
87945
  }, [success, configKey]);
87945
- 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.title, margin, padding: padding$2, onRemoveComponent: removeComponent, onLayoutChange: changeLayoutPostMount, isBounded, onResize: onResize4, onResizeStop: onResize4, children: children3 }) : null] });
87946
+ 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] });
87946
87947
  }
87947
87948
  const useStyles$y = makeStyles()((theme) => ({
87948
87949
  warningLayout: {
@@ -223897,7 +223898,8 @@ const PIXELATED_TEXTURE_PARAMETERS = {
223897
223898
  const GLSL_COLORMAPS = [
223898
223899
  "plasma",
223899
223900
  "viridis",
223900
- "jet"
223901
+ "jet",
223902
+ "greys"
223901
223903
  ];
223902
223904
  const GLSL_COLORMAP_DEFAULT = "plasma";
223903
223905
  const COLORMAP_SHADER_PLACEHOLDER = "COLORMAP_FUNC";
@@ -225665,22 +225667,22 @@ async function getDecoder(fileDirectory) {
225665
225667
  const Decoder = await importFn();
225666
225668
  return new Decoder(fileDirectory);
225667
225669
  }
225668
- addDecoder([void 0, 1], () => import("./raw-D6O0d5sn.js").then((m2) => m2.default));
225669
- addDecoder(5, () => import("./lzw-BdUbOYEc.js").then((m2) => m2.default));
225670
+ addDecoder([void 0, 1], () => import("./raw-CpsDpwkc.js").then((m2) => m2.default));
225671
+ addDecoder(5, () => import("./lzw-BalQkUpy.js").then((m2) => m2.default));
225670
225672
  addDecoder(6, () => {
225671
225673
  throw new Error("old style JPEG compression is not supported.");
225672
225674
  });
225673
- addDecoder(7, () => import("./jpeg-DHDVkHGs.js").then((m2) => m2.default));
225674
- addDecoder([8, 32946], () => import("./deflate-DS-j5D8Y.js").then((m2) => m2.default));
225675
- addDecoder(32773, () => import("./packbits-CleRlgF_.js").then((m2) => m2.default));
225675
+ addDecoder(7, () => import("./jpeg-xtx0j4w1.js").then((m2) => m2.default));
225676
+ addDecoder([8, 32946], () => import("./deflate-N56CA029.js").then((m2) => m2.default));
225677
+ addDecoder(32773, () => import("./packbits-Ck8I4RLy.js").then((m2) => m2.default));
225676
225678
  addDecoder(
225677
225679
  34887,
225678
- () => import("./lerc-DheTJ9gK.js").then(async (m2) => {
225680
+ () => import("./lerc-Mos1_jYn.js").then(async (m2) => {
225679
225681
  await m2.zstd.init();
225680
225682
  return m2;
225681
225683
  }).then((m2) => m2.default)
225682
225684
  );
225683
- addDecoder(50001, () => import("./webimage-BvPL1W7W.js").then((m2) => m2.default));
225685
+ addDecoder(50001, () => import("./webimage-hhyC7JKo.js").then((m2) => m2.default));
225684
225686
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
225685
225687
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
225686
225688
  }
@@ -247549,6 +247551,9 @@ function Legend(props) {
247549
247551
  featureSelectionLabelRawStr = featureSelectionLabelRaw?.[0];
247550
247552
  } else if (featureAggregationStrategy === "last") {
247551
247553
  featureSelectionLabelRawStr = featureSelectionLabelRaw?.at(-1);
247554
+ } else if (typeof featureAggregationStrategy === "number") {
247555
+ const i2 = featureAggregationStrategy;
247556
+ featureSelectionLabelRawStr = featureSelectionLabelRaw?.[i2];
247552
247557
  } else if (featureAggregationStrategy === "sum") {
247553
247558
  featureSelectionLabelRawStr = "Sum of features";
247554
247559
  } else if (featureAggregationStrategy === "mean") {
@@ -247956,7 +247961,7 @@ function EmbeddingScatterplotSubscriber(props) {
247956
247961
  return [1, 10, 100];
247957
247962
  }, [contourPercentiles, sortedWeights]);
247958
247963
  const circleInfo = useMemo$1(() => {
247959
- if (!originalViewState || !width2 || !height2) {
247964
+ if (!originalViewState || !width2 || !height2 || !xRange || !yRange) {
247960
247965
  return null;
247961
247966
  }
247962
247967
  const center2 = [
@@ -247967,7 +247972,8 @@ function EmbeddingScatterplotSubscriber(props) {
247967
247972
  if (!(typeof scaleFactor === "number" && typeof center2[0] === "number" && typeof center2[1] === "number") || Number.isNaN(scaleFactor)) {
247968
247973
  return null;
247969
247974
  }
247970
- const radius2 = Math.min(width2, height2) / 2 / scaleFactor;
247975
+ const size2 = Math.max(xRange, yRange);
247976
+ const radius2 = size2 * Math.sqrt(2) / 2 * 0.8;
247971
247977
  const numPoints = 96;
247972
247978
  const options = { steps: numPoints, units: "degrees" };
247973
247979
  const circlePolygon = circle$5(center2, radius2, options);
@@ -247977,7 +247983,7 @@ function EmbeddingScatterplotSubscriber(props) {
247977
247983
  polygon: circlePolygon,
247978
247984
  steps: numPoints
247979
247985
  };
247980
- }, [originalViewState, width2, height2]);
247986
+ }, [originalViewState, width2, height2, xRange, yRange]);
247981
247987
  const [alignedEmbeddingIndex, alignedEmbeddingData] = useMemo$1(() => {
247982
247988
  if (obsEmbedding?.data && obsEmbeddingIndex && matrixObsIndex) {
247983
247989
  const matrixIndexMap = new Map(matrixObsIndex.map((key2, i2) => [key2, i2]));
@@ -269092,7 +269098,7 @@ class ErrorBoundary2 extends React__default.Component {
269092
269098
  }
269093
269099
  }
269094
269100
  const LazySpatialThree = React__default.lazy(async () => {
269095
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-DWavuhNX.js");
269101
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-Bel-giod.js");
269096
269102
  return { default: SpatialWrapper2 };
269097
269103
  });
269098
269104
  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 }) }) }) }));
@@ -279624,7 +279630,7 @@ function HiglassGlobalStyles(props) {
279624
279630
  }
279625
279631
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
279626
279632
  const LazyHiGlassComponent = React__default.lazy(async () => {
279627
- const { HiGlassComponent } = await import("./higlass-DMUqLMyJ.js");
279633
+ const { HiGlassComponent } = await import("./higlass-DCDSoYfE.js");
279628
279634
  return { default: HiGlassComponent };
279629
279635
  });
279630
279636
  const HG_SIZE = 800;
@@ -282567,7 +282573,7 @@ function NeuroglancerGlobalStyles(props) {
282567
282573
  const { classes: classes2 } = props;
282568
282574
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
282569
282575
  }
282570
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-DEC2vD25.js"));
282576
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-CysvH9aU.js"));
282571
282577
  function createWorker() {
282572
282578
  return new WorkerFactory();
282573
282579
  }
@@ -336061,26 +336067,7 @@ function ExpressionHistogramSubscriber(props) {
336061
336067
  return jsxRuntimeExports.jsx(TitleInfo, { title: `Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`, closeButtonVisible, downloadButtonVisible, removeGridComponent, urls: urls2, theme, isReady, helpText, errors, children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes2.vegaContainer, children: jsxRuntimeExports.jsx(ExpressionHistogram, { geneSelection, obsType, featureType, featureValueType, onSelect, data: data2, theme, width: width2, height: height2 }) }) });
336062
336068
  }
336063
336069
  function DotPlot(props) {
336064
- const {
336065
- isStratified,
336066
- transpose: transpose2,
336067
- data: rawData,
336068
- theme,
336069
- width: width2,
336070
- height: height2,
336071
- marginRight,
336072
- marginBottom,
336073
- obsType,
336074
- sampleType,
336075
- keyLength = 36,
336076
- featureType,
336077
- featureValueType,
336078
- featureValueTransformName,
336079
- // TODO: re-enable featureValueColormap coordination
336080
- // featureValueColormap,
336081
- obsSetSelection,
336082
- obsSetColor
336083
- } = props;
336070
+ const { isStratified, transpose: transpose2, data: rawData, theme, width: width2, height: height2, marginRight, marginBottom, obsType, sampleType, keyLength = 36, featureType, featureValueType, featureValueTransformName, featureValueColormap, obsSetSelection, obsSetColor, onDotSelect } = props;
336084
336071
  const vegaContainerRef = useRef();
336085
336072
  const data2 = rawData.map((d) => ({
336086
336073
  ...d,
@@ -336117,6 +336104,26 @@ function DotPlot(props) {
336117
336104
  // Reference: https://vega.github.io/vega-lite/docs/mark.html
336118
336105
  opacity: 1
336119
336106
  },
336107
+ params: [
336108
+ {
336109
+ name: "dot_select",
336110
+ select: {
336111
+ type: "point",
336112
+ on: "click[event.shiftKey === false]",
336113
+ fields: ["feature"],
336114
+ empty: "none"
336115
+ }
336116
+ },
336117
+ {
336118
+ name: "shift_dot_select",
336119
+ select: {
336120
+ type: "point",
336121
+ on: "click[event.shiftKey]",
336122
+ fields: ["feature"],
336123
+ empty: "none"
336124
+ }
336125
+ }
336126
+ ],
336120
336127
  encoding: {
336121
336128
  [transpose2 ? "y" : "x"]: {
336122
336129
  field: "keyFeature",
@@ -336138,8 +336145,7 @@ function DotPlot(props) {
336138
336145
  type: "quantitative",
336139
336146
  title: meanTransform,
336140
336147
  scale: {
336141
- // scheme: featureValueColormap,
336142
- scheme: "greys"
336148
+ scheme: featureValueColormap
336143
336149
  },
336144
336150
  legend: {
336145
336151
  direction: "horizontal",
@@ -336181,6 +336187,14 @@ function DotPlot(props) {
336181
336187
  } : {}
336182
336188
  }
336183
336189
  };
336190
+ const handleSignal = (name2, value2) => {
336191
+ if (name2 === "dot_select") {
336192
+ onDotSelect(value2.feature);
336193
+ } else if (name2 === "shift_dot_select") {
336194
+ onDotSelect(value2.feature, true);
336195
+ }
336196
+ };
336197
+ const signalListeners = { dot_select: handleSignal, shift_dot_select: handleSignal };
336184
336198
  const getTooltipText = useCallback((item) => ({
336185
336199
  [`${capitalize$3(featureType)}`]: item.datum.feature,
336186
336200
  [`${capitalize$3(obsType)} Set`]: item.datum.group,
@@ -336205,7 +336219,7 @@ function DotPlot(props) {
336205
336219
  useEffect(() => {
336206
336220
  setVegaRenderIncrement((prev2) => prev2 + 1);
336207
336221
  }, [rawData]);
336208
- return jsxRuntimeExports.jsx("div", { ref: vegaContainerRef, children: jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, onNewView, getTooltipText, renderer: "svg" }) });
336222
+ return jsxRuntimeExports.jsx("div", { ref: vegaContainerRef, children: jsxRuntimeExports.jsx(VegaPlot, { data: data2, spec, onNewView, signalListeners, getTooltipText, renderer: "svg" }) });
336209
336223
  }
336210
336224
  function useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, posThreshold, featureLabelsMap) {
336211
336225
  const mergedCellSets = useMemo$1(() => mergeObsSets(cellSets, additionalCellSets), [cellSets, additionalCellSets]);
@@ -336260,7 +336274,24 @@ function DotPlotSubscriber(props) {
336260
336274
  const { coordinationScopes, removeGridComponent, theme, title: title2 = "Dot Plot", transpose: transpose2 = true, helpText = ViewHelpMapping.DOT_PLOT } = props;
336261
336275
  const { classes: classes2 } = useStyles$3();
336262
336276
  const loaders = useLoaders();
336263
- const [{ dataset, obsType, featureType, featureValueType, featureSelection: geneSelection, featureValueTransform, featureValueTransformCoefficient, featureValuePositivityThreshold: posThreshold, featureValueColormap, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, additionalObsSets: additionalCellSets, sampleType, sampleSetSelection }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setFeatureValuePositivityThreshold: setPosThreshold, setFeatureValueColormap }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DOT_PLOT], coordinationScopes);
336277
+ const [{
336278
+ dataset,
336279
+ obsType,
336280
+ featureType,
336281
+ featureValueType,
336282
+ featureSelection: geneSelection,
336283
+ featureValueTransform,
336284
+ featureValueTransformCoefficient,
336285
+ featureValuePositivityThreshold: posThreshold,
336286
+ featureValueColormap,
336287
+ obsSetSelection: cellSetSelection,
336288
+ obsSetColor: cellSetColor,
336289
+ additionalObsSets: additionalCellSets,
336290
+ sampleType,
336291
+ sampleSetSelection,
336292
+ // eslint-disable-next-line no-unused-vars
336293
+ featureAggregationStrategy
336294
+ }, { setFeatureValueTransform, setFeatureValueTransformCoefficient, setFeatureValuePositivityThreshold: setPosThreshold, setFeatureValueColormap, setFeatureAggregationStrategy }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$2.DOT_PLOT], coordinationScopes);
336264
336295
  const [width2, height2, containerRef] = useGridItemSize();
336265
336296
  const transformOptions = VALUE_TRANSFORM_OPTIONS;
336266
336297
  const isStratified = Array.isArray(sampleSetSelection) && sampleSetSelection.length > 1;
@@ -336301,7 +336332,13 @@ function DotPlotSubscriber(props) {
336301
336332
  ]);
336302
336333
  const [resultArr, meanExpressionMax] = useExpressionSummaries(sampleEdges, sampleSets, sampleSetSelection, expressionData, obsIndex, cellSets, additionalCellSets, geneSelection, cellSetSelection, cellSetColor, featureValueTransform, featureValueTransformCoefficient, posThreshold, featureLabelsMap);
336303
336334
  const selectedTransformName = transformOptions.find((o2) => o2.value === featureValueTransform)?.name;
336304
- return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, helpText, errors, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold: posThreshold, setFeatureValuePositivityThreshold: setPosThreshold, featureValueColormap, setFeatureValueColormap }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes2.vegaContainer, children: resultArr ? jsxRuntimeExports.jsx(DotPlot, { isStratified, transpose: transpose2, domainMax: meanExpressionMax, data: resultArr, theme, width: width2, height: height2, obsType, sampleType, featureType, featureValueType, featureValueTransformName: selectedTransformName, featureValueColormap, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }) : jsxRuntimeExports.jsxs("span", { children: ["Select at least one ", featureType, "."] }) }) });
336335
+ const onDotSelect = useCallback((featureName, isShiftDown = false) => {
336336
+ const featureI = geneSelection.indexOf(featureName?.[0]);
336337
+ if (featureI >= 0) {
336338
+ setFeatureAggregationStrategy(featureI);
336339
+ }
336340
+ }, [setFeatureAggregationStrategy, geneSelection]);
336341
+ return jsxRuntimeExports.jsx(TitleInfo, { title: title2, removeGridComponent, urls: urls2, theme, isReady, helpText, errors, options: jsxRuntimeExports.jsx(CellSetExpressionPlotOptions, { featureValueTransform, setFeatureValueTransform, featureValueTransformCoefficient, setFeatureValueTransformCoefficient, transformOptions, featureValuePositivityThreshold: posThreshold, setFeatureValuePositivityThreshold: setPosThreshold, featureValueColormap, setFeatureValueColormap }), children: jsxRuntimeExports.jsx("div", { ref: containerRef, className: classes2.vegaContainer, children: resultArr ? jsxRuntimeExports.jsx(DotPlot, { isStratified, transpose: transpose2, domainMax: meanExpressionMax, data: resultArr, theme, width: width2, height: height2, obsType, sampleType, featureType, featureValueType, featureValueTransformName: selectedTransformName, featureValueColormap, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, onDotSelect }) : jsxRuntimeExports.jsxs("span", { children: ["Select at least one ", featureType, "."] }) }) });
336305
336342
  }
336306
336343
  const scaleBand = scale$6("band");
336307
336344
  const OBS_KEY = "obsId";
@@ -340567,9 +340604,10 @@ class SpatialDataObsSpotsLoader extends AbstractTwoStepLoader {
340567
340604
  }
340568
340605
  const zattrs = await this.dataSource.loadSpatialDataElementAttrs(path2);
340569
340606
  const coordinateTransformationsFromFile = (zattrs?.coordinateTransformations || DEFAULT_COORDINATE_TRANSFORMATIONS$1).filter(({ input: { name: inputName }, output: { name: outputName } }) => inputName === "xy" && outputName === coordinateSystem);
340570
- const axes = zattrs?.axes || DEFAULT_AXES$1;
340607
+ const axes = zattrs?.axes ?? DEFAULT_AXES$1;
340608
+ const normAxes = normalizeAxes(axes);
340571
340609
  const normCoordinateTransformationsFromFile = normalizeCoordinateTransformations(coordinateTransformationsFromFile, null);
340572
- const transformMatrixFromFile = coordinateTransformationsToMatrix(normCoordinateTransformationsFromFile, axes);
340610
+ const transformMatrixFromFile = coordinateTransformationsToMatrix(normCoordinateTransformationsFromFile, normAxes);
340573
340611
  this.modelMatrix = transformMatrixFromFile;
340574
340612
  return this.modelMatrix;
340575
340613
  }
@@ -356379,7 +356417,11 @@ function toFloat32Array(input) {
356379
356417
  if (input instanceof Float64Array) {
356380
356418
  return new Float32Array(input);
356381
356419
  }
356382
- throw new TypeError("Input must be Float32Array, Float64Array, or BigInt64Array");
356420
+ if (input instanceof Array) {
356421
+ return new Float32Array(input);
356422
+ }
356423
+ log$c.warn("toFloat32Array expected Float32Array, Float64Array, BigInt64Array, or Array input");
356424
+ return new Float32Array(input);
356383
356425
  }
356384
356426
  class SpatialDataShapesSource extends SpatialDataTableSource {
356385
356427
  /**
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-CliaAL-R.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-M1VivJi6.js";
2
2
  import "react";
3
3
  export {
4
4
  bU as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-CliaAL-R.js";
1
+ import { aP as BaseDecoder } from "./index-M1VivJi6.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-CliaAL-R.js";
2
+ import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-M1VivJi6.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-CliaAL-R.js";
1
+ import { aP as BaseDecoder } from "./index-M1VivJi6.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-CliaAL-R.js";
1
+ import { aP as BaseDecoder } from "./index-M1VivJi6.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-CliaAL-R.js";
1
+ import { aP as BaseDecoder } from "./index-M1VivJi6.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-CliaAL-R.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-M1VivJi6.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-CliaAL-R.js";
1
+ import { aP as BaseDecoder } from "./index-M1VivJi6.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.9",
3
+ "version": "3.6.11",
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.9",
20
- "@vitessce/config": "3.6.9",
21
- "@vitessce/constants": "3.6.9",
22
- "@vitessce/export-utils": "3.6.9"
19
+ "@vitessce/all": "3.6.11",
20
+ "@vitessce/config": "3.6.11",
21
+ "@vitessce/constants": "3.6.11",
22
+ "@vitessce/export-utils": "3.6.11"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",