@vitessce/dev 4.0.0-test.0 → 4.0.0-test.1

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 (24) hide show
  1. package/dist/{GeometryAndMeshXR-Oj2zI_sI.js → GeometryAndMeshXR-DAmAodts.js} +4 -4
  2. package/dist/{OrbitControls-5ELNF_nQ.js → OrbitControls-DBDt-BXS.js} +1 -1
  3. package/dist/{ReactNeuroglancer-Bs7JMUO5.js → ReactNeuroglancer-CRls7hE2.js} +83 -28
  4. package/dist/{XREnterButton-CIzkyQe9.js → XREnterButton-DcbCw28L.js} +2 -2
  5. package/dist/{XRSceneComponents-44cQ-EFB.js → XRSceneComponents-BSDW2vwy.js} +3 -3
  6. package/dist/XRWrapper-DLFl6IsW.js +10 -0
  7. package/dist/{deflate-Ddy50BQC.js → deflate-DAT9nu6x.js} +1 -1
  8. package/dist/{emulate-CZbU4bg1.js → emulate-ChmN5Fbs.js} +2 -2
  9. package/dist/{higlass-D7Nr2NjU.js → higlass-BWODvZh4.js} +9888 -7873
  10. package/dist/{index-C9uEW-7L.js → index-9ZBePH-w.js} +2 -2
  11. package/dist/{index-CdO3jExn.js → index-C5xtehNM.js} +695 -434
  12. package/dist/{index-D3JEwl5a.js → index-DfOXNOfY.js} +2 -2
  13. package/dist/{index-B_VSuhac.js → index-DicJonGa.js} +14 -10
  14. package/dist/index.js +1 -1
  15. package/dist/{jpeg-DQVF89G5.js → jpeg-CA8tJ1sb.js} +1 -1
  16. package/dist/{lerc-BcM7iRo4.js → lerc-FXo5BIDd.js} +1 -1
  17. package/dist/{lzw-DJUuf0zY.js → lzw-Creb2IFN.js} +1 -1
  18. package/dist/{packbits-LM83yS7N.js → packbits-7gQQb07I.js} +1 -1
  19. package/dist/{raw-CXfphBZa.js → raw-CrXe8WB5.js} +1 -1
  20. package/dist/{ray-grab-CZLm2XVj.js → ray-grab-DkzBHLFJ.js} +3 -3
  21. package/dist/{webimage-DMjnadGD.js → webimage-C31S8FEU.js} +1 -1
  22. package/dist/{xrStore-BXas99tA.js → xrStore-B4nYiuJO.js} +2 -2
  23. package/package.json +5 -5
  24. package/dist/XRWrapper-CPiZ4M25.js +0 -10
@@ -1,5 +1,5 @@
1
- import { C, y, v, B, z, D, x, w, F, E, A, S, Z, m, P, R, T, K, W, d, e, Q, X, O, J, G, H, I, i, o, U, b, a, h, Y, V, k, n, j, l, M, c, N, s, t, f, g, r, q, p, u, L } from "./ray-grab-CZLm2XVj.js";
2
- import "./index-CdO3jExn.js";
1
+ import { C, y, v, B, z, D, x, w, F, E, A, S, Z, m, P, R, T, K, W, d, e, Q, X, O, J, G, H, I, i, o, U, b, a, h, Y, V, k, n, j, l, M, c, N, s, t, f, g, r, q, p, u, L } from "./ray-grab-DkzBHLFJ.js";
2
+ import "./index-C5xtehNM.js";
3
3
  import "react";
4
4
  export {
5
5
  C as CombinedPointer,
@@ -1,10 +1,10 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { a8 as REVISION, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as InterleavedBufferAttribute, ad as WireframeGeometry, a as Box3, ae as Sphere, V as Vector3, p as ShaderMaterial, n as UniformsUtils, af as UniformsLib, k as Vector2, q as Mesh, m as Vector4, ag as Line3, M as Matrix4, ah as MathUtils, T as Color, a4 as _extends, ai as MeshDistanceMaterial, aj as MeshDepthMaterial, ak as RGBADepthPacking, al as ShaderChunk, am as MeshBasicMaterial, an as InstancedBufferAttribute, ao as Texture, d as LinearFilter, ap as Matrix3, aq as DoubleSide, P as PlaneGeometry, ar as BufferAttribute, a3 as Plane, as as Triangle, r as BackSide, F as FrontSide, at as BatchedMesh, a2 as Ray, j as jsxRuntimeExports, C as CoordinationType, D as Data3DTexture, R as RedFormat, au as FloatType, av as getImageSize, S as Scene, aw as Group, ax as MeshPhysicalMaterial, ay as MeshStandardMaterial } from "./index-CdO3jExn.js";
4
+ import { a8 as REVISION, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as InterleavedBufferAttribute, ad as WireframeGeometry, a as Box3, ae as Sphere, V as Vector3, p as ShaderMaterial, n as UniformsUtils, af as UniformsLib, k as Vector2, q as Mesh, m as Vector4, ag as Line3, M as Matrix4, ah as MathUtils, T as Color, a4 as _extends, ai as MeshDistanceMaterial, aj as MeshDepthMaterial, ak as RGBADepthPacking, al as ShaderChunk, am as MeshBasicMaterial, an as InstancedBufferAttribute, ao as Texture, d as LinearFilter, ap as Matrix3, aq as DoubleSide, P as PlaneGeometry, ar as BufferAttribute, a3 as Plane, as as Triangle, r as BackSide, F as FrontSide, at as BatchedMesh, a2 as Ray, j as jsxRuntimeExports, C as CoordinationType, D as Data3DTexture, R as RedFormat, au as FloatType, av as getImageSize, S as Scene, aw as Group, ax as MeshPhysicalMaterial, ay as MeshStandardMaterial } from "./index-C5xtehNM.js";
5
5
  import * as React from "react";
6
6
  import React__default, { useRef, useState, useEffect, Suspense, forwardRef } from "react";
7
- import { u as useThree, s as suspend, O as OrbitControls, C as Canvas } from "./OrbitControls-5ELNF_nQ.js";
7
+ import { u as useThree, s as suspend, O as OrbitControls, C as Canvas } from "./OrbitControls-DBDt-BXS.js";
8
8
  const version = /* @__PURE__ */ (() => parseInt(REVISION.replace(/\D+/g, "")))();
9
9
  const UV1 = version >= 125 ? "uv1" : "uv2";
10
10
  const _box$1 = /* @__PURE__ */ new Box3();
@@ -10898,7 +10898,11 @@ function getData3DTexture(volume) {
10898
10898
  }
10899
10899
  function getPhysicalSizeScalingMatrix(loader) {
10900
10900
  const { x, y, z } = loader?.meta?.physicalSizes ?? {};
10901
- return [{ size: x ?? 1 }, { size: y ?? 1 }, { size: z ?? 1 }];
10901
+ return [
10902
+ x ?? { size: 1 },
10903
+ y ?? { size: 1 },
10904
+ z ?? { size: 1 }
10905
+ ];
10902
10906
  }
10903
10907
  function minMaxVolume(volume) {
10904
10908
  const [min, max] = volume.computeMinMax();
@@ -10936,10 +10940,10 @@ function stringifyLineData(lineData) {
10936
10940
  return `${lineData.startPoint.x},${lineData.startPoint.y},${lineData.startPoint.z};${lineData.endPoint.x},${lineData.endPoint.y},${lineData.endPoint.z}`;
10937
10941
  }
10938
10942
  function isValidGeometrySize(size) {
10939
- if (!Array.isArray(size) || size.length !== 6) {
10943
+ if (!Array.isArray(size) || size.length !== 3) {
10940
10944
  return false;
10941
10945
  }
10942
- return size.every((s) => typeof s === "number" || s === void 0);
10946
+ return size.every((s) => typeof s === "number" && Number.isFinite(s));
10943
10947
  }
10944
10948
  function GeometryAndMesh(props) {
10945
10949
  const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef, highlightEntity, setObsHighlight } = props;
@@ -10953,8 +10957,8 @@ function GeometryAndMesh(props) {
10953
10957
  setObsHighlight(e.object.name);
10954
10958
  }, onPointerOut: () => setObsHighlight(null) }) })] }) : null, renderingSettings.uniforms && renderingSettings.shader && renderingSettings.meshScale && renderingSettings.geometrySize ? jsxRuntimeExports.jsx("group", { children: jsxRuntimeExports.jsxs("mesh", { scale: renderingSettings.meshScale, ref: materialRef, children: [jsxRuntimeExports.jsx("boxGeometry", { args: renderingSettings.geometrySize }), jsxRuntimeExports.jsx("shaderMaterial", { customProgramCacheKey: () => "1", side: FrontSide, uniforms: renderingSettings.uniforms, needsUpdate: true, transparent: true, vertexShader: renderingSettings.shader.vertexShader, fragmentShader: renderingSettings.shader.fragmentShader })] }) }) : null] }), jsxRuntimeExports.jsx("group", { name: "lines", children: lines.map((object) => jsxRuntimeExports.jsx(MeasureLine, { currentLine: object, scale: 1 }, stringifyLineData(object))) })] });
10955
10959
  }
10956
- const LazyGeometryAndMeshXR = React__default.lazy(() => import("./GeometryAndMeshXR-Oj2zI_sI.js").catch(() => ({ default: GeometryAndMesh })));
10957
- const LazyXRSceneComponents = React__default.lazy(() => import("./XRSceneComponents-44cQ-EFB.js").catch(() => ({ default: () => null })));
10960
+ const LazyGeometryAndMeshXR = React__default.lazy(() => import("./GeometryAndMeshXR-DAmAodts.js").catch(() => ({ default: GeometryAndMesh })));
10961
+ const LazyXRSceneComponents = React__default.lazy(() => import("./XRSceneComponents-BSDW2vwy.js").catch(() => ({ default: () => null })));
10958
10962
  function SpatialThree(props) {
10959
10963
  const materialRef = useRef(null);
10960
10964
  const orbitRef = useRef(null);
@@ -11300,20 +11304,20 @@ function SpatialThree(props) {
11300
11304
  }
11301
11305
  const LazyXRWrapper = React__default.lazy(
11302
11306
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
11303
- () => import("./XRWrapper-CPiZ4M25.js").catch(() => ({
11307
+ () => import("./XRWrapper-DLFl6IsW.js").catch(() => ({
11304
11308
  default: ({ children }) => children
11305
11309
  }))
11306
11310
  );
11307
11311
  const LazyXREnterButton = React__default.lazy(
11308
11312
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
11309
- () => import("./XREnterButton-CIzkyQe9.js").catch(() => ({
11313
+ () => import("./XREnterButton-DcbCw28L.js").catch(() => ({
11310
11314
  default: () => null
11311
11315
  }))
11312
11316
  );
11313
11317
  const SpatialWrapper = forwardRef((props, canvasRef) => {
11314
11318
  const [xrAvailable, setXrAvailable] = useState(false);
11315
11319
  useEffect(() => {
11316
- import("./index-D3JEwl5a.js").then(() => setXrAvailable(true)).catch(() => {
11320
+ import("./index-DfOXNOfY.js").then(() => setXrAvailable(true)).catch(() => {
11317
11321
  });
11318
11322
  }, []);
11319
11323
  return jsxRuntimeExports.jsxs("div", { style: { width: "100%", height: "100%" }, children: [xrAvailable && jsxRuntimeExports.jsx(Suspense, { fallback: null, children: jsxRuntimeExports.jsx(LazyXREnterButton, {}) }), jsxRuntimeExports.jsx(Canvas, { style: { position: "absolute", top: 0, left: 0 }, camera: {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cm, ch, cf, cg, cq, cr, ci, cC, cA, cy, cB, cz, ce, cx, cj, cd, cc, co, cu, cn, cp, ct, cs, cl, cv, cw, cH, cK, cE, cL, cM, cF, cI, cJ, cG, ck, cD } from "./index-CdO3jExn.js";
1
+ import { cm, ch, cf, cg, cq, cr, ci, cC, cA, cy, cB, cz, ce, cx, cj, cd, cc, co, cu, cn, cp, ct, cs, cl, cv, cw, cH, cK, cE, cL, cM, cF, cI, cJ, cG, ck, cD } from "./index-C5xtehNM.js";
2
2
  import "react";
3
3
  export {
4
4
  cm as CoordinationLevel,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CdO3jExn.js";
1
+ import { B as BaseDecoder } from "./index-C5xtehNM.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, b as LercAddCompression } from "./index-CdO3jExn.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, b as LercAddCompression } from "./index-C5xtehNM.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CdO3jExn.js";
1
+ import { B as BaseDecoder } from "./index-C5xtehNM.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CdO3jExn.js";
1
+ import { B as BaseDecoder } from "./index-C5xtehNM.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CdO3jExn.js";
1
+ import { B as BaseDecoder } from "./index-C5xtehNM.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { az as BufferGeometry, M as Matrix4, V as Vector3, ar as BufferAttribute, p as ShaderMaterial, k as Vector2, T as Color, af as UniformsLib, a8 as REVISION, g as getDefaultExportFromCjs, q as Mesh, aA as Material, am as MeshBasicMaterial, $ as Quaternion, a2 as Ray, aB as SphereGeometry, aC as Object3D, as as Triangle, ag as Line3, a3 as Plane, w as Raycaster, ae as Sphere, aD as InstancedMesh, aE as BoxGeometry, P as PlaneGeometry, aF as Box2, aG as Shape, aH as ShapeGeometry, aI as CylinderGeometry, aJ as WebGLRenderTarget, aK as DepthTexture, aL as HalfFloatType, d as LinearFilter, aM as VideoTexture, ao as Texture, I as SRGBColorSpace, aN as QuadraticBezierCurve3, aO as Euler, aP as GLTFLoader, j as jsxRuntimeExports, x as PerspectiveCamera, S as Scene, m as Vector4, O as OrthographicCamera } from "./index-CdO3jExn.js";
4
+ import { az as BufferGeometry, M as Matrix4, V as Vector3, ar as BufferAttribute, p as ShaderMaterial, k as Vector2, T as Color, af as UniformsLib, a8 as REVISION, g as getDefaultExportFromCjs, q as Mesh, aA as Material, am as MeshBasicMaterial, $ as Quaternion, a2 as Ray, aB as SphereGeometry, aC as Object3D, as as Triangle, ag as Line3, a3 as Plane, w as Raycaster, ae as Sphere, aD as InstancedMesh, aE as BoxGeometry, P as PlaneGeometry, aF as Box2, aG as Shape, aH as ShapeGeometry, aI as CylinderGeometry, aJ as WebGLRenderTarget, aK as DepthTexture, aL as HalfFloatType, d as LinearFilter, aM as VideoTexture, ao as Texture, I as SRGBColorSpace, aN as QuadraticBezierCurve3, aO as Euler, aP as GLTFLoader, j as jsxRuntimeExports, x as PerspectiveCamera, S as Scene, m as Vector4, O as OrthographicCamera } from "./index-C5xtehNM.js";
5
5
  import React__default, { createContext, forwardRef, useImperativeHandle, useMemo, useState, useRef, useContext, useEffect, Suspense, useSyncExternalStore, useCallback } from "react";
6
- import { s as suspend, a as useFrame, c as createPortal, b as useLoader, d as useStore$1, u as useThree, r as reconciler, e as context, f as addEffect } from "./OrbitControls-5ELNF_nQ.js";
6
+ import { s as suspend, a as useFrame, c as createPortal, b as useLoader, d as useStore$1, u as useThree, r as reconciler, e as context, f as addEffect } from "./OrbitControls-DBDt-BXS.js";
7
7
  import ReactDOM__default from "react-dom";
8
8
  var client = {};
9
9
  var hasRequiredClient;
@@ -3345,7 +3345,7 @@ async function injectEmulator(store, emulateOptions, alert) {
3345
3345
  if (ar || vr) {
3346
3346
  return false;
3347
3347
  }
3348
- const { emulate } = await import("./emulate-CZbU4bg1.js");
3348
+ const { emulate } = await import("./emulate-ChmN5Fbs.js");
3349
3349
  if (alert) {
3350
3350
  window.alert(`emulator started`);
3351
3351
  }
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CdO3jExn.js";
1
+ import { B as BaseDecoder } from "./index-C5xtehNM.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
@@ -1,5 +1,5 @@
1
- import { J as createXRStore } from "./ray-grab-CZLm2XVj.js";
2
- import "./index-CdO3jExn.js";
1
+ import { J as createXRStore } from "./ray-grab-DkzBHLFJ.js";
2
+ import "./index-C5xtehNM.js";
3
3
  import "react";
4
4
  const xrStore = createXRStore({
5
5
  handTracking: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/dev",
3
- "version": "4.0.0-test.0",
3
+ "version": "4.0.0-test.1",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,10 +16,10 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/all": "4.0.0-test.0",
20
- "@vitessce/config": "4.0.0-test.0",
21
- "@vitessce/export-utils": "4.0.0-test.0",
22
- "@vitessce/constants": "4.0.0-test.0"
19
+ "@vitessce/all": "4.0.0-test.1",
20
+ "@vitessce/config": "4.0.0-test.1",
21
+ "@vitessce/constants": "4.0.0-test.1",
22
+ "@vitessce/export-utils": "4.0.0-test.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-react": "^4.5.0",
@@ -1,10 +0,0 @@
1
- import { j as jsxRuntimeExports } from "./index-CdO3jExn.js";
2
- import { K as XR } from "./ray-grab-CZLm2XVj.js";
3
- import "react";
4
- import { x as xrStore } from "./xrStore-BXas99tA.js";
5
- function XRWrapper({ children }) {
6
- return jsxRuntimeExports.jsx(XR, { store: xrStore, children });
7
- }
8
- export {
9
- XRWrapper as default
10
- };