@vitessce/comparative 4.0.0-test.1 → 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.
Files changed (23) hide show
  1. package/dist/{GeometryAndMeshXR-CX1Dr7Lp.js → GeometryAndMeshXR-Rj8DuqKI.js} +4 -4
  2. package/dist/{OrbitControls-4708Bo-O.js → OrbitControls-CSK4x9Nb.js} +1 -1
  3. package/dist/{ReactNeuroglancer-D7gl_oXM.js → ReactNeuroglancer-BAmwPpri.js} +1 -1
  4. package/dist/{XREnterButton-Dp2xhwJb.js → XREnterButton-BTyk-JNM.js} +1 -1
  5. package/dist/{XRSceneComponents-Cp8t3pvt.js → XRSceneComponents-Bdj5nq7u.js} +2 -2
  6. package/dist/{XRWrapper-tyjCu0dQ.js → XRWrapper-C_ChUWmZ.js} +2 -2
  7. package/dist/{deflate-sQAuGjEg.js → deflate-CrBkHn3o.js} +1 -1
  8. package/dist/{emulate-BRbJviQW.js → emulate-BMuLpa2M.js} +2 -2
  9. package/dist/{higlass-BTDczObM.js → higlass-R4akpd_U.js} +1 -1
  10. package/dist/{index-Cor41Qpl.js → index-BvABCvu0.js} +59 -6
  11. package/dist/{index-Db7_bzrU.js → index-CaGs2wGk.js} +370 -366
  12. package/dist/{index-d-ezrYVn.js → index-ChP-N2-Q.js} +12 -12
  13. package/dist/{index-CjBUb32k.js → index-evkxJwCU.js} +1 -1
  14. package/dist/index.min.js +1 -1
  15. package/dist/{jpeg-B8XmXhIa.js → jpeg-CmFz2x7u.js} +1 -1
  16. package/dist/{lerc-De9HQWG7.js → lerc-D9Z1SChC.js} +1 -1
  17. package/dist/{lzw-Bhsi2mhO.js → lzw-BxcPIsd9.js} +1 -1
  18. package/dist/{packbits-D5ce5JVI.js → packbits-BvyhLVrx.js} +1 -1
  19. package/dist/{raw-C1PbNQtJ.js → raw-nQNg2593.js} +1 -1
  20. package/dist/{ray-grab-BbmztB1N.js → ray-grab-CunbRXU8.js} +3 -3
  21. package/dist/{webimage-BoWu99dN.js → webimage-CD0PiPO_.js} +1 -1
  22. package/dist/{xrStore-BIllgY4M.js → xrStore-BFuIULKr.js} +1 -1
  23. package/package.json +11 -11
@@ -1,9 +1,9 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import { useRef as r, useEffect as Pe, useState as L } from "react";
3
- import { M as Se, s as ie } from "./ray-grab-BbmztB1N.js";
4
- import { M as xe, V as g, F as oe, a as X } from "./index-d-ezrYVn.js";
5
- import { i as be, M as K, s as se, B as Fe } from "./index-Cor41Qpl.js";
6
- import { u as ye, a as Le } from "./OrbitControls-4708Bo-O.js";
3
+ import { M as Se, s as ie } from "./ray-grab-CunbRXU8.js";
4
+ import { M as xe, V as g, F as oe, a as X } from "./index-ChP-N2-Q.js";
5
+ import { i as be, M as K, s as se, B as Fe } from "./index-BvABCvu0.js";
6
+ import { u as ye, a as Le } from "./OrbitControls-CSK4x9Nb.js";
7
7
  function Be(l, o) {
8
8
  return l.get(o);
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import * as te from "react";
2
2
  import xi, { useState as Np, useRef as hc, useEffect as mo, useMemo as Tp } from "react";
3
- import { r as Cp, g as Ac, s as Pp, t as Ip, v as Uc, O as yr, w as Sr, S as Mp, x as ii, y as jp, z as Op, A as Lp, E as Fp, H as Hc, I as Rp, J as Dp, K as gc, Q as Ap, n as Up, U as Hp, V as Je, j as kn, T as Bp, X as Vp, Y as qp, Z as vc, _ as bc, $ as Tl, a0 as Cl, a1 as $p, a2 as Qp, a3 as Yp } from "./index-d-ezrYVn.js";
3
+ import { r as Cp, g as Ac, s as Pp, t as Ip, v as Uc, O as yr, w as Sr, S as Mp, x as ii, y as jp, z as Op, A as Lp, E as Fp, H as Hc, I as Rp, J as Dp, K as gc, Q as Ap, n as Up, U as Hp, V as Je, j as kn, T as Bp, X as Vp, Y as qp, Z as vc, _ as bc, $ as Tl, a0 as Cl, a1 as $p, a2 as Qp, a3 as Yp } from "./index-ChP-N2-Q.js";
4
4
  import { jsx as en, Fragment as Wp } from "react/jsx-runtime";
5
5
  var ui = { exports: {} }, si = {};
6
6
  /**
@@ -3,7 +3,7 @@ var p_ = (i, e, t) => e in i ? f_(i, e, { enumerable: !0, configurable: !0, writ
3
3
  var Qn = (i, e, t) => p_(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as g_, jsxs as m_ } from "react/jsx-runtime";
5
5
  import Hb from "react";
6
- import { g as Qe, bs as v_, bt as Ot, bu as ut, bv as Hv, bw as qv, bx as $k, by as jv, bz as Nr, bA as Jv, bB as aa, bC as Ro, bD as Ao, bE as Gk, bF as oa, bG as qu, bH as Or, bI as ju, bJ as Ju, bK as xs, bL as y_, bM as S_, bN as b_, bO as Ku, bP as w_, bQ as C_, bR as Wk, bS as Yu, bT as x_, bU as E_, bV as k_, bW as T_, bX as L_, bY as Kv, bZ as Hk, b_ as D_, b$ as Yv, c0 as I_, c1 as P_, c2 as R_, c3 as A_, c4 as __, c5 as M_, c6 as N_, c7 as O_, c8 as V_, c9 as B_ } from "./index-d-ezrYVn.js";
6
+ import { g as Qe, bs as v_, bt as Ot, bu as ut, bv as Hv, bw as qv, bx as $k, by as jv, bz as Nr, bA as Jv, bB as aa, bC as Ro, bD as Ao, bE as Gk, bF as oa, bG as qu, bH as Or, bI as ju, bJ as Ju, bK as xs, bL as y_, bM as S_, bN as b_, bO as Ku, bP as w_, bQ as C_, bR as Wk, bS as Yu, bT as x_, bU as E_, bV as k_, bW as T_, bX as L_, bY as Kv, bZ as Hk, b_ as D_, b$ as Yv, c0 as I_, c1 as P_, c2 as R_, c3 as A_, c4 as __, c5 as M_, c6 as N_, c7 as O_, c8 as V_, c9 as B_ } from "./index-ChP-N2-Q.js";
7
7
  var F_ = v_();
8
8
  const H = /* @__PURE__ */ Qe(F_);
9
9
  var qb = {}, 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-BIllgY4M.js";
3
+ import { x as r } from "./xrStore-BFuIULKr.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
- import { s as m, M as x } from "./ray-grab-BbmztB1N.js";
4
- import { u as h, a as g } from "./OrbitControls-4708Bo-O.js";
3
+ import { s as m, M as x } from "./ray-grab-CunbRXU8.js";
4
+ import { u as h, a as g } from "./OrbitControls-CSK4x9Nb.js";
5
5
  function l(n, r) {
6
6
  return n.get(r);
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { K as t } from "./ray-grab-BbmztB1N.js";
2
+ import { K as t } from "./ray-grab-CunbRXU8.js";
3
3
  import "react";
4
- import { x as e } from "./xrStore-BIllgY4M.js";
4
+ import { x as e } from "./xrStore-BFuIULKr.js";
5
5
  function f({ children: r }) {
6
6
  return o(t, { store: e, children: r });
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import { i as r } from "./pako.esm-D68R8YXe.js";
2
- import { B as a } from "./index-d-ezrYVn.js";
2
+ import { B as a } from "./index-ChP-N2-Q.js";
3
3
  class s extends a {
4
4
  decodeBlock(e) {
5
5
  return r(new Uint8Array(e)).buffer;
@@ -2,9 +2,9 @@ var tx = Object.defineProperty;
2
2
  var nx = (n, e, t) => e in n ? tx(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var K = (n, e, t) => nx(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsxs as oe, jsx as T, Fragment as Kt } from "react/jsx-runtime";
5
- import { aO as Ke, g as ix, aP as Th, V as ae, M as gr, _ as _t, aM as Et, a2 as Ah, aA as vm, Q as rx, aQ as ym, ax as Sm, aR as Mm, a8 as Em, au as pi, O as sx, ak as _n, p as Ht, aG as to, aC as no, aS as Sl, aT as Rh, az as ax, j as Jr, aU as jt, aV as ox, aW as ea, aX as sn, aY as io, aZ as mo, a_ as wm, a$ as Xl, b0 as Ml, b1 as Li, b2 as wf, b3 as _c, b4 as bm, b5 as lx, b6 as cx, b7 as ux, b8 as Pi, b9 as Xa, ba as vc, bb as hx, bc as fx, bd as dx, be as Tm, bf as El, bg as bf, bh as Tf, bi as Af, bj as px, bk as mx, bl as Rf, bm as gx, bn as Pf, bo as Cf, bp as Nu, bq as Am, br as xx } from "./index-d-ezrYVn.js";
5
+ import { aO as Ke, g as ix, aP as Th, V as ae, M as gr, _ as _t, aM as Et, a2 as Ah, aA as vm, Q as rx, aQ as ym, ax as Sm, aR as Mm, a8 as Em, au as pi, O as sx, ak as _n, p as Ht, aG as to, aC as no, aS as Sl, aT as Rh, az as ax, j as Jr, aU as jt, aV as ox, aW as ea, aX as sn, aY as io, aZ as mo, a_ as wm, a$ as Xl, b0 as Ml, b1 as Li, b2 as wf, b3 as _c, b4 as bm, b5 as lx, b6 as cx, b7 as ux, b8 as Pi, b9 as Xa, ba as vc, bb as hx, bc as fx, bd as dx, be as Tm, bf as El, bg as bf, bh as Tf, bi as Af, bj as px, bk as mx, bl as Rf, bm as gx, bn as Pf, bo as Cf, bp as Nu, bq as Am, br as xx } from "./index-ChP-N2-Q.js";
6
6
  import Ot, { useState as Rt, useMemo as yc, useEffect as mi, useContext as _x, createElement as vx, useRef as Du } from "react";
7
- import { _ as yx, $ as Sx } from "./ray-grab-BbmztB1N.js";
7
+ import { _ as yx, $ as Sx } from "./ray-grab-CunbRXU8.js";
8
8
  import { createRoot as Lf } from "react-dom/client";
9
9
  const If = () => {
10
10
  };
@@ -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 { g as PB, a4 as e4, a5 as qO } from "./index-d-ezrYVn.js";
3
+ import { g as PB, a4 as e4, a5 as qO } from "./index-ChP-N2-Q.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,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-4708Bo-O.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-d-ezrYVn.js";
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;
@@ -7446,7 +7499,7 @@ function Ai(c) {
7446
7499
  o(s.object.name);
7447
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))) })] });
7448
7501
  }
7449
- const Sc = Sr.lazy(() => import("./GeometryAndMeshXR-CX1Dr7Lp.js").catch(() => ({ default: Ai }))), Tc = Sr.lazy(() => import("./XRSceneComponents-Cp8t3pvt.js").catch(() => ({ default: () => null })));
7502
+ const Sc = Sr.lazy(() => import("./GeometryAndMeshXR-Rj8DuqKI.js").catch(() => ({ default: Ai }))), Tc = Sr.lazy(() => import("./XRSceneComponents-Bdj5nq7u.js").catch(() => ({ default: () => null })));
7450
7503
  function ui(c) {
7451
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({
7452
7505
  uniforms: null,
@@ -7651,18 +7704,18 @@ function ui(c) {
7651
7704
  }
7652
7705
  const Ac = Sr.lazy(
7653
7706
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
7654
- () => import("./XRWrapper-tyjCu0dQ.js").catch(() => ({
7707
+ () => import("./XRWrapper-C_ChUWmZ.js").catch(() => ({
7655
7708
  default: ({ children: c }) => c
7656
7709
  }))
7657
7710
  ), Uc = Sr.lazy(
7658
7711
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
7659
- () => import("./XREnterButton-Dp2xhwJb.js").catch(() => ({
7712
+ () => import("./XREnterButton-BTyk-JNM.js").catch(() => ({
7660
7713
  default: () => null
7661
7714
  }))
7662
7715
  ), Cc = Ma((c, n) => {
7663
7716
  const [l, u] = mt(!1);
7664
7717
  return hr(() => {
7665
- import("./index-CjBUb32k.js").then(() => u(!0)).catch(() => {
7718
+ import("./index-evkxJwCU.js").then(() => u(!0)).catch(() => {
7666
7719
  });
7667
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: {
7668
7721
  fov: 50,