@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.
- package/dist/{GeometryAndMeshXR-DsObDSMF.js → GeometryAndMeshXR-CRmUfduo.js} +1 -1
- package/dist/{ReactNeuroglancer-C2C-vEVu.js → ReactNeuroglancer-lhHqb26z.js} +1 -1
- package/dist/{XREnterButton-B6j_tE1d.js → XREnterButton-D6okITo8.js} +1 -1
- package/dist/{XRSceneComponents-BgZ4J_JS.js → XRSceneComponents-DPWM9Kof.js} +1 -1
- package/dist/{XRWrapper-BLKqjWwm.js → XRWrapper-DjLzFqbp.js} +2 -2
- package/dist/{deflate-38TS7div.js → deflate-DQl9IP3Y.js} +1 -1
- package/dist/{higlass-CKuPDg4y.js → higlass-D15hvJ_M.js} +1 -1
- package/dist/{index-D-cJewP-.js → index-BCBR2wdG.js} +4264 -7149
- package/dist/{index-gStG4FEQ.js → index-DBBuqo_C.js} +3 -2
- package/dist/{index-CA6Y_Dls.js → index-KhSE41J7.js} +7 -6
- package/dist/index.js +1 -1
- package/dist/{jpeg-BGB-_EKG.js → jpeg-VQtOPzqo.js} +1 -1
- package/dist/{lerc-Db0ZEZ3c.js → lerc-BOZdP3CI.js} +1 -1
- package/dist/{lzw-BmHVONBc.js → lzw-DsVNTHOy.js} +1 -1
- package/dist/{packbits-DKF2IGBX.js → packbits-MGL9I2T5.js} +1 -1
- package/dist/{raw-DMNeLVd7.js → raw-xWXN4EOw.js} +1 -1
- package/dist/{webimage-BTp31_-j.js → webimage-gXvzmhsO.js} +1 -1
- package/dist/{xrStore-CDyKy5UF.js → xrStore-CSrwcN_T.js} +1 -1
- package/package.json +9 -9
|
@@ -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-
|
|
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
|
|
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-
|
|
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
|
|
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-
|
|
948
|
-
const LazyXRSceneComponents = React__default.lazy(() => import("./XRSceneComponents-
|
|
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-
|
|
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-
|
|
1312
|
+
() => import("./XREnterButton-D6okITo8.js").catch(() => ({
|
|
1312
1313
|
default: () => null
|
|
1313
1314
|
}))
|
|
1314
1315
|
);
|
package/dist/index.js
CHANGED
|
@@ -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-
|
|
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() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/launcher",
|
|
3
|
-
"version": "4.0.
|
|
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.
|
|
24
|
-
"@vitessce/example-
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/vit-s": "4.0.
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
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",
|