vitessce 4.1.0 → 4.1.1

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.
@@ -3,7 +3,7 @@ import { useRef as r, useEffect as Se, useState as B } from "react";
3
3
  import { useThree as xe, useFrame as be } from "@react-three/fiber";
4
4
  import { Bvh as Fe } from "@react-three/drei";
5
5
  import { Matrix4 as ye, Vector3 as P, Box3 as N, FrontSide as se } from "three";
6
- import { g as Le, i as we, M as W, s as ce } from "./index-Dafjntfy.js";
6
+ import { g as Le, i as we, M as W, s as ce } from "./spatial-three-C8GY0nVz.js";
7
7
  function Be(a, d) {
8
8
  return a.get(d);
9
9
  }
@@ -3,7 +3,7 @@ var g_ = (i, e, t) => e in i ? p_(i, e, { enumerable: !0, configurable: !0, writ
3
3
  var Fn = (i, e, t) => g_(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as m_, jsxs as v_ } from "react/jsx-runtime";
5
5
  import Hb from "react";
6
- import { g as Qe, r as y_, h as Vt, j as ut, k as Hv, m as qv, n as Gk, o as jv, p as Nr, q as Jv, s as aa, t as Ro, v as Ao, w as Wk, x as oa, y as qu, z as Or, A as ju, D as Ju, E as xs, F as S_, G as b_, H as w_, I as Ku, J as C_, K as x_, M as Hk, N as Yu, O as E_, P as k_, Q as L_, R as T_, S as D_, T as Kv, U as qk, V as I_, W as Yv, X as P_, Y as R_, Z as A_, _ as __, $ as M_, a0 as N_, a1 as O_, a2 as V_, a3 as B_, a4 as qb, a5 as F_ } from "./index-BxAPNwM0.js";
6
+ import { g as Qe, r as y_, h as Vt, j as ut, k as Hv, m as qv, n as Gk, o as jv, p as Nr, q as Jv, s as aa, t as Ro, v as Ao, w as Wk, x as oa, y as qu, z as Or, A as ju, D as Ju, E as xs, F as S_, G as b_, H as w_, I as Ku, J as C_, K as x_, M as Hk, N as Yu, O as E_, P as k_, Q as L_, R as T_, S as D_, T as Kv, U as qk, V as I_, W as Yv, X as P_, Y as R_, Z as A_, _ as __, $ as M_, a0 as N_, a1 as O_, a2 as V_, a3 as B_, a4 as qb, a5 as F_ } from "./index-DoThz0it.js";
7
7
  var U_ = y_();
8
8
  const H = /* @__PURE__ */ Qe(U_);
9
9
  var jb = {}, Nf, Jb;
@@ -43534,12 +43534,12 @@ class g8 extends Hb.Component {
43534
43534
  });
43535
43535
  const C = (d ?? []).filter((D) => D.type === "segmentation"), b = (u ?? []).filter((D) => D.type === "segmentation"), E = (D) => {
43536
43536
  const T = C.find((M) => M.name === D)?.segments ?? [], A = b.find((M) => M.name === D)?.segments ?? [];
43537
- return T.length !== A.length || T[0] !== A[0] || T[T.length - 1] !== A[A.length - 1];
43537
+ return T.length !== A.length ? !0 : T.some((M, O) => String(M) !== String(A[O]));
43538
43538
  }, P = [.../* @__PURE__ */ new Set([
43539
43539
  ...C.map((D) => D.name),
43540
43540
  ...b.map((D) => D.name)
43541
43541
  ])].some(E), R = b.flatMap((D) => D.segments ?? []);
43542
- P && R.length > 0 && (this.preserveDimensions(() => {
43542
+ P && (R.length > 0 || this.props.allowEmptySegments) && (this.preserveDimensions(() => {
43543
43543
  this.viewer.state.restoreState({ layers: u });
43544
43544
  }), this.applyColorsAndVisibility(s));
43545
43545
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { useState as s, useEffect as o } from "react";
3
- import { g as r } from "./xrStore-B6AfEeNX.js";
3
+ import { g as r } from "./xrStore-CmI-4_Im.js";
4
4
  function b() {
5
5
  const [i, u] = s(!1), [n, a] = s(!1);
6
6
  return o(() => {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, Fragment as d, jsx as i } from "react/jsx-runtime";
2
2
  import { useRef as m } from "react";
3
3
  import { useThree as g, useFrame as h } from "@react-three/fiber";
4
- import { g as x } from "./index-Dafjntfy.js";
4
+ import { g as x } from "./spatial-three-C8GY0nVz.js";
5
5
  function l(n, r) {
6
6
  return n.get(r);
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { g as e } from "./index-Dafjntfy.js";
3
- import { g as m } from "./xrStore-B6AfEeNX.js";
2
+ import { g as e } from "./spatial-three-C8GY0nVz.js";
3
+ import { g as m } from "./xrStore-CmI-4_Im.js";
4
4
  function f({ children: r }) {
5
5
  const { XR: o } = e();
6
6
  return t(o, { store: m(), children: r });
@@ -1,5 +1,5 @@
1
1
  import { i as r } from "./pako.esm-D68R8YXe.js";
2
- import { B as a } from "./index-BxAPNwM0.js";
2
+ import { B as a } from "./index-DoThz0it.js";
3
3
  class s extends a {
4
4
  decodeBlock(e) {
5
5
  return r(new Uint8Array(e)).buffer;
@@ -1,6 +1,6 @@
1
1
  import * as KY from "react";
2
2
  import I, { createContext as op, isValidElement as ZY, PureComponent as ap, Component as sp, useMemo as Zt, useState as Ur, useRef as Mt, useEffect as ar, useCallback as zt, memo as QY, useContext as nl, useReducer as JY, useLayoutEffect as eK } from "react";
3
- import { g as PB, e as e4, f as qO } from "./index-BxAPNwM0.js";
3
+ import { g as PB, e as e4, f as qO } from "./index-DoThz0it.js";
4
4
  import ga, { unstable_batchedUpdates as Yp, createPortal as tK } from "react-dom";
5
5
  import { jsx as Ic, jsxs as rK } from "react/jsx-runtime";
6
6
  function nK(t) {