vitessce 3.9.6 → 4.0.0-test.0
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.
- package/dist/GeometryAndMeshXR-BXSNjAqF.js +137 -0
- package/dist/OrbitControls-sTxvpi67.js +7700 -0
- package/dist/{ReactNeuroglancer-BUfn_iuv.js → ReactNeuroglancer-fiVOZeyq.js} +1970 -1969
- package/dist/XREnterButton-CqAKdcbm.js +37 -0
- package/dist/XRSceneComponents-576Z0OEa.js +48 -0
- package/dist/XRWrapper-CEbjgPSQ.js +10 -0
- package/dist/{deflate-_PAyjIxQ.js → deflate-CRhk-nLA.js} +1 -1
- package/dist/emulate-CAN_KLPP.js +28295 -0
- package/dist/{higlass-DKNFlOLu.js → higlass-CxcCRpJe.js} +47279 -45097
- package/dist/{index-BMZKt_WD.js → index-D4CxZdC_.js} +190 -189
- package/dist/index-D4KH2LJg.js +57 -0
- package/dist/{index-CiwyZ_Wn.js → index-DGE5D5mY.js} +99231 -98958
- package/dist/index-ZG9rMo1v.js +7680 -0
- package/dist/index.min.js +33 -32
- package/dist/{jpeg-D6QGAYrj.js → jpeg-CNrYxDrc.js} +14 -14
- package/dist/{lerc-CpU83gFy.js → lerc-KMDR2rmU.js} +1 -1
- package/dist/living_room-uy_CEYZC.js +11 -0
- package/dist/{lzw-IDKOxNdH.js → lzw-Dby8KO0a.js} +10 -10
- package/dist/meeting_room-BjXC3fLc.js +11 -0
- package/dist/music_room-AFchga9Y.js +11 -0
- package/dist/office_large-qDeoZNBo.js +11 -0
- package/dist/office_small-B_PLvrYC.js +11 -0
- package/dist/packbits-ClNSUn48.js +24 -0
- package/dist/raw-ChZAypg0.js +9 -0
- package/dist/ray-grab-JOm82e9E.js +3714 -0
- package/dist/{webimage-zvGex_8D.js → webimage-BHhPz6os.js} +1 -1
- package/dist/xrStore-CEMqzA4H.js +10 -0
- package/package.json +7 -7
- package/dist/OrbitControls-gS0qAcAF.js +0 -6202
- package/dist/index-CApj7rdC.js +0 -6178
- package/dist/packbits-Dj8eDgHa.js +0 -24
- package/dist/raw-BBDtkWgc.js +0 -9
- package/dist/troika-three-text.esm-DtEcqwS6.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-CEMqzA4H.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-JOm82e9E.js";
|
|
4
|
+
import { u as h, a as g } from "./OrbitControls-sTxvpi67.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-JOm82e9E.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { x as e } from "./xrStore-CEMqzA4H.js";
|
|
5
|
+
function f({ children: r }) {
|
|
6
|
+
return o(t, { store: e, children: r });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|