@vitessce/all 3.9.4 → 3.9.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/{OrbitControls-COiSfwgZ.js → OrbitControls-BdKhfTcE.js} +1 -1
- package/dist/{ReactNeuroglancer-BsmE8PyU.js → ReactNeuroglancer-D0d2tFQ8.js} +1 -1
- package/dist/{deflate-ClPM2AX_.js → deflate-DQCna24L.js} +1 -1
- package/dist/{higlass-DUYpEXhD.js → higlass-CgLnON4r.js} +1 -1
- package/dist/{index-DMwHBnRb.js → index-CJ0WrLWz.js} +11 -11
- package/dist/{index-5-K_2Uhu.js → index-cqprKTFO.js} +3 -3
- package/dist/{index-C-dFydbG.js → index-vsMcaCd5.js} +45 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-GtoIw4IT.js → jpeg-BpDeSW3W.js} +1 -1
- package/dist/{lerc-DcSwwDzY.js → lerc-ed9YjGeI.js} +1 -1
- package/dist/{lzw-D6__ol7A.js → lzw-7E8bYZIo.js} +1 -1
- package/dist/{packbits-qyK2t5DY.js → packbits-COn2hgkH.js} +1 -1
- package/dist/{raw-DITpx3I3.js → raw-C5vEl2Zl.js} +1 -1
- package/dist/{troika-three-text.esm-BX5BPsT5.js → troika-three-text.esm-Bn837OOO.js} +1 -1
- package/dist/{webimage-DggQ0O5v.js → webimage-f_OnujWl.js} +1 -1
- package/package.json +33 -33
|
@@ -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-CJ0WrLWz.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-CJ0WrLWz.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
var assignExports = requireAssign();
|
|
4
4
|
const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assignExports);
|
|
@@ -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-CJ0WrLWz.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-CJ0WrLWz.js";
|
|
5
5
|
var promise = {};
|
|
6
6
|
var hasRequiredPromise;
|
|
7
7
|
function requirePromise() {
|
|
@@ -210319,22 +210319,22 @@ async function getDecoder(fileDirectory) {
|
|
|
210319
210319
|
const Decoder = await importFn();
|
|
210320
210320
|
return new Decoder(fileDirectory);
|
|
210321
210321
|
}
|
|
210322
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
210323
|
-
addDecoder(5, () => import("./lzw-
|
|
210322
|
+
addDecoder([void 0, 1], () => import("./raw-C5vEl2Zl.js").then((m2) => m2.default));
|
|
210323
|
+
addDecoder(5, () => import("./lzw-7E8bYZIo.js").then((m2) => m2.default));
|
|
210324
210324
|
addDecoder(6, () => {
|
|
210325
210325
|
throw new Error("old style JPEG compression is not supported.");
|
|
210326
210326
|
});
|
|
210327
|
-
addDecoder(7, () => import("./jpeg-
|
|
210328
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
210329
|
-
addDecoder(32773, () => import("./packbits-
|
|
210327
|
+
addDecoder(7, () => import("./jpeg-BpDeSW3W.js").then((m2) => m2.default));
|
|
210328
|
+
addDecoder([8, 32946], () => import("./deflate-DQCna24L.js").then((m2) => m2.default));
|
|
210329
|
+
addDecoder(32773, () => import("./packbits-COn2hgkH.js").then((m2) => m2.default));
|
|
210330
210330
|
addDecoder(
|
|
210331
210331
|
34887,
|
|
210332
|
-
() => import("./lerc-
|
|
210332
|
+
() => import("./lerc-ed9YjGeI.js").then(async (m2) => {
|
|
210333
210333
|
await m2.zstd.init();
|
|
210334
210334
|
return m2;
|
|
210335
210335
|
}).then((m2) => m2.default)
|
|
210336
210336
|
);
|
|
210337
|
-
addDecoder(50001, () => import("./webimage-
|
|
210337
|
+
addDecoder(50001, () => import("./webimage-f_OnujWl.js").then((m2) => m2.default));
|
|
210338
210338
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
|
210339
210339
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
|
210340
210340
|
}
|
|
@@ -254823,12 +254823,12 @@ class ErrorBoundary extends React__default.Component {
|
|
|
254823
254823
|
}
|
|
254824
254824
|
}
|
|
254825
254825
|
const LazySpatialThree = React__default.lazy(async () => {
|
|
254826
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
254826
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-cqprKTFO.js");
|
|
254827
254827
|
return { default: SpatialWrapper2 };
|
|
254828
254828
|
});
|
|
254829
254829
|
const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
|
|
254830
254830
|
const LazySpatialAccelerated = React__default.lazy(async () => {
|
|
254831
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
|
254831
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-vsMcaCd5.js");
|
|
254832
254832
|
return { default: SpatialWrapper2 };
|
|
254833
254833
|
});
|
|
254834
254834
|
const SpatialAcceleratedAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialAccelerated, { ...props }) }) }) }));
|
|
@@ -268389,7 +268389,7 @@ function HiglassGlobalStyles(props) {
|
|
|
268389
268389
|
}
|
|
268390
268390
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
|
268391
268391
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
|
268392
|
-
const { HiGlassComponent } = await import("./higlass-
|
|
268392
|
+
const { HiGlassComponent } = await import("./higlass-CgLnON4r.js");
|
|
268393
268393
|
return { default: HiGlassComponent };
|
|
268394
268394
|
});
|
|
268395
268395
|
const HG_SIZE = 800;
|
|
@@ -271336,7 +271336,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
271336
271336
|
const { classes: classes2 } = props;
|
|
271337
271337
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
|
|
271338
271338
|
}
|
|
271339
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
271339
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-D0d2tFQ8.js"));
|
|
271340
271340
|
function createWorker() {
|
|
271341
271341
|
return new WorkerFactory();
|
|
271342
271342
|
}
|
|
@@ -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-CJ0WrLWz.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-BdKhfTcE.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-Bn837OOO.js"), []);
|
|
5031
5031
|
const invalidate = useThree(({
|
|
5032
5032
|
invalidate: invalidate2
|
|
5033
5033
|
}) => invalidate2);
|
|
@@ -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-CJ0WrLWz.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-BdKhfTcE.js";
|
|
4
4
|
const LogLevel = {
|
|
5
5
|
INFO: "info",
|
|
6
6
|
WARN: "warn",
|
|
@@ -197,9 +197,17 @@ function _ptToZarr(ptx, pty, ptz, ptInfo) {
|
|
|
197
197
|
z
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
const DEFAULT_SIGMA_NORMALIZED = 0.25;
|
|
201
|
+
function _requestBufferToRequestObjects(buffer, k, optsForWeighting) {
|
|
201
202
|
const counts = /* @__PURE__ */ new Map();
|
|
202
|
-
|
|
203
|
+
const { width, height, sigmaNormalized } = optsForWeighting;
|
|
204
|
+
const useWeighting = Number.isInteger(width) && Number.isInteger(height) && width > 0 && height > 0 && typeof sigmaNormalized === "number";
|
|
205
|
+
if (!useWeighting) {
|
|
206
|
+
log.warn("_requestBufferToRequestObjects: proceeding without weighting");
|
|
207
|
+
}
|
|
208
|
+
const maxPixels = Math.floor(buffer.length / 4);
|
|
209
|
+
for (let pix = 0; pix < maxPixels; pix += 1) {
|
|
210
|
+
const i = pix * 4;
|
|
203
211
|
const r = buffer[i];
|
|
204
212
|
const g = buffer[i + 1];
|
|
205
213
|
const b = buffer[i + 2];
|
|
@@ -208,7 +216,17 @@ function _requestBufferToRequestObjects(buffer, k) {
|
|
|
208
216
|
continue;
|
|
209
217
|
}
|
|
210
218
|
const packed = (r << 24 | g << 16 | b << 8 | a) >>> 0;
|
|
211
|
-
|
|
219
|
+
let weight = 1;
|
|
220
|
+
if (useWeighting) {
|
|
221
|
+
const x = pix % width;
|
|
222
|
+
const y = Math.floor(pix / width);
|
|
223
|
+
const dx = x - width / 2;
|
|
224
|
+
const dy = y - height / 2;
|
|
225
|
+
const nd = Math.sqrt(dx * dx / (width * width) + dy * dy / (height * height));
|
|
226
|
+
const norm = nd / sigmaNormalized;
|
|
227
|
+
weight = Math.exp(-0.5 * norm * norm);
|
|
228
|
+
}
|
|
229
|
+
counts.set(packed, (counts.get(packed) || 0) + weight);
|
|
212
230
|
}
|
|
213
231
|
const requests = [...counts.entries()].sort((a, b) => b[1] - a[1]).slice(0, k).map(([packed]) => ({
|
|
214
232
|
x: packed >> 22 & 1023,
|
|
@@ -865,7 +883,19 @@ class VolumeDataManager {
|
|
|
865
883
|
}
|
|
866
884
|
return chunkEntry.data;
|
|
867
885
|
}
|
|
868
|
-
|
|
886
|
+
/**
|
|
887
|
+
* Process the buffer of brick requests from the shader, turning them into
|
|
888
|
+
* actual Promises for Zarr chunks on the JS side.
|
|
889
|
+
* @param {Uint8Array} buffer The bufRequest (of length width*height*4)
|
|
890
|
+
* containing the brick requests from the shader.
|
|
891
|
+
* @param {object} optsForWeighting
|
|
892
|
+
* @param {number} optsForWeighting.width The width of the render target.
|
|
893
|
+
* @param {number} optsForWeighting.height The height of the render target.
|
|
894
|
+
* @param {number} optsForWeighting.sigmaNormalized The normalized sigma value
|
|
895
|
+
* to use for weighting the brick requests based on their distance from
|
|
896
|
+
* the center of the render target.
|
|
897
|
+
*/
|
|
898
|
+
async processRequestData(buffer, optsForWeighting) {
|
|
869
899
|
if (this.isBusy) {
|
|
870
900
|
log.debug("processRequestData: already busy, skipping");
|
|
871
901
|
return;
|
|
@@ -880,7 +910,7 @@ class VolumeDataManager {
|
|
|
880
910
|
}
|
|
881
911
|
this.isBusy = true;
|
|
882
912
|
this.triggerRequest = false;
|
|
883
|
-
const { requests, origRequestCount } = _requestBufferToRequestObjects(buffer, this.k);
|
|
913
|
+
const { requests, origRequestCount } = _requestBufferToRequestObjects(buffer, this.k, optsForWeighting);
|
|
884
914
|
if (requests.length === 0) {
|
|
885
915
|
this.noNewRequests = true;
|
|
886
916
|
}
|
|
@@ -3443,7 +3473,14 @@ function handleRequests(_gl, { frameRef, dataManager, mrtRef, bufRequest, bufUsa
|
|
|
3443
3473
|
ctx.bindFramebuffer(ctx.READ_FRAMEBUFFER, framebufferFor(_gl, mrtRef.current));
|
|
3444
3474
|
ctx.readBuffer(ctx.COLOR_ATTACHMENT1);
|
|
3445
3475
|
ctx.readPixels(0, 0, mrtRef.current.width, mrtRef.current.height, ctx.RGBA, ctx.UNSIGNED_BYTE, bufRequest.current);
|
|
3446
|
-
dataManager.processRequestData(bufRequest.current
|
|
3476
|
+
dataManager.processRequestData(bufRequest.current, {
|
|
3477
|
+
// If width/height are not yet available,
|
|
3478
|
+
// processRequestData will proceed without weighting.
|
|
3479
|
+
width: mrtRef?.current?.width,
|
|
3480
|
+
height: mrtRef?.current?.height,
|
|
3481
|
+
// Default sigmaNormalized = 0.25; can be tuned
|
|
3482
|
+
sigmaNormalized: DEFAULT_SIGMA_NORMALIZED
|
|
3483
|
+
});
|
|
3447
3484
|
} else if (dataManager.triggerUsage === true && dataManager.noNewRequests === false) {
|
|
3448
3485
|
ctx.bindFramebuffer(ctx.READ_FRAMEBUFFER, framebufferFor(_gl, mrtRef.current));
|
|
3449
3486
|
ctx.readBuffer(ctx.COLOR_ATTACHMENT2);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bR, bP, bN, bQ, bO, bM, bS } from "./index-
|
|
1
|
+
import { bR, bP, bN, bQ, bO, bM, bS } from "./index-CJ0WrLWz.js";
|
|
2
2
|
import { useComplexCoordination, useComplexCoordinationSecondary, useCoordination, useCoordinationScopes, useCoordinationScopesBy, useGridItemSize, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondaryNonNull, usePageModeView } from "@vitessce/vit-s";
|
|
3
3
|
export {
|
|
4
4
|
bR as PluginAsyncFunction,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { aG as getDefaultExportFromCjs, aX as BaseDecoder, aY as LercParameters, aZ as LercAddCompression } from "./index-
|
|
2
|
+
import { aG as getDefaultExportFromCjs, aX as BaseDecoder, aY as LercParameters, aZ as LercAddCompression } from "./index-CJ0WrLWz.js";
|
|
3
3
|
var LercDecode = { exports: {} };
|
|
4
4
|
var hasRequiredLercDecode;
|
|
5
5
|
function requireLercDecode() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bH as MeshDistanceMaterial, bI as MeshDepthMaterial, bJ as RGBADepthPacking, ae as UniformsUtils, bK as ShaderChunk, a9 as InstancedBufferGeometry, a8 as Sphere, a7 as Box3, am as BackSide, u as DoubleSide, z as Mesh, a5 as FrontSide, v as MeshBasicMaterial, C as Color, e as Vector3, M as Matrix4, V as Vector2, ap as Matrix3, ag as Vector4, a1 as Texture, l as LinearFilter, aD as PlaneGeometry, x as BufferGeometry, aa as Float32BufferAttribute, bL as InstancedBufferAttribute } from "./index-
|
|
1
|
+
import { bH as MeshDistanceMaterial, bI as MeshDepthMaterial, bJ as RGBADepthPacking, ae as UniformsUtils, bK as ShaderChunk, a9 as InstancedBufferGeometry, a8 as Sphere, a7 as Box3, am as BackSide, u as DoubleSide, z as Mesh, a5 as FrontSide, v as MeshBasicMaterial, C as Color, e as Vector3, M as Matrix4, V as Vector2, ap as Matrix3, ag as Vector4, a1 as Texture, l as LinearFilter, aD as PlaneGeometry, x as BufferGeometry, aa as Float32BufferAttribute, bL as InstancedBufferAttribute } from "./index-CJ0WrLWz.js";
|
|
2
2
|
function workerBootstrap() {
|
|
3
3
|
var modules = /* @__PURE__ */ Object.create(null);
|
|
4
4
|
function registerModule(ref, callback) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/all",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.5",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,38 +17,38 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "^3.21.4",
|
|
20
|
-
"@vitessce/styles": "3.9.
|
|
21
|
-
"@vitessce/constants-internal": "3.9.
|
|
22
|
-
"@vitessce/abstract": "3.9.
|
|
23
|
-
"@vitessce/error": "3.9.
|
|
24
|
-
"@vitessce/csv": "3.9.
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/heatmap": "3.9.
|
|
28
|
-
"@vitessce/genomic-profiles": "3.9.
|
|
29
|
-
"@vitessce/glb": "3.9.
|
|
30
|
-
"@vitessce/json": "3.9.
|
|
31
|
-
"@vitessce/layer-controller
|
|
32
|
-
"@vitessce/layer-controller": "3.9.
|
|
33
|
-
"@vitessce/link-controller": "3.9.
|
|
34
|
-
"@vitessce/
|
|
35
|
-
"@vitessce/
|
|
36
|
-
"@vitessce/
|
|
37
|
-
"@vitessce/scatterplot-gating": "3.9.
|
|
38
|
-
"@vitessce/
|
|
39
|
-
"@vitessce/schemas": "3.9.
|
|
40
|
-
"@vitessce/spatial": "3.9.
|
|
41
|
-
"@vitessce/
|
|
42
|
-
"@vitessce/
|
|
43
|
-
"@vitessce/
|
|
44
|
-
"@vitessce/
|
|
45
|
-
"@vitessce/
|
|
46
|
-
"@vitessce/zarr": "3.9.
|
|
47
|
-
"@vitessce/
|
|
48
|
-
"@vitessce/spatial-
|
|
49
|
-
"@vitessce/
|
|
50
|
-
"@vitessce/biomarker-select": "3.9.
|
|
51
|
-
"@vitessce/
|
|
20
|
+
"@vitessce/styles": "3.9.5",
|
|
21
|
+
"@vitessce/constants-internal": "3.9.5",
|
|
22
|
+
"@vitessce/abstract": "3.9.5",
|
|
23
|
+
"@vitessce/error": "3.9.5",
|
|
24
|
+
"@vitessce/csv": "3.9.5",
|
|
25
|
+
"@vitessce/feature-list": "3.9.5",
|
|
26
|
+
"@vitessce/description": "3.9.5",
|
|
27
|
+
"@vitessce/heatmap": "3.9.5",
|
|
28
|
+
"@vitessce/genomic-profiles": "3.9.5",
|
|
29
|
+
"@vitessce/glb": "3.9.5",
|
|
30
|
+
"@vitessce/json": "3.9.5",
|
|
31
|
+
"@vitessce/layer-controller": "3.9.5",
|
|
32
|
+
"@vitessce/layer-controller-beta": "3.9.5",
|
|
33
|
+
"@vitessce/link-controller": "3.9.5",
|
|
34
|
+
"@vitessce/ome-tiff": "3.9.5",
|
|
35
|
+
"@vitessce/obs-sets-manager": "3.9.5",
|
|
36
|
+
"@vitessce/scatterplot-embedding": "3.9.5",
|
|
37
|
+
"@vitessce/scatterplot-gating": "3.9.5",
|
|
38
|
+
"@vitessce/plugins": "3.9.5",
|
|
39
|
+
"@vitessce/schemas": "3.9.5",
|
|
40
|
+
"@vitessce/spatial-beta": "3.9.5",
|
|
41
|
+
"@vitessce/statistical-plots": "3.9.5",
|
|
42
|
+
"@vitessce/vit-s": "3.9.5",
|
|
43
|
+
"@vitessce/spatial": "3.9.5",
|
|
44
|
+
"@vitessce/status": "3.9.5",
|
|
45
|
+
"@vitessce/zarr": "3.9.5",
|
|
46
|
+
"@vitessce/spatial-zarr": "3.9.5",
|
|
47
|
+
"@vitessce/globals": "3.9.5",
|
|
48
|
+
"@vitessce/spatial-accelerated": "3.9.5",
|
|
49
|
+
"@vitessce/spatial-three": "3.9.5",
|
|
50
|
+
"@vitessce/biomarker-select": "3.9.5",
|
|
51
|
+
"@vitessce/neuroglancer": "3.9.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^18.0.28",
|