@vitessce/comparative 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.
Files changed (39) hide show
  1. package/dist/GeometryAndMeshXR-DbXTK2iw.js +137 -0
  2. package/dist/OrbitControls-BRGXsf1T.js +7700 -0
  3. package/dist/{ReactNeuroglancer-QJktSXqC.js → ReactNeuroglancer-Crb1U7Tn.js} +3458 -3457
  4. package/dist/XREnterButton-C9Klf67I.js +37 -0
  5. package/dist/XRSceneComponents-DiBc2L-q.js +48 -0
  6. package/dist/XRWrapper-CUvoPsz0.js +10 -0
  7. package/dist/{deflate-Dc6GZJRF.js → deflate-B9H5qR9U.js} +1 -1
  8. package/dist/emulate-_ez3oxw8.js +28295 -0
  9. package/dist/{higlass-BEH4mkyQ.js → higlass-B_MV2PxY.js} +47279 -45097
  10. package/dist/index-BKHCQDj_.js +57 -0
  11. package/dist/index-BX839aW7.js +7680 -0
  12. package/dist/{index-B647KJHU.js → index-D0v2yFRh.js} +190 -189
  13. package/dist/{index-CAwdUct2.js → index-bml8OCCz.js} +100186 -99918
  14. package/dist/index.min.js +40 -39
  15. package/dist/{jpeg-D2AjEheE.js → jpeg-D_7ycwtQ.js} +14 -14
  16. package/dist/{lerc-BouNgUty.js → lerc-BqhNOBeL.js} +1 -1
  17. package/dist/living_room-uy_CEYZC.js +11 -0
  18. package/dist/{lzw-DiqWEHpf.js → lzw-DUcfioj8.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-CgF8yylX.js +24 -0
  24. package/dist/raw-CuemTavy.js +9 -0
  25. package/dist/ray-grab-4cLIYg6C.js +3714 -0
  26. package/dist/{webimage-DyLpoiJK.js → webimage-BulHlQ32.js} +1 -1
  27. package/dist/xrStore-Ckkme0YQ.js +10 -0
  28. package/dist-tsc/BiomarkerSelect.d.ts +1 -1
  29. package/dist-tsc/BiomarkerSelect.d.ts.map +1 -1
  30. package/dist-tsc/ComparativeConfig.d.ts +2 -2
  31. package/dist-tsc/ComparativeConfig.d.ts.map +1 -1
  32. package/dist-tsc/UncontrolledComparative.d.ts +1 -1
  33. package/dist-tsc/UncontrolledComparative.d.ts.map +1 -1
  34. package/package.json +11 -11
  35. package/dist/OrbitControls-DKXOKRgY.js +0 -6202
  36. package/dist/index-B_9xACPv.js +0 -6178
  37. package/dist/packbits-4-2CnXVA.js +0 -24
  38. package/dist/raw-C8K5P6es.js +0 -9
  39. package/dist/troika-three-text.esm-BMZ0lWrh.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-Ckkme0YQ.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-4cLIYg6C.js";
4
+ import { u as h, a as g } from "./OrbitControls-BRGXsf1T.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-4cLIYg6C.js";
3
+ import "react";
4
+ import { x as e } from "./xrStore-Ckkme0YQ.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-CAwdUct2.js";
2
+ import { B as a } from "./index-bml8OCCz.js";
3
3
  class s extends a {
4
4
  decodeBlock(e) {
5
5
  return r(new Uint8Array(e)).buffer;