vitessce 3.9.9 → 4.0.0-test.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.
Files changed (33) hide show
  1. package/dist/GeometryAndMeshXR-CDuFtV77.js +137 -0
  2. package/dist/OrbitControls-BrJBuUSe.js +7700 -0
  3. package/dist/{ReactNeuroglancer-B0PE_pfg.js → ReactNeuroglancer-n_mccJEi.js} +1970 -1969
  4. package/dist/XREnterButton-s3JNl4Y5.js +37 -0
  5. package/dist/XRSceneComponents-BsPxVGaX.js +48 -0
  6. package/dist/XRWrapper-B3mqy7wn.js +10 -0
  7. package/dist/{deflate-Be9Tzo_F.js → deflate-BhW_mYsS.js} +1 -1
  8. package/dist/emulate-Dy4Vqc5l.js +28295 -0
  9. package/dist/{higlass-Drd_iixN.js → higlass-moXDbnqp.js} +52945 -49808
  10. package/dist/{index-CoGvuUCw.js → index-BLeXhxTK.js} +82656 -82406
  11. package/dist/index-CRWembQ4.js +7684 -0
  12. package/dist/{index-mrZfq-JA.js → index-DWzI2Mwu.js} +190 -189
  13. package/dist/index-WPOnaDjf.js +57 -0
  14. package/dist/index.min.js +33 -32
  15. package/dist/{jpeg-BlaLkNo6.js → jpeg-BT_-26Ph.js} +14 -14
  16. package/dist/{lerc-n5GTkk5D.js → lerc-CTMmM_q8.js} +1 -1
  17. package/dist/living_room-uy_CEYZC.js +11 -0
  18. package/dist/{lzw-CqgNgHcv.js → lzw-Dg9ghyv5.js} +10 -10
  19. package/dist/meeting_room-BjXC3fLc.js +11 -0
  20. package/dist/music_room-AFchga9Y.js +11 -0
  21. package/dist/office_large-qDeoZNBo.js +11 -0
  22. package/dist/office_small-B_PLvrYC.js +11 -0
  23. package/dist/packbits-CrJ-qt3Y.js +24 -0
  24. package/dist/raw-DzihOYOe.js +9 -0
  25. package/dist/ray-grab-9OEL2ULp.js +3714 -0
  26. package/dist/{webimage-rLaU0UvY.js → webimage-CNPDR7gt.js} +1 -1
  27. package/dist/xrStore-D3c_VFug.js +10 -0
  28. package/package.json +7 -7
  29. package/dist/OrbitControls-z_0GLqk2.js +0 -6202
  30. package/dist/index-Cbn3KdIH.js +0 -6178
  31. package/dist/packbits-fWwqpH6m.js +0 -24
  32. package/dist/raw-Bdjrijly.js +0 -9
  33. package/dist/troika-three-text.esm-hSuq1e_H.js +0 -4192
@@ -0,0 +1,37 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useState as s, useEffect as o } from "react";
3
+ import { x as r } from "./xrStore-D3c_VFug.js";
4
+ function b() {
5
+ const [i, u] = s(!1), [n, a] = s(!1);
6
+ return o(() => {
7
+ let e = !1;
8
+ return navigator.xr && navigator.xr.isSessionSupported("immersive-ar").then((t) => {
9
+ e || u(t);
10
+ }).catch(() => {
11
+ }), () => {
12
+ e = !0;
13
+ };
14
+ }, []), o(() => r.subscribe((t) => {
15
+ a(t.session != null);
16
+ }), []), i ? l("button", { type: "button", onClick: () => {
17
+ if (n) {
18
+ const { session: e } = r.getState();
19
+ e && e.end();
20
+ } else
21
+ r.enterAR();
22
+ }, style: {
23
+ border: "1px solid white",
24
+ padding: "12px 24px",
25
+ borderRadius: "4px",
26
+ background: "rgba(0, 0, 0, 0.1)",
27
+ color: "white",
28
+ font: "normal 0.8125rem sans-serif",
29
+ outline: "none",
30
+ cursor: "pointer",
31
+ zIndex: 1,
32
+ position: "absolute"
33
+ }, children: n ? "Exit AR" : "Enter AR" }) : null;
34
+ }
35
+ export {
36
+ b as default
37
+ };
@@ -0,0 +1,48 @@
1
+ import { jsxs as a, Fragment as d, jsx as i } from "react/jsx-runtime";
2
+ import { useRef as f } from "react";
3
+ import { s as m, M as x } from "./ray-grab-9OEL2ULp.js";
4
+ import { u as h, a as g } from "./OrbitControls-BrJBuUSe.js";
5
+ function l(n, r) {
6
+ return n.get(r);
7
+ }
8
+ function S() {
9
+ const n = m("hand", "right"), r = m("hand", "left"), t = f(null), o = f(null), { gl: p } = h();
10
+ return g((R, b, c) => {
11
+ if (!c || !p.xr.isPresenting)
12
+ return;
13
+ const u = p.xr.getReferenceSpace();
14
+ if (u) {
15
+ if (n?.inputSource?.hand && t.current) {
16
+ const s = l(n.inputSource.hand, "index-finger-tip");
17
+ if (s) {
18
+ const e = c.getJointPose?.(s, u);
19
+ e && t.current.position.set(e.transform.position.x, e.transform.position.y, e.transform.position.z);
20
+ }
21
+ }
22
+ if (r?.inputSource?.hand && o.current) {
23
+ const s = l(r.inputSource.hand, "index-finger-tip");
24
+ if (s) {
25
+ const e = c.getJointPose?.(s, u);
26
+ e && o.current.position.set(e.transform.position.x, e.transform.position.y, e.transform.position.z);
27
+ }
28
+ }
29
+ }
30
+ }), a(d, { children: [a("mesh", { name: "leftTipBbox", ref: o, children: [i("boxGeometry", { args: [0.02, 0.02, 0.02] }), i("meshStandardMaterial", { color: "blue", transparent: !0, opacity: 0 })] }), a("mesh", { name: "rightTipBbox", ref: t, children: [i("boxGeometry", { args: [0.02, 0.02, 0.02] }), i("meshStandardMaterial", { color: "orange", transparent: !0, opacity: 0 })] })] });
31
+ }
32
+ function y() {
33
+ const n = x((t) => t.session), { scene: r } = h();
34
+ return g(() => {
35
+ n && r.traverse((t) => {
36
+ if (t.isMesh && t.material && t.userData?.xpiHand) {
37
+ const o = t;
38
+ o.material.transparent = !0, o.material.opacity = 0.5;
39
+ }
40
+ });
41
+ }), null;
42
+ }
43
+ function B() {
44
+ return a(d, { children: [i(S, {}), i(y, {})] });
45
+ }
46
+ export {
47
+ B as default
48
+ };
@@ -0,0 +1,10 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { K as t } from "./ray-grab-9OEL2ULp.js";
3
+ import "react";
4
+ import { x as e } from "./xrStore-D3c_VFug.js";
5
+ function f({ children: r }) {
6
+ return o(t, { store: e, children: r });
7
+ }
8
+ export {
9
+ f as default
10
+ };
@@ -1,5 +1,5 @@
1
1
  import { i as r } from "./pako.esm-D68R8YXe.js";
2
- import { aZ as a } from "./index-CoGvuUCw.js";
2
+ import { B as a } from "./index-BLeXhxTK.js";
3
3
  class s extends a {
4
4
  decodeBlock(e) {
5
5
  return r(new Uint8Array(e)).buffer;