@vitessce/all 3.9.7 → 3.9.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/{OrbitControls-DJu5u6tM.js → OrbitControls-BSs_Q5On.js} +1 -1
- package/dist/{ReactNeuroglancer-DC-9NQV1.js → ReactNeuroglancer-x4EMSEcX.js} +48 -5
- package/dist/{deflate-BVXiBwpd.js → deflate-CsmxXIPT.js} +1 -1
- package/dist/{higlass-BABKAqJw.js → higlass-wSBrpMhX.js} +1 -1
- package/dist/{index-BA1bwFuv.js → index-BPsHPaJT.js} +2 -2
- package/dist/{index-CC-2MyaG.js → index-BstOXuv0.js} +3 -3
- package/dist/{index-C_0Ni_kA.js → index-gbtRLRj5.js} +321 -140
- package/dist/index.js +1 -1
- package/dist/{jpeg-Bx2qADwx.js → jpeg-C7Mxa_R_.js} +1 -1
- package/dist/{lerc-BVprPTmk.js → lerc-DbIzGgSj.js} +1 -1
- package/dist/{lzw-xRmfciyv.js → lzw-oMC0dlgC.js} +1 -1
- package/dist/{packbits-DymgLbq7.js → packbits-C-3XoOot.js} +1 -1
- package/dist/{raw-BHe10UqL.js → raw-BDQB9cuz.js} +1 -1
- package/dist/{troika-three-text.esm-C_yrtgNH.js → troika-three-text.esm-DK1u2spU.js} +1 -1
- package/dist/{webimage-DBDXmZdm.js → webimage-DhNmlhtK.js} +1 -1
- package/dist-tsc/base-plugins.d.ts.map +1 -1
- package/dist-tsc/base-plugins.js +1 -0
- package/package.json +33 -33
- package/src/base-plugins.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aG as getDefaultExportFromCjs, aH as Raycaster, W as OrthographicCamera, K as PerspectiveCamera, av as Scene, aI as PCFSoftShadowMap, aJ as VSMShadowMap, aK as PCFShadowMap, aL as BasicShadowMap, aM as NoToneMapping, aN as ACESFilmicToneMapping, e as Vector3, V as Vector2, aO as Clock, aP as WebGLRenderer, aQ as Camera, x as BufferGeometry, r as Material, aR as Layers, a1 as Texture, aC as RGBAFormat, ay as UnsignedByteType, C as Color, aj as _extends, aS as THREE, aT as EventDispatcher, aU as MOUSE, aV as TOUCH, aW as Spherical, Q as Quaternion, an as Ray, ak as Plane } from "./index-
|
|
1
|
+
import { aG as getDefaultExportFromCjs, aH as Raycaster, W as OrthographicCamera, K as PerspectiveCamera, av as Scene, aI as PCFSoftShadowMap, aJ as VSMShadowMap, aK as PCFShadowMap, aL as BasicShadowMap, aM as NoToneMapping, aN as ACESFilmicToneMapping, e as Vector3, V as Vector2, aO as Clock, aP as WebGLRenderer, aQ as Camera, x as BufferGeometry, r as Material, aR as Layers, a1 as Texture, aC as RGBAFormat, ay as UnsignedByteType, C as Color, aj as _extends, aS as THREE, aT as EventDispatcher, aU as MOUSE, aV as TOUCH, aW as Spherical, Q as Quaternion, an as Ray, ak as Plane } from "./index-gbtRLRj5.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useReducer, useRef, useEffect, useLayoutEffect, useDebugValue, useState, useMemo } from "react";
|
|
4
4
|
var constants = { exports: {} };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aG as getDefaultExportFromCjs, b1 as requireAssign, b2 as require_export, b3 as require_core, b4 as require_fails, b5 as require_toObject, b6 as require_objectKeys, b7 as require_cof, b8 as require_wks, b9 as require_iterators, ba as requireWeb_dom_iterable, bb as requireEs6_string_iterator, bc as require_anObject, bd as require_hide, be as require_ctx, bf as require_toLength, bg as require_global, bh as require_objectDp, bi as require_descriptors, bj as require_isObject, bk as require_objectCreate, bl as require_iterDefine, bm as require_iterStep, bn as require_meta, bo as require_isArray, bp as require_iobject, bq as require_setToStringTag, br as require_aFunction, bs as requireIterator, bt as require_propertyDesc, a_ as commonjsGlobal, bu as requireEs6_symbol, bv as requireDefineProperty, bw as require_toIobject, bx as require_objectGopd, by as require_html, bz as require_domCreate, bA as require_library, bB as requireSymbol, bC as require_objectPie, bD as require_has, bE as require_redefine, bF as require_objectAssign, bG as diffCameraState, ao as jsxRuntimeExports } from "./index-
|
|
1
|
+
import { aG as getDefaultExportFromCjs, b1 as requireAssign, b2 as require_export, b3 as require_core, b4 as require_fails, b5 as require_toObject, b6 as require_objectKeys, b7 as require_cof, b8 as require_wks, b9 as require_iterators, ba as requireWeb_dom_iterable, bb as requireEs6_string_iterator, bc as require_anObject, bd as require_hide, be as require_ctx, bf as require_toLength, bg as require_global, bh as require_objectDp, bi as require_descriptors, bj as require_isObject, bk as require_objectCreate, bl as require_iterDefine, bm as require_iterStep, bn as require_meta, bo as require_isArray, bp as require_iobject, bq as require_setToStringTag, br as require_aFunction, bs as requireIterator, bt as require_propertyDesc, a_ as commonjsGlobal, bu as requireEs6_symbol, bv as requireDefineProperty, bw as require_toIobject, bx as require_objectGopd, by as require_html, bz as require_domCreate, bA as require_library, bB as requireSymbol, bC as require_objectPie, bD as require_has, bE as require_redefine, bF as require_objectAssign, bG as diffCameraState, ao as jsxRuntimeExports } from "./index-gbtRLRj5.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
var assignExports = requireAssign();
|
|
4
4
|
const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assignExports);
|
|
@@ -65441,6 +65441,7 @@ class Neuroglancer extends React__default.Component {
|
|
|
65441
65441
|
onVisibleChanged: null,
|
|
65442
65442
|
onSelectionDetailsStateChanged: null,
|
|
65443
65443
|
onViewerStateChanged: null,
|
|
65444
|
+
onLayerLoadingChange: null,
|
|
65444
65445
|
key: null,
|
|
65445
65446
|
callbacks: [],
|
|
65446
65447
|
ngServer: "https://neuroglancer-demo.appspot.com/"
|
|
@@ -65511,7 +65512,7 @@ class Neuroglancer extends React__default.Component {
|
|
|
65511
65512
|
const baseLayers = this.props.viewerState?.layers ?? (this.viewer.state.toJSON().layers || []);
|
|
65512
65513
|
const newLayers = baseLayers.map((layer) => {
|
|
65513
65514
|
const layerScope = Object.keys(cellColorMappingByLayer).find((scope) => layer.name?.includes(scope));
|
|
65514
|
-
const selected = { ...cellColorMappingByLayer[layerScope] || {} };
|
|
65515
|
+
const selected = { ...cellColorMappingByLayer[layerScope]?.colors || {} };
|
|
65515
65516
|
if (!this.allKnownIdsByLayer)
|
|
65516
65517
|
this.allKnownIdsByLayer = {};
|
|
65517
65518
|
if (!this.allKnownIdsByLayer[layerScope]) {
|
|
@@ -65571,6 +65572,34 @@ class Neuroglancer extends React__default.Component {
|
|
|
65571
65572
|
} else {
|
|
65572
65573
|
viewerNoKey = this.viewer;
|
|
65573
65574
|
}
|
|
65575
|
+
const { visibleChunksChanged } = this.viewer.chunkQueueManager;
|
|
65576
|
+
let firstChunkLoaded = false;
|
|
65577
|
+
this.disposers.push(visibleChunksChanged.add(() => {
|
|
65578
|
+
if (!firstChunkLoaded) {
|
|
65579
|
+
for (const layer of this.viewer.layerManager.managedLayers) {
|
|
65580
|
+
if (layer.layer instanceof SegmentationUserLayer) {
|
|
65581
|
+
const hasVisibleChunk = layer.layer.renderLayers?.some((rl) => {
|
|
65582
|
+
const { numVisibleChunksAvailable, numVisibleChunksNeeded } = rl.layerChunkProgressInfo || {};
|
|
65583
|
+
if (!numVisibleChunksNeeded || !numVisibleChunksAvailable)
|
|
65584
|
+
return false;
|
|
65585
|
+
return numVisibleChunksAvailable / numVisibleChunksNeeded > 0.25;
|
|
65586
|
+
});
|
|
65587
|
+
if (hasVisibleChunk) {
|
|
65588
|
+
firstChunkLoaded = true;
|
|
65589
|
+
requestAnimationFrame(() => {
|
|
65590
|
+
requestAnimationFrame(() => {
|
|
65591
|
+
this.props.onLayerLoadingChange?.(true);
|
|
65592
|
+
});
|
|
65593
|
+
});
|
|
65594
|
+
return;
|
|
65595
|
+
}
|
|
65596
|
+
}
|
|
65597
|
+
}
|
|
65598
|
+
}
|
|
65599
|
+
}));
|
|
65600
|
+
this.disposers.push(() => {
|
|
65601
|
+
firstChunkLoaded = false;
|
|
65602
|
+
});
|
|
65574
65603
|
}
|
|
65575
65604
|
componentDidUpdate(prevProps, prevState) {
|
|
65576
65605
|
const { viewerState, cellColorMapping: cellColorMappingByLayer } = this.props;
|
|
@@ -65585,6 +65614,20 @@ class Neuroglancer extends React__default.Component {
|
|
|
65585
65614
|
if (layer.layer instanceof SegmentationUserLayer) {
|
|
65586
65615
|
const { segmentSelectionState } = layer.layer.displayState;
|
|
65587
65616
|
segmentSelectionState.set(selectedSegments[layer.name]);
|
|
65617
|
+
const layerScope = Object.keys(cellColorMappingByLayer).find((scope) => layer.name?.includes(scope));
|
|
65618
|
+
if (layerScope) {
|
|
65619
|
+
const opacity = cellColorMappingByLayer[layerScope]?.opacity ?? 1;
|
|
65620
|
+
layer.layer.displayState.objectAlpha.value = opacity;
|
|
65621
|
+
}
|
|
65622
|
+
}
|
|
65623
|
+
if (layer.layer instanceof AnnotationUserLayer) {
|
|
65624
|
+
const matchingLayer = (viewerState?.layers || []).find((l) => l.name === layer.name);
|
|
65625
|
+
if (matchingLayer?.shader) {
|
|
65626
|
+
const currentShader = layer.layer.annotationDisplayState.shader.value_;
|
|
65627
|
+
if (currentShader !== matchingLayer.shader) {
|
|
65628
|
+
layer.layer.annotationDisplayState.shader.value = matchingLayer.shader;
|
|
65629
|
+
}
|
|
65630
|
+
}
|
|
65588
65631
|
}
|
|
65589
65632
|
}
|
|
65590
65633
|
if (!viewerState)
|
|
@@ -65613,8 +65656,8 @@ class Neuroglancer extends React__default.Component {
|
|
|
65613
65656
|
}
|
|
65614
65657
|
});
|
|
65615
65658
|
}
|
|
65616
|
-
const prevSize = prevProps.cellColorMapping ? Object.
|
|
65617
|
-
const currSize = cellColorMappingByLayer ? Object.
|
|
65659
|
+
const prevSize = prevProps.cellColorMapping ? Object.values(prevProps.cellColorMapping).reduce((acc, v) => acc + Object.keys(v?.colors || {}).length, 0) : 0;
|
|
65660
|
+
const currSize = cellColorMappingByLayer ? Object.values(cellColorMappingByLayer).reduce((acc, v) => acc + Object.keys(v?.colors || {}).length, 0) : 0;
|
|
65618
65661
|
const mappingRefChanged = prevProps.cellColorMapping !== this.props.cellColorMapping;
|
|
65619
65662
|
if (!this.didLayersChange(prevVS, viewerState) && (mappingRefChanged || prevSize !== currSize)) {
|
|
65620
65663
|
this.withoutEmitting(() => {
|
|
@@ -65624,7 +65667,7 @@ class Neuroglancer extends React__default.Component {
|
|
|
65624
65667
|
const stripSegFields = (layers) => (layers || []).map((l) => {
|
|
65625
65668
|
if (!l)
|
|
65626
65669
|
return l;
|
|
65627
|
-
const { segments, segmentColors, ...rest } = l;
|
|
65670
|
+
const { segments, segmentColors, objectAlpha, ...rest } = l;
|
|
65628
65671
|
return rest;
|
|
65629
65672
|
});
|
|
65630
65673
|
const prevLayers = prevProps.viewerState?.layers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { aX as BaseDecoder } from "./index-
|
|
2
|
+
import { aX as BaseDecoder } from "./index-gbtRLRj5.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$7 from "react";
|
|
2
2
|
import React__default, { isValidElement, PureComponent, Component, createElement, createContext, createRef } from "react";
|
|
3
3
|
import ReactDOM__default, { findDOMNode as findDOMNode$1 } from "react-dom";
|
|
4
|
-
import { a_ as commonjsGlobal$1, a$ as requireObjectAssign, aG as getDefaultExportFromCjs$1, b0 as earcut } from "./index-
|
|
4
|
+
import { a_ as commonjsGlobal$1, a$ as requireObjectAssign, aG as getDefaultExportFromCjs$1, b0 as earcut } from "./index-gbtRLRj5.js";
|
|
5
5
|
var promise = {};
|
|
6
6
|
var hasRequiredPromise;
|
|
7
7
|
function requirePromise() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aw as log, ax as isEqual, ar as Data3DTexture, as as RedFormat, ay as UnsignedByteType, l as LinearFilter, az as RedIntegerFormat, aA as UnsignedIntType, m as NearestFilter, e as Vector3, V as Vector2, ag as Vector4, ae as UniformsUtils, aq as CoordinationType, aB as WebGLMultipleRenderTargets, aC as RGBAFormat, av as Scene, W as OrthographicCamera, ad as ShaderMaterial, z as Mesh, aD as PlaneGeometry, aE as useEventCallback, ao as jsxRuntimeExports, aF as GLSL3, am as BackSide } from "./index-
|
|
1
|
+
import { aw as log, ax as isEqual, ar as Data3DTexture, as as RedFormat, ay as UnsignedByteType, l as LinearFilter, az as RedIntegerFormat, aA as UnsignedIntType, m as NearestFilter, e as Vector3, V as Vector2, ag as Vector4, ae as UniformsUtils, aq as CoordinationType, aB as WebGLMultipleRenderTargets, aC as RGBAFormat, av as Scene, W as OrthographicCamera, ad as ShaderMaterial, z as Mesh, aD as PlaneGeometry, aE as useEventCallback, ao as jsxRuntimeExports, aF as GLSL3, am as BackSide } from "./index-gbtRLRj5.js";
|
|
2
2
|
import { useRef, useState, useMemo, useEffect, Suspense } from "react";
|
|
3
|
-
import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-
|
|
3
|
+
import { u as useThree, a as useFrame, O as OrbitControls, C as Canvas } from "./OrbitControls-BSs_Q5On.js";
|
|
4
4
|
const LogLevel = {
|
|
5
5
|
INFO: "info",
|
|
6
6
|
WARN: "warn",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as Group, M as Matrix4, T as TrianglesDrawMode, a as TriangleFanDrawMode, b as TriangleStripDrawMode, R as REVISION, L as Loader, c as LoaderUtils, F as FileLoader, d as MeshPhysicalMaterial, V as Vector2, C as Color, S as SpotLight, P as PointLight, D as DirectionalLight, e as Vector3, I as InstancedMesh, Q as Quaternion, O as Object3D, f as TextureLoader, g as ImageBitmapLoader, B as BufferAttribute, h as InterleavedBuffer, i as LinearMipmapLinearFilter, N as NearestMipmapLinearFilter, j as LinearMipmapNearestFilter, k as NearestMipmapNearestFilter, l as LinearFilter, m as NearestFilter, n as RepeatWrapping, o as MirroredRepeatWrapping, p as ClampToEdgeWrapping, q as PointsMaterial, r as Material, s as LineBasicMaterial, t as MeshStandardMaterial, u as DoubleSide, v as MeshBasicMaterial, w as PropertyBinding, x as BufferGeometry, y as SkinnedMesh, z as Mesh, A as LineSegments, E as Line$1, H as LineLoop, J as Points, K as PerspectiveCamera, U as MathUtils, W as OrthographicCamera, X as Skeleton, Y as InterpolateDiscrete, Z as InterpolateLinear, _ as AnimationClip, $ as Bone, a0 as InterleavedBufferAttribute, a1 as Texture, a2 as VectorKeyframeTrack, a3 as QuaternionKeyframeTrack, a4 as NumberKeyframeTrack, a5 as FrontSide, a6 as Interpolant, a7 as Box3, a8 as Sphere, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as WireframeGeometry, ad as ShaderMaterial, ae as UniformsUtils, af as UniformsLib, ag as Vector4, ah as Line3, ai as SphereGeometry, aj as _extends, ak as Plane, al as Triangle, am as BackSide, an as Ray$1, ao as jsxRuntimeExports, ap as Matrix3, aq as CoordinationType, ar as Data3DTexture, as as RedFormat, at as FloatType, au as getImageSize, av as Scene } from "./index-
|
|
1
|
+
import { G as Group, M as Matrix4, T as TrianglesDrawMode, a as TriangleFanDrawMode, b as TriangleStripDrawMode, R as REVISION, L as Loader, c as LoaderUtils, F as FileLoader, d as MeshPhysicalMaterial, V as Vector2, C as Color, S as SpotLight, P as PointLight, D as DirectionalLight, e as Vector3, I as InstancedMesh, Q as Quaternion, O as Object3D, f as TextureLoader, g as ImageBitmapLoader, B as BufferAttribute, h as InterleavedBuffer, i as LinearMipmapLinearFilter, N as NearestMipmapLinearFilter, j as LinearMipmapNearestFilter, k as NearestMipmapNearestFilter, l as LinearFilter, m as NearestFilter, n as RepeatWrapping, o as MirroredRepeatWrapping, p as ClampToEdgeWrapping, q as PointsMaterial, r as Material, s as LineBasicMaterial, t as MeshStandardMaterial, u as DoubleSide, v as MeshBasicMaterial, w as PropertyBinding, x as BufferGeometry, y as SkinnedMesh, z as Mesh, A as LineSegments, E as Line$1, H as LineLoop, J as Points, K as PerspectiveCamera, U as MathUtils, W as OrthographicCamera, X as Skeleton, Y as InterpolateDiscrete, Z as InterpolateLinear, _ as AnimationClip, $ as Bone, a0 as InterleavedBufferAttribute, a1 as Texture, a2 as VectorKeyframeTrack, a3 as QuaternionKeyframeTrack, a4 as NumberKeyframeTrack, a5 as FrontSide, a6 as Interpolant, a7 as Box3, a8 as Sphere, a9 as InstancedBufferGeometry, aa as Float32BufferAttribute, ab as InstancedInterleavedBuffer, ac as WireframeGeometry, ad as ShaderMaterial, ae as UniformsUtils, af as UniformsLib, ag as Vector4, ah as Line3, ai as SphereGeometry, aj as _extends, ak as Plane, al as Triangle, am as BackSide, an as Ray$1, ao as jsxRuntimeExports, ap as Matrix3, aq as CoordinationType, ar as Data3DTexture, as as RedFormat, at as FloatType, au as getImageSize, av as Scene } from "./index-gbtRLRj5.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useRef, useEffect, useState, forwardRef } from "react";
|
|
4
|
-
import { u as useThree, a as useFrame, c as create, e as extend, b as createPortal, O as OrbitControls, C as Canvas } from "./OrbitControls-
|
|
4
|
+
import { u as useThree, a as useFrame, c as create, e as extend, b as createPortal, O as OrbitControls, C as Canvas } from "./OrbitControls-BSs_Q5On.js";
|
|
5
5
|
const isPromise = (promise) => typeof promise === "object" && typeof promise.then === "function";
|
|
6
6
|
const globalCache = [];
|
|
7
7
|
function shallowEqualArrays(arrA, arrB, equal = (a, b) => a === b) {
|
|
@@ -5027,7 +5027,7 @@ const Text = /* @__PURE__ */ React.forwardRef(({
|
|
|
5027
5027
|
const {
|
|
5028
5028
|
Text: TextMeshImpl,
|
|
5029
5029
|
preloadFont
|
|
5030
|
-
} = suspend(async () => import("./troika-three-text.esm-
|
|
5030
|
+
} = suspend(async () => import("./troika-three-text.esm-DK1u2spU.js"), []);
|
|
5031
5031
|
const invalidate = useThree(({
|
|
5032
5032
|
invalidate: invalidate2
|
|
5033
5033
|
}) => invalidate2);
|