@vitessce/all 3.5.0 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { aP as BaseDecoder } from "./index-509a394d.js";
2
+ import { aP as BaseDecoder } from "./index-c30aae4a.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,6 +1,6 @@
1
1
  import React__default, { createElement, isValidElement, PureComponent, Component } from "react";
2
2
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
3
- import { aS as commonjsGlobal$1, aT as objectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-509a394d.js";
3
+ import { aS as commonjsGlobal$1, aT as objectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-c30aae4a.js";
4
4
  import "@vitessce/vit-s";
5
5
  var promise = {};
6
6
  (function(exports2) {
@@ -172651,16 +172651,16 @@ async function getDecoder(fileDirectory) {
172651
172651
  const Decoder = await importFn();
172652
172652
  return new Decoder(fileDirectory);
172653
172653
  }
172654
- addDecoder([void 0, 1], () => import("./raw-9c07a573.js").then((m2) => m2.default));
172655
- addDecoder(5, () => import("./lzw-098e43e6.js").then((m2) => m2.default));
172654
+ addDecoder([void 0, 1], () => import("./raw-6ff50230.js").then((m2) => m2.default));
172655
+ addDecoder(5, () => import("./lzw-c0a4890e.js").then((m2) => m2.default));
172656
172656
  addDecoder(6, () => {
172657
172657
  throw new Error("old style JPEG compression is not supported.");
172658
172658
  });
172659
- addDecoder(7, () => import("./jpeg-924502fe.js").then((m2) => m2.default));
172660
- addDecoder([8, 32946], () => import("./deflate-48ab44f6.js").then((m2) => m2.default));
172661
- addDecoder(32773, () => import("./packbits-eecc1015.js").then((m2) => m2.default));
172662
- addDecoder(34887, () => import("./lerc-1339f69d.js").then((m2) => m2.default));
172663
- addDecoder(50001, () => import("./webimage-ebd59020.js").then((m2) => m2.default));
172659
+ addDecoder(7, () => import("./jpeg-b2b6c7ce.js").then((m2) => m2.default));
172660
+ addDecoder([8, 32946], () => import("./deflate-c7c1c871.js").then((m2) => m2.default));
172661
+ addDecoder(32773, () => import("./packbits-ed55cab4.js").then((m2) => m2.default));
172662
+ addDecoder(34887, () => import("./lerc-2de15a45.js").then((m2) => m2.default));
172663
+ addDecoder(50001, () => import("./webimage-16c00be5.js").then((m2) => m2.default));
172664
172664
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
172665
172665
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
172666
172666
  }
@@ -192730,12 +192730,14 @@ function ChannelNamesLegend(props) {
192730
192730
  var _a3, _b3;
192731
192731
  const { spatialTargetC, spatialChannelVisible, spatialChannelColor } = channelCoordination[cScope];
192732
192732
  const rgbColor = colorArrayToString(spatialChannelColor);
192733
- const channelNames = (_b3 = (_a3 = images == null ? void 0 : images[layerScope]) == null ? void 0 : _a3.image) == null ? void 0 : _b3.instance.getChannelNames();
192734
- const channelName = channelNames == null ? void 0 : channelNames[spatialTargetC];
192733
+ const imageWrapperInstance = (_b3 = (_a3 = images == null ? void 0 : images[layerScope]) == null ? void 0 : _a3.image) == null ? void 0 : _b3.instance;
192734
+ const channelNames = imageWrapperInstance == null ? void 0 : imageWrapperInstance.getChannelNames();
192735
+ const channelIndex = imageWrapperInstance == null ? void 0 : imageWrapperInstance.getChannelIndex(spatialTargetC);
192736
+ const channelName = channelNames == null ? void 0 : channelNames[channelIndex];
192735
192737
  return spatialLayerVisible && spatialChannelVisible && spatialChannelLabelsVisible ? jsxRuntimeExports.jsx(Typography$1, { variant: "h6", className: classes.channelNameText, style: {
192736
192738
  color: rgbColor,
192737
192739
  fontSize: `${spatialChannelLabelSize}px`
192738
- }, children: channelName }, `${layerScope}-${cScope}-${spatialTargetC}-${rgbColor}`) : null;
192740
+ }, children: channelName }, `${layerScope}-${cScope}-${channelIndex}-${rgbColor}`) : null;
192739
192741
  }) }, layerScope) : null;
192740
192742
  }) : null });
192741
192743
  }
@@ -211789,6 +211791,7 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
211789
211791
  cellSelection,
211790
211792
  setCellHighlight,
211791
211793
  setComponentHover,
211794
+ setHoverInfo,
211792
211795
  getCellIsSelected = makeDefaultGetCellIsSelected(obsIndex.length === cellSelection.length ? null : cellSelection),
211793
211796
  cellColors,
211794
211797
  getCellColor = makeDefaultGetCellColors$1(cellColors, obsIndex, theme),
@@ -211806,6 +211809,12 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
211806
211809
  const r3 = radius2;
211807
211810
  return [[x2, y2 + r3], [x2 + r3, y2], [x2, y2 - r3], [x2 - r3, y2]];
211808
211811
  };
211812
+ const onHoverCallback = (info2) => {
211813
+ const standardOnHoverCallback = getOnHoverCallback(obsIndex, setCellHighlight, setComponentHover);
211814
+ const obsId = obsIndex[info2.index];
211815
+ setHoverInfo([obsId], [info2.x, info2.y]);
211816
+ standardOnHoverCallback(info2);
211817
+ };
211809
211818
  return new PolygonLayer({
211810
211819
  id: CELLS_LAYER_ID,
211811
211820
  data: this.obsSegmentationsData,
@@ -211840,7 +211849,7 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
211840
211849
  onCellClick(info2);
211841
211850
  }
211842
211851
  },
211843
- onHover: getOnHoverCallback(obsIndex, setCellHighlight, setComponentHover),
211852
+ onHover: onHoverCallback,
211844
211853
  visible,
211845
211854
  getLineWidth: stroked ? 1 : 0,
211846
211855
  lineWidthScale,
@@ -212353,7 +212362,7 @@ function SpatialTooltipSubscriber$1(props) {
212353
212362
  if (obsId) {
212354
212363
  [cellInfo, x2, y2] = [
212355
212364
  getObsInfo2(obsId),
212356
- ...viewInfo && viewInfo.project ? viewInfo.project(hoverCoord) : [null, null]
212365
+ ...hoverCoord
212357
212366
  ];
212358
212367
  }
212359
212368
  } else if (!useHoverInfoForTooltip && getObsInfo2 && obsHighlight) {
@@ -213171,11 +213180,14 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
213171
213180
  const visible = layerCoordination[CoordinationType$1.SPATIAL_LAYER_VISIBLE];
213172
213181
  const layerDefModelMatrix = (_d3 = (_c3 = image2 == null ? void 0 : image2.obsSegmentations) == null ? void 0 : _c3.instance) == null ? void 0 : _d3.getModelMatrix();
213173
213182
  let selections;
213174
- const nextLoaderSelection = channelScopes.map((cScope) => filterSelection(data2, {
213175
- z: targetZ,
213176
- t: targetT,
213177
- c: channelCoordination[cScope][CoordinationType$1.SPATIAL_TARGET_C]
213178
- }));
213183
+ const nextLoaderSelection = channelScopes.map((cScope) => {
213184
+ var _a4, _b4;
213185
+ return filterSelection(data2, {
213186
+ z: targetZ,
213187
+ t: targetT,
213188
+ c: (_b4 = (_a4 = image2 == null ? void 0 : image2.obsSegmentations) == null ? void 0 : _a4.instance) == null ? void 0 : _b4.getChannelIndex(channelCoordination[cScope][CoordinationType$1.SPATIAL_TARGET_C])
213189
+ });
213190
+ });
213179
213191
  const prevLoaderSelection = this.segmentationLayerLoaderSelections[layerScope];
213180
213192
  if (isEqual$5(prevLoaderSelection, nextLoaderSelection)) {
213181
213193
  selections = prevLoaderSelection;
@@ -213272,11 +213284,14 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
213272
213284
  z: targetZ,
213273
213285
  t: targetT,
213274
213286
  c: targetC
213275
- })) : channelScopes.map((cScope) => filterSelection(data2, {
213276
- z: targetZ,
213277
- t: targetT,
213278
- c: channelCoordination[cScope][CoordinationType$1.SPATIAL_TARGET_C]
213279
- }));
213287
+ })) : channelScopes.map((cScope) => {
213288
+ var _a4, _b4;
213289
+ return filterSelection(data2, {
213290
+ z: targetZ,
213291
+ t: targetT,
213292
+ c: (_b4 = (_a4 = image2 == null ? void 0 : image2.image) == null ? void 0 : _a4.instance) == null ? void 0 : _b4.getChannelIndex(channelCoordination[cScope][CoordinationType$1.SPATIAL_TARGET_C])
213293
+ });
213294
+ });
213280
213295
  const prevLoaderSelection = this.imageLayerLoaderSelections[layerScope];
213281
213296
  if (isEqual$5(prevLoaderSelection, nextLoaderSelection)) {
213282
213297
  selections = prevLoaderSelection;
@@ -214038,7 +214053,7 @@ class ErrorBoundary extends React__default.Component {
214038
214053
  }
214039
214054
  }
214040
214055
  const LazySpatialThree = React__default.lazy(async () => {
214041
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-2d447f13.js");
214056
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-eac4b203.js");
214042
214057
  return { default: SpatialWrapper2 };
214043
214058
  });
214044
214059
  const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
@@ -222826,7 +222841,8 @@ function ImageLayerController(props) {
222826
222841
  return jsxRuntimeExports.jsx(Grid$3, { item: true, className: controllerSectionClasses.layerControllerGrid, children: jsxRuntimeExports.jsxs(M$1, { className: controllerSectionClasses.layerControllerRoot, children: [jsxRuntimeExports.jsxs(Grid$3, { container: true, direction: "row", justifyContent: "space-between", children: [jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(Button$1, { className: menuClasses.imageLayerVisibleButton, onClick: handleVisibleChange, "aria-label": "Toggle layer visibility", children: jsxRuntimeExports.jsx(Visibility, {}) }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1 }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 6, children: jsxRuntimeExports.jsx(Typography$1, { className: menuClasses.imageLayerName, children: label2 }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 2, children: jsxRuntimeExports.jsx(Slider$1, { value: opacity2, min: 0, max: 1, step: 1e-3, onChange: handleOpacityChange, className: menuClasses.imageLayerOpacitySlider, orientation: "horizontal", "aria-label": `Adjust opacity for layer ${label2}` }) }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 1, children: jsxRuntimeExports.jsx(ImageLayerEllipsisMenu, { colormap, setColormap, photometricInterpretation, setPhotometricInterpretation, spatialTargetResolution, setSpatialTargetResolution, volumetricRenderingAlgorithm, setVolumetricRenderingAlgorithm, spatialLayerTransparentColor, setSpatialLayerTransparentColor, spatialRenderingMode, image: image2, channelScopes, tooltipsVisible, setTooltipsVisible, channelLabelsVisible, setChannelLabelsVisible, channelLabelsOrientation, setChannelLabelsOrientation, channelLabelSize, setChannelLabelSize }) }), jsxRuntimeExports.jsxs(Grid$3, { item: true, xs: 1, container: true, direction: "row", children: [jsxRuntimeExports.jsx(ImageIcon, { className: classes.layerTypeImageIcon }), isMultiChannel ? jsxRuntimeExports.jsx(Button$1, { onClick: handleOpenChange, className: classes.channelExpansionButton, "aria-label": "Expand or collapse channel controls", children: open2 ? jsxRuntimeExports.jsx(ExpandLess, {}) : jsxRuntimeExports.jsx(ExpandMoreIcon, {}) }) : null] })] }), isMultiChannel && open2 ? jsxRuntimeExports.jsxs(Grid$3, { container: true, direction: "column", justifyContent: "space-between", className: classes.imageChannelControllerGrid, children: [channelScopes.map((cScope) => {
222827
222842
  const { spatialTargetC, spatialChannelVisible, spatialChannelOpacity, spatialChannelColor, spatialChannelWindow } = channelCoordination[cScope];
222828
222843
  const { setSpatialTargetC, setSpatialChannelVisible, setSpatialChannelOpacity, setSpatialChannelColor, setSpatialChannelWindow } = setChannelCoordination[cScope];
222829
- return jsxRuntimeExports.jsx(ImageChannelController, { theme, coordinationScopesRaw, layerScope, channelScope: cScope, targetT, targetZ, targetC: spatialTargetC, setTargetC: setSpatialTargetC, visible: spatialChannelVisible, setVisible: setSpatialChannelVisible, opacity: spatialChannelOpacity, setOpacity: setSpatialChannelOpacity, color: spatialChannelColor, setColor: setSpatialChannelColor, window: spatialChannelWindow, setWindow: setSpatialChannelWindow, colormapOn: colormap !== null, featureIndex, image: image2, spatialRenderingMode }, cScope);
222844
+ const channelIndex = image2 == null ? void 0 : image2.getChannelIndex(spatialTargetC);
222845
+ return jsxRuntimeExports.jsx(ImageChannelController, { theme, coordinationScopesRaw, layerScope, channelScope: cScope, targetT, targetZ, targetC: channelIndex, setTargetC: setSpatialTargetC, visible: spatialChannelVisible, setVisible: setSpatialChannelVisible, opacity: spatialChannelOpacity, setOpacity: setSpatialChannelOpacity, color: spatialChannelColor, setColor: setSpatialChannelColor, window: spatialChannelWindow, setWindow: setSpatialChannelWindow, colormapOn: colormap !== null, featureIndex, image: image2, spatialRenderingMode }, cScope);
222830
222846
  }), jsxRuntimeExports.jsx(Button$1, { disabled: channelScopes.length === MAX_CHANNELS$1 || channelScopes.length === imageNumChannels, onClick: handleChannelAdd, fullWidth: true, variant: "outlined", className: classes.imageLayerButton, startIcon: jsxRuntimeExports.jsx(AddIcon, {}), size: "small", "aria-label": "Add a channel to this layer", children: "Add Channel" })] }) : null, is3dMode && image2 ? jsxRuntimeExports.jsxs(Grid$3, { container: true, direction: "column", justifyContent: "space-between", className: classes.imageChannelControllerGrid, children: [jsxRuntimeExports.jsx(Typography$1, { className: classes.clippingPanesLabel, children: "Clipping planes:" }), jsxRuntimeExports.jsx(Grid$3, { item: true, xs: 12, className: classes.clippingSliders, children: jsxRuntimeExports.jsx(ClippingSliders, { image: image2, spatialSliceX, spatialSliceY, spatialSliceZ, setSpatialSliceX, setSpatialSliceY, setSpatialSliceZ }) })] }) : null] }) });
222831
222847
  }
222832
222848
  const useStyles$5 = makeStyles((theme) => ({
@@ -224602,7 +224618,7 @@ const useStyles$3 = makeStyles((theme) => ({
224602
224618
  }));
224603
224619
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
224604
224620
  const LazyHiGlassComponent = React__default.lazy(async () => {
224605
- const { HiGlassComponent } = await import("./higlass-32619fd7.js");
224621
+ const { HiGlassComponent } = await import("./higlass-96872ddd.js");
224606
224622
  return { default: HiGlassComponent };
224607
224623
  });
224608
224624
  const HG_SIZE = 800;
@@ -299845,6 +299861,17 @@ class ImageWrapper {
299845
299861
  }
299846
299862
  return [];
299847
299863
  }
299864
+ getChannelIndex(channelSpecifier) {
299865
+ if (typeof channelSpecifier === "number") {
299866
+ return channelSpecifier;
299867
+ }
299868
+ const channelNames = this.getChannelNames();
299869
+ const channelIndex = channelNames.indexOf(channelSpecifier);
299870
+ if (channelIndex === -1) {
299871
+ console.error(`Channel ${channelSpecifier} not found in image.`);
299872
+ }
299873
+ return channelIndex;
299874
+ }
299848
299875
  // TODO: support passing a custom color palette array.
299849
299876
  getChannelObjects() {
299850
299877
  if ("image-label" in this.vivLoader.metadata) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, L as Layers, T as Texture, c as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, d as PCFShadowMap, e as VSMShadowMap, f as BufferGeometry, M as Material, h as Color, i as Clock, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, p as Ray$1, q as Plane, E as EventDispatcher, r as MOUSE, s as TOUCH, Q as Quaternion, t as Spherical, u as Loader, v as LoaderUtils, F as FileLoader, w as SpotLight, x as PointLight, D as DirectionalLight, y as MeshBasicMaterial, z as MeshPhysicalMaterial, I as InstancedMesh, H as Object3D, J as TextureLoader, K as ImageBitmapLoader, X as BufferAttribute, Y as InterleavedBuffer, Z as LinearFilter, $ as LinearMipmapLinearFilter, a0 as RepeatWrapping, a1 as PointsMaterial, a2 as LineBasicMaterial, a3 as MeshStandardMaterial, a4 as DoubleSide, a5 as PropertyBinding, a6 as SkinnedMesh, a7 as Mesh, a8 as LineSegments, a9 as Line$1, aa as LineLoop, ab as Points, ac as MathUtils, ad as Skeleton, ae as InterpolateLinear, af as AnimationClip, ag as Bone, ah as NearestFilter, ai as NearestMipmapNearestFilter, aj as LinearMipmapNearestFilter, ak as NearestMipmapLinearFilter, al as ClampToEdgeWrapping, am as MirroredRepeatWrapping, an as InterpolateDiscrete, ao as FrontSide, ap as InterleavedBufferAttribute, aq as VectorKeyframeTrack, ar as QuaternionKeyframeTrack, as as NumberKeyframeTrack, at as Box3, au as Sphere, av as Interpolant, 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-509a394d.js";
1
+ import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, L as Layers, T as Texture, c as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, d as PCFShadowMap, e as VSMShadowMap, f as BufferGeometry, M as Material, h as Color, i as Clock, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, p as Ray$1, q as Plane, E as EventDispatcher, r as MOUSE, s as TOUCH, Q as Quaternion, t as Spherical, u as Loader, v as LoaderUtils, F as FileLoader, w as SpotLight, x as PointLight, D as DirectionalLight, y as MeshBasicMaterial, z as MeshPhysicalMaterial, I as InstancedMesh, H as Object3D, J as TextureLoader, K as ImageBitmapLoader, X as BufferAttribute, Y as InterleavedBuffer, Z as LinearFilter, $ as LinearMipmapLinearFilter, a0 as RepeatWrapping, a1 as PointsMaterial, a2 as LineBasicMaterial, a3 as MeshStandardMaterial, a4 as DoubleSide, a5 as PropertyBinding, a6 as SkinnedMesh, a7 as Mesh, a8 as LineSegments, a9 as Line$1, aa as LineLoop, ab as Points, ac as MathUtils, ad as Skeleton, ae as InterpolateLinear, af as AnimationClip, ag as Bone, ah as NearestFilter, ai as NearestMipmapNearestFilter, aj as LinearMipmapNearestFilter, ak as NearestMipmapLinearFilter, al as ClampToEdgeWrapping, am as MirroredRepeatWrapping, an as InterpolateDiscrete, ao as FrontSide, ap as InterleavedBufferAttribute, aq as VectorKeyframeTrack, ar as QuaternionKeyframeTrack, as as NumberKeyframeTrack, at as Box3, au as Sphere, av as Interpolant, 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-c30aae4a.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useReducer, useRef, useDebugValue, useEffect, useLayoutEffect, useState, useMemo, forwardRef } from "react";
4
4
  import "@vitessce/vit-s";
@@ -23800,7 +23800,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23800
23800
  const {
23801
23801
  Text: TextMeshImpl,
23802
23802
  preloadFont
23803
- } = suspend(async () => import("./troika-three-text.esm-aadb7de3.js"), []);
23803
+ } = suspend(async () => import("./troika-three-text.esm-8c340833.js"), []);
23804
23804
  const invalidate2 = useThree(({
23805
23805
  invalidate: invalidate3
23806
23806
  }) => invalidate3);
@@ -28147,7 +28147,7 @@ function extractInformationFromProps(layerScope, layerCoordination, channelScope
28147
28147
  visible && true
28148
28148
  ] : channelScopes.map((cScope) => (
28149
28149
  // Layer visible AND channel visible
28150
- visible && channelCoordination[cScope][CoordinationType.SPATIAL_TARGET_C]
28150
+ visible && imageWrapperInstance.getChannelIndex(channelCoordination[cScope][CoordinationType.SPATIAL_TARGET_C])
28151
28151
  ));
28152
28152
  const autoTargetResolution = imageWrapperInstance.getAutoTargetResolution();
28153
28153
  const targetResolution = layerCoordination[CoordinationType.SPATIAL_TARGET_RESOLUTION];
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { b4, b2, b0, b3, b1, a$, b5 } from "./index-509a394d.js";
2
- import { useComplexCoordination, useComplexCoordinationSecondary, useCoordination, useCoordinationScopes, useCoordinationScopesBy, useGridItemSize, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondaryNonNull } from "@vitessce/vit-s";
1
+ import { b4, b2, b0, b3, b1, a$, b5 } from "./index-c30aae4a.js";
2
+ import { useComplexCoordination, useComplexCoordinationSecondary, useCoordination, useCoordinationScopes, useCoordinationScopesBy, useGridItemSize, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondaryNonNull, usePageModeView } from "@vitessce/vit-s";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  export {
@@ -17,5 +17,6 @@ export {
17
17
  useGridItemSize,
18
18
  useMultiCoordinationScopesNonNull,
19
19
  useMultiCoordinationScopesSecondaryNonNull,
20
+ usePageModeView,
20
21
  b5 as z
21
22
  };
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-509a394d.js";
1
+ import { aP as BaseDecoder } from "./index-c30aae4a.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-509a394d.js";
2
+ import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-c30aae4a.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-509a394d.js";
1
+ import { aP as BaseDecoder } from "./index-c30aae4a.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-509a394d.js";
1
+ import { aP as BaseDecoder } from "./index-c30aae4a.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-509a394d.js";
1
+ import { aP as BaseDecoder } from "./index-c30aae4a.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aB as UniformsUtils, aV as MeshDepthMaterial, aW as RGBADepthPacking, aX as MeshDistanceMaterial, aY as ShaderChunk, T as Texture, Z as LinearFilter, aw as InstancedBufferGeometry, au as Sphere, at as Box3, aH as BackSide, a4 as DoubleSide, aZ as InstancedBufferAttribute, V as Vector2, aD as Vector4, h as Color, aJ as Matrix3, a7 as Mesh, ao as FrontSide, a_ as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, y as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-509a394d.js";
1
+ import { aB as UniformsUtils, aV as MeshDepthMaterial, aW as RGBADepthPacking, aX as MeshDistanceMaterial, aY as ShaderChunk, T as Texture, Z as LinearFilter, aw as InstancedBufferGeometry, au as Sphere, at as Box3, aH as BackSide, a4 as DoubleSide, aZ as InstancedBufferAttribute, V as Vector2, aD as Vector4, h as Color, aJ as Matrix3, a7 as Mesh, ao as FrontSide, a_ as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, y as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-c30aae4a.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-509a394d.js";
1
+ import { aP as BaseDecoder } from "./index-c30aae4a.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,5 +1,5 @@
1
1
  export { Vitessce } from './Vitessce.js';
2
2
  export { PluginFileType, PluginViewType, PluginCoordinationType, PluginJointFileType, PluginAsyncFunction, } from '@vitessce/plugins';
3
3
  export { z } from '@vitessce/schemas';
4
- export { useCoordination, useGridItemSize, useComplexCoordination, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondaryNonNull, useComplexCoordinationSecondary, useCoordinationScopes, useCoordinationScopesBy, } from '@vitessce/vit-s';
4
+ export { useCoordination, useGridItemSize, usePageModeView, useComplexCoordination, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondaryNonNull, useComplexCoordinationSecondary, useCoordinationScopes, useCoordinationScopesBy, } from '@vitessce/vit-s';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EACL,eAAe,EACf,eAAe,EAIf,sBAAsB,EACtB,iCAAiC,EACjC,0CAA0C,EAC1C,+BAA+B,EAC/B,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,EAIf,sBAAsB,EACtB,iCAAiC,EACjC,0CAA0C,EAC1C,+BAA+B,EAC/B,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
package/dist-tsc/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Vitessce } from './Vitessce.js';
2
2
  export { PluginFileType, PluginViewType, PluginCoordinationType, PluginJointFileType, PluginAsyncFunction, } from '@vitessce/plugins';
3
3
  export { z } from '@vitessce/schemas';
4
- export { useCoordination, useGridItemSize,
4
+ export { useCoordination, useGridItemSize, usePageModeView,
5
5
  // TODO: names and function signatures are subject to change
6
6
  // for the following functions
7
7
  // Reference: https://github.com/keller-mark/use-coordination/issues/37#issuecomment-1946226827
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/all",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,30 +18,30 @@
18
18
  "dependencies": {
19
19
  "@material-ui/core": "~4.12.3",
20
20
  "zod": "^3.21.4",
21
- "@vitessce/constants-internal": "3.5.0",
22
- "@vitessce/csv": "3.5.0",
23
- "@vitessce/description": "3.5.0",
24
- "@vitessce/feature-list": "3.5.0",
25
- "@vitessce/genomic-profiles": "3.5.0",
26
- "@vitessce/heatmap": "3.5.0",
27
- "@vitessce/glb": "3.5.0",
28
- "@vitessce/json": "3.5.0",
29
- "@vitessce/layer-controller": "3.5.0",
30
- "@vitessce/layer-controller-beta": "3.5.0",
31
- "@vitessce/obs-sets-manager": "3.5.0",
32
- "@vitessce/ome-tiff": "3.5.0",
33
- "@vitessce/plugins": "3.5.0",
34
- "@vitessce/scatterplot-embedding": "3.5.0",
35
- "@vitessce/scatterplot-gating": "3.5.0",
36
- "@vitessce/schemas": "3.5.0",
37
- "@vitessce/spatial": "3.5.0",
38
- "@vitessce/spatial-beta": "3.5.0",
39
- "@vitessce/statistical-plots": "3.5.0",
40
- "@vitessce/status": "3.5.0",
41
- "@vitessce/vit-s": "3.5.0",
42
- "@vitessce/zarr": "3.5.0",
43
- "@vitessce/spatial-three": "3.5.0",
44
- "@vitessce/biomarker-select": "3.5.0"
21
+ "@vitessce/constants-internal": "3.5.2",
22
+ "@vitessce/csv": "3.5.2",
23
+ "@vitessce/description": "3.5.2",
24
+ "@vitessce/feature-list": "3.5.2",
25
+ "@vitessce/genomic-profiles": "3.5.2",
26
+ "@vitessce/heatmap": "3.5.2",
27
+ "@vitessce/glb": "3.5.2",
28
+ "@vitessce/json": "3.5.2",
29
+ "@vitessce/layer-controller": "3.5.2",
30
+ "@vitessce/layer-controller-beta": "3.5.2",
31
+ "@vitessce/obs-sets-manager": "3.5.2",
32
+ "@vitessce/ome-tiff": "3.5.2",
33
+ "@vitessce/plugins": "3.5.2",
34
+ "@vitessce/scatterplot-embedding": "3.5.2",
35
+ "@vitessce/scatterplot-gating": "3.5.2",
36
+ "@vitessce/schemas": "3.5.2",
37
+ "@vitessce/spatial": "3.5.2",
38
+ "@vitessce/spatial-beta": "3.5.2",
39
+ "@vitessce/statistical-plots": "3.5.2",
40
+ "@vitessce/status": "3.5.2",
41
+ "@vitessce/vit-s": "3.5.2",
42
+ "@vitessce/zarr": "3.5.2",
43
+ "@vitessce/spatial-three": "3.5.2",
44
+ "@vitessce/biomarker-select": "3.5.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/react": "^18.0.28",
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export { z } from '@vitessce/schemas';
10
10
  export {
11
11
  useCoordination,
12
12
  useGridItemSize,
13
+ usePageModeView,
13
14
  // TODO: names and function signatures are subject to change
14
15
  // for the following functions
15
16
  // Reference: https://github.com/keller-mark/use-coordination/issues/37#issuecomment-1946226827