@vitessce/all 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 { aP as BaseDecoder } from "./index-0d08aaae.js";
2
+ import { aP as BaseDecoder } from "./index-7453cd48.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 from "react";
2
2
  import ReactDOM__default from "react-dom";
3
- import { aS as commonjsGlobal, aT as objectAssign, g as getDefaultExportFromCjs, aU as earcut, aV as getAugmentedNamespace } from "./index-0d08aaae.js";
3
+ import { aS as commonjsGlobal, aT as objectAssign, g as getDefaultExportFromCjs, aU as earcut, aV as getAugmentedNamespace } from "./index-7453cd48.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, 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 Loader, q as LoaderUtils, F as FileLoader, r as SpotLight, s as PointLight, D as DirectionalLight, t as MeshBasicMaterial, u as MeshPhysicalMaterial, I as InstancedMesh, v as Object3D, w as TextureLoader, x as ImageBitmapLoader, y as BufferAttribute, z as InterleavedBuffer, E as LinearFilter, H as LinearMipmapLinearFilter, J as RepeatWrapping, K as PointsMaterial, Q as LineBasicMaterial, X as MeshStandardMaterial, Y as DoubleSide, Z as PropertyBinding, $ as SkinnedMesh, a0 as Mesh, a1 as LineSegments, a2 as Line$1, a3 as LineLoop, a4 as Points, a5 as MathUtils, a6 as Skeleton, a7 as InterpolateLinear, a8 as AnimationClip, a9 as Bone, aa as Quaternion, ab as NearestFilter, ac as NearestMipmapNearestFilter, ad as LinearMipmapNearestFilter, ae as NearestMipmapLinearFilter, af as ClampToEdgeWrapping, ag as MirroredRepeatWrapping, ah as InterpolateDiscrete, ai as FrontSide, aj as InterleavedBufferAttribute, ak as VectorKeyframeTrack, al as QuaternionKeyframeTrack, am as NumberKeyframeTrack, an as Box3, ao as Sphere, ap as Interpolant, aq as SphereGeometry, ar as Ray$1, as as Plane, at as EventDispatcher, au as MOUSE, av as TOUCH, aw as Spherical, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, 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-0d08aaae.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 Loader, q as LoaderUtils, F as FileLoader, r as SpotLight, s as PointLight, D as DirectionalLight, t as MeshBasicMaterial, u as MeshPhysicalMaterial, I as InstancedMesh, v as Object3D, w as TextureLoader, x as ImageBitmapLoader, y as BufferAttribute, z as InterleavedBuffer, E as LinearFilter, H as LinearMipmapLinearFilter, J as RepeatWrapping, K as PointsMaterial, Q as LineBasicMaterial, X as MeshStandardMaterial, Y as DoubleSide, Z as PropertyBinding, $ as SkinnedMesh, a0 as Mesh, a1 as LineSegments, a2 as Line$1, a3 as LineLoop, a4 as Points, a5 as MathUtils, a6 as Skeleton, a7 as InterpolateLinear, a8 as AnimationClip, a9 as Bone, aa as Quaternion, ab as NearestFilter, ac as NearestMipmapNearestFilter, ad as LinearMipmapNearestFilter, ae as NearestMipmapLinearFilter, af as ClampToEdgeWrapping, ag as MirroredRepeatWrapping, ah as InterpolateDiscrete, ai as FrontSide, aj as InterleavedBufferAttribute, ak as VectorKeyframeTrack, al as QuaternionKeyframeTrack, am as NumberKeyframeTrack, an as Box3, ao as Sphere, ap as Interpolant, aq as SphereGeometry, ar as Ray$1, as as Plane, at as EventDispatcher, au as MOUSE, av as TOUCH, aw as Spherical, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, 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-7453cd48.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-f60fc675.js"), []);
23803
+ } = suspend(async () => import("./troika-three-text.esm-c89ceb26.js"), []);
23804
23804
  const invalidate2 = useThree(({
23805
23805
  invalidate: invalidate3
23806
23806
  }) => invalidate3);
@@ -27381,7 +27381,7 @@ function MeasureLine(props) {
27381
27381
  })] });
27382
27382
  }
27383
27383
  function GeometryAndMesh(props) {
27384
- const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef, highlightGlom, setObsHighlight } = props;
27384
+ const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef, highlightEntity, setObsHighlight } = props;
27385
27385
  const model = useRef();
27386
27386
  const distanceRef = useRef();
27387
27387
  const rayGrabGroup = useRef();
@@ -27514,7 +27514,7 @@ function GeometryAndMesh(props) {
27514
27514
  2e-3 * renderingSettings.meshScale[2]
27515
27515
  ], 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 == null ? void 0 : 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) => {
27516
27516
  if (e.object.parent.userData.name === "finalPass") {
27517
- highlightGlom(e.object.name);
27517
+ highlightEntity(e.object.name, e.object.userData.layerScope, e.object.userData.channelScope);
27518
27518
  }
27519
27519
  }, onPointerOver: (e) => {
27520
27520
  setObsHighlight(e.object.name);
@@ -28464,7 +28464,7 @@ function SpatialThree(props) {
28464
28464
  obsSets: []
28465
28465
  });
28466
28466
  const { images, layerScope, channelsVisible, allChannels, channelTargetC, resolution, data, colors, contrastLimits, is3dMode, renderingMode, layerTransparency, xSlice, ySlice, zSlice } = useVolumeSettings(props, volumeSettings, setVolumeSettings, dataReady, setDataReady);
28467
- const { obsSegmentations, onGlomSelected, segmentationLayerCoordination, segmentationChannelCoordination, segmentationChannelScopesByLayer } = props;
28467
+ const { obsSegmentations, onEntitySelected, segmentationLayerCoordination, segmentationChannelCoordination, segmentationChannelScopesByLayer } = props;
28468
28468
  let setObsHighlightFct = () => {
28469
28469
  };
28470
28470
  const setsSave = [];
@@ -28479,7 +28479,7 @@ function SpatialThree(props) {
28479
28479
  sets.tree[0].children.forEach((child) => {
28480
28480
  if (child.name === selectedElement) {
28481
28481
  child.set.forEach(([obsId]) => {
28482
- const info = { name: "", id: "", color: [] };
28482
+ const info = { name: "", id: "", color: [255, 255, 255] };
28483
28483
  info.name = selectedElement;
28484
28484
  info.id = obsId;
28485
28485
  segmentationObsSetLayerProps.obsSetColor.forEach((color) => {
@@ -28517,6 +28517,7 @@ function SpatialThree(props) {
28517
28517
  }
28518
28518
  childElement.name = name;
28519
28519
  childElement.userData.name = name;
28520
+ childElement.userData.layerScope = layerScope;
28520
28521
  childElement.material.transparent = true;
28521
28522
  childElement.material.writeDepthTexture = true;
28522
28523
  childElement.material.depthTest = true;
@@ -28610,6 +28611,7 @@ function SpatialThree(props) {
28610
28611
  }
28611
28612
  }
28612
28613
  segmentationGroup.children[finalGroupIndex].children.forEach((child, childIndex) => {
28614
+ var _a3;
28613
28615
  let { color } = segmentationSettings;
28614
28616
  const id = child.userData.name;
28615
28617
  segmentationSettings.obsSets.forEach((obsSet) => {
@@ -28620,13 +28622,15 @@ function SpatialThree(props) {
28620
28622
  if (segmentationChannelScopesByLayer[layerScope].length > 1) {
28621
28623
  segmentationChannelScopesByLayer[layerScope].forEach((channelScope) => {
28622
28624
  const channelSet = segmentationChannelCoordination[0][layerScope][channelScope];
28623
- if (channelSet.obsType === id) {
28625
+ if (channelSet.spatialTargetC === id) {
28624
28626
  child.material.color.r = channelSet.spatialChannelColor[0] / 255;
28625
28627
  child.material.color.g = channelSet.spatialChannelColor[1] / 255;
28626
28628
  child.material.color.b = channelSet.spatialChannelColor[2] / 255;
28627
28629
  child.material.opacity = channelSet.spatialChannelOpacity;
28628
28630
  child.visible = channelSet.spatialChannelVisible;
28629
28631
  child.material.needsUpdate = true;
28632
+ child.userData.layerScope = layerScope;
28633
+ child.userData.channelScope = channelScope;
28630
28634
  segmentationGroup.children[firstGroupIndex].children[childIndex].material.needsUpdate = true;
28631
28635
  }
28632
28636
  });
@@ -28637,6 +28641,9 @@ function SpatialThree(props) {
28637
28641
  child.material.opacity = segmentationSettings.opacity;
28638
28642
  child.material.visible = segmentationSettings.visible;
28639
28643
  child.material.needsUpdate = true;
28644
+ child.userData.layerScope = layerScope;
28645
+ const firstChannelScope = (_a3 = Object.keys(segmentationChannelCoordination[0][layerScope])) == null ? void 0 : _a3[0];
28646
+ child.userData.channelScope = firstChannelScope;
28640
28647
  }
28641
28648
  });
28642
28649
  }
@@ -28752,7 +28759,7 @@ function SpatialThree(props) {
28752
28759
  segmentationSceneScale,
28753
28760
  renderingSettings,
28754
28761
  materialRef,
28755
- highlightGlom: onGlomSelected,
28762
+ highlightEntity: onEntitySelected,
28756
28763
  setObsHighlight: setObsHighlightFct
28757
28764
  };
28758
28765
  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 })] });
@@ -15863,7 +15863,7 @@ function getStylesCreator(stylesOrCreator) {
15863
15863
  }
15864
15864
  }
15865
15865
  return {
15866
- create: function create6(theme, name2) {
15866
+ create: function create5(theme, name2) {
15867
15867
  var styles35;
15868
15868
  try {
15869
15869
  styles35 = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
@@ -25060,7 +25060,7 @@ var classCallCheck$1 = function(instance, Constructor) {
25060
25060
  }
25061
25061
  };
25062
25062
  var createClass$1 = function() {
25063
- function defineProperties4(target2, props) {
25063
+ function defineProperties3(target2, props) {
25064
25064
  for (var i2 = 0; i2 < props.length; i2++) {
25065
25065
  var descriptor2 = props[i2];
25066
25066
  descriptor2.enumerable = descriptor2.enumerable || false;
@@ -25072,9 +25072,9 @@ var createClass$1 = function() {
25072
25072
  }
25073
25073
  return function(Constructor, protoProps, staticProps) {
25074
25074
  if (protoProps)
25075
- defineProperties4(Constructor.prototype, protoProps);
25075
+ defineProperties3(Constructor.prototype, protoProps);
25076
25076
  if (staticProps)
25077
- defineProperties4(Constructor, staticProps);
25077
+ defineProperties3(Constructor, staticProps);
25078
25078
  return Constructor;
25079
25079
  };
25080
25080
  }();
@@ -39097,11 +39097,19 @@ var _fails = function(exec) {
39097
39097
  return true;
39098
39098
  }
39099
39099
  };
39100
- var _descriptors = !_fails(function() {
39101
- return Object.defineProperty({}, "a", { get: function() {
39102
- return 7;
39103
- } }).a != 7;
39104
- });
39100
+ var _descriptors;
39101
+ var hasRequired_descriptors;
39102
+ function require_descriptors() {
39103
+ if (hasRequired_descriptors)
39104
+ return _descriptors;
39105
+ hasRequired_descriptors = 1;
39106
+ _descriptors = !_fails(function() {
39107
+ return Object.defineProperty({}, "a", { get: function() {
39108
+ return 7;
39109
+ } }).a != 7;
39110
+ });
39111
+ return _descriptors;
39112
+ }
39105
39113
  var _domCreate;
39106
39114
  var hasRequired_domCreate;
39107
39115
  function require_domCreate() {
@@ -39116,11 +39124,19 @@ function require_domCreate() {
39116
39124
  };
39117
39125
  return _domCreate;
39118
39126
  }
39119
- var _ie8DomDefine = !_descriptors && !_fails(function() {
39120
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
39121
- return 7;
39122
- } }).a != 7;
39123
- });
39127
+ var _ie8DomDefine;
39128
+ var hasRequired_ie8DomDefine;
39129
+ function require_ie8DomDefine() {
39130
+ if (hasRequired_ie8DomDefine)
39131
+ return _ie8DomDefine;
39132
+ hasRequired_ie8DomDefine = 1;
39133
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
39134
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
39135
+ return 7;
39136
+ } }).a != 7;
39137
+ });
39138
+ return _ie8DomDefine;
39139
+ }
39124
39140
  var isObject$i = _isObject;
39125
39141
  var _toPrimitive = function(it, S) {
39126
39142
  if (!isObject$i(it))
@@ -39134,25 +39150,32 @@ var _toPrimitive = function(it, S) {
39134
39150
  return val;
39135
39151
  throw TypeError("Can't convert object to primitive value");
39136
39152
  };
39137
- var anObject$3 = _anObject;
39138
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
39139
- var toPrimitive$2 = _toPrimitive;
39140
- var dP$3 = Object.defineProperty;
39141
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P2, Attributes) {
39142
- anObject$3(O);
39143
- P2 = toPrimitive$2(P2, true);
39144
- anObject$3(Attributes);
39145
- if (IE8_DOM_DEFINE$1)
39146
- try {
39147
- return dP$3(O, P2, Attributes);
39148
- } catch (e3) {
39149
- }
39150
- if ("get" in Attributes || "set" in Attributes)
39151
- throw TypeError("Accessors not supported!");
39152
- if ("value" in Attributes)
39153
- O[P2] = Attributes.value;
39154
- return O;
39155
- };
39153
+ var hasRequired_objectDp;
39154
+ function require_objectDp() {
39155
+ if (hasRequired_objectDp)
39156
+ return _objectDp;
39157
+ hasRequired_objectDp = 1;
39158
+ var anObject2 = _anObject;
39159
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
39160
+ var toPrimitive2 = _toPrimitive;
39161
+ var dP2 = Object.defineProperty;
39162
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty4(O, P2, Attributes) {
39163
+ anObject2(O);
39164
+ P2 = toPrimitive2(P2, true);
39165
+ anObject2(Attributes);
39166
+ if (IE8_DOM_DEFINE2)
39167
+ try {
39168
+ return dP2(O, P2, Attributes);
39169
+ } catch (e3) {
39170
+ }
39171
+ if ("get" in Attributes || "set" in Attributes)
39172
+ throw TypeError("Accessors not supported!");
39173
+ if ("value" in Attributes)
39174
+ O[P2] = Attributes.value;
39175
+ return O;
39176
+ };
39177
+ return _objectDp;
39178
+ }
39156
39179
  var _propertyDesc = function(bitmap, value2) {
39157
39180
  return {
39158
39181
  enumerable: !(bitmap & 1),
@@ -39161,10 +39184,10 @@ var _propertyDesc = function(bitmap, value2) {
39161
39184
  value: value2
39162
39185
  };
39163
39186
  };
39164
- var dP$2 = _objectDp;
39187
+ var dP$1 = require_objectDp();
39165
39188
  var createDesc$2 = _propertyDesc;
39166
- var _hide = _descriptors ? function(object2, key2, value2) {
39167
- return dP$2.f(object2, key2, createDesc$2(1, value2));
39189
+ var _hide = require_descriptors() ? function(object2, key2, value2) {
39190
+ return dP$1.f(object2, key2, createDesc$2(1, value2));
39168
39191
  } : function(object2, key2, value2) {
39169
39192
  object2[key2] = value2;
39170
39193
  return object2;
@@ -39178,7 +39201,7 @@ var core$3 = _coreExports;
39178
39201
  var ctx = _ctx;
39179
39202
  var hide$2 = _hide;
39180
39203
  var has$a = _has$1;
39181
- var PROTOTYPE$2 = "prototype";
39204
+ var PROTOTYPE$1 = "prototype";
39182
39205
  var $export$6 = function(type2, name2, source2) {
39183
39206
  var IS_FORCED = type2 & $export$6.F;
39184
39207
  var IS_GLOBAL = type2 & $export$6.G;
@@ -39187,8 +39210,8 @@ var $export$6 = function(type2, name2, source2) {
39187
39210
  var IS_BIND = type2 & $export$6.B;
39188
39211
  var IS_WRAP = type2 & $export$6.W;
39189
39212
  var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
39190
- var expProto = exports2[PROTOTYPE$2];
39191
- var target2 = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$2];
39213
+ var expProto = exports2[PROTOTYPE$1];
39214
+ var target2 = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
39192
39215
  var key2, own, out;
39193
39216
  if (IS_GLOBAL)
39194
39217
  source2 = name2;
@@ -39212,7 +39235,7 @@ var $export$6 = function(type2, name2, source2) {
39212
39235
  }
39213
39236
  return C3.apply(this, arguments);
39214
39237
  };
39215
- F[PROTOTYPE$2] = C3[PROTOTYPE$2];
39238
+ F[PROTOTYPE$1] = C3[PROTOTYPE$1];
39216
39239
  return F;
39217
39240
  }(out) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
39218
39241
  if (IS_PROTO) {
@@ -39317,22 +39340,30 @@ var px$2 = Math.random();
39317
39340
  var _uid = function(key2) {
39318
39341
  return "Symbol(".concat(key2 === void 0 ? "" : key2, ")_", (++id$4 + px$2).toString(36));
39319
39342
  };
39320
- var shared$1 = _sharedExports("keys");
39321
- var uid$3 = _uid;
39322
- var _sharedKey = function(key2) {
39323
- return shared$1[key2] || (shared$1[key2] = uid$3(key2));
39324
- };
39343
+ var _sharedKey;
39344
+ var hasRequired_sharedKey;
39345
+ function require_sharedKey() {
39346
+ if (hasRequired_sharedKey)
39347
+ return _sharedKey;
39348
+ hasRequired_sharedKey = 1;
39349
+ var shared2 = _sharedExports("keys");
39350
+ var uid2 = _uid;
39351
+ _sharedKey = function(key2) {
39352
+ return shared2[key2] || (shared2[key2] = uid2(key2));
39353
+ };
39354
+ return _sharedKey;
39355
+ }
39325
39356
  var has$9 = _has$1;
39326
39357
  var toIObject$4 = _toIobject;
39327
39358
  var arrayIndexOf = _arrayIncludes(false);
39328
- var IE_PROTO$2 = _sharedKey("IE_PROTO");
39359
+ var IE_PROTO$1 = require_sharedKey()("IE_PROTO");
39329
39360
  var _objectKeysInternal = function(object2, names) {
39330
39361
  var O = toIObject$4(object2);
39331
39362
  var i2 = 0;
39332
39363
  var result = [];
39333
39364
  var key2;
39334
39365
  for (key2 in O)
39335
- if (key2 != IE_PROTO$2)
39366
+ if (key2 != IE_PROTO$1)
39336
39367
  has$9(O, key2) && result.push(key2);
39337
39368
  while (names.length > i2)
39338
39369
  if (has$9(O, key2 = names[i2++])) {
@@ -39342,9 +39373,9 @@ var _objectKeysInternal = function(object2, names) {
39342
39373
  };
39343
39374
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
39344
39375
  var $keys$2 = _objectKeysInternal;
39345
- var enumBugKeys$1 = _enumBugKeys;
39376
+ var enumBugKeys = _enumBugKeys;
39346
39377
  var _objectKeys$1 = Object.keys || function keys(O) {
39347
- return $keys$2(O, enumBugKeys$1);
39378
+ return $keys$2(O, enumBugKeys);
39348
39379
  };
39349
39380
  var _objectGops = {};
39350
39381
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -39367,7 +39398,7 @@ function require_objectAssign() {
39367
39398
  if (hasRequired_objectAssign)
39368
39399
  return _objectAssign;
39369
39400
  hasRequired_objectAssign = 1;
39370
- var DESCRIPTORS2 = _descriptors;
39401
+ var DESCRIPTORS2 = require_descriptors();
39371
39402
  var getKeys2 = _objectKeys$1;
39372
39403
  var gOPS2 = _objectGops;
39373
39404
  var pIE2 = require_objectPie();
@@ -39427,9 +39458,9 @@ var _default$8 = _assign2.default || function(target2) {
39427
39458
  return target2;
39428
39459
  };
39429
39460
  var $export$4 = _export;
39430
- $export$4($export$4.S + $export$4.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
39461
+ $export$4($export$4.S + $export$4.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
39431
39462
  var $Object$2 = _coreExports.Object;
39432
- var defineProperty$6 = function defineProperty2(it, key2, desc) {
39463
+ var defineProperty$6 = function defineProperty(it, key2, desc) {
39433
39464
  return $Object$2.defineProperty(it, key2, desc);
39434
39465
  };
39435
39466
  var defineProperty$5 = { "default": defineProperty$6, __esModule: true };
@@ -39462,7 +39493,7 @@ function _interopRequireDefault$o(obj) {
39462
39493
  return obj && obj.__esModule ? obj : { default: obj };
39463
39494
  }
39464
39495
  var _default$5 = function() {
39465
- function defineProperties4(target2, props) {
39496
+ function defineProperties3(target2, props) {
39466
39497
  for (var i2 = 0; i2 < props.length; i2++) {
39467
39498
  var descriptor2 = props[i2];
39468
39499
  descriptor2.enumerable = descriptor2.enumerable || false;
@@ -39474,9 +39505,9 @@ var _default$5 = function() {
39474
39505
  }
39475
39506
  return function(Constructor, protoProps, staticProps) {
39476
39507
  if (protoProps)
39477
- defineProperties4(Constructor.prototype, protoProps);
39508
+ defineProperties3(Constructor.prototype, protoProps);
39478
39509
  if (staticProps)
39479
- defineProperties4(Constructor, staticProps);
39510
+ defineProperties3(Constructor, staticProps);
39480
39511
  return Constructor;
39481
39512
  };
39482
39513
  }();
@@ -39497,19 +39528,27 @@ var _stringAt = function(TO_STRING) {
39497
39528
  };
39498
39529
  var _redefine = _hide;
39499
39530
  var _iterators = {};
39500
- var dP$1 = _objectDp;
39501
- var anObject$2 = _anObject;
39502
- var getKeys$1 = _objectKeys$1;
39503
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
39504
- anObject$2(O);
39505
- var keys4 = getKeys$1(Properties);
39506
- var length2 = keys4.length;
39507
- var i2 = 0;
39508
- var P2;
39509
- while (length2 > i2)
39510
- dP$1.f(O, P2 = keys4[i2++], Properties[P2]);
39511
- return O;
39512
- };
39531
+ var _objectDps;
39532
+ var hasRequired_objectDps;
39533
+ function require_objectDps() {
39534
+ if (hasRequired_objectDps)
39535
+ return _objectDps;
39536
+ hasRequired_objectDps = 1;
39537
+ var dP2 = require_objectDp();
39538
+ var anObject2 = _anObject;
39539
+ var getKeys2 = _objectKeys$1;
39540
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties3(O, Properties) {
39541
+ anObject2(O);
39542
+ var keys4 = getKeys2(Properties);
39543
+ var length2 = keys4.length;
39544
+ var i2 = 0;
39545
+ var P2;
39546
+ while (length2 > i2)
39547
+ dP2.f(O, P2 = keys4[i2++], Properties[P2]);
39548
+ return O;
39549
+ };
39550
+ return _objectDps;
39551
+ }
39513
39552
  var _html;
39514
39553
  var hasRequired_html;
39515
39554
  function require_html() {
@@ -39520,42 +39559,50 @@ function require_html() {
39520
39559
  _html = document2 && document2.documentElement;
39521
39560
  return _html;
39522
39561
  }
39523
- var anObject$1 = _anObject;
39524
- var dPs = _objectDps;
39525
- var enumBugKeys = _enumBugKeys;
39526
- var IE_PROTO$1 = _sharedKey("IE_PROTO");
39527
- var Empty$2 = function() {
39528
- };
39529
- var PROTOTYPE$1 = "prototype";
39530
- var createDict = function() {
39531
- var iframe = require_domCreate()("iframe");
39532
- var i2 = enumBugKeys.length;
39533
- var lt2 = "<";
39534
- var gt2 = ">";
39535
- var iframeDocument;
39536
- iframe.style.display = "none";
39537
- require_html().appendChild(iframe);
39538
- iframe.src = "javascript:";
39539
- iframeDocument = iframe.contentWindow.document;
39540
- iframeDocument.open();
39541
- iframeDocument.write(lt2 + "script" + gt2 + "document.F=Object" + lt2 + "/script" + gt2);
39542
- iframeDocument.close();
39543
- createDict = iframeDocument.F;
39544
- while (i2--)
39545
- delete createDict[PROTOTYPE$1][enumBugKeys[i2]];
39546
- return createDict();
39547
- };
39548
- var _objectCreate = Object.create || function create2(O, Properties) {
39549
- var result;
39550
- if (O !== null) {
39551
- Empty$2[PROTOTYPE$1] = anObject$1(O);
39552
- result = new Empty$2();
39553
- Empty$2[PROTOTYPE$1] = null;
39554
- result[IE_PROTO$1] = O;
39555
- } else
39556
- result = createDict();
39557
- return Properties === void 0 ? result : dPs(result, Properties);
39558
- };
39562
+ var _objectCreate;
39563
+ var hasRequired_objectCreate;
39564
+ function require_objectCreate() {
39565
+ if (hasRequired_objectCreate)
39566
+ return _objectCreate;
39567
+ hasRequired_objectCreate = 1;
39568
+ var anObject2 = _anObject;
39569
+ var dPs = require_objectDps();
39570
+ var enumBugKeys2 = _enumBugKeys;
39571
+ var IE_PROTO2 = require_sharedKey()("IE_PROTO");
39572
+ var Empty2 = function() {
39573
+ };
39574
+ var PROTOTYPE2 = "prototype";
39575
+ var createDict = function() {
39576
+ var iframe = require_domCreate()("iframe");
39577
+ var i2 = enumBugKeys2.length;
39578
+ var lt2 = "<";
39579
+ var gt2 = ">";
39580
+ var iframeDocument;
39581
+ iframe.style.display = "none";
39582
+ require_html().appendChild(iframe);
39583
+ iframe.src = "javascript:";
39584
+ iframeDocument = iframe.contentWindow.document;
39585
+ iframeDocument.open();
39586
+ iframeDocument.write(lt2 + "script" + gt2 + "document.F=Object" + lt2 + "/script" + gt2);
39587
+ iframeDocument.close();
39588
+ createDict = iframeDocument.F;
39589
+ while (i2--)
39590
+ delete createDict[PROTOTYPE2][enumBugKeys2[i2]];
39591
+ return createDict();
39592
+ };
39593
+ _objectCreate = Object.create || function create5(O, Properties) {
39594
+ var result;
39595
+ if (O !== null) {
39596
+ Empty2[PROTOTYPE2] = anObject2(O);
39597
+ result = new Empty2();
39598
+ Empty2[PROTOTYPE2] = null;
39599
+ result[IE_PROTO2] = O;
39600
+ } else
39601
+ result = createDict();
39602
+ return Properties === void 0 ? result : dPs(result, Properties);
39603
+ };
39604
+ return _objectCreate;
39605
+ }
39559
39606
  var _wks = { exports: {} };
39560
39607
  var store = _sharedExports("wks");
39561
39608
  var uid$2 = _uid;
@@ -39566,14 +39613,14 @@ var $exports = _wks.exports = function(name2) {
39566
39613
  };
39567
39614
  $exports.store = store;
39568
39615
  var _wksExports = _wks.exports;
39569
- var def$1 = _objectDp.f;
39616
+ var def$1 = require_objectDp().f;
39570
39617
  var has$8 = _has$1;
39571
39618
  var TAG = _wksExports("toStringTag");
39572
39619
  var _setToStringTag = function(it, tag2, stat) {
39573
39620
  if (it && !has$8(it = stat ? it : it.prototype, TAG))
39574
39621
  def$1(it, TAG, { configurable: true, value: tag2 });
39575
39622
  };
39576
- var create$b = _objectCreate;
39623
+ var create$b = require_objectCreate();
39577
39624
  var descriptor = _propertyDesc;
39578
39625
  var setToStringTag$2 = _setToStringTag;
39579
39626
  var IteratorPrototype$2 = {};
@@ -39586,7 +39633,7 @@ var _iterCreate = function(Constructor, NAME2, next3) {
39586
39633
  };
39587
39634
  var has$7 = _has$1;
39588
39635
  var toObject$2 = _toObject;
39589
- var IE_PROTO = _sharedKey("IE_PROTO");
39636
+ var IE_PROTO = require_sharedKey()("IE_PROTO");
39590
39637
  var ObjectProto$1 = Object.prototype;
39591
39638
  var _objectGpo = Object.getPrototypeOf || function(O) {
39592
39639
  O = toObject$2(O);
@@ -39733,7 +39780,7 @@ var _meta$3 = { exports: {} };
39733
39780
  var META$1 = _uid("meta");
39734
39781
  var isObject$h = _isObject;
39735
39782
  var has$6 = _has$1;
39736
- var setDesc = _objectDp.f;
39783
+ var setDesc = require_objectDp().f;
39737
39784
  var id$3 = 0;
39738
39785
  var isExtensible = Object.isExtensible || function() {
39739
39786
  return true;
@@ -39749,23 +39796,23 @@ var setMeta = function(it) {
39749
39796
  // weak collections IDs
39750
39797
  } });
39751
39798
  };
39752
- var fastKey = function(it, create6) {
39799
+ var fastKey = function(it, create5) {
39753
39800
  if (!isObject$h(it))
39754
39801
  return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
39755
39802
  if (!has$6(it, META$1)) {
39756
39803
  if (!isExtensible(it))
39757
39804
  return "F";
39758
- if (!create6)
39805
+ if (!create5)
39759
39806
  return "E";
39760
39807
  setMeta(it);
39761
39808
  }
39762
39809
  return it[META$1].i;
39763
39810
  };
39764
- var getWeak = function(it, create6) {
39811
+ var getWeak = function(it, create5) {
39765
39812
  if (!has$6(it, META$1)) {
39766
39813
  if (!isExtensible(it))
39767
39814
  return true;
39768
- if (!create6)
39815
+ if (!create5)
39769
39816
  return false;
39770
39817
  setMeta(it);
39771
39818
  }
@@ -39786,7 +39833,7 @@ var meta$6 = _meta$3.exports = {
39786
39833
  var _metaExports = _meta$3.exports;
39787
39834
  var core$1 = _coreExports;
39788
39835
  var wksExt$1 = _wksExt;
39789
- var defineProperty$4 = _objectDp.f;
39836
+ var defineProperty$4 = require_objectDp().f;
39790
39837
  var _wksDefine = function(name2) {
39791
39838
  var $Symbol2 = core$1.Symbol || (core$1.Symbol = {});
39792
39839
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -39840,9 +39887,9 @@ var createDesc$1 = _propertyDesc;
39840
39887
  var toIObject$1 = _toIobject;
39841
39888
  var toPrimitive$1 = _toPrimitive;
39842
39889
  var has$5 = _has$1;
39843
- var IE8_DOM_DEFINE = _ie8DomDefine;
39890
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
39844
39891
  var gOPD$4 = Object.getOwnPropertyDescriptor;
39845
- _objectGopd.f = _descriptors ? gOPD$4 : function getOwnPropertyDescriptor2(O, P2) {
39892
+ _objectGopd.f = require_descriptors() ? gOPD$4 : function getOwnPropertyDescriptor2(O, P2) {
39846
39893
  O = toIObject$1(O);
39847
39894
  P2 = toPrimitive$1(P2, true);
39848
39895
  if (IE8_DOM_DEFINE)
@@ -39855,7 +39902,7 @@ _objectGopd.f = _descriptors ? gOPD$4 : function getOwnPropertyDescriptor2(O, P2
39855
39902
  };
39856
39903
  var global$2 = _globalExports;
39857
39904
  var has$4 = _has$1;
39858
- var DESCRIPTORS = _descriptors;
39905
+ var DESCRIPTORS = require_descriptors();
39859
39906
  var $export$2 = _export;
39860
39907
  var redefine = _redefine;
39861
39908
  var META = _metaExports.KEY;
@@ -39874,11 +39921,11 @@ var toObject$1 = _toObject;
39874
39921
  var toIObject = _toIobject;
39875
39922
  var toPrimitive = _toPrimitive;
39876
39923
  var createDesc = _propertyDesc;
39877
- var _create$1 = _objectCreate;
39924
+ var _create$1 = require_objectCreate();
39878
39925
  var gOPNExt = _objectGopnExt;
39879
39926
  var $GOPD = _objectGopd;
39880
39927
  var $GOPS = _objectGops;
39881
- var $DP = _objectDp;
39928
+ var $DP = require_objectDp();
39882
39929
  var $keys = _objectKeys$1;
39883
39930
  var gOPD$3 = $GOPD.f;
39884
39931
  var dP = $DP.f;
@@ -39921,7 +39968,7 @@ var isSymbol$6 = USE_NATIVE && typeof $Symbol$1.iterator == "symbol" ? function(
39921
39968
  } : function(it) {
39922
39969
  return it instanceof $Symbol$1;
39923
39970
  };
39924
- var $defineProperty$1 = function defineProperty3(it, key2, D2) {
39971
+ var $defineProperty$1 = function defineProperty2(it, key2, D2) {
39925
39972
  if (it === ObjectProto)
39926
39973
  $defineProperty$1(OPSymbols, key2, D2);
39927
39974
  anObject(it);
@@ -39941,7 +39988,7 @@ var $defineProperty$1 = function defineProperty3(it, key2, D2) {
39941
39988
  }
39942
39989
  return dP(it, key2, D2);
39943
39990
  };
39944
- var $defineProperties = function defineProperties2(it, P2) {
39991
+ var $defineProperties = function defineProperties(it, P2) {
39945
39992
  anObject(it);
39946
39993
  var keys4 = enumKeys(P2 = toIObject(P2));
39947
39994
  var i2 = 0;
@@ -39951,7 +39998,7 @@ var $defineProperties = function defineProperties2(it, P2) {
39951
39998
  $defineProperty$1(it, key2 = keys4[i2++], P2[key2]);
39952
39999
  return it;
39953
40000
  };
39954
- var $create = function create3(it, P2) {
40001
+ var $create = function create2(it, P2) {
39955
40002
  return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
39956
40003
  };
39957
40004
  var $propertyIsEnumerable = function propertyIsEnumerable(key2) {
@@ -40178,9 +40225,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
40178
40225
  var setPrototypeOf$2 = _coreExports.Object.setPrototypeOf;
40179
40226
  var setPrototypeOf$1 = { "default": setPrototypeOf$2, __esModule: true };
40180
40227
  var $export = _export;
40181
- $export($export.S, "Object", { create: _objectCreate });
40228
+ $export($export.S, "Object", { create: require_objectCreate() });
40182
40229
  var $Object$1 = _coreExports.Object;
40183
- var create$a = function create4(P2, D2) {
40230
+ var create$a = function create3(P2, D2) {
40184
40231
  return $Object$1.create(P2, D2);
40185
40232
  };
40186
40233
  var create$9 = { "default": create$a, __esModule: true };
@@ -45463,7 +45510,7 @@ function _regeneratorRuntime$1() {
45463
45510
  _regeneratorRuntime$1 = function _regeneratorRuntime2() {
45464
45511
  return exports2;
45465
45512
  };
45466
- var exports2 = {}, Op2 = Object.prototype, hasOwn2 = Op2.hasOwnProperty, defineProperty5 = Object.defineProperty || function(obj, key2, desc) {
45513
+ var exports2 = {}, Op2 = Object.prototype, hasOwn2 = Op2.hasOwnProperty, defineProperty4 = Object.defineProperty || function(obj, key2, desc) {
45467
45514
  obj[key2] = desc.value;
45468
45515
  }, $Symbol2 = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol2 = $Symbol2.iterator || "@@iterator", asyncIteratorSymbol2 = $Symbol2.asyncIterator || "@@asyncIterator", toStringTagSymbol2 = $Symbol2.toStringTag || "@@toStringTag";
45469
45516
  function define2(obj, key2, value2) {
@@ -45483,7 +45530,7 @@ function _regeneratorRuntime$1() {
45483
45530
  }
45484
45531
  function wrap2(innerFn, outerFn, self2, tryLocsList) {
45485
45532
  var protoGenerator = outerFn && outerFn.prototype instanceof Generator2 ? outerFn : Generator2, generator = Object.create(protoGenerator.prototype), context2 = new Context2(tryLocsList || []);
45486
- return defineProperty5(generator, "_invoke", {
45533
+ return defineProperty4(generator, "_invoke", {
45487
45534
  value: makeInvokeMethod2(innerFn, self2, context2)
45488
45535
  }), generator;
45489
45536
  }
@@ -45540,7 +45587,7 @@ function _regeneratorRuntime$1() {
45540
45587
  reject(record.arg);
45541
45588
  }
45542
45589
  var previousPromise;
45543
- defineProperty5(this, "_invoke", {
45590
+ defineProperty4(this, "_invoke", {
45544
45591
  value: function value2(method2, arg) {
45545
45592
  function callInvokeWithMethodAndArg() {
45546
45593
  return new PromiseImpl(function(resolve2, reject) {
@@ -45645,10 +45692,10 @@ function _regeneratorRuntime$1() {
45645
45692
  done: true
45646
45693
  };
45647
45694
  }
45648
- return GeneratorFunction2.prototype = GeneratorFunctionPrototype2, defineProperty5(Gp2, "constructor", {
45695
+ return GeneratorFunction2.prototype = GeneratorFunctionPrototype2, defineProperty4(Gp2, "constructor", {
45649
45696
  value: GeneratorFunctionPrototype2,
45650
45697
  configurable: true
45651
- }), defineProperty5(GeneratorFunctionPrototype2, "constructor", {
45698
+ }), defineProperty4(GeneratorFunctionPrototype2, "constructor", {
45652
45699
  value: GeneratorFunction2,
45653
45700
  configurable: true
45654
45701
  }), GeneratorFunction2.displayName = define2(GeneratorFunctionPrototype2, toStringTagSymbol2, "GeneratorFunction"), exports2.isGeneratorFunction = function(genFun) {
@@ -93926,11 +93973,11 @@ class Tileset2D {
93926
93973
  this._dirty = false;
93927
93974
  }
93928
93975
  }
93929
- _getTile(index2, create6) {
93976
+ _getTile(index2, create5) {
93930
93977
  const id2 = this.getTileId(index2);
93931
93978
  let tile = this._cache.get(id2);
93932
93979
  let needsReload = false;
93933
- if (!tile && create6) {
93980
+ if (!tile && create5) {
93934
93981
  tile = new Tile2DHeader(index2);
93935
93982
  Object.assign(tile, this.getTileMetadata(tile.index));
93936
93983
  Object.assign(tile, {
@@ -122180,7 +122227,7 @@ var defineProperty$2 = function(object2, name2, value2, predicate) {
122180
122227
  object2[name2] = value2;
122181
122228
  }
122182
122229
  };
122183
- var defineProperties3 = function(object2, map2) {
122230
+ var defineProperties2 = function(object2, map2) {
122184
122231
  var predicates = arguments.length > 2 ? arguments[2] : {};
122185
122232
  var props = keys$4(map2);
122186
122233
  if (hasSymbols2) {
@@ -122190,8 +122237,8 @@ var defineProperties3 = function(object2, map2) {
122190
122237
  defineProperty$2(object2, props[i2], map2[props[i2]], predicates[props[i2]]);
122191
122238
  }
122192
122239
  };
122193
- defineProperties3.supportsDescriptors = !!supportsDescriptors$2;
122194
- var defineProperties_1 = defineProperties3;
122240
+ defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
122241
+ var defineProperties_1 = defineProperties2;
122195
122242
  var numberIsNaN = function(value2) {
122196
122243
  return value2 !== value2;
122197
122244
  };
@@ -156421,16 +156468,16 @@ async function getDecoder(fileDirectory) {
156421
156468
  const Decoder = await importFn();
156422
156469
  return new Decoder(fileDirectory);
156423
156470
  }
156424
- addDecoder([void 0, 1], () => import("./raw-0c2d8506.js").then((m2) => m2.default));
156425
- addDecoder(5, () => import("./lzw-f0c0faa6.js").then((m2) => m2.default));
156471
+ addDecoder([void 0, 1], () => import("./raw-c2960c08.js").then((m2) => m2.default));
156472
+ addDecoder(5, () => import("./lzw-6e1b0460.js").then((m2) => m2.default));
156426
156473
  addDecoder(6, () => {
156427
156474
  throw new Error("old style JPEG compression is not supported.");
156428
156475
  });
156429
- addDecoder(7, () => import("./jpeg-9f88d9a1.js").then((m2) => m2.default));
156430
- addDecoder([8, 32946], () => import("./deflate-05e36353.js").then((m2) => m2.default));
156431
- addDecoder(32773, () => import("./packbits-d0fa0169.js").then((m2) => m2.default));
156432
- addDecoder(34887, () => import("./lerc-d1028c67.js").then((m2) => m2.default));
156433
- addDecoder(50001, () => import("./webimage-3234790c.js").then((m2) => m2.default));
156476
+ addDecoder(7, () => import("./jpeg-92cf173f.js").then((m2) => m2.default));
156477
+ addDecoder([8, 32946], () => import("./deflate-ada542ca.js").then((m2) => m2.default));
156478
+ addDecoder(32773, () => import("./packbits-c127f48f.js").then((m2) => m2.default));
156479
+ addDecoder(34887, () => import("./lerc-f05c9ce8.js").then((m2) => m2.default));
156480
+ addDecoder(50001, () => import("./webimage-a2f88ffe.js").then((m2) => m2.default));
156434
156481
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
156435
156482
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
156436
156483
  }
@@ -175393,18 +175440,18 @@ function selection_lower() {
175393
175440
  return this.each(lower);
175394
175441
  }
175395
175442
  function selection_append(name2) {
175396
- var create6 = typeof name2 === "function" ? name2 : creator(name2);
175443
+ var create5 = typeof name2 === "function" ? name2 : creator(name2);
175397
175444
  return this.select(function() {
175398
- return this.appendChild(create6.apply(this, arguments));
175445
+ return this.appendChild(create5.apply(this, arguments));
175399
175446
  });
175400
175447
  }
175401
175448
  function constantNull() {
175402
175449
  return null;
175403
175450
  }
175404
175451
  function selection_insert(name2, before) {
175405
- var create6 = typeof name2 === "function" ? name2 : creator(name2), select2 = before == null ? constantNull : typeof before === "function" ? before : selector(before);
175452
+ var create5 = typeof name2 === "function" ? name2 : creator(name2), select2 = before == null ? constantNull : typeof before === "function" ? before : selector(before);
175406
175453
  return this.select(function() {
175407
- return this.insertBefore(create6.apply(this, arguments), select2.apply(this, arguments) || null);
175454
+ return this.insertBefore(create5.apply(this, arguments), select2.apply(this, arguments) || null);
175408
175455
  });
175409
175456
  }
175410
175457
  function remove$1() {
@@ -178512,7 +178559,8 @@ function Legend(props) {
178512
178559
  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);
178513
178560
  y2 += titleHeight;
178514
178561
  setPaths.forEach((setPath) => {
178515
- const setColor = obsSetColor.find((d) => isEqual$4(d.path, setPath)).color;
178562
+ var _a3;
178563
+ const setColor = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$4(d.path, setPath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
178516
178564
  g2.append("rect").attr("x", 0).attr("y", y2).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor[0]},${setColor[1]},${setColor[2]})`);
178517
178565
  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);
178518
178566
  y2 += rectHeight + rectMarginY;
@@ -178547,7 +178595,8 @@ function Legend(props) {
178547
178595
  spatialChannelColor,
178548
178596
  obsSetColor,
178549
178597
  obsSetSelection,
178550
- isSetColor
178598
+ isSetColor,
178599
+ theme
178551
178600
  ]);
178552
178601
  return jsxRuntimeExports.jsx("div", { className: clsx(classes.legend, {
178553
178602
  [classes.legendRelative]: positionRelative,
@@ -179424,7 +179473,7 @@ var typedFunction$1 = { exports: {} };
179424
179473
  function undef() {
179425
179474
  return void 0;
179426
179475
  }
179427
- function create6() {
179476
+ function create5() {
179428
179477
  var _types = [
179429
179478
  { name: "number", test: function(x2) {
179430
179479
  return typeof x2 === "number";
@@ -180176,7 +180225,7 @@ var typedFunction$1 = { exports: {} };
180176
180225
  return createTypedFunction(name2, extractSignatures(fns));
180177
180226
  }
180178
180227
  });
180179
- typed2.create = create6;
180228
+ typed2.create = create5;
180180
180229
  typed2.types = _types;
180181
180230
  typed2.conversions = _conversions;
180182
180231
  typed2.ignore = _ignore;
@@ -180207,7 +180256,7 @@ var typedFunction$1 = { exports: {} };
180207
180256
  };
180208
180257
  return typed2;
180209
180258
  }
180210
- return create6();
180259
+ return create5();
180211
180260
  });
180212
180261
  })(typedFunction$1);
180213
180262
  var typedFunctionExports = typedFunction$1.exports;
@@ -180919,11 +180968,11 @@ function getArrayDataType(array2, typeOf2) {
180919
180968
  }
180920
180969
  return type2;
180921
180970
  }
180922
- function factory(name2, dependencies2, create6, meta2) {
180971
+ function factory(name2, dependencies2, create5, meta2) {
180923
180972
  function assertAndCreate(scope) {
180924
180973
  var deps = pickShallow(scope, dependencies2.map(stripOptionalNotation));
180925
180974
  assertDependencies(name2, dependencies2, scope);
180926
- return create6(deps);
180975
+ return create5(deps);
180927
180976
  }
180928
180977
  assertAndCreate.isFactory = true;
180929
180978
  assertAndCreate.fn = name2;
@@ -199567,7 +199616,7 @@ class ErrorBoundary extends React__default.Component {
199567
199616
  }
199568
199617
  }
199569
199618
  const LazySpatialThree = React__default.lazy(async () => {
199570
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-d7d5e603.js");
199619
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-277a2372.js");
199571
199620
  return { default: SpatialWrapper2 };
199572
199621
  });
199573
199622
  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 }) }) }) }));
@@ -200024,26 +200073,18 @@ function SpatialSubscriber(props) {
200024
200073
  var _a3;
200025
200074
  return (_a3 = obsSegmentationsLocationsData == null ? void 0 : obsSegmentationsLocationsData[layerScope]) == null ? void 0 : _a3[channelScope];
200026
200075
  })).length > 0;
200027
- const onEntitySelected = useCallback((obsId) => {
200028
- const obsIdsToSelect = [obsId];
200029
- const layerScope = segmentationLayerScopes[0];
200030
- if (layerScope !== void 0 && segmentationChannelScopesByLayer[layerScope][0] !== void 0) {
200031
- const channelScope = segmentationChannelScopesByLayer[layerScope][0];
200032
- const { additionalObsSets: firstChannelAdditionalObsSets, obsSetColor: firstChannelObsSetColor } = segmentationChannelCoordination[0][layerScope][channelScope];
200033
- const { setObsSetColor: firstChannelSetObsSetColor, setAdditionalObsSets: firstChannelSetAdditionalObsSets, setObsColorEncoding: firstChannelSetObsColorEncoding, setObsSetSelection: firstChannelSetObsSetSelection } = segmentationChannelCoordination[1][layerScope][channelScope];
200034
- setObsSelection(obsIdsToSelect, firstChannelAdditionalObsSets, firstChannelObsSetColor, firstChannelSetObsSetSelection, firstChannelSetAdditionalObsSets, firstChannelSetObsSetColor, firstChannelSetObsColorEncoding);
200035
- } else {
200036
- setObsSelection(obsIdsToSelect, additionalObsSets, obsSetColor, setObsSetSelection, setAdditionalObsSets, setObsSetColor, setObsColorEncoding);
200076
+ const onEntitySelected = (obsId, layerScope, channelScope) => {
200077
+ if (layerScope && channelScope) {
200078
+ const channelCoordinationValues = segmentationChannelCoordination[0][layerScope][channelScope];
200079
+ const channelCoordinationSetters = segmentationChannelCoordination[1][layerScope][channelScope];
200080
+ if (channelCoordinationValues && channelCoordinationSetters) {
200081
+ const { additionalObsSets: channelAdditionalObsSets, obsSetColor: channelObsSetColor } = channelCoordinationValues;
200082
+ const { setObsSetColor: setChannelObsSetColor, setAdditionalObsSets: setChannelAdditionalObsSets, setObsColorEncoding: setChannelObsColorEncoding, setObsSetSelection: setChannelObsSetSelection } = channelCoordinationSetters;
200083
+ const obsIdsToSelect = [obsId];
200084
+ setObsSelection(obsIdsToSelect, channelAdditionalObsSets, channelObsSetColor, setChannelObsSetSelection, setChannelAdditionalObsSets, setChannelObsSetColor, setChannelObsColorEncoding);
200085
+ }
200037
200086
  }
200038
- }, [
200039
- additionalObsSets,
200040
- obsSetColor,
200041
- setObsSetSelection,
200042
- setAdditionalObsSets,
200043
- setObsSetColor,
200044
- setObsColorEncoding
200045
- // TODO: more dependencies?
200046
- ]);
200087
+ };
200047
200088
  return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, children: [shouldUseThree ? jsxRuntimeExports.jsx(SpatialThreeAdapter, {
200048
200089
  ref: threeRef,
200049
200090
  uuid,
@@ -200071,8 +200112,7 @@ function SpatialSubscriber(props) {
200071
200112
  spatialRenderingMode,
200072
200113
  updateViewInfo: setComponentViewInfo,
200073
200114
  delegateHover,
200074
- // TODO: do not make this glom-specific. need to generalize
200075
- onGlomSelected: onEntitySelected,
200115
+ onEntitySelected,
200076
200116
  // Points
200077
200117
  obsPoints: obsPointsData,
200078
200118
  pointLayerScopes,
@@ -201384,11 +201424,11 @@ function requireInherits() {
201384
201424
  })(inherits$1);
201385
201425
  return inherits$1.exports;
201386
201426
  }
201387
- var defineProperty4 = { exports: {} };
201427
+ var defineProperty3 = { exports: {} };
201388
201428
  var hasRequiredDefineProperty;
201389
201429
  function requireDefineProperty() {
201390
201430
  if (hasRequiredDefineProperty)
201391
- return defineProperty4.exports;
201431
+ return defineProperty3.exports;
201392
201432
  hasRequiredDefineProperty = 1;
201393
201433
  (function(module2) {
201394
201434
  function _defineProperty3(obj, key2, value2) {
@@ -201405,8 +201445,8 @@ function requireDefineProperty() {
201405
201445
  return obj;
201406
201446
  }
201407
201447
  module2.exports = _defineProperty3, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
201408
- })(defineProperty4);
201409
- return defineProperty4.exports;
201448
+ })(defineProperty3);
201449
+ return defineProperty3.exports;
201410
201450
  }
201411
201451
  var detectElementResize = {};
201412
201452
  var hasRequiredDetectElementResize;
@@ -208624,7 +208664,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
208624
208664
  const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
208625
208665
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
208626
208666
  const LazyHiGlassComponent = React__default.lazy(async () => {
208627
- const { HiGlassComponent } = await import("./hglib-2bedd252.js").then((n3) => n3.h);
208667
+ const { HiGlassComponent } = await import("./hglib-5baff511.js").then((n3) => n3.h);
208628
208668
  return { default: HiGlassComponent };
208629
208669
  });
208630
208670
  const HG_SIZE = 800;
@@ -232038,7 +232078,7 @@ inherits(Projection$1, Transform2, {
232038
232078
  transform(_, pulse2) {
232039
232079
  let proj = this.value;
232040
232080
  if (!proj || _.modified("type")) {
232041
- this.value = proj = create5(_.type);
232081
+ this.value = proj = create4(_.type);
232042
232082
  projectionProperties.forEach((prop) => {
232043
232083
  if (_[prop] != null)
232044
232084
  set$3(proj, prop, _[prop]);
@@ -232060,7 +232100,7 @@ function fit(proj, _) {
232060
232100
  const data2 = collectGeoJSON(_.fit);
232061
232101
  _.extent ? proj.fitExtent(_.extent, data2) : _.size ? proj.fitSize(_.size, data2) : 0;
232062
232102
  }
232063
- function create5(type2) {
232103
+ function create4(type2) {
232064
232104
  const constructor = projection((type2 || "mercator").toLowerCase());
232065
232105
  if (!constructor)
232066
232106
  error("Unrecognized projection type: " + type2);
@@ -240867,8 +240907,8 @@ function bind3(view, el2, binding) {
240867
240907
  bind4.update = debounce(param2.debounce, bind4.update);
240868
240908
  }
240869
240909
  }
240870
- const create6 = param2.input == null && param2.element ? target : generate;
240871
- create6(bind4, el2, param2, view);
240910
+ const create5 = param2.input == null && param2.element ? target : generate;
240911
+ create5(bind4, el2, param2, view);
240872
240912
  if (!bind4.active) {
240873
240913
  view.on(view._signals[param2.signal], null, () => {
240874
240914
  bind4.source ? bind4.source = false : bind4.set(view.signal(param2.signal));
@@ -303881,7 +303921,7 @@ const baseCoordinationTypes = [
303881
303921
  new PluginCoordinationType(CoordinationType$1.IMAGE_CHANNEL, null, z.string().nullable()),
303882
303922
  new PluginCoordinationType(CoordinationType$1.SEGMENTATION_LAYER, null, z.string().nullable()),
303883
303923
  new PluginCoordinationType(CoordinationType$1.SEGMENTATION_CHANNEL, null, z.string().nullable()),
303884
- new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_C, null, z.number().nullable()),
303924
+ new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
303885
303925
  new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_Z, null, z.number().nullable()),
303886
303926
  new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_T, null, z.number().nullable()),
303887
303927
  new PluginCoordinationType(CoordinationType$1.SPATIAL_LAYER_VISIBLE, true, z.boolean()),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b3, b1, b4, b2, b0, b5 } from "./index-0d08aaae.js";
1
+ import { b3, b1, b4, b2, b0, b5 } from "./index-7453cd48.js";
2
2
  import { useCoordination } from "@vitessce/vit-s";
3
3
  import "react";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aP as BaseDecoder } from "./index-0d08aaae.js";
1
+ import { aP as BaseDecoder } from "./index-7453cd48.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-0d08aaae.js";
2
+ import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-7453cd48.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-0d08aaae.js";
1
+ import { aP as BaseDecoder } from "./index-7453cd48.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-0d08aaae.js";
1
+ import { aP as BaseDecoder } from "./index-7453cd48.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-0d08aaae.js";
1
+ import { aP as BaseDecoder } from "./index-7453cd48.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1,4 +1,4 @@
1
- import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, E as LinearFilter, ax as InstancedBufferGeometry, ao as Sphere, an as Box3, aH as BackSide, Y as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, h as Color, aJ as Matrix3, a0 as Mesh, ai as FrontSide, a$ as PlaneGeometry, f as BufferGeometry, ay as Float32BufferAttribute, t as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-0d08aaae.js";
1
+ import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, E as LinearFilter, ax as InstancedBufferGeometry, ao as Sphere, an as Box3, aH as BackSide, Y as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, h as Color, aJ as Matrix3, a0 as Mesh, ai as FrontSide, a$ as PlaneGeometry, f as BufferGeometry, ay as Float32BufferAttribute, t as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-7453cd48.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-0d08aaae.js";
1
+ import { aP as BaseDecoder } from "./index-7453cd48.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  import "react-dom";
@@ -1073,5 +1073,5 @@ export declare const baseCoordinationTypes: (PluginCoordinationType<z.ZodNullabl
1073
1073
  color?: number[] | undefined;
1074
1074
  })[];
1075
1075
  })[];
1076
- }>>> | PluginCoordinationType<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["BlackIsZero", "RGB"]>>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["2D", "3D"]>>> | PluginCoordinationType<z.ZodEnum<["maximumIntensityProjection", "additive"]>> | PluginCoordinationType<z.ZodEnum<["vertical", "horizontal"]>>)[];
1076
+ }>>> | PluginCoordinationType<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>> | PluginCoordinationType<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["BlackIsZero", "RGB"]>>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["2D", "3D"]>>> | PluginCoordinationType<z.ZodEnum<["maximumIntensityProjection", "additive"]>> | PluginCoordinationType<z.ZodEnum<["vertical", "horizontal"]>>)[];
1077
1077
  //# sourceMappingURL=base-plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-plugins.d.ts","sourceRoot":"","sources":["../src/base-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,CAAC,EA4CF,MAAM,mBAAmB,CAAC;AAmI3B,eAAO,MAAM,aAAa,kBAkBzB,CAAC;AAEF,eAAO,MAAM,aAAa,wDAqEzB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgB9B,CAAC;AAIF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4WAqLjC,CAAC"}
1
+ {"version":3,"file":"base-plugins.d.ts","sourceRoot":"","sources":["../src/base-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,CAAC,EA4CF,MAAM,mBAAmB,CAAC;AAmI3B,eAAO,MAAM,aAAa,kBAkBzB,CAAC;AAEF,eAAO,MAAM,aAAa,wDAqEzB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgB9B,CAAC;AAIF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4bAqLjC,CAAC"}
@@ -235,7 +235,7 @@ export const baseCoordinationTypes = [
235
235
  new PluginCoordinationType(CoordinationType.IMAGE_CHANNEL, null, z.string().nullable()),
236
236
  new PluginCoordinationType(CoordinationType.SEGMENTATION_LAYER, null, z.string().nullable()),
237
237
  new PluginCoordinationType(CoordinationType.SEGMENTATION_CHANNEL, null, z.string().nullable()),
238
- new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().nullable()),
238
+ new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
239
239
  new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_Z, null, z.number().nullable()),
240
240
  new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_T, null, z.number().nullable()),
241
241
  new PluginCoordinationType(CoordinationType.SPATIAL_LAYER_VISIBLE, true, z.boolean()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/all",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,29 +18,29 @@
18
18
  "dependencies": {
19
19
  "@material-ui/core": "~4.12.3",
20
20
  "zod": "^3.21.4",
21
- "@vitessce/constants-internal": "3.4.2",
22
- "@vitessce/csv": "3.4.2",
23
- "@vitessce/description": "3.4.2",
24
- "@vitessce/feature-list": "3.4.2",
25
- "@vitessce/genomic-profiles": "3.4.2",
26
- "@vitessce/glb": "3.4.2",
27
- "@vitessce/heatmap": "3.4.2",
28
- "@vitessce/json": "3.4.2",
29
- "@vitessce/layer-controller": "3.4.2",
30
- "@vitessce/layer-controller-beta": "3.4.2",
31
- "@vitessce/obs-sets-manager": "3.4.2",
32
- "@vitessce/ome-tiff": "3.4.2",
33
- "@vitessce/plugins": "3.4.2",
34
- "@vitessce/scatterplot-embedding": "3.4.2",
35
- "@vitessce/schemas": "3.4.2",
36
- "@vitessce/spatial-beta": "3.4.2",
37
- "@vitessce/spatial": "3.4.2",
38
- "@vitessce/statistical-plots": "3.4.2",
39
- "@vitessce/scatterplot-gating": "3.4.2",
40
- "@vitessce/status": "3.4.2",
41
- "@vitessce/vit-s": "3.4.2",
42
- "@vitessce/zarr": "3.4.2",
43
- "@vitessce/spatial-three": "3.4.2"
21
+ "@vitessce/constants-internal": "3.4.3",
22
+ "@vitessce/csv": "3.4.3",
23
+ "@vitessce/description": "3.4.3",
24
+ "@vitessce/feature-list": "3.4.3",
25
+ "@vitessce/genomic-profiles": "3.4.3",
26
+ "@vitessce/glb": "3.4.3",
27
+ "@vitessce/heatmap": "3.4.3",
28
+ "@vitessce/json": "3.4.3",
29
+ "@vitessce/layer-controller": "3.4.3",
30
+ "@vitessce/layer-controller-beta": "3.4.3",
31
+ "@vitessce/obs-sets-manager": "3.4.3",
32
+ "@vitessce/ome-tiff": "3.4.3",
33
+ "@vitessce/plugins": "3.4.3",
34
+ "@vitessce/scatterplot-gating": "3.4.3",
35
+ "@vitessce/scatterplot-embedding": "3.4.3",
36
+ "@vitessce/schemas": "3.4.3",
37
+ "@vitessce/statistical-plots": "3.4.3",
38
+ "@vitessce/spatial": "3.4.3",
39
+ "@vitessce/status": "3.4.3",
40
+ "@vitessce/vit-s": "3.4.3",
41
+ "@vitessce/spatial-beta": "3.4.3",
42
+ "@vitessce/zarr": "3.4.3",
43
+ "@vitessce/spatial-three": "3.4.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/react": "^18.0.28",
@@ -450,7 +450,7 @@ export const baseCoordinationTypes = [
450
450
  new PluginCoordinationType(CoordinationType.IMAGE_CHANNEL, null, z.string().nullable()),
451
451
  new PluginCoordinationType(CoordinationType.SEGMENTATION_LAYER, null, z.string().nullable()),
452
452
  new PluginCoordinationType(CoordinationType.SEGMENTATION_CHANNEL, null, z.string().nullable()),
453
- new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().nullable()),
453
+ new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
454
454
  new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_Z, null, z.number().nullable()),
455
455
  new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_T, null, z.number().nullable()),
456
456
  new PluginCoordinationType(CoordinationType.SPATIAL_LAYER_VISIBLE, true, z.boolean()),