@vitessce/dev 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 { aQ as BaseDecoder } from "./index-95e276a1.js";
2
+ import { aQ as BaseDecoder } from "./index-52247fed.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, { createElement, isValidElement, PureComponent, Component } from "react";
2
2
  import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
3
- import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-95e276a1.js";
3
+ import { aT as commonjsGlobal$1, aU as objectAssign, g as getDefaultExportFromCjs$1, aV as earcut } from "./index-52247fed.js";
4
4
  var promise = {};
5
5
  (function(exports2) {
6
6
  (function(global) {
@@ -913,10 +913,10 @@ const COMPONENT_COORDINATION_TYPES = {
913
913
  ]
914
914
  };
915
915
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
916
- const version$6 = "3.5.0";
917
- const date$5 = "2024-11-01";
916
+ const version$6 = "3.5.2";
917
+ const date$5 = "2024-11-25";
918
918
  const branch = "changeset-release/main";
919
- const hash$1 = "1eb007aa";
919
+ const hash$1 = "bca77bd4";
920
920
  const META_VERSION = {
921
921
  note,
922
922
  version: version$6,
@@ -9431,7 +9431,7 @@ function getStylesCreator(stylesOrCreator) {
9431
9431
  }
9432
9432
  }
9433
9433
  return {
9434
- create: function create6(theme, name2) {
9434
+ create: function create5(theme, name2) {
9435
9435
  var styles51;
9436
9436
  try {
9437
9437
  styles51 = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
@@ -20769,7 +20769,7 @@ var classCallCheck$1 = function(instance2, Constructor) {
20769
20769
  }
20770
20770
  };
20771
20771
  var createClass$1 = function() {
20772
- function defineProperties4(target2, props) {
20772
+ function defineProperties3(target2, props) {
20773
20773
  for (var i2 = 0; i2 < props.length; i2++) {
20774
20774
  var descriptor2 = props[i2];
20775
20775
  descriptor2.enumerable = descriptor2.enumerable || false;
@@ -20781,9 +20781,9 @@ var createClass$1 = function() {
20781
20781
  }
20782
20782
  return function(Constructor, protoProps, staticProps) {
20783
20783
  if (protoProps)
20784
- defineProperties4(Constructor.prototype, protoProps);
20784
+ defineProperties3(Constructor.prototype, protoProps);
20785
20785
  if (staticProps)
20786
- defineProperties4(Constructor, staticProps);
20786
+ defineProperties3(Constructor, staticProps);
20787
20787
  return Constructor;
20788
20788
  };
20789
20789
  }();
@@ -45938,6 +45938,16 @@ const PageModeViewContext = createContext$1({
45938
45938
  // Keys are view UIDs and values are
45939
45939
  // the corresponding React components.
45940
45940
  });
45941
+ function ensureComponent(component) {
45942
+ if (!component) {
45943
+ return () => null;
45944
+ }
45945
+ return component;
45946
+ }
45947
+ function usePageModeView(uid2) {
45948
+ const context2 = useContext(PageModeViewContext);
45949
+ return ensureComponent(context2?.[uid2]);
45950
+ }
45941
45951
  const ResponsiveGridLayout = reactGridLayoutWithLodashExports.WidthProvider(reactGridLayoutWithLodashExports.Responsive);
45942
45952
  class ResponsiveHeightGridLayout extends ResponsiveGridLayout {
45943
45953
  componentDidUpdate(prevProps) {
@@ -50521,14 +50531,14 @@ function toJsxRuntime(tree2, options) {
50521
50531
  throw new TypeError("Expected `Fragment` in options");
50522
50532
  }
50523
50533
  const filePath = options.filePath || void 0;
50524
- let create6;
50534
+ let create5;
50525
50535
  if (options.development) {
50526
50536
  if (typeof options.jsxDEV !== "function") {
50527
50537
  throw new TypeError(
50528
50538
  "Expected `jsxDEV` in options when `development: true`"
50529
50539
  );
50530
50540
  }
50531
- create6 = developmentCreate(filePath, options.jsxDEV);
50541
+ create5 = developmentCreate(filePath, options.jsxDEV);
50532
50542
  } else {
50533
50543
  if (typeof options.jsx !== "function") {
50534
50544
  throw new TypeError("Expected `jsx` in production options");
@@ -50536,13 +50546,13 @@ function toJsxRuntime(tree2, options) {
50536
50546
  if (typeof options.jsxs !== "function") {
50537
50547
  throw new TypeError("Expected `jsxs` in production options");
50538
50548
  }
50539
- create6 = productionCreate(filePath, options.jsx, options.jsxs);
50549
+ create5 = productionCreate(filePath, options.jsx, options.jsxs);
50540
50550
  }
50541
50551
  const state = {
50542
50552
  Fragment: options.Fragment,
50543
50553
  ancestors: [],
50544
50554
  components: options.components || {},
50545
- create: create6,
50555
+ create: create5,
50546
50556
  elementAttributeNameCase: options.elementAttributeNameCase || "react",
50547
50557
  evaluater: options.createEvaluater ? options.createEvaluater() : void 0,
50548
50558
  filePath,
@@ -50666,16 +50676,16 @@ function addChildren(props, children3) {
50666
50676
  }
50667
50677
  }
50668
50678
  function productionCreate(_2, jsx, jsxs) {
50669
- return create6;
50670
- function create6(_3, type3, props, key2) {
50679
+ return create5;
50680
+ function create5(_3, type3, props, key2) {
50671
50681
  const isStaticChildren = Array.isArray(props.children);
50672
50682
  const fn2 = isStaticChildren ? jsxs : jsx;
50673
50683
  return key2 ? fn2(type3, props, key2) : fn2(type3, props);
50674
50684
  }
50675
50685
  }
50676
50686
  function developmentCreate(filePath, jsxDEV) {
50677
- return create6;
50678
- function create6(node2, type3, props, key2) {
50687
+ return create5;
50688
+ function create5(node2, type3, props, key2) {
50679
50689
  const isStaticChildren = Array.isArray(props.children);
50680
50690
  const point2 = pointStart(node2);
50681
50691
  return jsxDEV(
@@ -54818,14 +54828,14 @@ function parse$e(options) {
54818
54828
  defined: [],
54819
54829
  lazy: {},
54820
54830
  constructs: constructs2,
54821
- content: create6(content$2),
54822
- document: create6(document$2),
54823
- flow: create6(flow$1),
54824
- string: create6(string$4),
54825
- text: create6(text$5)
54831
+ content: create5(content$2),
54832
+ document: create5(document$2),
54833
+ flow: create5(flow$1),
54834
+ string: create5(string$4),
54835
+ text: create5(text$5)
54826
54836
  };
54827
54837
  return parser2;
54828
- function create6(initial) {
54838
+ function create5(initial) {
54829
54839
  return creator2;
54830
54840
  function creator2(from) {
54831
54841
  return createTokenizer(parser2, initial, from);
@@ -55193,10 +55203,10 @@ function compiler(options) {
55193
55203
  events2[start][1]._spread = listSpread;
55194
55204
  return length2;
55195
55205
  }
55196
- function opener(create6, and) {
55206
+ function opener(create5, and) {
55197
55207
  return open2;
55198
55208
  function open2(token) {
55199
- enter.call(this, create6(token), token);
55209
+ enter.call(this, create5(token), token);
55200
55210
  if (and)
55201
55211
  and.call(this, token);
55202
55212
  }
@@ -67926,10 +67936,10 @@ var _propertyDesc = function(bitmap, value2) {
67926
67936
  value: value2
67927
67937
  };
67928
67938
  };
67929
- var dP$2 = require_objectDp();
67939
+ var dP$1 = require_objectDp();
67930
67940
  var createDesc$2 = _propertyDesc;
67931
67941
  var _hide = require_descriptors() ? function(object2, key2, value2) {
67932
- return dP$2.f(object2, key2, createDesc$2(1, value2));
67942
+ return dP$1.f(object2, key2, createDesc$2(1, value2));
67933
67943
  } : function(object2, key2, value2) {
67934
67944
  object2[key2] = value2;
67935
67945
  return object2;
@@ -67943,7 +67953,7 @@ var core$3 = _coreExports;
67943
67953
  var ctx = _ctx;
67944
67954
  var hide$2 = _hide;
67945
67955
  var has$a = _has$1;
67946
- var PROTOTYPE$2 = "prototype";
67956
+ var PROTOTYPE$1 = "prototype";
67947
67957
  var $export$6 = function(type3, name2, source2) {
67948
67958
  var IS_FORCED = type3 & $export$6.F;
67949
67959
  var IS_GLOBAL = type3 & $export$6.G;
@@ -67952,8 +67962,8 @@ var $export$6 = function(type3, name2, source2) {
67952
67962
  var IS_BIND = type3 & $export$6.B;
67953
67963
  var IS_WRAP = type3 & $export$6.W;
67954
67964
  var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
67955
- var expProto = exports2[PROTOTYPE$2];
67956
- var target2 = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$2];
67965
+ var expProto = exports2[PROTOTYPE$1];
67966
+ var target2 = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
67957
67967
  var key2, own2, out;
67958
67968
  if (IS_GLOBAL)
67959
67969
  source2 = name2;
@@ -67977,7 +67987,7 @@ var $export$6 = function(type3, name2, source2) {
67977
67987
  }
67978
67988
  return C3.apply(this, arguments);
67979
67989
  };
67980
- F[PROTOTYPE$2] = C3[PROTOTYPE$2];
67990
+ F[PROTOTYPE$1] = C3[PROTOTYPE$1];
67981
67991
  return F;
67982
67992
  }(out) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
67983
67993
  if (IS_PROTO) {
@@ -68082,22 +68092,30 @@ var px$2 = Math.random();
68082
68092
  var _uid = function(key2) {
68083
68093
  return "Symbol(".concat(key2 === void 0 ? "" : key2, ")_", (++id$4 + px$2).toString(36));
68084
68094
  };
68085
- var shared$1 = _sharedExports("keys");
68086
- var uid$3 = _uid;
68087
- var _sharedKey = function(key2) {
68088
- return shared$1[key2] || (shared$1[key2] = uid$3(key2));
68089
- };
68095
+ var _sharedKey;
68096
+ var hasRequired_sharedKey;
68097
+ function require_sharedKey() {
68098
+ if (hasRequired_sharedKey)
68099
+ return _sharedKey;
68100
+ hasRequired_sharedKey = 1;
68101
+ var shared2 = _sharedExports("keys");
68102
+ var uid2 = _uid;
68103
+ _sharedKey = function(key2) {
68104
+ return shared2[key2] || (shared2[key2] = uid2(key2));
68105
+ };
68106
+ return _sharedKey;
68107
+ }
68090
68108
  var has$9 = _has$1;
68091
68109
  var toIObject$4 = _toIobject;
68092
68110
  var arrayIndexOf = _arrayIncludes(false);
68093
- var IE_PROTO$2 = _sharedKey("IE_PROTO");
68111
+ var IE_PROTO$1 = require_sharedKey()("IE_PROTO");
68094
68112
  var _objectKeysInternal = function(object2, names) {
68095
68113
  var O = toIObject$4(object2);
68096
68114
  var i2 = 0;
68097
68115
  var result = [];
68098
68116
  var key2;
68099
68117
  for (key2 in O)
68100
- if (key2 != IE_PROTO$2)
68118
+ if (key2 != IE_PROTO$1)
68101
68119
  has$9(O, key2) && result.push(key2);
68102
68120
  while (names.length > i2)
68103
68121
  if (has$9(O, key2 = names[i2++])) {
@@ -68107,9 +68125,9 @@ var _objectKeysInternal = function(object2, names) {
68107
68125
  };
68108
68126
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
68109
68127
  var $keys$2 = _objectKeysInternal;
68110
- var enumBugKeys$1 = _enumBugKeys;
68128
+ var enumBugKeys = _enumBugKeys;
68111
68129
  var _objectKeys$1 = Object.keys || function keys(O) {
68112
- return $keys$2(O, enumBugKeys$1);
68130
+ return $keys$2(O, enumBugKeys);
68113
68131
  };
68114
68132
  var _objectGops = {};
68115
68133
  _objectGops.f = Object.getOwnPropertySymbols;
@@ -68227,7 +68245,7 @@ function _interopRequireDefault$o(obj) {
68227
68245
  return obj && obj.__esModule ? obj : { default: obj };
68228
68246
  }
68229
68247
  var _default$5 = function() {
68230
- function defineProperties4(target2, props) {
68248
+ function defineProperties3(target2, props) {
68231
68249
  for (var i2 = 0; i2 < props.length; i2++) {
68232
68250
  var descriptor2 = props[i2];
68233
68251
  descriptor2.enumerable = descriptor2.enumerable || false;
@@ -68239,9 +68257,9 @@ var _default$5 = function() {
68239
68257
  }
68240
68258
  return function(Constructor, protoProps, staticProps) {
68241
68259
  if (protoProps)
68242
- defineProperties4(Constructor.prototype, protoProps);
68260
+ defineProperties3(Constructor.prototype, protoProps);
68243
68261
  if (staticProps)
68244
- defineProperties4(Constructor, staticProps);
68262
+ defineProperties3(Constructor, staticProps);
68245
68263
  return Constructor;
68246
68264
  };
68247
68265
  }();
@@ -68262,19 +68280,27 @@ var _stringAt = function(TO_STRING) {
68262
68280
  };
68263
68281
  var _redefine = _hide;
68264
68282
  var _iterators = {};
68265
- var dP$1 = require_objectDp();
68266
- var anObject$2 = _anObject;
68267
- var getKeys$1 = _objectKeys$1;
68268
- var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
68269
- anObject$2(O);
68270
- var keys4 = getKeys$1(Properties);
68271
- var length2 = keys4.length;
68272
- var i2 = 0;
68273
- var P2;
68274
- while (length2 > i2)
68275
- dP$1.f(O, P2 = keys4[i2++], Properties[P2]);
68276
- return O;
68277
- };
68283
+ var _objectDps;
68284
+ var hasRequired_objectDps;
68285
+ function require_objectDps() {
68286
+ if (hasRequired_objectDps)
68287
+ return _objectDps;
68288
+ hasRequired_objectDps = 1;
68289
+ var dP2 = require_objectDp();
68290
+ var anObject2 = _anObject;
68291
+ var getKeys2 = _objectKeys$1;
68292
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties3(O, Properties) {
68293
+ anObject2(O);
68294
+ var keys4 = getKeys2(Properties);
68295
+ var length2 = keys4.length;
68296
+ var i2 = 0;
68297
+ var P2;
68298
+ while (length2 > i2)
68299
+ dP2.f(O, P2 = keys4[i2++], Properties[P2]);
68300
+ return O;
68301
+ };
68302
+ return _objectDps;
68303
+ }
68278
68304
  var _html;
68279
68305
  var hasRequired_html;
68280
68306
  function require_html() {
@@ -68285,42 +68311,50 @@ function require_html() {
68285
68311
  _html = document2 && document2.documentElement;
68286
68312
  return _html;
68287
68313
  }
68288
- var anObject$1 = _anObject;
68289
- var dPs = _objectDps;
68290
- var enumBugKeys = _enumBugKeys;
68291
- var IE_PROTO$1 = _sharedKey("IE_PROTO");
68292
- var Empty$2 = function() {
68293
- };
68294
- var PROTOTYPE$1 = "prototype";
68295
- var createDict = function() {
68296
- var iframe = require_domCreate()("iframe");
68297
- var i2 = enumBugKeys.length;
68298
- var lt2 = "<";
68299
- var gt2 = ">";
68300
- var iframeDocument;
68301
- iframe.style.display = "none";
68302
- require_html().appendChild(iframe);
68303
- iframe.src = "javascript:";
68304
- iframeDocument = iframe.contentWindow.document;
68305
- iframeDocument.open();
68306
- iframeDocument.write(lt2 + "script" + gt2 + "document.F=Object" + lt2 + "/script" + gt2);
68307
- iframeDocument.close();
68308
- createDict = iframeDocument.F;
68309
- while (i2--)
68310
- delete createDict[PROTOTYPE$1][enumBugKeys[i2]];
68311
- return createDict();
68312
- };
68313
- var _objectCreate = Object.create || function create2(O, Properties) {
68314
- var result;
68315
- if (O !== null) {
68316
- Empty$2[PROTOTYPE$1] = anObject$1(O);
68317
- result = new Empty$2();
68318
- Empty$2[PROTOTYPE$1] = null;
68319
- result[IE_PROTO$1] = O;
68320
- } else
68321
- result = createDict();
68322
- return Properties === void 0 ? result : dPs(result, Properties);
68323
- };
68314
+ var _objectCreate;
68315
+ var hasRequired_objectCreate;
68316
+ function require_objectCreate() {
68317
+ if (hasRequired_objectCreate)
68318
+ return _objectCreate;
68319
+ hasRequired_objectCreate = 1;
68320
+ var anObject2 = _anObject;
68321
+ var dPs = require_objectDps();
68322
+ var enumBugKeys2 = _enumBugKeys;
68323
+ var IE_PROTO2 = require_sharedKey()("IE_PROTO");
68324
+ var Empty2 = function() {
68325
+ };
68326
+ var PROTOTYPE2 = "prototype";
68327
+ var createDict = function() {
68328
+ var iframe = require_domCreate()("iframe");
68329
+ var i2 = enumBugKeys2.length;
68330
+ var lt2 = "<";
68331
+ var gt2 = ">";
68332
+ var iframeDocument;
68333
+ iframe.style.display = "none";
68334
+ require_html().appendChild(iframe);
68335
+ iframe.src = "javascript:";
68336
+ iframeDocument = iframe.contentWindow.document;
68337
+ iframeDocument.open();
68338
+ iframeDocument.write(lt2 + "script" + gt2 + "document.F=Object" + lt2 + "/script" + gt2);
68339
+ iframeDocument.close();
68340
+ createDict = iframeDocument.F;
68341
+ while (i2--)
68342
+ delete createDict[PROTOTYPE2][enumBugKeys2[i2]];
68343
+ return createDict();
68344
+ };
68345
+ _objectCreate = Object.create || function create5(O, Properties) {
68346
+ var result;
68347
+ if (O !== null) {
68348
+ Empty2[PROTOTYPE2] = anObject2(O);
68349
+ result = new Empty2();
68350
+ Empty2[PROTOTYPE2] = null;
68351
+ result[IE_PROTO2] = O;
68352
+ } else
68353
+ result = createDict();
68354
+ return Properties === void 0 ? result : dPs(result, Properties);
68355
+ };
68356
+ return _objectCreate;
68357
+ }
68324
68358
  var _wks = { exports: {} };
68325
68359
  var store = _sharedExports("wks");
68326
68360
  var uid$2 = _uid;
@@ -68338,7 +68372,7 @@ var _setToStringTag = function(it2, tag2, stat) {
68338
68372
  if (it2 && !has$8(it2 = stat ? it2 : it2.prototype, TAG))
68339
68373
  def$1(it2, TAG, { configurable: true, value: tag2 });
68340
68374
  };
68341
- var create$c = _objectCreate;
68375
+ var create$c = require_objectCreate();
68342
68376
  var descriptor = _propertyDesc;
68343
68377
  var setToStringTag$2 = _setToStringTag;
68344
68378
  var IteratorPrototype$2 = {};
@@ -68351,7 +68385,7 @@ var _iterCreate = function(Constructor, NAME2, next3) {
68351
68385
  };
68352
68386
  var has$7 = _has$1;
68353
68387
  var toObject$2 = _toObject;
68354
- var IE_PROTO = _sharedKey("IE_PROTO");
68388
+ var IE_PROTO = require_sharedKey()("IE_PROTO");
68355
68389
  var ObjectProto$1 = Object.prototype;
68356
68390
  var _objectGpo = Object.getPrototypeOf || function(O) {
68357
68391
  O = toObject$2(O);
@@ -68514,23 +68548,23 @@ var setMeta = function(it2) {
68514
68548
  // weak collections IDs
68515
68549
  } });
68516
68550
  };
68517
- var fastKey = function(it2, create6) {
68551
+ var fastKey = function(it2, create5) {
68518
68552
  if (!isObject$e(it2))
68519
68553
  return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
68520
68554
  if (!has$6(it2, META$1)) {
68521
68555
  if (!isExtensible(it2))
68522
68556
  return "F";
68523
- if (!create6)
68557
+ if (!create5)
68524
68558
  return "E";
68525
68559
  setMeta(it2);
68526
68560
  }
68527
68561
  return it2[META$1].i;
68528
68562
  };
68529
- var getWeak = function(it2, create6) {
68563
+ var getWeak = function(it2, create5) {
68530
68564
  if (!has$6(it2, META$1)) {
68531
68565
  if (!isExtensible(it2))
68532
68566
  return true;
68533
- if (!create6)
68567
+ if (!create5)
68534
68568
  return false;
68535
68569
  setMeta(it2);
68536
68570
  }
@@ -68639,7 +68673,7 @@ var toObject$1 = _toObject;
68639
68673
  var toIObject = _toIobject;
68640
68674
  var toPrimitive = _toPrimitive;
68641
68675
  var createDesc = _propertyDesc;
68642
- var _create$1 = _objectCreate;
68676
+ var _create$1 = require_objectCreate();
68643
68677
  var gOPNExt = _objectGopnExt;
68644
68678
  var $GOPD = _objectGopd;
68645
68679
  var $GOPS = _objectGops;
@@ -68706,7 +68740,7 @@ var $defineProperty$4 = function defineProperty2(it2, key2, D2) {
68706
68740
  }
68707
68741
  return dP(it2, key2, D2);
68708
68742
  };
68709
- var $defineProperties = function defineProperties2(it2, P2) {
68743
+ var $defineProperties = function defineProperties(it2, P2) {
68710
68744
  anObject(it2);
68711
68745
  var keys4 = enumKeys(P2 = toIObject(P2));
68712
68746
  var i2 = 0;
@@ -68716,7 +68750,7 @@ var $defineProperties = function defineProperties2(it2, P2) {
68716
68750
  $defineProperty$4(it2, key2 = keys4[i2++], P2[key2]);
68717
68751
  return it2;
68718
68752
  };
68719
- var $create = function create3(it2, P2) {
68753
+ var $create = function create2(it2, P2) {
68720
68754
  return P2 === void 0 ? _create$1(it2) : $defineProperties(_create$1(it2), P2);
68721
68755
  };
68722
68756
  var $propertyIsEnumerable = function propertyIsEnumerable(key2) {
@@ -68943,9 +68977,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
68943
68977
  var setPrototypeOf$2 = _coreExports.Object.setPrototypeOf;
68944
68978
  var setPrototypeOf$1 = { "default": setPrototypeOf$2, __esModule: true };
68945
68979
  var $export = _export;
68946
- $export($export.S, "Object", { create: _objectCreate });
68980
+ $export($export.S, "Object", { create: require_objectCreate() });
68947
68981
  var $Object$2 = _coreExports.Object;
68948
- var create$b = function create4(P2, D2) {
68982
+ var create$b = function create3(P2, D2) {
68949
68983
  return $Object$2.create(P2, D2);
68950
68984
  };
68951
68985
  var create$a = { "default": create$b, __esModule: true };
@@ -123501,11 +123535,11 @@ class Tileset2D {
123501
123535
  this._dirty = false;
123502
123536
  }
123503
123537
  }
123504
- _getTile(index2, create6) {
123538
+ _getTile(index2, create5) {
123505
123539
  const id2 = this.getTileId(index2);
123506
123540
  let tile = this._cache.get(id2);
123507
123541
  let needsReload = false;
123508
- if (!tile && create6) {
123542
+ if (!tile && create5) {
123509
123543
  tile = new Tile2DHeader(index2);
123510
123544
  Object.assign(tile, this.getTileMetadata(tile.index));
123511
123545
  Object.assign(tile, {
@@ -151905,7 +151939,7 @@ var defineProperty$2 = function(object2, name2, value2, predicate) {
151905
151939
  defineDataProperty2(object2, name2, value2);
151906
151940
  }
151907
151941
  };
151908
- var defineProperties3 = function(object2, map2) {
151942
+ var defineProperties2 = function(object2, map2) {
151909
151943
  var predicates = arguments.length > 2 ? arguments[2] : {};
151910
151944
  var props = keys$4(map2);
151911
151945
  if (hasSymbols2) {
@@ -151915,8 +151949,8 @@ var defineProperties3 = function(object2, map2) {
151915
151949
  defineProperty$2(object2, props[i2], map2[props[i2]], predicates[props[i2]]);
151916
151950
  }
151917
151951
  };
151918
- defineProperties3.supportsDescriptors = !!supportsDescriptors$2;
151919
- var defineProperties_1 = defineProperties3;
151952
+ defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
151953
+ var defineProperties_1 = defineProperties2;
151920
151954
  var numberIsNaN = function(value2) {
151921
151955
  return value2 !== value2;
151922
151956
  };
@@ -186166,16 +186200,16 @@ async function getDecoder(fileDirectory) {
186166
186200
  const Decoder = await importFn();
186167
186201
  return new Decoder(fileDirectory);
186168
186202
  }
186169
- addDecoder([void 0, 1], () => import("./raw-edd2aec3.js").then((m2) => m2.default));
186170
- addDecoder(5, () => import("./lzw-8a0f76a0.js").then((m2) => m2.default));
186203
+ addDecoder([void 0, 1], () => import("./raw-30423296.js").then((m2) => m2.default));
186204
+ addDecoder(5, () => import("./lzw-03433d00.js").then((m2) => m2.default));
186171
186205
  addDecoder(6, () => {
186172
186206
  throw new Error("old style JPEG compression is not supported.");
186173
186207
  });
186174
- addDecoder(7, () => import("./jpeg-050ce4df.js").then((m2) => m2.default));
186175
- addDecoder([8, 32946], () => import("./deflate-4dac9e19.js").then((m2) => m2.default));
186176
- addDecoder(32773, () => import("./packbits-37b5e4bb.js").then((m2) => m2.default));
186177
- addDecoder(34887, () => import("./lerc-d658f291.js").then((m2) => m2.default));
186178
- addDecoder(50001, () => import("./webimage-0aca513a.js").then((m2) => m2.default));
186208
+ addDecoder(7, () => import("./jpeg-fd91de62.js").then((m2) => m2.default));
186209
+ addDecoder([8, 32946], () => import("./deflate-72d799f5.js").then((m2) => m2.default));
186210
+ addDecoder(32773, () => import("./packbits-8bd96d43.js").then((m2) => m2.default));
186211
+ addDecoder(34887, () => import("./lerc-d9887b3e.js").then((m2) => m2.default));
186212
+ addDecoder(50001, () => import("./webimage-2d56d74e.js").then((m2) => m2.default));
186179
186213
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
186180
186214
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
186181
186215
  }
@@ -201501,18 +201535,18 @@ function selection_lower() {
201501
201535
  return this.each(lower);
201502
201536
  }
201503
201537
  function selection_append(name2) {
201504
- var create6 = typeof name2 === "function" ? name2 : creator(name2);
201538
+ var create5 = typeof name2 === "function" ? name2 : creator(name2);
201505
201539
  return this.select(function() {
201506
- return this.appendChild(create6.apply(this, arguments));
201540
+ return this.appendChild(create5.apply(this, arguments));
201507
201541
  });
201508
201542
  }
201509
201543
  function constantNull() {
201510
201544
  return null;
201511
201545
  }
201512
201546
  function selection_insert(name2, before) {
201513
- var create6 = typeof name2 === "function" ? name2 : creator(name2), select2 = before == null ? constantNull : typeof before === "function" ? before : selector(before);
201547
+ var create5 = typeof name2 === "function" ? name2 : creator(name2), select2 = before == null ? constantNull : typeof before === "function" ? before : selector(before);
201514
201548
  return this.select(function() {
201515
- return this.insertBefore(create6.apply(this, arguments), select2.apply(this, arguments) || null);
201549
+ return this.insertBefore(create5.apply(this, arguments), select2.apply(this, arguments) || null);
201516
201550
  });
201517
201551
  }
201518
201552
  function remove$1() {
@@ -205935,12 +205969,14 @@ function ChannelNamesLegend(props) {
205935
205969
  }), children: channelScopes.map((cScope) => {
205936
205970
  const { spatialTargetC, spatialChannelVisible, spatialChannelColor } = channelCoordination[cScope];
205937
205971
  const rgbColor = colorArrayToString(spatialChannelColor);
205938
- const channelNames = images?.[layerScope]?.image?.instance.getChannelNames();
205939
- const channelName = channelNames?.[spatialTargetC];
205972
+ const imageWrapperInstance = images?.[layerScope]?.image?.instance;
205973
+ const channelNames = imageWrapperInstance?.getChannelNames();
205974
+ const channelIndex = imageWrapperInstance?.getChannelIndex(spatialTargetC);
205975
+ const channelName = channelNames?.[channelIndex];
205940
205976
  return spatialLayerVisible && spatialChannelVisible && spatialChannelLabelsVisible ? jsxRuntimeExports.jsx(Typography$1, { variant: "h6", className: classes.channelNameText, style: {
205941
205977
  color: rgbColor,
205942
205978
  fontSize: `${spatialChannelLabelSize}px`
205943
- }, children: channelName }, `${layerScope}-${cScope}-${spatialTargetC}-${rgbColor}`) : null;
205979
+ }, children: channelName }, `${layerScope}-${cScope}-${channelIndex}-${rgbColor}`) : null;
205944
205980
  }) }, layerScope) : null;
205945
205981
  }) : null });
205946
205982
  }
@@ -206793,7 +206829,7 @@ var typedFunction$1 = { exports: {} };
206793
206829
  function undef() {
206794
206830
  return void 0;
206795
206831
  }
206796
- function create6() {
206832
+ function create5() {
206797
206833
  var _types = [
206798
206834
  { name: "number", test: function(x2) {
206799
206835
  return typeof x2 === "number";
@@ -207545,7 +207581,7 @@ var typedFunction$1 = { exports: {} };
207545
207581
  return createTypedFunction(name2, extractSignatures(fns));
207546
207582
  }
207547
207583
  });
207548
- typed2.create = create6;
207584
+ typed2.create = create5;
207549
207585
  typed2.types = _types;
207550
207586
  typed2.conversions = _conversions;
207551
207587
  typed2.ignore = _ignore;
@@ -207576,7 +207612,7 @@ var typedFunction$1 = { exports: {} };
207576
207612
  };
207577
207613
  return typed2;
207578
207614
  }
207579
- return create6();
207615
+ return create5();
207580
207616
  });
207581
207617
  })(typedFunction$1);
207582
207618
  var typedFunctionExports = typedFunction$1.exports;
@@ -208288,11 +208324,11 @@ function getArrayDataType(array2, typeOf2) {
208288
208324
  }
208289
208325
  return type3;
208290
208326
  }
208291
- function factory(name2, dependencies2, create6, meta2) {
208327
+ function factory(name2, dependencies2, create5, meta2) {
208292
208328
  function assertAndCreate(scope) {
208293
208329
  var deps = pickShallow(scope, dependencies2.map(stripOptionalNotation));
208294
208330
  assertDependencies(name2, dependencies2, scope);
208295
- return create6(deps);
208331
+ return create5(deps);
208296
208332
  }
208297
208333
  assertAndCreate.isFactory = true;
208298
208334
  assertAndCreate.fn = name2;
@@ -224962,6 +224998,7 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
224962
224998
  cellSelection,
224963
224999
  setCellHighlight,
224964
225000
  setComponentHover,
225001
+ setHoverInfo,
224965
225002
  getCellIsSelected = makeDefaultGetCellIsSelected(obsIndex.length === cellSelection.length ? null : cellSelection),
224966
225003
  cellColors,
224967
225004
  getCellColor = makeDefaultGetCellColors$1(cellColors, obsIndex, theme),
@@ -224979,6 +225016,12 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
224979
225016
  const r3 = radius2;
224980
225017
  return [[x2, y2 + r3], [x2 + r3, y2], [x2, y2 - r3], [x2 - r3, y2]];
224981
225018
  };
225019
+ const onHoverCallback = (info2) => {
225020
+ const standardOnHoverCallback = getOnHoverCallback(obsIndex, setCellHighlight, setComponentHover);
225021
+ const obsId = obsIndex[info2.index];
225022
+ setHoverInfo([obsId], [info2.x, info2.y]);
225023
+ standardOnHoverCallback(info2);
225024
+ };
224982
225025
  return new PolygonLayer({
224983
225026
  id: CELLS_LAYER_ID,
224984
225027
  data: this.obsSegmentationsData,
@@ -225013,7 +225056,7 @@ let Spatial$1 = class Spatial extends AbstractSpatialOrScatterplot {
225013
225056
  onCellClick(info2);
225014
225057
  }
225015
225058
  },
225016
- onHover: getOnHoverCallback(obsIndex, setCellHighlight, setComponentHover),
225059
+ onHover: onHoverCallback,
225017
225060
  visible,
225018
225061
  getLineWidth: stroked ? 1 : 0,
225019
225062
  lineWidthScale,
@@ -225525,7 +225568,7 @@ function SpatialTooltipSubscriber$1(props) {
225525
225568
  if (obsId) {
225526
225569
  [cellInfo, x2, y2] = [
225527
225570
  getObsInfo2(obsId),
225528
- ...viewInfo && viewInfo.project ? viewInfo.project(hoverCoord) : [null, null]
225571
+ ...hoverCoord
225529
225572
  ];
225530
225573
  }
225531
225574
  } else if (!useHoverInfoForTooltip && getObsInfo2 && obsHighlight) {
@@ -226314,7 +226357,7 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
226314
226357
  const nextLoaderSelection = channelScopes.map((cScope) => filterSelection(data2, {
226315
226358
  z: targetZ,
226316
226359
  t: targetT,
226317
- c: channelCoordination[cScope][CoordinationType$2.SPATIAL_TARGET_C]
226360
+ c: image2?.obsSegmentations?.instance?.getChannelIndex(channelCoordination[cScope][CoordinationType$2.SPATIAL_TARGET_C])
226318
226361
  }));
226319
226362
  const prevLoaderSelection = this.segmentationLayerLoaderSelections[layerScope];
226320
226363
  if (isEqual$5(prevLoaderSelection, nextLoaderSelection)) {
@@ -226408,7 +226451,7 @@ class Spatial2 extends AbstractSpatialOrScatterplot {
226408
226451
  })) : channelScopes.map((cScope) => filterSelection(data2, {
226409
226452
  z: targetZ,
226410
226453
  t: targetT,
226411
- c: channelCoordination[cScope][CoordinationType$2.SPATIAL_TARGET_C]
226454
+ c: image2?.image?.instance?.getChannelIndex(channelCoordination[cScope][CoordinationType$2.SPATIAL_TARGET_C])
226412
226455
  }));
226413
226456
  const prevLoaderSelection = this.imageLayerLoaderSelections[layerScope];
226414
226457
  if (isEqual$5(prevLoaderSelection, nextLoaderSelection)) {
@@ -227138,7 +227181,7 @@ class ErrorBoundary extends React__default.Component {
227138
227181
  }
227139
227182
  }
227140
227183
  const LazySpatialThree = React__default.lazy(async () => {
227141
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-ab2ea219.js");
227184
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-a6bd5a94.js");
227142
227185
  return { default: SpatialWrapper2 };
227143
227186
  });
227144
227187
  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 }) }) }) }));
@@ -234686,7 +234729,8 @@ function ImageLayerController(props) {
234686
234729
  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) => {
234687
234730
  const { spatialTargetC, spatialChannelVisible, spatialChannelOpacity, spatialChannelColor, spatialChannelWindow } = channelCoordination[cScope];
234688
234731
  const { setSpatialTargetC, setSpatialChannelVisible, setSpatialChannelOpacity, setSpatialChannelColor, setSpatialChannelWindow } = setChannelCoordination[cScope];
234689
- 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);
234732
+ const channelIndex = image2?.getChannelIndex(spatialTargetC);
234733
+ 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);
234690
234734
  }), 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] }) });
234691
234735
  }
234692
234736
  const useStyles$5 = makeStyles((theme) => ({
@@ -236443,7 +236487,7 @@ const useStyles$3 = makeStyles((theme) => ({
236443
236487
  }));
236444
236488
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
236445
236489
  const LazyHiGlassComponent = React__default.lazy(async () => {
236446
- const { HiGlassComponent } = await import("./higlass-5e48282e.js");
236490
+ const { HiGlassComponent } = await import("./higlass-7228720c.js");
236447
236491
  return { default: HiGlassComponent };
236448
236492
  });
236449
236493
  const HG_SIZE = 800;
@@ -267101,8 +267145,8 @@ function bind3(view, el2, binding) {
267101
267145
  bind4.update = debounce(param2.debounce, bind4.update);
267102
267146
  }
267103
267147
  }
267104
- const create6 = param2.input == null && param2.element ? target : generate$1;
267105
- create6(bind4, el2, param2, view);
267148
+ const create5 = param2.input == null && param2.element ? target : generate$1;
267149
+ create5(bind4, el2, param2, view);
267106
267150
  if (!bind4.active) {
267107
267151
  view.on(view._signals[param2.signal], null, () => {
267108
267152
  bind4.source ? bind4.source = false : bind4.set(view.signal(param2.signal));
@@ -305509,7 +305553,7 @@ function createStyleFunction(obj) {
305509
305553
  }
305510
305554
  const Feature$1 = Feature;
305511
305555
  new Array(6);
305512
- function create5() {
305556
+ function create4() {
305513
305557
  return [1, 0, 0, 1, 0, 0];
305514
305558
  }
305515
305559
  function compose(transform4, dx1, dy1, sx, sy, angle2, dx2, dy2) {
@@ -306178,7 +306222,7 @@ function translate(flatCoordinates, offset6, end, stride, deltaX, deltaY, dest)
306178
306222
  }
306179
306223
  return dest;
306180
306224
  }
306181
- const tmpTransform = create5();
306225
+ const tmpTransform = create4();
306182
306226
  class Geometry2 extends BaseObject$1 {
306183
306227
  constructor() {
306184
306228
  super();
@@ -311666,6 +311710,17 @@ class ImageWrapper {
311666
311710
  }
311667
311711
  return [];
311668
311712
  }
311713
+ getChannelIndex(channelSpecifier) {
311714
+ if (typeof channelSpecifier === "number") {
311715
+ return channelSpecifier;
311716
+ }
311717
+ const channelNames = this.getChannelNames();
311718
+ const channelIndex = channelNames.indexOf(channelSpecifier);
311719
+ if (channelIndex === -1) {
311720
+ console.error(`Channel ${channelSpecifier} not found in image.`);
311721
+ }
311722
+ return channelIndex;
311723
+ }
311669
311724
  // TODO: support passing a custom color palette array.
311670
311725
  getChannelObjects() {
311671
311726
  if ("image-label" in this.vivLoader.metadata) {
@@ -357228,12 +357283,13 @@ export {
357228
357283
  z as bo,
357229
357284
  useCoordination as bp,
357230
357285
  useGridItemSize as bq,
357231
- useComplexCoordination as br,
357232
- useMultiCoordinationScopesNonNull as bs,
357233
- useMultiCoordinationScopesSecondaryNonNull as bt,
357234
- useComplexCoordinationSecondary as bu,
357235
- useCoordinationScopes as bv,
357236
- useCoordinationScopesBy as bw,
357286
+ usePageModeView as br,
357287
+ useComplexCoordination as bs,
357288
+ useMultiCoordinationScopesNonNull as bt,
357289
+ useMultiCoordinationScopesSecondaryNonNull as bu,
357290
+ useComplexCoordinationSecondary as bv,
357291
+ useCoordinationScopes as bw,
357292
+ useCoordinationScopesBy as bx,
357237
357293
  create$e as c,
357238
357294
  RGBAFormat as d,
357239
357295
  PCFShadowMap as e,
@@ -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 Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, 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 SphereGeometry, 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-95e276a1.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 Ray$1, r as Plane, E as EventDispatcher, s as MOUSE, t as TOUCH, Q as Quaternion, u as Spherical, v as Loader, w as LoaderUtils, F as FileLoader, x as SpotLight, y as PointLight, D as DirectionalLight, z as MeshBasicMaterial, H as MeshPhysicalMaterial, I as InstancedMesh, J as Object3D, K as TextureLoader, X as ImageBitmapLoader, Y as BufferAttribute, Z as InterleavedBuffer, $ as LinearFilter, a0 as LinearMipmapLinearFilter, a1 as RepeatWrapping, a2 as PointsMaterial, a3 as LineBasicMaterial, a4 as MeshStandardMaterial, a5 as DoubleSide, a6 as PropertyBinding, a7 as SkinnedMesh, a8 as Mesh, a9 as LineSegments, aa as Line$1, ab as LineLoop, ac as Points, ad as MathUtils, ae as Skeleton, af as InterpolateLinear, ag as AnimationClip, ah as Bone, ai as NearestFilter, aj as NearestMipmapNearestFilter, ak as LinearMipmapNearestFilter, al as NearestMipmapLinearFilter, am as ClampToEdgeWrapping, an as MirroredRepeatWrapping, ao as InterpolateDiscrete, ap as FrontSide, aq as InterleavedBufferAttribute, ar as VectorKeyframeTrack, as as QuaternionKeyframeTrack, at as NumberKeyframeTrack, au as Box3, av as Sphere, aw as Interpolant, 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 SphereGeometry, 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-52247fed.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-ffb13fc0.js"), []);
23696
+ } = suspend(async () => import("./troika-three-text.esm-1d9880de.js"), []);
23697
23697
  const invalidate2 = useThree(({
23698
23698
  invalidate: invalidate3
23699
23699
  }) => invalidate3);
@@ -28038,7 +28038,7 @@ function extractInformationFromProps(layerScope, layerCoordination, channelScope
28038
28038
  visible && true
28039
28039
  ] : channelScopes.map((cScope) => (
28040
28040
  // Layer visible AND channel visible
28041
- visible && channelCoordination[cScope][CoordinationType.SPATIAL_TARGET_C]
28041
+ visible && imageWrapperInstance.getChannelIndex(channelCoordination[cScope][CoordinationType.SPATIAL_TARGET_C])
28042
28042
  ));
28043
28043
  const autoTargetResolution = imageWrapperInstance.getAutoTargetResolution();
28044
28044
  const targetResolution = layerCoordination[CoordinationType.SPATIAL_TARGET_RESOLUTION];
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ba, b5, b3, b4, be, bf, b6, bn, bl, bj, bm, bk, b2, bi, b7, b1, b0, bc, bb, bd, bh, bg, b9, br, bu, bp, bv, bw, bq, bs, bt, b8, bo } from "./index-95e276a1.js";
1
+ import { ba, b5, b3, b4, be, bf, b6, bn, bl, bj, bm, bk, b2, bi, b7, b1, b0, bc, bb, bd, bh, bg, b9, bs, bv, bp, bw, bx, bq, bt, bu, br, b8, bo } from "./index-52247fed.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
@@ -25,14 +25,15 @@ export {
25
25
  bh as getInitialCoordinationScopeName,
26
26
  bg as getInitialCoordinationScopePrefix,
27
27
  b9 as hconcat,
28
- br as useComplexCoordination,
29
- bu as useComplexCoordinationSecondary,
28
+ bs as useComplexCoordination,
29
+ bv as useComplexCoordinationSecondary,
30
30
  bp as useCoordination,
31
- bv as useCoordinationScopes,
32
- bw as useCoordinationScopesBy,
31
+ bw as useCoordinationScopes,
32
+ bx as useCoordinationScopesBy,
33
33
  bq as useGridItemSize,
34
- bs as useMultiCoordinationScopesNonNull,
35
- bt as useMultiCoordinationScopesSecondaryNonNull,
34
+ bt as useMultiCoordinationScopesNonNull,
35
+ bu as useMultiCoordinationScopesSecondaryNonNull,
36
+ br as usePageModeView,
36
37
  b8 as vconcat,
37
38
  bo as z
38
39
  };
@@ -1,4 +1,4 @@
1
- import { aQ as BaseDecoder } from "./index-95e276a1.js";
1
+ import { aQ as BaseDecoder } from "./index-52247fed.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-95e276a1.js";
2
+ import { g as getDefaultExportFromCjs, aQ as BaseDecoder, aR as LercParameters, aS as LercAddCompression } from "./index-52247fed.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-95e276a1.js";
1
+ import { aQ as BaseDecoder } from "./index-52247fed.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-95e276a1.js";
1
+ import { aQ as BaseDecoder } from "./index-52247fed.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-95e276a1.js";
1
+ import { aQ as BaseDecoder } from "./index-52247fed.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, a$ as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-95e276a1.js";
1
+ import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, $ as LinearFilter, ax as InstancedBufferGeometry, av as Sphere, au as Box3, aI as BackSide, a5 as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, i as Color, aK as Matrix3, a8 as Mesh, ap as FrontSide, a$ as PlaneGeometry, h as BufferGeometry, ay as Float32BufferAttribute, z as MeshBasicMaterial, l as Matrix4, b as Vector3 } from "./index-52247fed.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-95e276a1.js";
1
+ import { aQ as BaseDecoder } from "./index-52247fed.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.5.0",
3
+ "version": "3.5.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,10 +16,10 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/all": "3.5.0",
20
- "@vitessce/config": "3.5.0",
21
- "@vitessce/constants": "3.5.0",
22
- "@vitessce/export-utils": "3.5.0"
19
+ "@vitessce/all": "3.5.2",
20
+ "@vitessce/config": "3.5.2",
21
+ "@vitessce/constants": "3.5.2",
22
+ "@vitessce/export-utils": "3.5.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.0.0",