@vitessce/all 3.5.6 → 3.5.8
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/{deflate-35fbdf1d.js → deflate-caecb9a5.js} +1 -1
- package/dist/{higlass-6360c0eb.js → higlass-499258e3.js} +1 -1
- package/dist/{index-91aca3e4.js → index-1f21bfa0.js} +18 -3
- package/dist/index-2732b061.js +66430 -0
- package/dist/{index-7925c6be.js → index-ec9f6e92.js} +8201 -2679
- package/dist/index.js +8 -8
- package/dist/{jpeg-8b9a25d4.js → jpeg-71127875.js} +1 -1
- package/dist/{lerc-34155be5.js → lerc-6b0aed4a.js} +1 -1
- package/dist/{lzw-bc73fdec.js → lzw-d3000914.js} +1 -1
- package/dist/{packbits-2a588df1.js → packbits-8ca42840.js} +1 -1
- package/dist/{raw-f68bddd1.js → raw-8cc54eb3.js} +1 -1
- package/dist/{troika-three-text.esm-2879f126.js → troika-three-text.esm-f2c32ddf.js} +1 -1
- package/dist/{webimage-1743d05f.js → webimage-88dacd24.js} +1 -1
- package/dist/zstd-561fda0e.js +778 -0
- package/dist-tsc/Vitessce.d.ts.map +1 -1
- package/dist-tsc/Vitessce.js +4 -3
- package/dist-tsc/base-plugins.d.ts +1 -1
- package/dist-tsc/base-plugins.d.ts.map +1 -1
- package/dist-tsc/base-plugins.js +23 -4
- package/package.json +30 -28
- package/src/Vitessce.tsx +4 -3
- package/src/base-plugins.ts +35 -0
- package/dist/zstd-ec5a40b8.js +0 -808
@@ -1,6 +1,6 @@
|
|
1
1
|
import React__default, { createElement, isValidElement, PureComponent, Component } from "react";
|
2
2
|
import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
|
3
|
-
import { aS as commonjsGlobal$1, aT as objectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-
|
3
|
+
import { aS as commonjsGlobal$1, aT as objectAssign, g as getDefaultExportFromCjs$1, aU as earcut } from "./index-ec9f6e92.js";
|
4
4
|
import "@vitessce/vit-s";
|
5
5
|
var promise = {};
|
6
6
|
(function(exports2) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, L as Layers, T as Texture, c as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, d as PCFShadowMap, e as VSMShadowMap, f as BufferGeometry, M as Material, h as Color, i as Clock, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, p as Ray$1, q as Plane, E as EventDispatcher, r as MOUSE, s as TOUCH, Q as Quaternion, t as Spherical, u as Loader, v as LoaderUtils, F as FileLoader, w as SpotLight, x as PointLight, D as DirectionalLight, y as MeshBasicMaterial, z as MeshPhysicalMaterial, I as InstancedMesh, H as Object3D, J as TextureLoader, K as ImageBitmapLoader, X as BufferAttribute, Y as InterleavedBuffer, Z as LinearFilter, $ as LinearMipmapLinearFilter, a0 as RepeatWrapping, a1 as PointsMaterial, a2 as LineBasicMaterial, a3 as MeshStandardMaterial, a4 as DoubleSide, a5 as PropertyBinding, a6 as SkinnedMesh, a7 as Mesh, a8 as LineSegments, a9 as Line$1, aa as LineLoop, ab as Points, ac as MathUtils, ad as Skeleton, ae as InterpolateLinear, af as AnimationClip, ag as Bone, ah as NearestFilter, ai as NearestMipmapNearestFilter, aj as LinearMipmapNearestFilter, ak as NearestMipmapLinearFilter, al as ClampToEdgeWrapping, am as MirroredRepeatWrapping, an as InterpolateDiscrete, ao as FrontSide, ap as InterleavedBufferAttribute, aq as VectorKeyframeTrack, ar as QuaternionKeyframeTrack, as as NumberKeyframeTrack, at as Box3, au as Sphere, av as Interpolant, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-
|
1
|
+
import { g as getDefaultExportFromCjs, R as Raycaster, O as OrthographicCamera, P as PerspectiveCamera, S as Scene, a as PCFSoftShadowMap, N as NoToneMapping, A as ACESFilmicToneMapping, V as Vector2, b as Vector3, L as Layers, T as Texture, c as RGBAFormat, U as UnsignedByteType, W as WebGLRenderer, C as Camera, B as BasicShadowMap, d as PCFShadowMap, e as VSMShadowMap, f as BufferGeometry, M as Material, h as Color, i as Clock, _ as _extends, j as THREE, G as Group, k as Matrix4, l as TrianglesDrawMode, m as TriangleFanDrawMode, n as TriangleStripDrawMode, o as REVISION, p as Ray$1, q as Plane, E as EventDispatcher, r as MOUSE, s as TOUCH, Q as Quaternion, t as Spherical, u as Loader, v as LoaderUtils, F as FileLoader, w as SpotLight, x as PointLight, D as DirectionalLight, y as MeshBasicMaterial, z as MeshPhysicalMaterial, I as InstancedMesh, H as Object3D, J as TextureLoader, K as ImageBitmapLoader, X as BufferAttribute, Y as InterleavedBuffer, Z as LinearFilter, $ as LinearMipmapLinearFilter, a0 as RepeatWrapping, a1 as PointsMaterial, a2 as LineBasicMaterial, a3 as MeshStandardMaterial, a4 as DoubleSide, a5 as PropertyBinding, a6 as SkinnedMesh, a7 as Mesh, a8 as LineSegments, a9 as Line$1, aa as LineLoop, ab as Points, ac as MathUtils, ad as Skeleton, ae as InterpolateLinear, af as AnimationClip, ag as Bone, ah as NearestFilter, ai as NearestMipmapNearestFilter, aj as LinearMipmapNearestFilter, ak as NearestMipmapLinearFilter, al as ClampToEdgeWrapping, am as MirroredRepeatWrapping, an as InterpolateDiscrete, ao as FrontSide, ap as InterleavedBufferAttribute, aq as VectorKeyframeTrack, ar as QuaternionKeyframeTrack, as as NumberKeyframeTrack, at as Box3, au as Sphere, av as Interpolant, aw as InstancedBufferGeometry, ax as Float32BufferAttribute, ay as InstancedInterleavedBuffer, az as WireframeGeometry, aA as ShaderMaterial, aB as UniformsUtils, aC as UniformsLib, aD as Vector4, aE as Line3, aF as SphereGeometry, aG as Triangle, aH as BackSide, aI as jsxRuntimeExports, aJ as Matrix3, aK as CoordinationType, aL as Data3DTexture, aM as RedFormat, aN as FloatType, aO as getImageSize } from "./index-ec9f6e92.js";
|
2
2
|
import * as React from "react";
|
3
3
|
import React__default, { useReducer, useRef, useDebugValue, useEffect, useLayoutEffect, useState, useMemo, forwardRef } from "react";
|
4
4
|
import "@vitessce/vit-s";
|
@@ -23800,7 +23800,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
|
|
23800
23800
|
const {
|
23801
23801
|
Text: TextMeshImpl,
|
23802
23802
|
preloadFont
|
23803
|
-
} = suspend(async () => import("./troika-three-text.esm-
|
23803
|
+
} = suspend(async () => import("./troika-three-text.esm-f2c32ddf.js"), []);
|
23804
23804
|
const invalidate2 = useThree(({
|
23805
23805
|
invalidate: invalidate3
|
23806
23806
|
}) => invalidate3);
|
@@ -28266,11 +28266,26 @@ function setUniformsTextures(uniforms, textures, volume, volConfig, renderstyle,
|
|
28266
28266
|
uniforms.u_color5.value.set(colors.length > 4 ? colors[4][0] : null, colors.length > 4 ? colors[4][1] : null, colors.length > 4 ? colors[4][2] : null);
|
28267
28267
|
uniforms.u_color6.value.set(colors.length > 5 ? colors[5][0] : null, colors.length > 5 ? colors[5][1] : null, colors.length > 5 ? colors[5][2] : null);
|
28268
28268
|
}
|
28269
|
-
function create3DRendering(volumes, channelTargetC, channelsVisible, colors, textures, contrastLimits, volumeMinMax,
|
28269
|
+
function create3DRendering(volumes, channelTargetC, channelsVisible, colors, textures, contrastLimits, volumeMinMax, scaleOrUndefined, renderstyle, layerTransparency, xSlice, ySlice, zSlice, originalScale) {
|
28270
|
+
var _a2, _b2, _c;
|
28270
28271
|
const texturesList = [];
|
28271
28272
|
const colorsSave = [];
|
28272
28273
|
const contrastLimitsList = [];
|
28273
28274
|
let volume = null;
|
28275
|
+
let scale = scaleOrUndefined;
|
28276
|
+
if (scale === void 0 || scale === null || !Array.isArray(scale) || scale.length < 3) {
|
28277
|
+
scale = [
|
28278
|
+
{ size: ((_a2 = scale == null ? void 0 : scale[0]) == null ? void 0 : _a2.size) ?? 1 },
|
28279
|
+
{ size: ((_b2 = scale == null ? void 0 : scale[1]) == null ? void 0 : _b2.size) ?? 1 },
|
28280
|
+
{ size: ((_c = scale == null ? void 0 : scale[2]) == null ? void 0 : _c.size) ?? 1 }
|
28281
|
+
];
|
28282
|
+
} else {
|
28283
|
+
for (let i2 = 0; i2 < scale.length; i2++) {
|
28284
|
+
if (!scale[i2] || scale[i2].size === void 0 || scale[i2].size === null) {
|
28285
|
+
scale[i2] = { size: 1 };
|
28286
|
+
}
|
28287
|
+
}
|
28288
|
+
}
|
28274
28289
|
channelTargetC.forEach((channel, id) => {
|
28275
28290
|
if (channelsVisible[id]) {
|
28276
28291
|
volume = volumes.get(channel);
|