@vitessce/comparative 4.0.0-test.0 → 4.0.0-test.2
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-DbXTK2iw.js → GeometryAndMeshXR-Rj8DuqKI.js} +4 -4
- package/dist/{OrbitControls-BRGXsf1T.js → OrbitControls-CSK4x9Nb.js} +1 -1
- package/dist/{ReactNeuroglancer-Crb1U7Tn.js → ReactNeuroglancer-BAmwPpri.js} +696 -661
- package/dist/{XREnterButton-C9Klf67I.js → XREnterButton-BTyk-JNM.js} +1 -1
- package/dist/{XRSceneComponents-DiBc2L-q.js → XRSceneComponents-Bdj5nq7u.js} +2 -2
- package/dist/{XRWrapper-CUvoPsz0.js → XRWrapper-C_ChUWmZ.js} +2 -2
- package/dist/{deflate-B9H5qR9U.js → deflate-CrBkHn3o.js} +1 -1
- package/dist/{emulate-_ez3oxw8.js → emulate-BMuLpa2M.js} +2 -2
- package/dist/{higlass-B_MV2PxY.js → higlass-R4akpd_U.js} +31823 -30868
- package/dist/{index-BX839aW7.js → index-BvABCvu0.js} +65 -8
- package/dist/{index-D0v2yFRh.js → index-CaGs2wGk.js} +370 -366
- package/dist/{index-bml8OCCz.js → index-ChP-N2-Q.js} +100916 -100730
- package/dist/{index-BKHCQDj_.js → index-evkxJwCU.js} +1 -1
- package/dist/index.min.js +1 -1
- package/dist/{jpeg-D_7ycwtQ.js → jpeg-CmFz2x7u.js} +1 -1
- package/dist/{lerc-BqhNOBeL.js → lerc-D9Z1SChC.js} +1 -1
- package/dist/{lzw-DUcfioj8.js → lzw-BxcPIsd9.js} +1 -1
- package/dist/{packbits-CgF8yylX.js → packbits-BvyhLVrx.js} +1 -1
- package/dist/{raw-CuemTavy.js → raw-nQNg2593.js} +1 -1
- package/dist/{ray-grab-4cLIYg6C.js → ray-grab-CunbRXU8.js} +3 -3
- package/dist/{webimage-BulHlQ32.js → webimage-CD0PiPO_.js} +1 -1
- package/dist/{xrStore-Ckkme0YQ.js → xrStore-BFuIULKr.js} +1 -1
- package/package.json +11 -11
|
@@ -4,8 +4,8 @@ var Ye = (c, n, l) => Ua(c, typeof n != "symbol" ? n + "" : n, l);
|
|
|
4
4
|
import { jsxs as _t, jsx as _e, Fragment as Ca } from "react/jsx-runtime";
|
|
5
5
|
import * as be from "react";
|
|
6
6
|
import Sr, { useRef as gr, useState as mt, useEffect as hr, Suspense as yr, forwardRef as Ma } from "react";
|
|
7
|
-
import { u as Ui, s as Ea, O as Fa, C as Da } from "./OrbitControls-
|
|
8
|
-
import { a6 as No, a7 as Vo, a8 as no, a9 as fi, aa as tn, ab as Pa, a as je, ac as rn, V as K, o as ka, m as xr, ad as ro, j as ke, p as Dt, k as Pt, ae as gt, M as tt, af as La, Q as Pn, a3 as Dn, ag as Ba, ah as Ra, ai as za, aj as Ia, ak as Wo, al as Oa, am as Ga, d as br, an as jo, ao as Ho, P as Ci, ap as Xo, a2 as Yo, aq as en, q as qo, F as _r, ar as Na, a1 as Va, C as nt, D as Wa, R as ja, as as Ha, at as Xa, S as Ya, au as qa, av as Ja, aw as Ka } from "./index-
|
|
7
|
+
import { u as Ui, s as Ea, O as Fa, C as Da } from "./OrbitControls-CSK4x9Nb.js";
|
|
8
|
+
import { a6 as No, a7 as Vo, a8 as no, a9 as fi, aa as tn, ab as Pa, a as je, ac as rn, V as K, o as ka, m as xr, ad as ro, j as ke, p as Dt, k as Pt, ae as gt, M as tt, af as La, Q as Pn, a3 as Dn, ag as Ba, ah as Ra, ai as za, aj as Ia, ak as Wo, al as Oa, am as Ga, d as br, an as jo, ao as Ho, P as Ci, ap as Xo, a2 as Yo, aq as en, q as qo, F as _r, ar as Na, a1 as Va, C as nt, D as Wa, R as ja, as as Ha, at as Xa, S as Ya, au as qa, av as Ja, aw as Ka } from "./index-ChP-N2-Q.js";
|
|
9
9
|
const Jo = parseInt(No.replace(/\D+/g, "")), Ko = Jo >= 125 ? "uv1" : "uv2", io = /* @__PURE__ */ new je(), Xn = /* @__PURE__ */ new K();
|
|
10
10
|
class Mi extends Vo {
|
|
11
11
|
constructor() {
|
|
@@ -6755,16 +6755,42 @@ function sc({ currentLine: c, scale: n }) {
|
|
|
6755
6755
|
})] });
|
|
6756
6756
|
}
|
|
6757
6757
|
class lc {
|
|
6758
|
+
/**
|
|
6759
|
+
* @param {number} xLength Width of the volume
|
|
6760
|
+
* @param {number} yLength Length of the volume
|
|
6761
|
+
* @param {number} zLength Depth of the volume
|
|
6762
|
+
* @param {string} type The type of data (uint8, uint16, ...)
|
|
6763
|
+
* @param {ArrayBuffer} arrayBuffer The buffer with volume data
|
|
6764
|
+
*/
|
|
6758
6765
|
constructor(n, l, u, t, e) {
|
|
6759
6766
|
Ye(this, "spacing", [1, 1, 1]);
|
|
6767
|
+
// Offset of the volume in the RAS coordinate system
|
|
6760
6768
|
Ye(this, "offset", [0, 0, 0]);
|
|
6769
|
+
// The IJK to RAS matrix
|
|
6761
6770
|
Ye(this, "matrix", new jo().identity());
|
|
6771
|
+
// The list of all the slices associated to this volume
|
|
6762
6772
|
Ye(this, "sliceList", []);
|
|
6773
|
+
/**
|
|
6774
|
+
* The voxels with values under this
|
|
6775
|
+
* threshold won't appear in the slices.
|
|
6776
|
+
* If changed, geometryNeedsUpdate is automatically set to true on all
|
|
6777
|
+
* the slices associated to this volume
|
|
6778
|
+
*/
|
|
6763
6779
|
Ye(this, "lowerThresholdValue", -1 / 0);
|
|
6780
|
+
/**
|
|
6781
|
+
* The voxels with values over this
|
|
6782
|
+
* threshold won't appear in the slices.
|
|
6783
|
+
* If changed, geometryNeedsUpdate is automatically set to true on all
|
|
6784
|
+
* the slices associated to this volume
|
|
6785
|
+
*/
|
|
6764
6786
|
Ye(this, "upperThresholdValue", 1 / 0);
|
|
6787
|
+
// Width of the volume in the IJK coordinate system
|
|
6765
6788
|
Ye(this, "xLength", 1);
|
|
6789
|
+
// Height of the volume in the IJK coordinate system
|
|
6766
6790
|
Ye(this, "yLength", 1);
|
|
6791
|
+
// Depth of the volume in the IJK coordinate system
|
|
6767
6792
|
Ye(this, "zLength", 1);
|
|
6793
|
+
// Data of the volume
|
|
6768
6794
|
Ye(this, "data");
|
|
6769
6795
|
Ye(this, "RASDimensions");
|
|
6770
6796
|
Ye(this, "inverseMatrix");
|
|
@@ -6862,16 +6888,31 @@ class lc {
|
|
|
6862
6888
|
l.geometryNeedsUpdate = !0;
|
|
6863
6889
|
});
|
|
6864
6890
|
}
|
|
6891
|
+
/**
|
|
6892
|
+
* Shortcut for data[access(i,j,k)]
|
|
6893
|
+
*/
|
|
6865
6894
|
getData(n, l, u) {
|
|
6866
6895
|
return this.data[u * this.xLength * this.yLength + l * this.xLength + n];
|
|
6867
6896
|
}
|
|
6897
|
+
/**
|
|
6898
|
+
* Compute the index in the data
|
|
6899
|
+
* array corresponding to the given coordinates in IJK system
|
|
6900
|
+
*/
|
|
6868
6901
|
access(n, l, u) {
|
|
6869
6902
|
return u * this.xLength * this.yLength + l * this.xLength + n;
|
|
6870
6903
|
}
|
|
6904
|
+
/**
|
|
6905
|
+
* Retrieve the IJK coordinates of the voxel
|
|
6906
|
+
* corresponding of the given index in the data
|
|
6907
|
+
*/
|
|
6871
6908
|
reverseAccess(n) {
|
|
6872
6909
|
const l = Math.floor(n / (this.yLength * this.xLength)), u = Math.floor((n - l * this.yLength * this.xLength) / this.xLength);
|
|
6873
6910
|
return [n - l * this.yLength * this.xLength - u * this.xLength, u, l];
|
|
6874
6911
|
}
|
|
6912
|
+
/**
|
|
6913
|
+
* Apply a function to all the voxels, be careful,
|
|
6914
|
+
* the value will be replaced
|
|
6915
|
+
*/
|
|
6875
6916
|
// eslint-disable-next-line max-len
|
|
6876
6917
|
map(n, l) {
|
|
6877
6918
|
const { length: u } = this.data, t = l || this;
|
|
@@ -6879,6 +6920,13 @@ class lc {
|
|
|
6879
6920
|
this.data[e] = n.call(t, this.data[e], e, this.data);
|
|
6880
6921
|
return this;
|
|
6881
6922
|
}
|
|
6923
|
+
/**
|
|
6924
|
+
* Compute the orientation
|
|
6925
|
+
* of the slice and returns all the information relative to the
|
|
6926
|
+
* geometry such as sliceAccess,
|
|
6927
|
+
* the plane matrix (orientation and position in RAS coordinate)
|
|
6928
|
+
* and the dimensions of the plane in both coordinate system.
|
|
6929
|
+
*/
|
|
6882
6930
|
extractPerpendicularPlane(n, l) {
|
|
6883
6931
|
const u = new tt().identity(), t = this;
|
|
6884
6932
|
let e, r, o, i;
|
|
@@ -6912,6 +6960,11 @@ class lc {
|
|
|
6912
6960
|
planeHeight: p
|
|
6913
6961
|
};
|
|
6914
6962
|
}
|
|
6963
|
+
/**
|
|
6964
|
+
* Compute the minimum
|
|
6965
|
+
* and the maximum of the data in the volume
|
|
6966
|
+
* @returns {Array} [min,max]
|
|
6967
|
+
*/
|
|
6915
6968
|
computeMinMax() {
|
|
6916
6969
|
let n = 1 / 0, l = -1 / 0;
|
|
6917
6970
|
const u = this.data.length;
|
|
@@ -7404,7 +7457,11 @@ function yc(c) {
|
|
|
7404
7457
|
}
|
|
7405
7458
|
function xc(c) {
|
|
7406
7459
|
const { x: n, y: l, z: u } = c?.meta?.physicalSizes ?? {};
|
|
7407
|
-
return [
|
|
7460
|
+
return [
|
|
7461
|
+
n ?? { size: 1 },
|
|
7462
|
+
l ?? { size: 1 },
|
|
7463
|
+
u ?? { size: 1 }
|
|
7464
|
+
];
|
|
7408
7465
|
}
|
|
7409
7466
|
function bc(c) {
|
|
7410
7467
|
const [n, l] = c.computeMinMax(), u = new Float32Array(c.data.length);
|
|
@@ -7432,7 +7489,7 @@ function wc(c) {
|
|
|
7432
7489
|
return `${c.startPoint.x},${c.startPoint.y},${c.startPoint.z};${c.endPoint.x},${c.endPoint.y},${c.endPoint.z}`;
|
|
7433
7490
|
}
|
|
7434
7491
|
function Lc(c) {
|
|
7435
|
-
return !Array.isArray(c) || c.length !==
|
|
7492
|
+
return !Array.isArray(c) || c.length !== 3 ? !1 : c.every((n) => typeof n == "number" && Number.isFinite(n));
|
|
7436
7493
|
}
|
|
7437
7494
|
function Ai(c) {
|
|
7438
7495
|
const { segmentationGroup: n, segmentationSettings: l, segmentationSceneScale: u, renderingSettings: t, materialRef: e, highlightEntity: r, setObsHighlight: o } = c, i = gr(null), [a] = mt([]);
|
|
@@ -7442,7 +7499,7 @@ function Ai(c) {
|
|
|
7442
7499
|
o(s.object.name);
|
|
7443
7500
|
}, onPointerOut: () => o(null) }) })] }) : null, t.uniforms && t.shader && t.meshScale && t.geometrySize ? _e("group", { children: _t("mesh", { scale: t.meshScale, ref: e, children: [_e("boxGeometry", { args: t.geometrySize }), _e("shaderMaterial", { customProgramCacheKey: () => "1", side: _r, uniforms: t.uniforms, needsUpdate: !0, transparent: !0, vertexShader: t.shader.vertexShader, fragmentShader: t.shader.fragmentShader })] }) }) : null] }), _e("group", { name: "lines", children: a.map((s) => _e(sc, { currentLine: s, scale: 1 }, wc(s))) })] });
|
|
7444
7501
|
}
|
|
7445
|
-
const Sc = Sr.lazy(() => import("./GeometryAndMeshXR-
|
|
7502
|
+
const Sc = Sr.lazy(() => import("./GeometryAndMeshXR-Rj8DuqKI.js").catch(() => ({ default: Ai }))), Tc = Sr.lazy(() => import("./XRSceneComponents-Bdj5nq7u.js").catch(() => ({ default: () => null })));
|
|
7446
7503
|
function ui(c) {
|
|
7447
7504
|
const n = gr(null), l = gr(null), [u, t] = mt(!1), [e, r] = mt(!1), [o, i] = mt(null), [a, s] = mt([1, 1, 1]), [d, f] = mt({
|
|
7448
7505
|
uniforms: null,
|
|
@@ -7647,18 +7704,18 @@ function ui(c) {
|
|
|
7647
7704
|
}
|
|
7648
7705
|
const Ac = Sr.lazy(
|
|
7649
7706
|
// eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
|
|
7650
|
-
() => import("./XRWrapper-
|
|
7707
|
+
() => import("./XRWrapper-C_ChUWmZ.js").catch(() => ({
|
|
7651
7708
|
default: ({ children: c }) => c
|
|
7652
7709
|
}))
|
|
7653
7710
|
), Uc = Sr.lazy(
|
|
7654
7711
|
// eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
|
|
7655
|
-
() => import("./XREnterButton-
|
|
7712
|
+
() => import("./XREnterButton-BTyk-JNM.js").catch(() => ({
|
|
7656
7713
|
default: () => null
|
|
7657
7714
|
}))
|
|
7658
7715
|
), Cc = Ma((c, n) => {
|
|
7659
7716
|
const [l, u] = mt(!1);
|
|
7660
7717
|
return hr(() => {
|
|
7661
|
-
import("./index-
|
|
7718
|
+
import("./index-evkxJwCU.js").then(() => u(!0)).catch(() => {
|
|
7662
7719
|
});
|
|
7663
7720
|
}, []), _t("div", { style: { width: "100%", height: "100%" }, children: [l && _e(yr, { fallback: null, children: _e(Uc, {}) }), _e(Da, { style: { position: "absolute", top: 0, left: 0 }, camera: {
|
|
7664
7721
|
fov: 50,
|