@vitessce/comparative 4.0.0-test.1 → 4.0.0-test.3

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-mG6LDGng.js} +4 -4
  2. package/dist/{OrbitControls-4708Bo-O.js → OrbitControls-BBpo0Bmn.js} +1 -1
  3. package/dist/{ReactNeuroglancer-D7gl_oXM.js → ReactNeuroglancer-HSVAR9Hg.js} +1 -1
  4. package/dist/{XREnterButton-Dp2xhwJb.js → XREnterButton-BgKg9M2i.js} +1 -1
  5. package/dist/{XRSceneComponents-Cp8t3pvt.js → XRSceneComponents-BJhlm4Zh.js} +2 -2
  6. package/dist/{XRWrapper-tyjCu0dQ.js → XRWrapper-DqbVnB5a.js} +2 -2
  7. package/dist/{deflate-sQAuGjEg.js → deflate-CReLYg6P.js} +1 -1
  8. package/dist/{emulate-BRbJviQW.js → emulate-DRDNyX-e.js} +2 -2
  9. package/dist/{higlass-BTDczObM.js → higlass-DIU9q8Gs.js} +1 -1
  10. package/dist/{index-d-ezrYVn.js → index-CIvxlOK9.js} +35428 -35422
  11. package/dist/{index-CjBUb32k.js → index-CvdoV01Q.js} +1 -1
  12. package/dist/{index-Db7_bzrU.js → index-Dfil7xa8.js} +370 -366
  13. package/dist/{index-Cor41Qpl.js → index-uxqqRrpE.js} +59 -6
  14. package/dist/index.min.js +1 -1
  15. package/dist/{jpeg-B8XmXhIa.js → jpeg-DT4ea8DJ.js} +1 -1
  16. package/dist/{lerc-De9HQWG7.js → lerc-BwDTukKR.js} +1 -1
  17. package/dist/{lzw-Bhsi2mhO.js → lzw-8s8oN2TN.js} +1 -1
  18. package/dist/{packbits-D5ce5JVI.js → packbits-CaA4IVE4.js} +1 -1
  19. package/dist/{raw-C1PbNQtJ.js → raw-BnIhTgXM.js} +1 -1
  20. package/dist/{ray-grab-BbmztB1N.js → ray-grab-Cio1GXKX.js} +3 -3
  21. package/dist/{webimage-BoWu99dN.js → webimage-D7cBoCP0.js} +1 -1
  22. package/dist/{xrStore-BIllgY4M.js → xrStore-E6OMxK_W.js} +1 -1
  23. 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-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-BBpo0Bmn.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-CIvxlOK9.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-mG6LDGng.js").catch(() => ({ default: Ai }))), Tc = Sr.lazy(() => import("./XRSceneComponents-BJhlm4Zh.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-DqbVnB5a.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-BgKg9M2i.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-CvdoV01Q.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,
package/dist/index.min.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cL as i, ck as n, cf as c, cd as t, ce as r, co as l, cp as p, cg as d, cA as C, cy as u, cw as g, cz as T, cx as y, cM as S, cc as m, cv as P, ch as I, cb as f, ca as F, cm as N, cs as _, cl as v, cn as x, cr as A, cq as M, cj as U, ct as V, cu as w, cF as E, cI as H, cC as L, cJ as O, cK as z, cD as G, cG as h, cH as B, cE as D, ci as J, cB as Y } from "./index-d-ezrYVn.js";
1
+ import { cL as i, ck as n, cf as c, cd as t, ce as r, co as l, cp as p, cg as d, cA as C, cy as u, cw as g, cz as T, cx as y, cM as S, cc as m, cv as P, ch as I, cb as f, ca as F, cm as N, cs as _, cl as v, cn as x, cr as A, cq as M, cj as U, ct as V, cu as w, cF as E, cI as H, cC as L, cJ as O, cK as z, cD as G, cG as h, cH as B, cE as D, ci as J, cB as Y } from "./index-CIvxlOK9.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as re } from "./index-d-ezrYVn.js";
1
+ import { B as re } from "./index-CIvxlOK9.js";
2
2
  const O = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as sA } from "./pako.esm-D68R8YXe.js";
2
- import { g as DA, B as nA, L as fA, b as gA } from "./index-d-ezrYVn.js";
2
+ import { g as DA, B as nA, L as fA, b as gA } from "./index-CIvxlOK9.js";
3
3
  var BA = { exports: {} }, iA;
4
4
  function tA() {
5
5
  return iA || (iA = 1, function(j) {
@@ -1,4 +1,4 @@
1
- import { B as b } from "./index-d-ezrYVn.js";
1
+ import { B as b } from "./index-CIvxlOK9.js";
2
2
  const B = 9, E = 256, p = 257, k = 12;
3
3
  function x(c, o, r) {
4
4
  const i = o % 8, n = Math.floor(o / 8), h = 8 - i, g = o + r - (n + 1) * 8;
@@ -1,4 +1,4 @@
1
- import { B as c } from "./index-d-ezrYVn.js";
1
+ import { B as c } from "./index-CIvxlOK9.js";
2
2
  class l extends c {
3
3
  decodeBlock(s) {
4
4
  const n = new DataView(s), r = [];
@@ -1,4 +1,4 @@
1
- import { B as o } from "./index-d-ezrYVn.js";
1
+ import { B as o } from "./index-CIvxlOK9.js";
2
2
  class d extends o {
3
3
  decodeBlock(e) {
4
4
  return e;
@@ -2,9 +2,9 @@ var Sr = Object.defineProperty;
2
2
  var Pr = (t, e, n) => e in t ? Sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var v = (t, e, n) => Pr(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsx as m, jsxs as N, Fragment as q } from "react/jsx-runtime";
5
- import { ax as qe, M as j, V as w, ap as $, o as Mr, j as W, Q as st, ad as Rr, a6 as Cr, g as Ir, p as Z, ay as _n, ak as On, _ as U, a1 as Pt, az as Tn, aA as Et, aq as Xn, ae as Mt, a2 as Ge, v as $e, ac as Fn, aB as Ar, aC as Er, P as zn, aD as Lr, aE as _r, aF as Or, aG as Tr, aH as we, aI as Xr, aJ as Fr, d as Vt, aK as zr, am as Wr, H as Dr, aL as Hr, aM as Wn, aN as Dn, w as Vr, S as jr, k as Hn, O as kr } from "./index-d-ezrYVn.js";
5
+ import { ax as qe, M as j, V as w, ap as $, o as Mr, j as W, Q as st, ad as Rr, a6 as Cr, g as Ir, p as Z, ay as _n, ak as On, _ as U, a1 as Pt, az as Tn, aA as Et, aq as Xn, ae as Mt, a2 as Ge, v as $e, ac as Fn, aB as Ar, aC as Er, P as zn, aD as Lr, aE as _r, aF as Or, aG as Tr, aH as we, aI as Xr, aJ as Fr, d as Vt, aK as zr, am as Wr, H as Dr, aL as Hr, aM as Wn, aN as Dn, w as Vr, S as jr, k as Hn, O as kr } from "./index-CIvxlOK9.js";
6
6
  import re, { createContext as Ue, forwardRef as _, useImperativeHandle as k, useMemo as A, useState as be, useRef as C, useContext as se, useEffect as O, Suspense as oe, useSyncExternalStore as Br, useCallback as Vn } from "react";
7
- import { s as Nr, a as X, c as Lt, b as qr, d as ae, u as xe, r as jn, e as kn, f as Gr } from "./OrbitControls-4708Bo-O.js";
7
+ import { s as Nr, a as X, c as Lt, b as qr, d as ae, u as xe, r as jn, e as kn, f as Gr } from "./OrbitControls-BBpo0Bmn.js";
8
8
  import { createRoot as $r } from "react-dom/client";
9
9
  var Ur = Object.defineProperty, Qr = (t, e, n) => e in t ? Ur(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, S = (t, e, n) => (Qr(t, typeof e != "symbol" ? e + "" : e, n), n);
10
10
  function ot(t, e, n, r, i) {
@@ -2186,7 +2186,7 @@ async function yn(t, e, n) {
2186
2186
  ]);
2187
2187
  if (i || r)
2188
2188
  return !1;
2189
- const { emulate: s } = await import("./emulate-BRbJviQW.js");
2189
+ const { emulate: s } = await import("./emulate-DRDNyX-e.js");
2190
2190
  return n && window.alert("emulator started"), t.setState({
2191
2191
  emulator: s(e === !0 ? "metaQuest3" : e)
2192
2192
  }), !0;
@@ -1,4 +1,4 @@
1
- import { B as r } from "./index-d-ezrYVn.js";
1
+ import { B as r } from "./index-CIvxlOK9.js";
2
2
  class s extends r {
3
3
  constructor() {
4
4
  if (super(), typeof createImageBitmap > "u")
@@ -1,4 +1,4 @@
1
- import { J as r } from "./ray-grab-BbmztB1N.js";
1
+ import { J as r } from "./ray-grab-Cio1GXKX.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  const a = r({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/comparative",
3
- "version": "4.0.0-test.1",
3
+ "version": "4.0.0-test.3",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,16 +22,16 @@
22
22
  "react-sticky-el": "^2.1.1",
23
23
  "react-window": "^1.8.10",
24
24
  "nuqs": "^2.6.0",
25
- "@vitessce/config": "4.0.0-test.1",
26
- "@vitessce/error": "4.0.0-test.1",
27
- "@vitessce/constants-internal": "4.0.0-test.1",
28
- "@vitessce/vit-s": "4.0.0-test.1",
29
- "@vitessce/all": "4.0.0-test.1",
30
- "@vitessce/styles": "4.0.0-test.1",
31
- "@vitessce/abstract": "4.0.0-test.1",
32
- "@vitessce/zarr": "4.0.0-test.1",
33
- "@vitessce/constants": "4.0.0-test.1",
34
- "@vitessce/export-utils": "4.0.0-test.1"
25
+ "@vitessce/all": "4.0.0-test.3",
26
+ "@vitessce/constants-internal": "4.0.0-test.3",
27
+ "@vitessce/abstract": "4.0.0-test.3",
28
+ "@vitessce/vit-s": "4.0.0-test.3",
29
+ "@vitessce/error": "4.0.0-test.3",
30
+ "@vitessce/config": "4.0.0-test.3",
31
+ "@vitessce/styles": "4.0.0-test.3",
32
+ "@vitessce/export-utils": "4.0.0-test.3",
33
+ "@vitessce/constants": "4.0.0-test.3",
34
+ "@vitessce/zarr": "4.0.0-test.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@vitejs/plugin-react": "^4.5.0",