@vitessce/dev 3.4.2 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { aQ as BaseDecoder } from "./index-08d7fc77.js";
2
+ import { aQ as BaseDecoder } from "./index-d24c5a39.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
2
  import ReactDOM__default from "react-dom";
3
- import { aT as commonjsGlobal, aU as objectAssign, g as getDefaultExportFromCjs, aV as earcut, aW as getAugmentedNamespace } from "./index-08d7fc77.js";
3
+ import { aT as commonjsGlobal, aU as objectAssign, g as getDefaultExportFromCjs, aV as earcut, aW as getAugmentedNamespace } from "./index-d24c5a39.js";
4
4
  function _mergeNamespaces(n, m) {
5
5
  for (var i = 0; i < m.length; i++) {
6
6
  const e = m[i];
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Loader, r as LoaderUtils, F as FileLoader, s as SpotLight, t as PointLight, D as DirectionalLight, u as MeshBasicMaterial, v as MeshPhysicalMaterial, I as InstancedMesh, w as Object3D, x as TextureLoader, y as ImageBitmapLoader, z as BufferAttribute, E as InterleavedBuffer, H as LinearFilter, J as LinearMipmapLinearFilter, K as RepeatWrapping, Q as PointsMaterial, X as LineBasicMaterial, Y as MeshStandardMaterial, Z as DoubleSide, $ as PropertyBinding, a0 as SkinnedMesh, a1 as Mesh, a2 as LineSegments, a3 as Line$1, a4 as LineLoop, a5 as Points, a6 as MathUtils, a7 as Skeleton, a8 as InterpolateLinear, a9 as AnimationClip, aa as Bone, ab as Quaternion, ac as NearestFilter, ad as NearestMipmapNearestFilter, ae as LinearMipmapNearestFilter, af as NearestMipmapLinearFilter, ag as ClampToEdgeWrapping, ah as MirroredRepeatWrapping, ai as InterpolateDiscrete, aj as FrontSide, ak as InterleavedBufferAttribute, al as VectorKeyframeTrack, am as QuaternionKeyframeTrack, an as NumberKeyframeTrack, ao as Box3, ap as Sphere, aq as Interpolant, ar as SphereGeometry, as as Ray$1, at as Plane, au as EventDispatcher, av as MOUSE, aw as TOUCH, ax as Spherical, ay as InstancedBufferGeometry, az as Float32BufferAttribute, aA as InstancedInterleavedBuffer, aB as WireframeGeometry, aC as ShaderMaterial, aD as UniformsUtils, aE as UniformsLib, aF as Vector4, aG as Line3, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-08d7fc77.js";
1
+ import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, c as create, L as Layers, T as Texture, d as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, e as PCFShadowMap, f as VSMShadowMap, h as BufferGeometry, M as Material, i as Color, j as Clock, _ as _extends, k as THREE, G as Group, l as Matrix4, m as TrianglesDrawMode, n as TriangleFanDrawMode, o as TriangleStripDrawMode, p as REVISION, q as Loader, r as LoaderUtils, F as FileLoader, s as SpotLight, t as PointLight, D as DirectionalLight, u as MeshBasicMaterial, v as MeshPhysicalMaterial, I as InstancedMesh, w as Object3D, x as TextureLoader, y as ImageBitmapLoader, z as BufferAttribute, E as InterleavedBuffer, H as LinearFilter, J as LinearMipmapLinearFilter, K as RepeatWrapping, Q as PointsMaterial, X as LineBasicMaterial, Y as MeshStandardMaterial, Z as DoubleSide, $ as PropertyBinding, a0 as SkinnedMesh, a1 as Mesh, a2 as LineSegments, a3 as Line$1, a4 as LineLoop, a5 as Points, a6 as MathUtils, a7 as Skeleton, a8 as InterpolateLinear, a9 as AnimationClip, aa as Bone, ab as Quaternion, ac as NearestFilter, ad as NearestMipmapNearestFilter, ae as LinearMipmapNearestFilter, af as NearestMipmapLinearFilter, ag as ClampToEdgeWrapping, ah as MirroredRepeatWrapping, ai as InterpolateDiscrete, aj as FrontSide, ak as InterleavedBufferAttribute, al as VectorKeyframeTrack, am as QuaternionKeyframeTrack, an as NumberKeyframeTrack, ao as Box3, ap as Sphere, aq as Interpolant, ar as SphereGeometry, as as Ray$1, at as Plane, au as EventDispatcher, av as MOUSE, aw as TOUCH, ax as Spherical, ay as InstancedBufferGeometry, az as Float32BufferAttribute, aA as InstancedInterleavedBuffer, aB as WireframeGeometry, aC as ShaderMaterial, aD as UniformsUtils, aE as UniformsLib, aF as Vector4, aG as Line3, aH as Triangle, aI as BackSide, aJ as jsxRuntimeExports, aK as Matrix3, aL as CoordinationType, aM as Data3DTexture, aN as RedFormat, aO as FloatType, aP as getImageSize } from "./index-d24c5a39.js";
2
2
  import * as React from "react";
3
3
  import React__default, { useState, useRef, useEffect, useMemo, forwardRef } from "react";
4
4
  import "react-dom";
@@ -23693,7 +23693,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
23693
23693
  const {
23694
23694
  Text: TextMeshImpl,
23695
23695
  preloadFont
23696
- } = suspend(async () => import("./troika-three-text.esm-c6a782e5.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-48cf88ff.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
@@ -27274,7 +27274,7 @@ function MeasureLine(props) {
27274
27274
  })] });
27275
27275
  }
27276
27276
  function GeometryAndMesh(props) {
27277
- const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef, highlightGlom, setObsHighlight } = props;
27277
+ const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef, highlightEntity, setObsHighlight } = props;
27278
27278
  const model = useRef();
27279
27279
  const distanceRef = useRef();
27280
27280
  const rayGrabGroup = useRef();
@@ -27407,7 +27407,7 @@ function GeometryAndMesh(props) {
27407
27407
  2e-3 * renderingSettings.meshScale[2]
27408
27408
  ], ref: materialRef, children: [jsxRuntimeExports.jsx("boxGeometry", { args: renderingSettings.geometrySize }), jsxRuntimeExports.jsx("shaderMaterial", { customProgramCacheKey: () => "1", side: FrontSide, uniforms: renderingSettings.uniforms, needsUpdate: true, transparent: true, vertexShader: renderingSettings.shader.vertexShader, fragmentShader: renderingSettings.shader.fragmentShader })] }) }) : null] }), jsxRuntimeExports.jsx("group", { name: "currentLine", ref: distanceRef, children: showLine ? jsxRuntimeExports.jsx(MeasureLine, { currentLine, scale: 1 / 2e-3 * 0.4 }) : null }), jsxRuntimeExports.jsx("group", { name: "lines", children: lines.map((object) => jsxRuntimeExports.jsx(MeasureLine, { currentLine: object, scale: 1 / 2e-3 * 0.4 })) })] }) : jsxRuntimeExports.jsxs("group", { children: [jsxRuntimeExports.jsxs("group", { children: [segmentationGroup?.visible ? jsxRuntimeExports.jsxs("group", { children: [jsxRuntimeExports.jsx("hemisphereLight", { skyColor: 8421504, groundColor: 6316128 }), jsxRuntimeExports.jsx("directionalLight", { color: 16777215, position: [0, -800, 0] }), jsxRuntimeExports.jsx("directionalLight", { color: 16777215, position: [0, 800, 0] }), jsxRuntimeExports.jsx(Bvh, { firstHitOnly: true, children: jsxRuntimeExports.jsx("primitive", { ref: model, object: segmentationGroup, position: [0, 0, 0], onClick: (e) => {
27409
27409
  if (e.object.parent.userData.name === "finalPass") {
27410
- highlightGlom(e.object.name);
27410
+ highlightEntity(e.object.name, e.object.userData.layerScope, e.object.userData.channelScope);
27411
27411
  }
27412
27412
  }, onPointerOver: (e) => {
27413
27413
  setObsHighlight(e.object.name);
@@ -28353,7 +28353,7 @@ function SpatialThree(props) {
28353
28353
  obsSets: []
28354
28354
  });
28355
28355
  const { images, layerScope, channelsVisible, allChannels, channelTargetC, resolution, data, colors, contrastLimits, is3dMode, renderingMode, layerTransparency, xSlice, ySlice, zSlice } = useVolumeSettings(props, volumeSettings, setVolumeSettings, dataReady, setDataReady);
28356
- const { obsSegmentations, onGlomSelected, segmentationLayerCoordination, segmentationChannelCoordination, segmentationChannelScopesByLayer } = props;
28356
+ const { obsSegmentations, onEntitySelected, segmentationLayerCoordination, segmentationChannelCoordination, segmentationChannelScopesByLayer } = props;
28357
28357
  let setObsHighlightFct = () => {
28358
28358
  };
28359
28359
  const setsSave = [];
@@ -28368,7 +28368,7 @@ function SpatialThree(props) {
28368
28368
  sets.tree[0].children.forEach((child) => {
28369
28369
  if (child.name === selectedElement) {
28370
28370
  child.set.forEach(([obsId]) => {
28371
- const info = { name: "", id: "", color: [] };
28371
+ const info = { name: "", id: "", color: [255, 255, 255] };
28372
28372
  info.name = selectedElement;
28373
28373
  info.id = obsId;
28374
28374
  segmentationObsSetLayerProps.obsSetColor.forEach((color) => {
@@ -28406,6 +28406,7 @@ function SpatialThree(props) {
28406
28406
  }
28407
28407
  childElement.name = name;
28408
28408
  childElement.userData.name = name;
28409
+ childElement.userData.layerScope = layerScope;
28409
28410
  childElement.material.transparent = true;
28410
28411
  childElement.material.writeDepthTexture = true;
28411
28412
  childElement.material.depthTest = true;
@@ -28509,13 +28510,15 @@ function SpatialThree(props) {
28509
28510
  if (segmentationChannelScopesByLayer[layerScope].length > 1) {
28510
28511
  segmentationChannelScopesByLayer[layerScope].forEach((channelScope) => {
28511
28512
  const channelSet = segmentationChannelCoordination[0][layerScope][channelScope];
28512
- if (channelSet.obsType === id) {
28513
+ if (channelSet.spatialTargetC === id) {
28513
28514
  child.material.color.r = channelSet.spatialChannelColor[0] / 255;
28514
28515
  child.material.color.g = channelSet.spatialChannelColor[1] / 255;
28515
28516
  child.material.color.b = channelSet.spatialChannelColor[2] / 255;
28516
28517
  child.material.opacity = channelSet.spatialChannelOpacity;
28517
28518
  child.visible = channelSet.spatialChannelVisible;
28518
28519
  child.material.needsUpdate = true;
28520
+ child.userData.layerScope = layerScope;
28521
+ child.userData.channelScope = channelScope;
28519
28522
  segmentationGroup.children[firstGroupIndex].children[childIndex].material.needsUpdate = true;
28520
28523
  }
28521
28524
  });
@@ -28526,6 +28529,9 @@ function SpatialThree(props) {
28526
28529
  child.material.opacity = segmentationSettings.opacity;
28527
28530
  child.material.visible = segmentationSettings.visible;
28528
28531
  child.material.needsUpdate = true;
28532
+ child.userData.layerScope = layerScope;
28533
+ const firstChannelScope = Object.keys(segmentationChannelCoordination[0][layerScope])?.[0];
28534
+ child.userData.channelScope = firstChannelScope;
28529
28535
  }
28530
28536
  });
28531
28537
  }
@@ -28640,7 +28646,7 @@ function SpatialThree(props) {
28640
28646
  segmentationSceneScale,
28641
28647
  renderingSettings,
28642
28648
  materialRef,
28643
- highlightGlom: onGlomSelected,
28649
+ highlightEntity: onEntitySelected,
28644
28650
  setObsHighlight: setObsHighlightFct
28645
28651
  };
28646
28652
  return jsxRuntimeExports.jsxs("group", { children: [jsxRuntimeExports.jsx(Controllers, {}), jsxRuntimeExports.jsx(Hands, {}), jsxRuntimeExports.jsx(HandBbox, {}), jsxRuntimeExports.jsx(HandDecorate, {}), jsxRuntimeExports.jsx(GeometryAndMesh, { ...geometryAndMeshProps }), jsxRuntimeExports.jsx(OrbitControls2, { ref: orbitRef, enableDamping: false, dampingFactor: 0, zoomDampingFactor: 0, smoothZoom: false })] });
@@ -793,10 +793,10 @@ const COMPONENT_COORDINATION_TYPES = {
793
793
  ]
794
794
  };
795
795
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
796
- const version$6 = "3.4.2";
797
- const date$5 = "2024-05-08";
796
+ const version$6 = "3.4.3";
797
+ const date$5 = "2024-05-09";
798
798
  const branch = "changeset-release/main";
799
- const hash$1 = "4e32867e";
799
+ const hash$1 = "e2adfe2a";
800
800
  const META_VERSION = {
801
801
  note,
802
802
  version: version$6,
@@ -170708,16 +170708,16 @@ async function getDecoder(fileDirectory) {
170708
170708
  const Decoder = await importFn();
170709
170709
  return new Decoder(fileDirectory);
170710
170710
  }
170711
- addDecoder([void 0, 1], () => import("./raw-14eccf69.js").then((m2) => m2.default));
170712
- addDecoder(5, () => import("./lzw-7305c5e2.js").then((m2) => m2.default));
170711
+ addDecoder([void 0, 1], () => import("./raw-a024c64e.js").then((m2) => m2.default));
170712
+ addDecoder(5, () => import("./lzw-c1faa67a.js").then((m2) => m2.default));
170713
170713
  addDecoder(6, () => {
170714
170714
  throw new Error("old style JPEG compression is not supported.");
170715
170715
  });
170716
- addDecoder(7, () => import("./jpeg-0504cfb9.js").then((m2) => m2.default));
170717
- addDecoder([8, 32946], () => import("./deflate-960f46a9.js").then((m2) => m2.default));
170718
- addDecoder(32773, () => import("./packbits-e22c5aac.js").then((m2) => m2.default));
170719
- addDecoder(34887, () => import("./lerc-7a0e88f4.js").then((m2) => m2.default));
170720
- addDecoder(50001, () => import("./webimage-fb948229.js").then((m2) => m2.default));
170716
+ addDecoder(7, () => import("./jpeg-7e8555c4.js").then((m2) => m2.default));
170717
+ addDecoder([8, 32946], () => import("./deflate-f82281fb.js").then((m2) => m2.default));
170718
+ addDecoder(32773, () => import("./packbits-775fadfc.js").then((m2) => m2.default));
170719
+ addDecoder(34887, () => import("./lerc-706ce29b.js").then((m2) => m2.default));
170720
+ addDecoder(50001, () => import("./webimage-f24a254c.js").then((m2) => m2.default));
170721
170721
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
170722
170722
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
170723
170723
  }
@@ -192622,7 +192622,7 @@ function Legend(props) {
192622
192622
  g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", 0).attr("y", y2).text(levelZeroName).style("font-size", "9px").style("fill", foregroundColor);
192623
192623
  y2 += titleHeight;
192624
192624
  setPaths.forEach((setPath) => {
192625
- const setColor = obsSetColor.find((d) => isEqual$4(d.path, setPath)).color;
192625
+ const setColor = obsSetColor?.find((d) => isEqual$4(d.path, setPath))?.color || getDefaultColor(theme);
192626
192626
  g2.append("rect").attr("x", 0).attr("y", y2).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor[0]},${setColor[1]},${setColor[2]})`);
192627
192627
  g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y2).text(setPath.at(-1)).style("font-size", "9px").style("fill", foregroundColor);
192628
192628
  y2 += rectHeight + rectMarginY;
@@ -192657,7 +192657,8 @@ function Legend(props) {
192657
192657
  spatialChannelColor,
192658
192658
  obsSetColor,
192659
192659
  obsSetSelection,
192660
- isSetColor
192660
+ isSetColor,
192661
+ theme
192661
192662
  ]);
192662
192663
  return jsxRuntimeExports.jsx("div", { className: clsx(classes.legend, {
192663
192664
  [classes.legendRelative]: positionRelative,
@@ -213572,7 +213573,7 @@ class ErrorBoundary extends React__default.Component {
213572
213573
  }
213573
213574
  }
213574
213575
  const LazySpatialThree = React__default.lazy(async () => {
213575
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-b0c1bcbd.js");
213576
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-ba05bca6.js");
213576
213577
  return { default: SpatialWrapper2 };
213577
213578
  });
213578
213579
  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 }) }) }) }));
@@ -214015,26 +214016,18 @@ function SpatialSubscriber(props) {
214015
214016
  return false;
214016
214017
  }, []);
214017
214018
  const isSelectable = spotLayerScopes.length > 0 || pointLayerScopes.length > 0 || segmentationLayerScopes.flatMap((layerScope) => segmentationChannelScopesByLayer[layerScope].map((channelScope) => obsSegmentationsLocationsData?.[layerScope]?.[channelScope])).length > 0;
214018
- const onEntitySelected = useCallback((obsId) => {
214019
- const obsIdsToSelect = [obsId];
214020
- const layerScope = segmentationLayerScopes[0];
214021
- if (layerScope !== void 0 && segmentationChannelScopesByLayer[layerScope][0] !== void 0) {
214022
- const channelScope = segmentationChannelScopesByLayer[layerScope][0];
214023
- const { additionalObsSets: firstChannelAdditionalObsSets, obsSetColor: firstChannelObsSetColor } = segmentationChannelCoordination[0][layerScope][channelScope];
214024
- const { setObsSetColor: firstChannelSetObsSetColor, setAdditionalObsSets: firstChannelSetAdditionalObsSets, setObsColorEncoding: firstChannelSetObsColorEncoding, setObsSetSelection: firstChannelSetObsSetSelection } = segmentationChannelCoordination[1][layerScope][channelScope];
214025
- setObsSelection(obsIdsToSelect, firstChannelAdditionalObsSets, firstChannelObsSetColor, firstChannelSetObsSetSelection, firstChannelSetAdditionalObsSets, firstChannelSetObsSetColor, firstChannelSetObsColorEncoding);
214026
- } else {
214027
- setObsSelection(obsIdsToSelect, additionalObsSets, obsSetColor, setObsSetSelection, setAdditionalObsSets, setObsSetColor, setObsColorEncoding);
214019
+ const onEntitySelected = (obsId, layerScope, channelScope) => {
214020
+ if (layerScope && channelScope) {
214021
+ const channelCoordinationValues = segmentationChannelCoordination[0][layerScope][channelScope];
214022
+ const channelCoordinationSetters = segmentationChannelCoordination[1][layerScope][channelScope];
214023
+ if (channelCoordinationValues && channelCoordinationSetters) {
214024
+ const { additionalObsSets: channelAdditionalObsSets, obsSetColor: channelObsSetColor } = channelCoordinationValues;
214025
+ const { setObsSetColor: setChannelObsSetColor, setAdditionalObsSets: setChannelAdditionalObsSets, setObsColorEncoding: setChannelObsColorEncoding, setObsSetSelection: setChannelObsSetSelection } = channelCoordinationSetters;
214026
+ const obsIdsToSelect = [obsId];
214027
+ setObsSelection(obsIdsToSelect, channelAdditionalObsSets, channelObsSetColor, setChannelObsSetSelection, setChannelAdditionalObsSets, setChannelObsSetColor, setChannelObsColorEncoding);
214028
+ }
214028
214029
  }
214029
- }, [
214030
- additionalObsSets,
214031
- obsSetColor,
214032
- setObsSetSelection,
214033
- setAdditionalObsSets,
214034
- setObsSetColor,
214035
- setObsColorEncoding
214036
- // TODO: more dependencies?
214037
- ]);
214030
+ };
214038
214031
  return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, children: [shouldUseThree ? jsxRuntimeExports.jsx(SpatialThreeAdapter, {
214039
214032
  ref: threeRef,
214040
214033
  uuid,
@@ -214062,8 +214055,7 @@ function SpatialSubscriber(props) {
214062
214055
  spatialRenderingMode,
214063
214056
  updateViewInfo: setComponentViewInfo,
214064
214057
  delegateHover,
214065
- // TODO: do not make this glom-specific. need to generalize
214066
- onGlomSelected: onEntitySelected,
214058
+ onEntitySelected,
214067
214059
  // Points
214068
214060
  obsPoints: obsPointsData,
214069
214061
  pointLayerScopes,
@@ -221572,7 +221564,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
221572
221564
  const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
221573
221565
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
221574
221566
  const LazyHiGlassComponent = React__default.lazy(async () => {
221575
- const { HiGlassComponent } = await import("./hglib-05285a88.js").then((n3) => n3.h);
221567
+ const { HiGlassComponent } = await import("./hglib-cb361dc6.js").then((n3) => n3.h);
221576
221568
  return { default: HiGlassComponent };
221577
221569
  });
221578
221570
  const HG_SIZE = 800;
@@ -316727,7 +316719,7 @@ const baseCoordinationTypes = [
316727
316719
  new PluginCoordinationType(CoordinationType$2.IMAGE_CHANNEL, null, z.string().nullable()),
316728
316720
  new PluginCoordinationType(CoordinationType$2.SEGMENTATION_LAYER, null, z.string().nullable()),
316729
316721
  new PluginCoordinationType(CoordinationType$2.SEGMENTATION_CHANNEL, null, z.string().nullable()),
316730
- new PluginCoordinationType(CoordinationType$2.SPATIAL_TARGET_C, null, z.number().nullable()),
316722
+ new PluginCoordinationType(CoordinationType$2.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
316731
316723
  new PluginCoordinationType(CoordinationType$2.SPATIAL_TARGET_Z, null, z.number().nullable()),
316732
316724
  new PluginCoordinationType(CoordinationType$2.SPATIAL_TARGET_T, null, z.number().nullable()),
316733
316725
  new PluginCoordinationType(CoordinationType$2.SPATIAL_LAYER_VISIBLE, true, z.boolean()),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bb, b6, b4, b5, bf, bg, b7, bm, bk, bn, bl, b3, bj, b8, b2, b1, bd, bc, be, bi, bh, ba, bp, b9, bo } from "./index-08d7fc77.js";
1
+ import { bb, b6, b4, b5, bf, bg, b7, bm, bk, bn, bl, b3, bj, b8, b2, b1, bd, bc, be, bi, bh, ba, bp, b9, bo } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-08d7fc77.js";
1
+ import { aQ as BaseDecoder } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-08d7fc77.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-d24c5a39.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-08d7fc77.js";
1
+ import { aQ as BaseDecoder } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-08d7fc77.js";
1
+ import { aQ as BaseDecoder } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-08d7fc77.js";
1
+ import { aQ as BaseDecoder } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aD as UniformsUtils, aX as MeshDepthMaterial, aY as RGBADepthPacking, aZ as MeshDistanceMaterial, a_ as ShaderChunk, T as Texture, H as LinearFilter, ay as InstancedBufferGeometry, ap as Sphere, ao as Box3, aI as BackSide, Z as DoubleSide, a$ as InstancedBufferAttribute, V as Vector2, aF as Vector4, i as Color, aK as Matrix3, a1 as Mesh, aj as FrontSide, b0 as PlaneGeometry, h as BufferGeometry, az as Float32BufferAttribute, u as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-08d7fc77.js";
1
+ import { aD as UniformsUtils, aX as MeshDepthMaterial, aY as RGBADepthPacking, aZ as MeshDistanceMaterial, a_ as ShaderChunk, T as Texture, H as LinearFilter, ay as InstancedBufferGeometry, ap as Sphere, ao as Box3, aI as BackSide, Z as DoubleSide, a$ as InstancedBufferAttribute, V as Vector2, aF as Vector4, i as Color, aK as Matrix3, a1 as Mesh, aj as FrontSide, b0 as PlaneGeometry, h as BufferGeometry, az as Float32BufferAttribute, u as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  function workerBootstrap() {
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-08d7fc77.js";
1
+ import { aQ as BaseDecoder } from "./index-d24c5a39.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "author": "Gehlenborg Lab",
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.4.2",
20
- "@vitessce/config": "3.4.2",
21
- "@vitessce/constants": "3.4.2",
22
- "@vitessce/export-utils": "3.4.2"
19
+ "@vitessce/all": "3.4.3",
20
+ "@vitessce/config": "3.4.3",
21
+ "@vitessce/constants": "3.4.3",
22
+ "@vitessce/export-utils": "3.4.3"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",