@vitessce/all 3.4.1 → 3.4.3
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-483e0297.js → deflate-ada542ca.js} +1 -1
- package/dist/{hglib-dfec9221.js → hglib-5baff511.js} +1 -1
- package/dist/{index-771532a3.js → index-277a2372.js} +15 -8
- package/dist/{index-0c4fa5f5.js → index-7453cd48.js} +151 -134
- package/dist/index.js +1 -1
- package/dist/{jpeg-f5534146.js → jpeg-92cf173f.js} +1 -1
- package/dist/{lerc-c82d1d20.js → lerc-f05c9ce8.js} +1 -1
- package/dist/{lzw-9be7353a.js → lzw-6e1b0460.js} +1 -1
- package/dist/{packbits-6c1f233d.js → packbits-c127f48f.js} +1 -1
- package/dist/{raw-a34a5093.js → raw-c2960c08.js} +1 -1
- package/dist/{troika-three-text.esm-0934bf13.js → troika-three-text.esm-c89ceb26.js} +1 -1
- package/dist/{webimage-305cb0b6.js → webimage-a2f88ffe.js} +1 -1
- 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 +1 -1
- package/package.json +24 -24
- package/src/base-plugins.ts +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import React__default from "react";
|
2
2
|
import ReactDOM__default from "react-dom";
|
3
|
-
import { aS as commonjsGlobal, aT as objectAssign, g as getDefaultExportFromCjs, aU as earcut, aV as getAugmentedNamespace } from "./index-
|
3
|
+
import { aS as commonjsGlobal, aT as objectAssign, g as getDefaultExportFromCjs, aU as earcut, aV as getAugmentedNamespace } from "./index-7453cd48.js";
|
4
4
|
function _mergeNamespaces(n, m) {
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
6
6
|
const e = m[i];
|
@@ -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 Loader, q as LoaderUtils, F as FileLoader, r as SpotLight, s as PointLight, D as DirectionalLight, t as MeshBasicMaterial, u as MeshPhysicalMaterial, I as InstancedMesh, v as Object3D, w as TextureLoader, x as ImageBitmapLoader, y as BufferAttribute, z as InterleavedBuffer, E as LinearFilter, H as LinearMipmapLinearFilter, J as RepeatWrapping, K as PointsMaterial, Q as LineBasicMaterial, X as MeshStandardMaterial, Y as DoubleSide, Z as PropertyBinding, $ as SkinnedMesh, a0 as Mesh, a1 as LineSegments, a2 as Line$1, a3 as LineLoop, a4 as Points, a5 as MathUtils, a6 as Skeleton, a7 as InterpolateLinear, a8 as AnimationClip, a9 as Bone, aa as Quaternion, ab as NearestFilter, ac as NearestMipmapNearestFilter, ad as LinearMipmapNearestFilter, ae as NearestMipmapLinearFilter, af as ClampToEdgeWrapping, ag as MirroredRepeatWrapping, ah as InterpolateDiscrete, ai as FrontSide, aj as InterleavedBufferAttribute, ak as VectorKeyframeTrack, al as QuaternionKeyframeTrack, am as NumberKeyframeTrack, an as Box3, ao as Sphere, ap as Interpolant, aq as SphereGeometry, ar as Ray$1, as as Plane, at as EventDispatcher, au as MOUSE, av as TOUCH, aw as Spherical, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, 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 Loader, q as LoaderUtils, F as FileLoader, r as SpotLight, s as PointLight, D as DirectionalLight, t as MeshBasicMaterial, u as MeshPhysicalMaterial, I as InstancedMesh, v as Object3D, w as TextureLoader, x as ImageBitmapLoader, y as BufferAttribute, z as InterleavedBuffer, E as LinearFilter, H as LinearMipmapLinearFilter, J as RepeatWrapping, K as PointsMaterial, Q as LineBasicMaterial, X as MeshStandardMaterial, Y as DoubleSide, Z as PropertyBinding, $ as SkinnedMesh, a0 as Mesh, a1 as LineSegments, a2 as Line$1, a3 as LineLoop, a4 as Points, a5 as MathUtils, a6 as Skeleton, a7 as InterpolateLinear, a8 as AnimationClip, a9 as Bone, aa as Quaternion, ab as NearestFilter, ac as NearestMipmapNearestFilter, ad as LinearMipmapNearestFilter, ae as NearestMipmapLinearFilter, af as ClampToEdgeWrapping, ag as MirroredRepeatWrapping, ah as InterpolateDiscrete, ai as FrontSide, aj as InterleavedBufferAttribute, ak as VectorKeyframeTrack, al as QuaternionKeyframeTrack, am as NumberKeyframeTrack, an as Box3, ao as Sphere, ap as Interpolant, aq as SphereGeometry, ar as Ray$1, as as Plane, at as EventDispatcher, au as MOUSE, av as TOUCH, aw as Spherical, ax as InstancedBufferGeometry, ay as Float32BufferAttribute, az as InstancedInterleavedBuffer, aA as WireframeGeometry, aB as ShaderMaterial, aC as UniformsUtils, aD as UniformsLib, aE as Vector4, aF as Line3, 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-7453cd48.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-c89ceb26.js"), []);
|
23804
23804
|
const invalidate2 = useThree(({
|
23805
23805
|
invalidate: invalidate3
|
23806
23806
|
}) => invalidate3);
|
@@ -27381,7 +27381,7 @@ function MeasureLine(props) {
|
|
27381
27381
|
})] });
|
27382
27382
|
}
|
27383
27383
|
function GeometryAndMesh(props) {
|
27384
|
-
const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef,
|
27384
|
+
const { segmentationGroup, segmentationSettings, segmentationSceneScale, renderingSettings, materialRef, highlightEntity, setObsHighlight } = props;
|
27385
27385
|
const model = useRef();
|
27386
27386
|
const distanceRef = useRef();
|
27387
27387
|
const rayGrabGroup = useRef();
|
@@ -27514,7 +27514,7 @@ function GeometryAndMesh(props) {
|
|
27514
27514
|
2e-3 * renderingSettings.meshScale[2]
|
27515
27515
|
], ref: materialRef, children: [jsxRuntimeExports.jsx("boxGeometry", { args: renderingSettings.geometrySize }), jsxRuntimeExports.jsx("shaderMaterial", { customProgramCacheKey: () => "1", side: FrontSide, uniforms: renderingSettings.uniforms, needsUpdate: true, transparent: true, vertexShader: renderingSettings.shader.vertexShader, fragmentShader: renderingSettings.shader.fragmentShader })] }) }) : null] }), jsxRuntimeExports.jsx("group", { name: "currentLine", ref: distanceRef, children: showLine ? jsxRuntimeExports.jsx(MeasureLine, { currentLine, scale: 1 / 2e-3 * 0.4 }) : null }), jsxRuntimeExports.jsx("group", { name: "lines", children: lines.map((object) => jsxRuntimeExports.jsx(MeasureLine, { currentLine: object, scale: 1 / 2e-3 * 0.4 })) })] }) : jsxRuntimeExports.jsxs("group", { children: [jsxRuntimeExports.jsxs("group", { children: [(segmentationGroup == null ? void 0 : segmentationGroup.visible) ? jsxRuntimeExports.jsxs("group", { children: [jsxRuntimeExports.jsx("hemisphereLight", { skyColor: 8421504, groundColor: 6316128 }), jsxRuntimeExports.jsx("directionalLight", { color: 16777215, position: [0, -800, 0] }), jsxRuntimeExports.jsx("directionalLight", { color: 16777215, position: [0, 800, 0] }), jsxRuntimeExports.jsx(Bvh, { firstHitOnly: true, children: jsxRuntimeExports.jsx("primitive", { ref: model, object: segmentationGroup, position: [0, 0, 0], onClick: (e) => {
|
27516
27516
|
if (e.object.parent.userData.name === "finalPass") {
|
27517
|
-
|
27517
|
+
highlightEntity(e.object.name, e.object.userData.layerScope, e.object.userData.channelScope);
|
27518
27518
|
}
|
27519
27519
|
}, onPointerOver: (e) => {
|
27520
27520
|
setObsHighlight(e.object.name);
|
@@ -28464,7 +28464,7 @@ function SpatialThree(props) {
|
|
28464
28464
|
obsSets: []
|
28465
28465
|
});
|
28466
28466
|
const { images, layerScope, channelsVisible, allChannels, channelTargetC, resolution, data, colors, contrastLimits, is3dMode, renderingMode, layerTransparency, xSlice, ySlice, zSlice } = useVolumeSettings(props, volumeSettings, setVolumeSettings, dataReady, setDataReady);
|
28467
|
-
const { obsSegmentations,
|
28467
|
+
const { obsSegmentations, onEntitySelected, segmentationLayerCoordination, segmentationChannelCoordination, segmentationChannelScopesByLayer } = props;
|
28468
28468
|
let setObsHighlightFct = () => {
|
28469
28469
|
};
|
28470
28470
|
const setsSave = [];
|
@@ -28479,7 +28479,7 @@ function SpatialThree(props) {
|
|
28479
28479
|
sets.tree[0].children.forEach((child) => {
|
28480
28480
|
if (child.name === selectedElement) {
|
28481
28481
|
child.set.forEach(([obsId]) => {
|
28482
|
-
const info = { name: "", id: "", color: [] };
|
28482
|
+
const info = { name: "", id: "", color: [255, 255, 255] };
|
28483
28483
|
info.name = selectedElement;
|
28484
28484
|
info.id = obsId;
|
28485
28485
|
segmentationObsSetLayerProps.obsSetColor.forEach((color) => {
|
@@ -28517,6 +28517,7 @@ function SpatialThree(props) {
|
|
28517
28517
|
}
|
28518
28518
|
childElement.name = name;
|
28519
28519
|
childElement.userData.name = name;
|
28520
|
+
childElement.userData.layerScope = layerScope;
|
28520
28521
|
childElement.material.transparent = true;
|
28521
28522
|
childElement.material.writeDepthTexture = true;
|
28522
28523
|
childElement.material.depthTest = true;
|
@@ -28610,6 +28611,7 @@ function SpatialThree(props) {
|
|
28610
28611
|
}
|
28611
28612
|
}
|
28612
28613
|
segmentationGroup.children[finalGroupIndex].children.forEach((child, childIndex) => {
|
28614
|
+
var _a3;
|
28613
28615
|
let { color } = segmentationSettings;
|
28614
28616
|
const id = child.userData.name;
|
28615
28617
|
segmentationSettings.obsSets.forEach((obsSet) => {
|
@@ -28620,13 +28622,15 @@ function SpatialThree(props) {
|
|
28620
28622
|
if (segmentationChannelScopesByLayer[layerScope].length > 1) {
|
28621
28623
|
segmentationChannelScopesByLayer[layerScope].forEach((channelScope) => {
|
28622
28624
|
const channelSet = segmentationChannelCoordination[0][layerScope][channelScope];
|
28623
|
-
if (channelSet.
|
28625
|
+
if (channelSet.spatialTargetC === id) {
|
28624
28626
|
child.material.color.r = channelSet.spatialChannelColor[0] / 255;
|
28625
28627
|
child.material.color.g = channelSet.spatialChannelColor[1] / 255;
|
28626
28628
|
child.material.color.b = channelSet.spatialChannelColor[2] / 255;
|
28627
28629
|
child.material.opacity = channelSet.spatialChannelOpacity;
|
28628
28630
|
child.visible = channelSet.spatialChannelVisible;
|
28629
28631
|
child.material.needsUpdate = true;
|
28632
|
+
child.userData.layerScope = layerScope;
|
28633
|
+
child.userData.channelScope = channelScope;
|
28630
28634
|
segmentationGroup.children[firstGroupIndex].children[childIndex].material.needsUpdate = true;
|
28631
28635
|
}
|
28632
28636
|
});
|
@@ -28637,6 +28641,9 @@ function SpatialThree(props) {
|
|
28637
28641
|
child.material.opacity = segmentationSettings.opacity;
|
28638
28642
|
child.material.visible = segmentationSettings.visible;
|
28639
28643
|
child.material.needsUpdate = true;
|
28644
|
+
child.userData.layerScope = layerScope;
|
28645
|
+
const firstChannelScope = (_a3 = Object.keys(segmentationChannelCoordination[0][layerScope])) == null ? void 0 : _a3[0];
|
28646
|
+
child.userData.channelScope = firstChannelScope;
|
28640
28647
|
}
|
28641
28648
|
});
|
28642
28649
|
}
|
@@ -28752,7 +28759,7 @@ function SpatialThree(props) {
|
|
28752
28759
|
segmentationSceneScale,
|
28753
28760
|
renderingSettings,
|
28754
28761
|
materialRef,
|
28755
|
-
|
28762
|
+
highlightEntity: onEntitySelected,
|
28756
28763
|
setObsHighlight: setObsHighlightFct
|
28757
28764
|
};
|
28758
28765
|
return jsxRuntimeExports.jsxs("group", { children: [jsxRuntimeExports.jsx(Controllers, {}), jsxRuntimeExports.jsx(Hands, {}), jsxRuntimeExports.jsx(HandBbox, {}), jsxRuntimeExports.jsx(HandDecorate, {}), jsxRuntimeExports.jsx(GeometryAndMesh, { ...geometryAndMeshProps }), jsxRuntimeExports.jsx(OrbitControls2, { ref: orbitRef, enableDamping: false, dampingFactor: 0, zoomDampingFactor: 0, smoothZoom: false })] });
|
@@ -15863,7 +15863,7 @@ function getStylesCreator(stylesOrCreator) {
|
|
15863
15863
|
}
|
15864
15864
|
}
|
15865
15865
|
return {
|
15866
|
-
create: function
|
15866
|
+
create: function create5(theme, name2) {
|
15867
15867
|
var styles35;
|
15868
15868
|
try {
|
15869
15869
|
styles35 = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
|
@@ -25060,7 +25060,7 @@ var classCallCheck$1 = function(instance, Constructor) {
|
|
25060
25060
|
}
|
25061
25061
|
};
|
25062
25062
|
var createClass$1 = function() {
|
25063
|
-
function
|
25063
|
+
function defineProperties3(target2, props) {
|
25064
25064
|
for (var i2 = 0; i2 < props.length; i2++) {
|
25065
25065
|
var descriptor2 = props[i2];
|
25066
25066
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
@@ -25072,9 +25072,9 @@ var createClass$1 = function() {
|
|
25072
25072
|
}
|
25073
25073
|
return function(Constructor, protoProps, staticProps) {
|
25074
25074
|
if (protoProps)
|
25075
|
-
|
25075
|
+
defineProperties3(Constructor.prototype, protoProps);
|
25076
25076
|
if (staticProps)
|
25077
|
-
|
25077
|
+
defineProperties3(Constructor, staticProps);
|
25078
25078
|
return Constructor;
|
25079
25079
|
};
|
25080
25080
|
}();
|
@@ -39184,10 +39184,10 @@ var _propertyDesc = function(bitmap, value2) {
|
|
39184
39184
|
value: value2
|
39185
39185
|
};
|
39186
39186
|
};
|
39187
|
-
var dP$
|
39187
|
+
var dP$1 = require_objectDp();
|
39188
39188
|
var createDesc$2 = _propertyDesc;
|
39189
39189
|
var _hide = require_descriptors() ? function(object2, key2, value2) {
|
39190
|
-
return dP$
|
39190
|
+
return dP$1.f(object2, key2, createDesc$2(1, value2));
|
39191
39191
|
} : function(object2, key2, value2) {
|
39192
39192
|
object2[key2] = value2;
|
39193
39193
|
return object2;
|
@@ -39201,7 +39201,7 @@ var core$3 = _coreExports;
|
|
39201
39201
|
var ctx = _ctx;
|
39202
39202
|
var hide$2 = _hide;
|
39203
39203
|
var has$a = _has$1;
|
39204
|
-
var PROTOTYPE$
|
39204
|
+
var PROTOTYPE$1 = "prototype";
|
39205
39205
|
var $export$6 = function(type2, name2, source2) {
|
39206
39206
|
var IS_FORCED = type2 & $export$6.F;
|
39207
39207
|
var IS_GLOBAL = type2 & $export$6.G;
|
@@ -39210,8 +39210,8 @@ var $export$6 = function(type2, name2, source2) {
|
|
39210
39210
|
var IS_BIND = type2 & $export$6.B;
|
39211
39211
|
var IS_WRAP = type2 & $export$6.W;
|
39212
39212
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
39213
|
-
var expProto = exports2[PROTOTYPE$
|
39214
|
-
var target2 = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
39213
|
+
var expProto = exports2[PROTOTYPE$1];
|
39214
|
+
var target2 = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
|
39215
39215
|
var key2, own, out;
|
39216
39216
|
if (IS_GLOBAL)
|
39217
39217
|
source2 = name2;
|
@@ -39235,7 +39235,7 @@ var $export$6 = function(type2, name2, source2) {
|
|
39235
39235
|
}
|
39236
39236
|
return C3.apply(this, arguments);
|
39237
39237
|
};
|
39238
|
-
F[PROTOTYPE$
|
39238
|
+
F[PROTOTYPE$1] = C3[PROTOTYPE$1];
|
39239
39239
|
return F;
|
39240
39240
|
}(out) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
|
39241
39241
|
if (IS_PROTO) {
|
@@ -39340,22 +39340,30 @@ var px$2 = Math.random();
|
|
39340
39340
|
var _uid = function(key2) {
|
39341
39341
|
return "Symbol(".concat(key2 === void 0 ? "" : key2, ")_", (++id$4 + px$2).toString(36));
|
39342
39342
|
};
|
39343
|
-
var
|
39344
|
-
var
|
39345
|
-
|
39346
|
-
|
39347
|
-
|
39343
|
+
var _sharedKey;
|
39344
|
+
var hasRequired_sharedKey;
|
39345
|
+
function require_sharedKey() {
|
39346
|
+
if (hasRequired_sharedKey)
|
39347
|
+
return _sharedKey;
|
39348
|
+
hasRequired_sharedKey = 1;
|
39349
|
+
var shared2 = _sharedExports("keys");
|
39350
|
+
var uid2 = _uid;
|
39351
|
+
_sharedKey = function(key2) {
|
39352
|
+
return shared2[key2] || (shared2[key2] = uid2(key2));
|
39353
|
+
};
|
39354
|
+
return _sharedKey;
|
39355
|
+
}
|
39348
39356
|
var has$9 = _has$1;
|
39349
39357
|
var toIObject$4 = _toIobject;
|
39350
39358
|
var arrayIndexOf = _arrayIncludes(false);
|
39351
|
-
var IE_PROTO$
|
39359
|
+
var IE_PROTO$1 = require_sharedKey()("IE_PROTO");
|
39352
39360
|
var _objectKeysInternal = function(object2, names) {
|
39353
39361
|
var O = toIObject$4(object2);
|
39354
39362
|
var i2 = 0;
|
39355
39363
|
var result = [];
|
39356
39364
|
var key2;
|
39357
39365
|
for (key2 in O)
|
39358
|
-
if (key2 != IE_PROTO$
|
39366
|
+
if (key2 != IE_PROTO$1)
|
39359
39367
|
has$9(O, key2) && result.push(key2);
|
39360
39368
|
while (names.length > i2)
|
39361
39369
|
if (has$9(O, key2 = names[i2++])) {
|
@@ -39365,9 +39373,9 @@ var _objectKeysInternal = function(object2, names) {
|
|
39365
39373
|
};
|
39366
39374
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
39367
39375
|
var $keys$2 = _objectKeysInternal;
|
39368
|
-
var enumBugKeys
|
39376
|
+
var enumBugKeys = _enumBugKeys;
|
39369
39377
|
var _objectKeys$1 = Object.keys || function keys(O) {
|
39370
|
-
return $keys$2(O, enumBugKeys
|
39378
|
+
return $keys$2(O, enumBugKeys);
|
39371
39379
|
};
|
39372
39380
|
var _objectGops = {};
|
39373
39381
|
_objectGops.f = Object.getOwnPropertySymbols;
|
@@ -39485,7 +39493,7 @@ function _interopRequireDefault$o(obj) {
|
|
39485
39493
|
return obj && obj.__esModule ? obj : { default: obj };
|
39486
39494
|
}
|
39487
39495
|
var _default$5 = function() {
|
39488
|
-
function
|
39496
|
+
function defineProperties3(target2, props) {
|
39489
39497
|
for (var i2 = 0; i2 < props.length; i2++) {
|
39490
39498
|
var descriptor2 = props[i2];
|
39491
39499
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
@@ -39497,9 +39505,9 @@ var _default$5 = function() {
|
|
39497
39505
|
}
|
39498
39506
|
return function(Constructor, protoProps, staticProps) {
|
39499
39507
|
if (protoProps)
|
39500
|
-
|
39508
|
+
defineProperties3(Constructor.prototype, protoProps);
|
39501
39509
|
if (staticProps)
|
39502
|
-
|
39510
|
+
defineProperties3(Constructor, staticProps);
|
39503
39511
|
return Constructor;
|
39504
39512
|
};
|
39505
39513
|
}();
|
@@ -39520,19 +39528,27 @@ var _stringAt = function(TO_STRING) {
|
|
39520
39528
|
};
|
39521
39529
|
var _redefine = _hide;
|
39522
39530
|
var _iterators = {};
|
39523
|
-
var
|
39524
|
-
var
|
39525
|
-
|
39526
|
-
|
39527
|
-
|
39528
|
-
|
39529
|
-
var
|
39530
|
-
var
|
39531
|
-
var
|
39532
|
-
|
39533
|
-
|
39534
|
-
|
39535
|
-
|
39531
|
+
var _objectDps;
|
39532
|
+
var hasRequired_objectDps;
|
39533
|
+
function require_objectDps() {
|
39534
|
+
if (hasRequired_objectDps)
|
39535
|
+
return _objectDps;
|
39536
|
+
hasRequired_objectDps = 1;
|
39537
|
+
var dP2 = require_objectDp();
|
39538
|
+
var anObject2 = _anObject;
|
39539
|
+
var getKeys2 = _objectKeys$1;
|
39540
|
+
_objectDps = require_descriptors() ? Object.defineProperties : function defineProperties3(O, Properties) {
|
39541
|
+
anObject2(O);
|
39542
|
+
var keys4 = getKeys2(Properties);
|
39543
|
+
var length2 = keys4.length;
|
39544
|
+
var i2 = 0;
|
39545
|
+
var P2;
|
39546
|
+
while (length2 > i2)
|
39547
|
+
dP2.f(O, P2 = keys4[i2++], Properties[P2]);
|
39548
|
+
return O;
|
39549
|
+
};
|
39550
|
+
return _objectDps;
|
39551
|
+
}
|
39536
39552
|
var _html;
|
39537
39553
|
var hasRequired_html;
|
39538
39554
|
function require_html() {
|
@@ -39543,42 +39559,50 @@ function require_html() {
|
|
39543
39559
|
_html = document2 && document2.documentElement;
|
39544
39560
|
return _html;
|
39545
39561
|
}
|
39546
|
-
var
|
39547
|
-
var
|
39548
|
-
|
39549
|
-
|
39550
|
-
|
39551
|
-
|
39552
|
-
var
|
39553
|
-
var
|
39554
|
-
var
|
39555
|
-
var
|
39556
|
-
var
|
39557
|
-
|
39558
|
-
var
|
39559
|
-
|
39560
|
-
|
39561
|
-
|
39562
|
-
|
39563
|
-
|
39564
|
-
|
39565
|
-
|
39566
|
-
|
39567
|
-
|
39568
|
-
|
39569
|
-
|
39570
|
-
|
39571
|
-
|
39572
|
-
|
39573
|
-
|
39574
|
-
|
39575
|
-
|
39576
|
-
|
39577
|
-
|
39578
|
-
|
39579
|
-
|
39580
|
-
|
39581
|
-
|
39562
|
+
var _objectCreate;
|
39563
|
+
var hasRequired_objectCreate;
|
39564
|
+
function require_objectCreate() {
|
39565
|
+
if (hasRequired_objectCreate)
|
39566
|
+
return _objectCreate;
|
39567
|
+
hasRequired_objectCreate = 1;
|
39568
|
+
var anObject2 = _anObject;
|
39569
|
+
var dPs = require_objectDps();
|
39570
|
+
var enumBugKeys2 = _enumBugKeys;
|
39571
|
+
var IE_PROTO2 = require_sharedKey()("IE_PROTO");
|
39572
|
+
var Empty2 = function() {
|
39573
|
+
};
|
39574
|
+
var PROTOTYPE2 = "prototype";
|
39575
|
+
var createDict = function() {
|
39576
|
+
var iframe = require_domCreate()("iframe");
|
39577
|
+
var i2 = enumBugKeys2.length;
|
39578
|
+
var lt2 = "<";
|
39579
|
+
var gt2 = ">";
|
39580
|
+
var iframeDocument;
|
39581
|
+
iframe.style.display = "none";
|
39582
|
+
require_html().appendChild(iframe);
|
39583
|
+
iframe.src = "javascript:";
|
39584
|
+
iframeDocument = iframe.contentWindow.document;
|
39585
|
+
iframeDocument.open();
|
39586
|
+
iframeDocument.write(lt2 + "script" + gt2 + "document.F=Object" + lt2 + "/script" + gt2);
|
39587
|
+
iframeDocument.close();
|
39588
|
+
createDict = iframeDocument.F;
|
39589
|
+
while (i2--)
|
39590
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i2]];
|
39591
|
+
return createDict();
|
39592
|
+
};
|
39593
|
+
_objectCreate = Object.create || function create5(O, Properties) {
|
39594
|
+
var result;
|
39595
|
+
if (O !== null) {
|
39596
|
+
Empty2[PROTOTYPE2] = anObject2(O);
|
39597
|
+
result = new Empty2();
|
39598
|
+
Empty2[PROTOTYPE2] = null;
|
39599
|
+
result[IE_PROTO2] = O;
|
39600
|
+
} else
|
39601
|
+
result = createDict();
|
39602
|
+
return Properties === void 0 ? result : dPs(result, Properties);
|
39603
|
+
};
|
39604
|
+
return _objectCreate;
|
39605
|
+
}
|
39582
39606
|
var _wks = { exports: {} };
|
39583
39607
|
var store = _sharedExports("wks");
|
39584
39608
|
var uid$2 = _uid;
|
@@ -39596,7 +39620,7 @@ var _setToStringTag = function(it, tag2, stat) {
|
|
39596
39620
|
if (it && !has$8(it = stat ? it : it.prototype, TAG))
|
39597
39621
|
def$1(it, TAG, { configurable: true, value: tag2 });
|
39598
39622
|
};
|
39599
|
-
var create$b =
|
39623
|
+
var create$b = require_objectCreate();
|
39600
39624
|
var descriptor = _propertyDesc;
|
39601
39625
|
var setToStringTag$2 = _setToStringTag;
|
39602
39626
|
var IteratorPrototype$2 = {};
|
@@ -39609,7 +39633,7 @@ var _iterCreate = function(Constructor, NAME2, next3) {
|
|
39609
39633
|
};
|
39610
39634
|
var has$7 = _has$1;
|
39611
39635
|
var toObject$2 = _toObject;
|
39612
|
-
var IE_PROTO =
|
39636
|
+
var IE_PROTO = require_sharedKey()("IE_PROTO");
|
39613
39637
|
var ObjectProto$1 = Object.prototype;
|
39614
39638
|
var _objectGpo = Object.getPrototypeOf || function(O) {
|
39615
39639
|
O = toObject$2(O);
|
@@ -39772,23 +39796,23 @@ var setMeta = function(it) {
|
|
39772
39796
|
// weak collections IDs
|
39773
39797
|
} });
|
39774
39798
|
};
|
39775
|
-
var fastKey = function(it,
|
39799
|
+
var fastKey = function(it, create5) {
|
39776
39800
|
if (!isObject$h(it))
|
39777
39801
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
39778
39802
|
if (!has$6(it, META$1)) {
|
39779
39803
|
if (!isExtensible(it))
|
39780
39804
|
return "F";
|
39781
|
-
if (!
|
39805
|
+
if (!create5)
|
39782
39806
|
return "E";
|
39783
39807
|
setMeta(it);
|
39784
39808
|
}
|
39785
39809
|
return it[META$1].i;
|
39786
39810
|
};
|
39787
|
-
var getWeak = function(it,
|
39811
|
+
var getWeak = function(it, create5) {
|
39788
39812
|
if (!has$6(it, META$1)) {
|
39789
39813
|
if (!isExtensible(it))
|
39790
39814
|
return true;
|
39791
|
-
if (!
|
39815
|
+
if (!create5)
|
39792
39816
|
return false;
|
39793
39817
|
setMeta(it);
|
39794
39818
|
}
|
@@ -39897,7 +39921,7 @@ var toObject$1 = _toObject;
|
|
39897
39921
|
var toIObject = _toIobject;
|
39898
39922
|
var toPrimitive = _toPrimitive;
|
39899
39923
|
var createDesc = _propertyDesc;
|
39900
|
-
var _create$1 =
|
39924
|
+
var _create$1 = require_objectCreate();
|
39901
39925
|
var gOPNExt = _objectGopnExt;
|
39902
39926
|
var $GOPD = _objectGopd;
|
39903
39927
|
var $GOPS = _objectGops;
|
@@ -39964,7 +39988,7 @@ var $defineProperty$1 = function defineProperty2(it, key2, D2) {
|
|
39964
39988
|
}
|
39965
39989
|
return dP(it, key2, D2);
|
39966
39990
|
};
|
39967
|
-
var $defineProperties = function
|
39991
|
+
var $defineProperties = function defineProperties(it, P2) {
|
39968
39992
|
anObject(it);
|
39969
39993
|
var keys4 = enumKeys(P2 = toIObject(P2));
|
39970
39994
|
var i2 = 0;
|
@@ -39974,7 +39998,7 @@ var $defineProperties = function defineProperties2(it, P2) {
|
|
39974
39998
|
$defineProperty$1(it, key2 = keys4[i2++], P2[key2]);
|
39975
39999
|
return it;
|
39976
40000
|
};
|
39977
|
-
var $create = function
|
40001
|
+
var $create = function create2(it, P2) {
|
39978
40002
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
39979
40003
|
};
|
39980
40004
|
var $propertyIsEnumerable = function propertyIsEnumerable(key2) {
|
@@ -40201,9 +40225,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
40201
40225
|
var setPrototypeOf$2 = _coreExports.Object.setPrototypeOf;
|
40202
40226
|
var setPrototypeOf$1 = { "default": setPrototypeOf$2, __esModule: true };
|
40203
40227
|
var $export = _export;
|
40204
|
-
$export($export.S, "Object", { create:
|
40228
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
40205
40229
|
var $Object$1 = _coreExports.Object;
|
40206
|
-
var create$a = function
|
40230
|
+
var create$a = function create3(P2, D2) {
|
40207
40231
|
return $Object$1.create(P2, D2);
|
40208
40232
|
};
|
40209
40233
|
var create$9 = { "default": create$a, __esModule: true };
|
@@ -52309,7 +52333,7 @@ function ObsSetsManagerSubscriber(props) {
|
|
52309
52333
|
setCellSetExpansion([]);
|
52310
52334
|
}
|
52311
52335
|
}, [loaders, dataset]);
|
52312
|
-
const [{ obsIndex, obsSets: cellSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(loaders, dataset,
|
52336
|
+
const [{ obsIndex, obsSets: cellSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(loaders, dataset, false, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }, { obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { obsType });
|
52313
52337
|
const isReady = useReady([obsSetsStatus]);
|
52314
52338
|
const urls2 = useUrls([obsSetsUrls]);
|
52315
52339
|
useEffect(() => {
|
@@ -93949,11 +93973,11 @@ class Tileset2D {
|
|
93949
93973
|
this._dirty = false;
|
93950
93974
|
}
|
93951
93975
|
}
|
93952
|
-
_getTile(index2,
|
93976
|
+
_getTile(index2, create5) {
|
93953
93977
|
const id2 = this.getTileId(index2);
|
93954
93978
|
let tile = this._cache.get(id2);
|
93955
93979
|
let needsReload = false;
|
93956
|
-
if (!tile &&
|
93980
|
+
if (!tile && create5) {
|
93957
93981
|
tile = new Tile2DHeader(index2);
|
93958
93982
|
Object.assign(tile, this.getTileMetadata(tile.index));
|
93959
93983
|
Object.assign(tile, {
|
@@ -122203,7 +122227,7 @@ var defineProperty$2 = function(object2, name2, value2, predicate) {
|
|
122203
122227
|
object2[name2] = value2;
|
122204
122228
|
}
|
122205
122229
|
};
|
122206
|
-
var
|
122230
|
+
var defineProperties2 = function(object2, map2) {
|
122207
122231
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
122208
122232
|
var props = keys$4(map2);
|
122209
122233
|
if (hasSymbols2) {
|
@@ -122213,8 +122237,8 @@ var defineProperties3 = function(object2, map2) {
|
|
122213
122237
|
defineProperty$2(object2, props[i2], map2[props[i2]], predicates[props[i2]]);
|
122214
122238
|
}
|
122215
122239
|
};
|
122216
|
-
|
122217
|
-
var defineProperties_1 =
|
122240
|
+
defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
|
122241
|
+
var defineProperties_1 = defineProperties2;
|
122218
122242
|
var numberIsNaN = function(value2) {
|
122219
122243
|
return value2 !== value2;
|
122220
122244
|
};
|
@@ -156444,16 +156468,16 @@ async function getDecoder(fileDirectory) {
|
|
156444
156468
|
const Decoder = await importFn();
|
156445
156469
|
return new Decoder(fileDirectory);
|
156446
156470
|
}
|
156447
|
-
addDecoder([void 0, 1], () => import("./raw-
|
156448
|
-
addDecoder(5, () => import("./lzw-
|
156471
|
+
addDecoder([void 0, 1], () => import("./raw-c2960c08.js").then((m2) => m2.default));
|
156472
|
+
addDecoder(5, () => import("./lzw-6e1b0460.js").then((m2) => m2.default));
|
156449
156473
|
addDecoder(6, () => {
|
156450
156474
|
throw new Error("old style JPEG compression is not supported.");
|
156451
156475
|
});
|
156452
|
-
addDecoder(7, () => import("./jpeg-
|
156453
|
-
addDecoder([8, 32946], () => import("./deflate-
|
156454
|
-
addDecoder(32773, () => import("./packbits-
|
156455
|
-
addDecoder(34887, () => import("./lerc-
|
156456
|
-
addDecoder(50001, () => import("./webimage-
|
156476
|
+
addDecoder(7, () => import("./jpeg-92cf173f.js").then((m2) => m2.default));
|
156477
|
+
addDecoder([8, 32946], () => import("./deflate-ada542ca.js").then((m2) => m2.default));
|
156478
|
+
addDecoder(32773, () => import("./packbits-c127f48f.js").then((m2) => m2.default));
|
156479
|
+
addDecoder(34887, () => import("./lerc-f05c9ce8.js").then((m2) => m2.default));
|
156480
|
+
addDecoder(50001, () => import("./webimage-a2f88ffe.js").then((m2) => m2.default));
|
156457
156481
|
function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
|
156458
156482
|
return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
|
156459
156483
|
}
|
@@ -175416,18 +175440,18 @@ function selection_lower() {
|
|
175416
175440
|
return this.each(lower);
|
175417
175441
|
}
|
175418
175442
|
function selection_append(name2) {
|
175419
|
-
var
|
175443
|
+
var create5 = typeof name2 === "function" ? name2 : creator(name2);
|
175420
175444
|
return this.select(function() {
|
175421
|
-
return this.appendChild(
|
175445
|
+
return this.appendChild(create5.apply(this, arguments));
|
175422
175446
|
});
|
175423
175447
|
}
|
175424
175448
|
function constantNull() {
|
175425
175449
|
return null;
|
175426
175450
|
}
|
175427
175451
|
function selection_insert(name2, before) {
|
175428
|
-
var
|
175452
|
+
var create5 = typeof name2 === "function" ? name2 : creator(name2), select2 = before == null ? constantNull : typeof before === "function" ? before : selector(before);
|
175429
175453
|
return this.select(function() {
|
175430
|
-
return this.insertBefore(
|
175454
|
+
return this.insertBefore(create5.apply(this, arguments), select2.apply(this, arguments) || null);
|
175431
175455
|
});
|
175432
175456
|
}
|
175433
175457
|
function remove$1() {
|
@@ -178535,7 +178559,8 @@ function Legend(props) {
|
|
178535
178559
|
g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", 0).attr("y", y2).text(levelZeroName).style("font-size", "9px").style("fill", foregroundColor);
|
178536
178560
|
y2 += titleHeight;
|
178537
178561
|
setPaths.forEach((setPath) => {
|
178538
|
-
|
178562
|
+
var _a3;
|
178563
|
+
const setColor = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$4(d.path, setPath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
|
178539
178564
|
g2.append("rect").attr("x", 0).attr("y", y2).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor[0]},${setColor[1]},${setColor[2]})`);
|
178540
178565
|
g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y2).text(setPath.at(-1)).style("font-size", "9px").style("fill", foregroundColor);
|
178541
178566
|
y2 += rectHeight + rectMarginY;
|
@@ -178570,7 +178595,8 @@ function Legend(props) {
|
|
178570
178595
|
spatialChannelColor,
|
178571
178596
|
obsSetColor,
|
178572
178597
|
obsSetSelection,
|
178573
|
-
isSetColor
|
178598
|
+
isSetColor,
|
178599
|
+
theme
|
178574
178600
|
]);
|
178575
178601
|
return jsxRuntimeExports.jsx("div", { className: clsx(classes.legend, {
|
178576
178602
|
[classes.legendRelative]: positionRelative,
|
@@ -179447,7 +179473,7 @@ var typedFunction$1 = { exports: {} };
|
|
179447
179473
|
function undef() {
|
179448
179474
|
return void 0;
|
179449
179475
|
}
|
179450
|
-
function
|
179476
|
+
function create5() {
|
179451
179477
|
var _types = [
|
179452
179478
|
{ name: "number", test: function(x2) {
|
179453
179479
|
return typeof x2 === "number";
|
@@ -180199,7 +180225,7 @@ var typedFunction$1 = { exports: {} };
|
|
180199
180225
|
return createTypedFunction(name2, extractSignatures(fns));
|
180200
180226
|
}
|
180201
180227
|
});
|
180202
|
-
typed2.create =
|
180228
|
+
typed2.create = create5;
|
180203
180229
|
typed2.types = _types;
|
180204
180230
|
typed2.conversions = _conversions;
|
180205
180231
|
typed2.ignore = _ignore;
|
@@ -180230,7 +180256,7 @@ var typedFunction$1 = { exports: {} };
|
|
180230
180256
|
};
|
180231
180257
|
return typed2;
|
180232
180258
|
}
|
180233
|
-
return
|
180259
|
+
return create5();
|
180234
180260
|
});
|
180235
180261
|
})(typedFunction$1);
|
180236
180262
|
var typedFunctionExports = typedFunction$1.exports;
|
@@ -180942,11 +180968,11 @@ function getArrayDataType(array2, typeOf2) {
|
|
180942
180968
|
}
|
180943
180969
|
return type2;
|
180944
180970
|
}
|
180945
|
-
function factory(name2, dependencies2,
|
180971
|
+
function factory(name2, dependencies2, create5, meta2) {
|
180946
180972
|
function assertAndCreate(scope) {
|
180947
180973
|
var deps = pickShallow(scope, dependencies2.map(stripOptionalNotation));
|
180948
180974
|
assertDependencies(name2, dependencies2, scope);
|
180949
|
-
return
|
180975
|
+
return create5(deps);
|
180950
180976
|
}
|
180951
180977
|
assertAndCreate.isFactory = true;
|
180952
180978
|
assertAndCreate.fn = name2;
|
@@ -199590,7 +199616,7 @@ class ErrorBoundary extends React__default.Component {
|
|
199590
199616
|
}
|
199591
199617
|
}
|
199592
199618
|
const LazySpatialThree = React__default.lazy(async () => {
|
199593
|
-
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-
|
199619
|
+
const { SpatialWrapper: SpatialWrapper2 } = await import("./index-277a2372.js");
|
199594
199620
|
return { default: SpatialWrapper2 };
|
199595
199621
|
});
|
199596
199622
|
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 }) }) }) }));
|
@@ -200047,26 +200073,18 @@ function SpatialSubscriber(props) {
|
|
200047
200073
|
var _a3;
|
200048
200074
|
return (_a3 = obsSegmentationsLocationsData == null ? void 0 : obsSegmentationsLocationsData[layerScope]) == null ? void 0 : _a3[channelScope];
|
200049
200075
|
})).length > 0;
|
200050
|
-
const onEntitySelected =
|
200051
|
-
|
200052
|
-
|
200053
|
-
|
200054
|
-
|
200055
|
-
|
200056
|
-
|
200057
|
-
|
200058
|
-
|
200059
|
-
|
200076
|
+
const onEntitySelected = (obsId, layerScope, channelScope) => {
|
200077
|
+
if (layerScope && channelScope) {
|
200078
|
+
const channelCoordinationValues = segmentationChannelCoordination[0][layerScope][channelScope];
|
200079
|
+
const channelCoordinationSetters = segmentationChannelCoordination[1][layerScope][channelScope];
|
200080
|
+
if (channelCoordinationValues && channelCoordinationSetters) {
|
200081
|
+
const { additionalObsSets: channelAdditionalObsSets, obsSetColor: channelObsSetColor } = channelCoordinationValues;
|
200082
|
+
const { setObsSetColor: setChannelObsSetColor, setAdditionalObsSets: setChannelAdditionalObsSets, setObsColorEncoding: setChannelObsColorEncoding, setObsSetSelection: setChannelObsSetSelection } = channelCoordinationSetters;
|
200083
|
+
const obsIdsToSelect = [obsId];
|
200084
|
+
setObsSelection(obsIdsToSelect, channelAdditionalObsSets, channelObsSetColor, setChannelObsSetSelection, setChannelAdditionalObsSets, setChannelObsSetColor, setChannelObsColorEncoding);
|
200085
|
+
}
|
200060
200086
|
}
|
200061
|
-
}
|
200062
|
-
additionalObsSets,
|
200063
|
-
obsSetColor,
|
200064
|
-
setObsSetSelection,
|
200065
|
-
setAdditionalObsSets,
|
200066
|
-
setObsSetColor,
|
200067
|
-
setObsColorEncoding
|
200068
|
-
// TODO: more dependencies?
|
200069
|
-
]);
|
200087
|
+
};
|
200070
200088
|
return jsxRuntimeExports.jsxs(TitleInfo, { title: title2, info: subtitle, isSpatial: true, urls: urls2, theme, closeButtonVisible, downloadButtonVisible, removeGridComponent, isReady, children: [shouldUseThree ? jsxRuntimeExports.jsx(SpatialThreeAdapter, {
|
200071
200089
|
ref: threeRef,
|
200072
200090
|
uuid,
|
@@ -200094,8 +200112,7 @@ function SpatialSubscriber(props) {
|
|
200094
200112
|
spatialRenderingMode,
|
200095
200113
|
updateViewInfo: setComponentViewInfo,
|
200096
200114
|
delegateHover,
|
200097
|
-
|
200098
|
-
onGlomSelected: onEntitySelected,
|
200115
|
+
onEntitySelected,
|
200099
200116
|
// Points
|
200100
200117
|
obsPoints: obsPointsData,
|
200101
200118
|
pointLayerScopes,
|
@@ -208647,7 +208664,7 @@ const HIGLASS_BUNDLE_VERSION = "1.11.13";
|
|
208647
208664
|
const HIGLASS_CSS_URL = `https://unpkg.com/${HIGLASS_PKG_NAME}@${HIGLASS_BUNDLE_VERSION}/dist/hglib.css`;
|
208648
208665
|
register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
|
208649
208666
|
const LazyHiGlassComponent = React__default.lazy(async () => {
|
208650
|
-
const { HiGlassComponent } = await import("./hglib-
|
208667
|
+
const { HiGlassComponent } = await import("./hglib-5baff511.js").then((n3) => n3.h);
|
208651
208668
|
return { default: HiGlassComponent };
|
208652
208669
|
});
|
208653
208670
|
const HG_SIZE = 800;
|
@@ -232061,7 +232078,7 @@ inherits(Projection$1, Transform2, {
|
|
232061
232078
|
transform(_, pulse2) {
|
232062
232079
|
let proj = this.value;
|
232063
232080
|
if (!proj || _.modified("type")) {
|
232064
|
-
this.value = proj =
|
232081
|
+
this.value = proj = create4(_.type);
|
232065
232082
|
projectionProperties.forEach((prop) => {
|
232066
232083
|
if (_[prop] != null)
|
232067
232084
|
set$3(proj, prop, _[prop]);
|
@@ -232083,7 +232100,7 @@ function fit(proj, _) {
|
|
232083
232100
|
const data2 = collectGeoJSON(_.fit);
|
232084
232101
|
_.extent ? proj.fitExtent(_.extent, data2) : _.size ? proj.fitSize(_.size, data2) : 0;
|
232085
232102
|
}
|
232086
|
-
function
|
232103
|
+
function create4(type2) {
|
232087
232104
|
const constructor = projection((type2 || "mercator").toLowerCase());
|
232088
232105
|
if (!constructor)
|
232089
232106
|
error("Unrecognized projection type: " + type2);
|
@@ -240890,8 +240907,8 @@ function bind3(view, el2, binding) {
|
|
240890
240907
|
bind4.update = debounce(param2.debounce, bind4.update);
|
240891
240908
|
}
|
240892
240909
|
}
|
240893
|
-
const
|
240894
|
-
|
240910
|
+
const create5 = param2.input == null && param2.element ? target : generate;
|
240911
|
+
create5(bind4, el2, param2, view);
|
240895
240912
|
if (!bind4.active) {
|
240896
240913
|
view.on(view._signals[param2.signal], null, () => {
|
240897
240914
|
bind4.source ? bind4.source = false : bind4.set(view.signal(param2.signal));
|
@@ -303904,7 +303921,7 @@ const baseCoordinationTypes = [
|
|
303904
303921
|
new PluginCoordinationType(CoordinationType$1.IMAGE_CHANNEL, null, z.string().nullable()),
|
303905
303922
|
new PluginCoordinationType(CoordinationType$1.SEGMENTATION_LAYER, null, z.string().nullable()),
|
303906
303923
|
new PluginCoordinationType(CoordinationType$1.SEGMENTATION_CHANNEL, null, z.string().nullable()),
|
303907
|
-
new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_C, null, z.number().nullable()),
|
303924
|
+
new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
|
303908
303925
|
new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_Z, null, z.number().nullable()),
|
303909
303926
|
new PluginCoordinationType(CoordinationType$1.SPATIAL_TARGET_T, null, z.number().nullable()),
|
303910
303927
|
new PluginCoordinationType(CoordinationType$1.SPATIAL_LAYER_VISIBLE, true, z.boolean()),
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
2
|
-
import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-
|
2
|
+
import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-7453cd48.js";
|
3
3
|
import "react";
|
4
4
|
import "@vitessce/vit-s";
|
5
5
|
import "react-dom";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, E as LinearFilter, ax as InstancedBufferGeometry, ao as Sphere, an as Box3, aH as BackSide, Y as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, h as Color, aJ as Matrix3, a0 as Mesh, ai as FrontSide, a$ as PlaneGeometry, f as BufferGeometry, ay as Float32BufferAttribute, t as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-
|
1
|
+
import { aC as UniformsUtils, aW as MeshDepthMaterial, aX as RGBADepthPacking, aY as MeshDistanceMaterial, aZ as ShaderChunk, T as Texture, E as LinearFilter, ax as InstancedBufferGeometry, ao as Sphere, an as Box3, aH as BackSide, Y as DoubleSide, a_ as InstancedBufferAttribute, V as Vector2, aE as Vector4, h as Color, aJ as Matrix3, a0 as Mesh, ai as FrontSide, a$ as PlaneGeometry, f as BufferGeometry, ay as Float32BufferAttribute, t as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-7453cd48.js";
|
2
2
|
import "react";
|
3
3
|
import "@vitessce/vit-s";
|
4
4
|
import "react-dom";
|
@@ -1073,5 +1073,5 @@ export declare const baseCoordinationTypes: (PluginCoordinationType<z.ZodNullabl
|
|
1073
1073
|
color?: number[] | undefined;
|
1074
1074
|
})[];
|
1075
1075
|
})[];
|
1076
|
-
}>>> | PluginCoordinationType<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["BlackIsZero", "RGB"]>>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["2D", "3D"]>>> | PluginCoordinationType<z.ZodEnum<["maximumIntensityProjection", "additive"]>> | PluginCoordinationType<z.ZodEnum<["vertical", "horizontal"]>>)[];
|
1076
|
+
}>>> | PluginCoordinationType<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>> | PluginCoordinationType<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["BlackIsZero", "RGB"]>>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["2D", "3D"]>>> | PluginCoordinationType<z.ZodEnum<["maximumIntensityProjection", "additive"]>> | PluginCoordinationType<z.ZodEnum<["vertical", "horizontal"]>>)[];
|
1077
1077
|
//# sourceMappingURL=base-plugins.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base-plugins.d.ts","sourceRoot":"","sources":["../src/base-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,CAAC,EA4CF,MAAM,mBAAmB,CAAC;AAmI3B,eAAO,MAAM,aAAa,kBAkBzB,CAAC;AAEF,eAAO,MAAM,aAAa,wDAqEzB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgB9B,CAAC;AAIF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"base-plugins.d.ts","sourceRoot":"","sources":["../src/base-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,CAAC,EA4CF,MAAM,mBAAmB,CAAC;AAmI3B,eAAO,MAAM,aAAa,kBAkBzB,CAAC;AAEF,eAAO,MAAM,aAAa,wDAqEzB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgB9B,CAAC;AAIF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4bAqLjC,CAAC"}
|
package/dist-tsc/base-plugins.js
CHANGED
@@ -235,7 +235,7 @@ export const baseCoordinationTypes = [
|
|
235
235
|
new PluginCoordinationType(CoordinationType.IMAGE_CHANNEL, null, z.string().nullable()),
|
236
236
|
new PluginCoordinationType(CoordinationType.SEGMENTATION_LAYER, null, z.string().nullable()),
|
237
237
|
new PluginCoordinationType(CoordinationType.SEGMENTATION_CHANNEL, null, z.string().nullable()),
|
238
|
-
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().nullable()),
|
238
|
+
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
|
239
239
|
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_Z, null, z.number().nullable()),
|
240
240
|
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_T, null, z.number().nullable()),
|
241
241
|
new PluginCoordinationType(CoordinationType.SPATIAL_LAYER_VISIBLE, true, z.boolean()),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/all",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.3",
|
4
4
|
"author": "Gehlenborg Lab",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
@@ -18,29 +18,29 @@
|
|
18
18
|
"dependencies": {
|
19
19
|
"@material-ui/core": "~4.12.3",
|
20
20
|
"zod": "^3.21.4",
|
21
|
-
"@vitessce/constants-internal": "3.4.
|
22
|
-
"@vitessce/
|
23
|
-
"@vitessce/
|
24
|
-
"@vitessce/feature-list": "3.4.
|
25
|
-
"@vitessce/
|
26
|
-
"@vitessce/glb": "3.4.
|
27
|
-
"@vitessce/
|
28
|
-
"@vitessce/json": "3.4.
|
29
|
-
"@vitessce/layer-controller": "3.4.
|
30
|
-
"@vitessce/layer-controller-beta": "3.4.
|
31
|
-
"@vitessce/obs-sets-manager": "3.4.
|
32
|
-
"@vitessce/ome-tiff": "3.4.
|
33
|
-
"@vitessce/plugins": "3.4.
|
34
|
-
"@vitessce/scatterplot-
|
35
|
-
"@vitessce/scatterplot-
|
36
|
-
"@vitessce/schemas": "3.4.
|
37
|
-
"@vitessce/
|
38
|
-
"@vitessce/spatial
|
39
|
-
"@vitessce/
|
40
|
-
"@vitessce/
|
41
|
-
"@vitessce/
|
42
|
-
"@vitessce/
|
43
|
-
"@vitessce/
|
21
|
+
"@vitessce/constants-internal": "3.4.3",
|
22
|
+
"@vitessce/csv": "3.4.3",
|
23
|
+
"@vitessce/description": "3.4.3",
|
24
|
+
"@vitessce/feature-list": "3.4.3",
|
25
|
+
"@vitessce/genomic-profiles": "3.4.3",
|
26
|
+
"@vitessce/glb": "3.4.3",
|
27
|
+
"@vitessce/heatmap": "3.4.3",
|
28
|
+
"@vitessce/json": "3.4.3",
|
29
|
+
"@vitessce/layer-controller": "3.4.3",
|
30
|
+
"@vitessce/layer-controller-beta": "3.4.3",
|
31
|
+
"@vitessce/obs-sets-manager": "3.4.3",
|
32
|
+
"@vitessce/ome-tiff": "3.4.3",
|
33
|
+
"@vitessce/plugins": "3.4.3",
|
34
|
+
"@vitessce/scatterplot-gating": "3.4.3",
|
35
|
+
"@vitessce/scatterplot-embedding": "3.4.3",
|
36
|
+
"@vitessce/schemas": "3.4.3",
|
37
|
+
"@vitessce/statistical-plots": "3.4.3",
|
38
|
+
"@vitessce/spatial": "3.4.3",
|
39
|
+
"@vitessce/status": "3.4.3",
|
40
|
+
"@vitessce/vit-s": "3.4.3",
|
41
|
+
"@vitessce/spatial-beta": "3.4.3",
|
42
|
+
"@vitessce/zarr": "3.4.3",
|
43
|
+
"@vitessce/spatial-three": "3.4.3"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@types/react": "^18.0.28",
|
package/src/base-plugins.ts
CHANGED
@@ -450,7 +450,7 @@ export const baseCoordinationTypes = [
|
|
450
450
|
new PluginCoordinationType(CoordinationType.IMAGE_CHANNEL, null, z.string().nullable()),
|
451
451
|
new PluginCoordinationType(CoordinationType.SEGMENTATION_LAYER, null, z.string().nullable()),
|
452
452
|
new PluginCoordinationType(CoordinationType.SEGMENTATION_CHANNEL, null, z.string().nullable()),
|
453
|
-
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().nullable()),
|
453
|
+
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_C, null, z.number().or(z.string()).nullable()),
|
454
454
|
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_Z, null, z.number().nullable()),
|
455
455
|
new PluginCoordinationType(CoordinationType.SPATIAL_TARGET_T, null, z.number().nullable()),
|
456
456
|
new PluginCoordinationType(CoordinationType.SPATIAL_LAYER_VISIBLE, true, z.boolean()),
|