vitessce 4.0.4 → 4.0.5

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 Pe, useState as L } from "react";
3
3
  import { useThree as Se, useFrame as xe } from "@react-three/fiber";
4
4
  import { Bvh as be } from "@react-three/drei";
5
5
  import { Matrix4 as Fe, Vector3 as g, Box3 as J, FrontSide as ie } from "three";
6
- import { g as ye, i as Le, M as K, s as oe } from "./index-BMyysWWe.js";
6
+ import { g as ye, i as Le, M as K, s as oe } from "./index-pB6iIC9F.js";
7
7
  const { useXR: we, useXRInputSourceState: se } = ye();
8
8
  function Be(l, o) {
9
9
  return l.get(o);
@@ -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 { b 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 T_, R as L_, 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-BxR_MGzQ.js";
6
+ import { b 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 T_, R as L_, 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-sAHPnhdW.js";
7
7
  var U_ = y_();
8
8
  const H = /* @__PURE__ */ Qe(U_);
9
9
  var jb = {}, Nf, Jb;
@@ -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 { x as r } from "./xrStore-BniVZbhh.js";
3
+ import { x as r } from "./xrStore-z0j3nHjp.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 a, Fragment as d, jsx as i } from "react/jsx-runtime";
2
2
  import { useRef as f } from "react";
3
3
  import { useThree as g, useFrame as h } from "@react-three/fiber";
4
- import { g as x } from "./index-BMyysWWe.js";
4
+ import { g as x } from "./index-pB6iIC9F.js";
5
5
  const { useXRInputSourceState: m } = x();
6
6
  function l(n, r) {
7
7
  return n.get(r);
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { g as t } from "./index-BMyysWWe.js";
3
- import { x as e } from "./xrStore-BniVZbhh.js";
2
+ import { g as t } from "./index-pB6iIC9F.js";
3
+ import { x as e } from "./xrStore-z0j3nHjp.js";
4
4
  const { XR: m } = t();
5
5
  function f({ children: r }) {
6
6
  return o(m, { store: e, children: r });
@@ -1,5 +1,5 @@
1
1
  import { i as r } from "./pako.esm-D68R8YXe.js";
2
- import { B as a } from "./index-BxR_MGzQ.js";
2
+ import { B as a } from "./index-sAHPnhdW.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 { b as PB, e as e4, f as qO } from "./index-BxR_MGzQ.js";
3
+ import { b as PB, e as e4, f as qO } from "./index-sAHPnhdW.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) {
@@ -4,7 +4,7 @@ import { useThree as ve, useFrame as Me, Canvas as Pe } from "@react-three/fiber
4
4
  import { OrbitControls as me } from "@react-three/drei";
5
5
  import * as M from "three";
6
6
  import { Data3DTexture as ge, RedFormat as Ae, UnsignedByteType as Be, LinearFilter as pe, RedIntegerFormat as Ne, UnsignedIntType as Ue, NearestFilter as xe, Vector3 as R, Vector2 as _, Vector4 as j, UniformsUtils as Le } from "three";
7
- import { l as n, i as Oe, a as ue, L as he, C as P, u as K } from "./index-BxR_MGzQ.js";
7
+ import { l as n, i as Oe, a as ue, L as he, C as P, u as K } from "./index-sAHPnhdW.js";
8
8
  const w = 32, B = 64, Z = 64, fe = 4, ce = B * Z * fe, be = B * w, _e = Z * w, Ce = fe * w, V = {
9
9
  NOT_STARTED: "not_started",
10
10
  IN_PROGRESS: "in_progress",
@@ -6,7 +6,7 @@ import ae, { useRef as Q, useState as X, useEffect as q, Suspense as ee, forward
6
6
  import { Canvas as Ce } from "@react-three/fiber";
7
7
  import { Center as ze, Text as ve, Line as Te, Bvh as we, OrbitControls as Me } from "@react-three/drei";
8
8
  import { Matrix3 as Le, Matrix4 as ie, Vector3 as P, Vector2 as G, UniformsUtils as Pe, Data3DTexture as Ae, RedFormat as De, FloatType as Ie, LinearFilter as ge, FrontSide as _e, Scene as Fe, Group as Ee, MeshPhysicalMaterial as Re, MeshBasicMaterial as Ve, MeshStandardMaterial as Oe, BackSide as ke } from "three";
9
- import { C as j, g as Ue } from "./index-BxR_MGzQ.js";
9
+ import { C as j, g as Ue } from "./index-sAHPnhdW.js";
10
10
  function Ne({ currentLine: t, scale: e }) {
11
11
  const a = Q(null);
12
12
  return H("group", { children: [_(ze, { bottom: !0, right: !0, position: [t.midPoint.x, t.midPoint.y, t.midPoint.z], rotation: [0, 0, 0], children: _(ve, { color: "gray", scale: 0.05, ref: a, children: `${(t.startPoint.distanceTo(t.endPoint) * e).toFixed(2)} µm` }) }), _(Te, {
@@ -762,7 +762,7 @@ function re(t) {
762
762
  g(c.object.name);
763
763
  }, onPointerOut: () => g(null) }) })] }) : null, i.uniforms && i.shader && i.meshScale && i.geometrySize ? _("group", { children: H("mesh", { scale: i.meshScale, ref: l, children: [_("boxGeometry", { args: i.geometrySize }), _("shaderMaterial", { customProgramCacheKey: () => "1", side: _e, uniforms: i.uniforms, needsUpdate: !0, transparent: !0, vertexShader: i.shader.vertexShader, fragmentShader: i.shader.fragmentShader })] }) }) : null] }), _("group", { name: "lines", children: m.map((c) => _(Ne, { currentLine: c, scale: 1 }, tt(c))) })] });
764
764
  }
765
- const at = ae.lazy(() => import("./GeometryAndMeshXR-Q7wh5iGx.js").catch(() => ({ default: re }))), lt = ae.lazy(() => import("./XRSceneComponents-ChFIeY21.js").catch(() => ({ default: () => null })));
765
+ const at = ae.lazy(() => import("./GeometryAndMeshXR-CLFbevMY.js").catch(() => ({ default: re }))), lt = ae.lazy(() => import("./XRSceneComponents-DPMVeFd9.js").catch(() => ({ default: () => null })));
766
766
  function oe(t) {
767
767
  const e = Q(null), a = Q(null), [o, i] = X(!1), [l, n] = X(!1), [g, p] = X(null), [m, c] = X([1, 1, 1]), [s, w] = X({
768
768
  uniforms: null,
@@ -976,12 +976,12 @@ function pt() {
976
976
  }
977
977
  const it = ae.lazy(
978
978
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
979
- () => import("./XRWrapper-CCDKOKv7.js").catch(() => ({
979
+ () => import("./XRWrapper-BsBF7ydW.js").catch(() => ({
980
980
  default: ({ children: t }) => t
981
981
  }))
982
982
  ), ot = ae.lazy(
983
983
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
984
- () => import("./XREnterButton-BpOerghW.js").catch(() => ({
984
+ () => import("./XREnterButton-BwCG8QhP.js").catch(() => ({
985
985
  default: () => null
986
986
  }))
987
987
  ), rt = Se((t, e) => {