@vitessce/launcher 4.0.3 → 4.0.5

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.
@@ -4,7 +4,7 @@ import { useThree, useFrame, Canvas } from "@react-three/fiber";
4
4
  import { OrbitControls } from "@react-three/drei";
5
5
  import * as THREE from "three";
6
6
  import { Data3DTexture, RedFormat, UnsignedByteType, LinearFilter, RedIntegerFormat, UnsignedIntType, NearestFilter, Vector3, Vector2, Vector4, UniformsUtils } from "three";
7
- import { l as log, i as isEqual, C as CoordinationType, u as useEventCallback } from "./index-D-cJewP-.js";
7
+ import { l as log, i as isEqual, C as CoordinationType, u as useEventCallback } from "./index-BCBR2wdG.js";
8
8
  const LogLevel = {
9
9
  INFO: "info",
10
10
  WARN: "warn",
@@ -537,7 +537,8 @@ class VolumeDataManager {
537
537
  const shapes = _resolutionStatsToShapes(multiResolutionStats);
538
538
  const resolutions = multiResolutionStats.length;
539
539
  this.zarrStore.resolutions = resolutions;
540
- const vivData = imageWrapper.getData();
540
+ const stripPhysicalSizes = false;
541
+ const vivData = imageWrapper.getData(stripPhysicalSizes);
541
542
  if (!Array.isArray(vivData) || vivData.length < 1) {
542
543
  throw new Error("Not a multiresolution loader");
543
544
  }
@@ -3,7 +3,7 @@ import React__default, { useRef, useState, useEffect, Suspense, forwardRef } fro
3
3
  import { Canvas } from "@react-three/fiber";
4
4
  import { Center, Text, Line, Bvh, OrbitControls } from "@react-three/drei";
5
5
  import { Matrix3, Matrix4, Vector3, Vector2, UniformsUtils, Data3DTexture, RedFormat, FloatType, LinearFilter, FrontSide, Scene, Group, MeshPhysicalMaterial, MeshBasicMaterial, MeshStandardMaterial, BackSide } from "three";
6
- import { C as CoordinationType, g as getImageSize } from "./index-D-cJewP-.js";
6
+ import { C as CoordinationType, g as getImageSize } from "./index-BCBR2wdG.js";
7
7
  function MeasureLine({ currentLine, scale }) {
8
8
  const textRef = useRef(null);
9
9
  return jsxs("group", { children: [jsx(Center, { bottom: true, right: true, position: [currentLine.midPoint.x, currentLine.midPoint.y, currentLine.midPoint.z], rotation: [0, 0, 0], children: jsx(Text, { color: "gray", scale: 0.05, ref: textRef, children: `${(currentLine.startPoint.distanceTo(currentLine.endPoint) * scale).toFixed(2)} µm` }) }), jsx(Line, {
@@ -581,7 +581,8 @@ const renderingModeMap = {
581
581
  };
582
582
  function extractInformationFromProps(layerScope, layerCoordination, channelScopes, channelCoordination, image, props) {
583
583
  const { spatialRenderingMode } = props;
584
- const data = image?.image?.instance?.getData();
584
+ const stripPhysicalSizes = false;
585
+ const data = image?.image?.instance?.getData(stripPhysicalSizes);
585
586
  if (!data) {
586
587
  return {
587
588
  channelsVisible: null,
@@ -944,8 +945,8 @@ function GeometryAndMesh(props) {
944
945
  setObsHighlight(e.object.name);
945
946
  }, onPointerOut: () => setObsHighlight(null) }) })] }) : null, renderingSettings.uniforms && renderingSettings.shader && renderingSettings.meshScale && renderingSettings.geometrySize ? jsx("group", { children: jsxs("mesh", { scale: renderingSettings.meshScale, ref: materialRef, children: [jsx("boxGeometry", { args: renderingSettings.geometrySize }), jsx("shaderMaterial", { customProgramCacheKey: () => "1", side: FrontSide, uniforms: renderingSettings.uniforms, needsUpdate: true, transparent: true, vertexShader: renderingSettings.shader.vertexShader, fragmentShader: renderingSettings.shader.fragmentShader })] }) }) : null] }), jsx("group", { name: "lines", children: lines.map((object) => jsx(MeasureLine, { currentLine: object, scale: 1 }, stringifyLineData(object))) })] });
946
947
  }
947
- const LazyGeometryAndMeshXR = React__default.lazy(() => import("./GeometryAndMeshXR-DsObDSMF.js").catch(() => ({ default: GeometryAndMesh })));
948
- const LazyXRSceneComponents = React__default.lazy(() => import("./XRSceneComponents-BgZ4J_JS.js").catch(() => ({ default: () => null })));
948
+ const LazyGeometryAndMeshXR = React__default.lazy(() => import("./GeometryAndMeshXR-CRmUfduo.js").catch(() => ({ default: GeometryAndMesh })));
949
+ const LazyXRSceneComponents = React__default.lazy(() => import("./XRSceneComponents-DPWM9Kof.js").catch(() => ({ default: () => null })));
949
950
  function SpatialThree(props) {
950
951
  const materialRef = useRef(null);
951
952
  const orbitRef = useRef(null);
@@ -1302,13 +1303,13 @@ function getXRModule() {
1302
1303
  }
1303
1304
  const LazyXRWrapper = React__default.lazy(
1304
1305
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
1305
- () => import("./XRWrapper-BLKqjWwm.js").catch(() => ({
1306
+ () => import("./XRWrapper-DjLzFqbp.js").catch(() => ({
1306
1307
  default: ({ children }) => children
1307
1308
  }))
1308
1309
  );
1309
1310
  const LazyXREnterButton = React__default.lazy(
1310
1311
  // eslint-disable-next-line implicit-arrow-linebreak, function-paren-newline
1311
- () => import("./XREnterButton-B6j_tE1d.js").catch(() => ({
1312
+ () => import("./XREnterButton-D6okITo8.js").catch(() => ({
1312
1313
  default: () => null
1313
1314
  }))
1314
1315
  );
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a2, a1 } from "./index-D-cJewP-.js";
1
+ import { a2, a1 } from "./index-BCBR2wdG.js";
2
2
  export {
3
3
  a2 as ControlledLauncher,
4
4
  a1 as UncontrolledLauncher
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D-cJewP-.js";
1
+ import { B as BaseDecoder } from "./index-BCBR2wdG.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 { a as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, b as LercAddCompression } from "./index-D-cJewP-.js";
2
+ import { a as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, b as LercAddCompression } from "./index-BCBR2wdG.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-D-cJewP-.js";
1
+ import { B as BaseDecoder } from "./index-BCBR2wdG.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-D-cJewP-.js";
1
+ import { B as BaseDecoder } from "./index-BCBR2wdG.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-D-cJewP-.js";
1
+ import { B as BaseDecoder } from "./index-BCBR2wdG.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-D-cJewP-.js";
1
+ import { B as BaseDecoder } from "./index-BCBR2wdG.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
@@ -1,4 +1,4 @@
1
- import { g as getXRModule } from "./index-CA6Y_Dls.js";
1
+ import { g as getXRModule } from "./index-KhSE41J7.js";
2
2
  const xrStore = getXRModule().createXRStore({
3
3
  handTracking: true,
4
4
  emulate: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/launcher",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,14 +20,14 @@
20
20
  "use-query-params": "^1.1.9",
21
21
  "react-dropzone": "^14.3.8",
22
22
  "@tanstack/react-query": "^5.80.2",
23
- "@vitessce/all": "4.0.3",
24
- "@vitessce/example-configs": "4.0.3",
25
- "@vitessce/example-plugins": "4.0.3",
26
- "@vitessce/globals": "4.0.3",
27
- "@vitessce/styles": "4.0.3",
28
- "@vitessce/vit-s": "4.0.3",
29
- "@vitessce/constants-internal": "4.0.3",
30
- "@vitessce/config": "4.0.3"
23
+ "@vitessce/all": "4.0.5",
24
+ "@vitessce/example-plugins": "4.0.5",
25
+ "@vitessce/styles": "4.0.5",
26
+ "@vitessce/example-configs": "4.0.5",
27
+ "@vitessce/globals": "4.0.5",
28
+ "@vitessce/vit-s": "4.0.5",
29
+ "@vitessce/config": "4.0.5",
30
+ "@vitessce/constants-internal": "4.0.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "react": "19.2.6",