@ohif/app 3.12.0-beta.31 → 3.12.0-beta.32
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/{1447.bundle.3fdfb00b526170a76ca5.js → 1447.bundle.5329a1fc555ff8492f45.js} +2 -2
- package/dist/{2345.bundle.1fedf5750caf46ce99d9.js → 2345.bundle.db2624daf28f03ec2f90.js} +5 -2
- package/dist/{4019.bundle.701981ea6b7abed6a66c.js → 4019.bundle.c5b332003e3cd00868ce.js} +8 -0
- package/dist/{7412.bundle.f5de4a483672f3eabc10.js → 7412.bundle.b891b84732a843f2eeb1.js} +66 -22
- package/dist/{7431.bundle.c5e2e2f2f4ccc2c994d7.js → 7431.bundle.dac1caef5e9f365ce247.js} +3 -0
- package/dist/{9819.bundle.44afc84f644470568735.js → 9819.bundle.327cd242014b11d6c0d7.js} +7172 -6627
- package/dist/{9856.bundle.4a338f5f69c7082091e0.js → 9856.bundle.8e21e8c0322a0837862b.js} +24 -6
- package/dist/{9892.bundle.eb768b852ed006b855ae.js → 9892.bundle.bdb6973617e0eab859cc.js} +72 -23
- package/dist/{app.bundle.45924680f3b48a55d4a8.js → app.bundle.ac2fb321d9cbfff3ec3c.js} +40030 -39477
- package/dist/{compute.bundle.c15fba70f1aff4b27f25.js → compute.bundle.3b6f88dbaa913f5f1244.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.52580841ea46a924312f.js → polySeg.bundle.393405819b5ecd4d54d1.js} +1 -1
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.4c1ed366506fa2a92f9f.js → 1459.bundle.81f4015d88a4945b34f1.js} +0 -0
- /package/dist/{147.bundle.b48793416be71ea5c5d2.js → 147.bundle.33ec7549cc1cec4ac0c0.js} +0 -0
- /package/dist/{1604.bundle.89e72d8f42dafeb31983.js → 1604.bundle.621b39c38a1b84f465aa.js} +0 -0
- /package/dist/{1807.bundle.02cb2e261bbb1ddedbcd.js → 1807.bundle.8b1098dd1b8342bb8b62.js} +0 -0
- /package/dist/{1919.bundle.7560e6a6a9046f1d1150.js → 1919.bundle.db7724c4e3134df3a0c1.js} +0 -0
- /package/dist/{213.bundle.e510493f0370fe50b7c0.js → 213.bundle.3fabd2ec9824ce4802ce.js} +0 -0
- /package/dist/{2243.bundle.88a6459254f8ffe07b34.js → 2243.bundle.1235ac95906db3a2172e.js} +0 -0
- /package/dist/{2424.bundle.cfef076e843ad7e4ffb1.js → 2424.bundle.b061db5c4fa94ee49b68.js} +0 -0
- /package/dist/{2518.bundle.09da9efcaf81e4ea7913.js → 2518.bundle.7ffb0583145b21cb7499.js} +0 -0
- /package/dist/{319.bundle.45c1c250b562a3feefa5.js → 319.bundle.5d3c2ff62d99b3da7f8c.js} +0 -0
- /package/dist/{4113.bundle.c8d586313c4cb38869af.js → 4113.bundle.5bd66f3880a8a28f8e20.js} +0 -0
- /package/dist/{414.bundle.e6f10779378b7d682312.js → 414.bundle.b6e51f4eab025bf63c56.js} +0 -0
- /package/dist/{5802.bundle.d68c7f909458038aedf1.js → 5802.bundle.48b958ebd8d250156814.js} +0 -0
- /package/dist/{6027.bundle.e530d0e619b92a1031ef.js → 6027.bundle.231b612a29523398d5ee.js} +0 -0
- /package/dist/{6201.bundle.84d740a985e32d988940.js → 6201.bundle.bb4265e279b84970186b.js} +0 -0
- /package/dist/{6980.bundle.eded348e989c9783e1c7.js → 6980.bundle.3d48964dada7673618ad.js} +0 -0
- /package/dist/{6991.bundle.be3ddf89ec2b803ded9d.js → 6991.bundle.2a13f2fb63ab3107a286.js} +0 -0
- /package/dist/{7197.bundle.66d051c5abcc57e808ed.js → 7197.bundle.e0a8a5313412b8fdaff1.js} +0 -0
- /package/dist/{7639.bundle.62ead5f18ad2aea60b1b.js → 7639.bundle.9fcdb465e703b74e71b4.js} +0 -0
- /package/dist/{7656.bundle.fe3c2c53c4e855c8cc39.js → 7656.bundle.b4b2468844984c101541.js} +0 -0
- /package/dist/{810.bundle.4c4e7937948f34ad8a1c.js → 810.bundle.c9c84898f521c956a869.js} +0 -0
- /package/dist/{85.bundle.396620d444578c6ddd02.js → 85.bundle.583b6c0d87b4e1de1eb8.js} +0 -0
- /package/dist/{8558.bundle.c933aafc75884a2611b6.js → 8558.bundle.d52a1cb49ddc1a5f6d36.js} +0 -0
- /package/dist/{8815.bundle.37cabbc044fa25d1172f.js → 8815.bundle.f45760ed48273afeab94.js} +0 -0
- /package/dist/{934.bundle.8adb71e2e7204372a315.js → 934.bundle.a59426d0dd3a9a428161.js} +0 -0
- /package/dist/{9862.bundle.cf1d70351f4e09fbd7ac.js → 9862.bundle.83995d2aebb597bc4b64.js} +0 -0
|
@@ -3428,14 +3428,15 @@ function internalAddSegmentationRepresentation_internalAddSegmentationRepresenta
|
|
|
3428
3428
|
};
|
|
3429
3429
|
defaultSegmentationStateManager.addSegmentationRepresentation(viewportId, segmentationId, representationInput.type, renderingConfig);
|
|
3430
3430
|
if (!getActiveSegmentIndex(segmentationId)) {
|
|
3431
|
+
let firstSegmentIndex = 1;
|
|
3431
3432
|
const segmentation = defaultSegmentationStateManager.getSegmentation(segmentationId);
|
|
3432
3433
|
if (segmentation) {
|
|
3433
3434
|
const segmentKeys = Object.keys(segmentation.segments);
|
|
3434
3435
|
if (segmentKeys.length > 0) {
|
|
3435
|
-
|
|
3436
|
-
setActiveSegmentIndex(segmentationId, firstSegmentIndex);
|
|
3436
|
+
firstSegmentIndex = segmentKeys.map((k) => Number(k)).sort()[0];
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
3439
|
+
setActiveSegmentIndex(segmentationId, firstSegmentIndex);
|
|
3439
3440
|
}
|
|
3440
3441
|
if (representationInput.type === SegmentationRepresentations.Contour) {
|
|
3441
3442
|
triggerAnnotationRenderForViewportIds([viewportId]);
|
|
@@ -6318,8 +6319,8 @@ var getOrCreateCanvas = __webpack_require__(30135);
|
|
|
6318
6319
|
var VolumeViewport = __webpack_require__(94155);
|
|
6319
6320
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/VolumeViewport3D.js
|
|
6320
6321
|
var VolumeViewport3D = __webpack_require__(40893);
|
|
6321
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js
|
|
6322
|
-
var BaseVolumeViewport = __webpack_require__(
|
|
6322
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js + 1 modules
|
|
6323
|
+
var BaseVolumeViewport = __webpack_require__(95205);
|
|
6323
6324
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/StackViewport.js + 14 modules
|
|
6324
6325
|
var StackViewport = __webpack_require__(79720);
|
|
6325
6326
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/VideoViewport.js + 3 modules
|
|
@@ -6972,6 +6973,8 @@ function getViewportsWithVolumeId(volumeId) {
|
|
|
6972
6973
|
/* harmony import */ var _utilities_drawing__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(473);
|
|
6973
6974
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7001);
|
|
6974
6975
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(58640);
|
|
6976
|
+
/* harmony import */ var _stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(76712);
|
|
6977
|
+
|
|
6975
6978
|
|
|
6976
6979
|
|
|
6977
6980
|
|
|
@@ -7488,9 +7491,10 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
7488
7491
|
activeHandleIndex !== null) {
|
|
7489
7492
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
7490
7493
|
}
|
|
7491
|
-
|
|
7494
|
+
const showHandlesAlways = Boolean((0,_stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_17__/* .getStyleProperty */ .h)('showHandlesAlways', {}));
|
|
7495
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
7492
7496
|
const handleGroupUID = '0';
|
|
7493
|
-
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_9__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, activeHandleCanvasCoords, {
|
|
7497
|
+
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_9__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
7494
7498
|
color,
|
|
7495
7499
|
});
|
|
7496
7500
|
}
|
|
@@ -10706,6 +10710,20 @@ function hasNaNValues(input) {
|
|
|
10706
10710
|
}
|
|
10707
10711
|
|
|
10708
10712
|
|
|
10713
|
+
/***/ }),
|
|
10714
|
+
|
|
10715
|
+
/***/ 39537:
|
|
10716
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10717
|
+
|
|
10718
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10719
|
+
/* harmony export */ A: () => (/* binding */ imageIdToURI)
|
|
10720
|
+
/* harmony export */ });
|
|
10721
|
+
function imageIdToURI(imageId) {
|
|
10722
|
+
const colonIndex = imageId.indexOf(':');
|
|
10723
|
+
return imageId.substring(colonIndex + 1);
|
|
10724
|
+
}
|
|
10725
|
+
|
|
10726
|
+
|
|
10709
10727
|
/***/ }),
|
|
10710
10728
|
|
|
10711
10729
|
/***/ 39848:
|
|
@@ -1606,6 +1606,8 @@ fn main(
|
|
|
1606
1606
|
/* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(40634);
|
|
1607
1607
|
/* harmony import */ var _utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(18990);
|
|
1608
1608
|
/* harmony import */ var _utilities_math_basic__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(73262);
|
|
1609
|
+
/* harmony import */ var _stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(76712);
|
|
1610
|
+
|
|
1609
1611
|
|
|
1610
1612
|
|
|
1611
1613
|
|
|
@@ -1988,9 +1990,10 @@ class RectangleROITool extends _base__WEBPACK_IMPORTED_MODULE_0__/* .AnnotationT
|
|
|
1988
1990
|
activeHandleIndex !== undefined) {
|
|
1989
1991
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
1990
1992
|
}
|
|
1991
|
-
|
|
1993
|
+
const showHandlesAlways = Boolean((0,_stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_20__/* .getStyleProperty */ .h)('showHandlesAlways', {}));
|
|
1994
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
1992
1995
|
const handleGroupUID = '0';
|
|
1993
|
-
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_8__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, activeHandleCanvasCoords, {
|
|
1996
|
+
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_8__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
1994
1997
|
color,
|
|
1995
1998
|
});
|
|
1996
1999
|
}
|
|
@@ -4255,6 +4258,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4255
4258
|
convertMapperToNotSharedMapper: () => (/* reexport */ createVolumeMapper/* convertMapperToNotSharedMapper */.h),
|
|
4256
4259
|
createVolumeActor: () => (/* reexport */ createVolumeActor/* default */.A),
|
|
4257
4260
|
eventTarget: () => (/* reexport */ eventTarget/* default */.A),
|
|
4261
|
+
getConfiguration: () => (/* reexport */ init/* getConfiguration */.D0),
|
|
4258
4262
|
getEnabledElement: () => (/* reexport */ getEnabledElement/* default */.Ay),
|
|
4259
4263
|
getEnabledElementByIds: () => (/* reexport */ getEnabledElement/* getEnabledElementByIds */.b1),
|
|
4260
4264
|
getEnabledElementByViewportId: () => (/* reexport */ getEnabledElement/* getEnabledElementByViewportId */.yj),
|
|
@@ -4270,7 +4274,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4270
4274
|
volumeLoader: () => (/* reexport */ volumeLoader)
|
|
4271
4275
|
});
|
|
4272
4276
|
|
|
4273
|
-
// UNUSED EXPORTS: BaseRenderingEngine, ContextPoolRenderingEngine, EVENTS, ProgressiveRetrieveImages, RenderingEngine, StreamingDynamicImageVolume, StreamingImageVolume, Surface, TiledRenderingEngine, VideoViewport, Viewport, VolumeViewport3D, WSIViewport, canRenderFloatTextures, cornerstoneMeshLoader, cornerstoneStreamingDynamicImageVolumeLoader, cornerstoneStreamingImageVolumeLoader, createCanvas, createViewportElement, createVolumeMapper, geometryLoader,
|
|
4277
|
+
// UNUSED EXPORTS: BaseRenderingEngine, ContextPoolRenderingEngine, EVENTS, ProgressiveRetrieveImages, RenderingEngine, StreamingDynamicImageVolume, StreamingImageVolume, Surface, TiledRenderingEngine, VideoViewport, Viewport, VolumeViewport3D, WSIViewport, canRenderFloatTextures, cornerstoneMeshLoader, cornerstoneStreamingDynamicImageVolumeLoader, cornerstoneStreamingImageVolumeLoader, createCanvas, createViewportElement, createVolumeMapper, geometryLoader, getOrCreateCanvas, getShouldUseCPURendering, imageRetrievalPoolManager, init, isCornerstoneInitialized, peerImport, registerImageLoader, requestPoolManager, resetInitialization, resetUseCPURendering, setCanvasCreator, setConfiguration, setPreferSizeOverAccuracy, setUseCPURendering, setVolumesForViewports, version
|
|
4274
4278
|
|
|
4275
4279
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/index.js + 1 modules
|
|
4276
4280
|
var enums = __webpack_require__(71851);
|
|
@@ -4288,8 +4292,8 @@ var getOrCreateCanvas = __webpack_require__(30135);
|
|
|
4288
4292
|
var VolumeViewport = __webpack_require__(94155);
|
|
4289
4293
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/VolumeViewport3D.js
|
|
4290
4294
|
var VolumeViewport3D = __webpack_require__(40893);
|
|
4291
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js
|
|
4292
|
-
var BaseVolumeViewport = __webpack_require__(
|
|
4295
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js + 1 modules
|
|
4296
|
+
var BaseVolumeViewport = __webpack_require__(95205);
|
|
4293
4297
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/StackViewport.js + 14 modules
|
|
4294
4298
|
var StackViewport = __webpack_require__(79720);
|
|
4295
4299
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/VideoViewport.js + 3 modules
|
|
@@ -6573,6 +6577,8 @@ const segmentationRenderingEngine = new SegmentationRenderingEngine();
|
|
|
6573
6577
|
/* harmony import */ var _utilities_drawing__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(473);
|
|
6574
6578
|
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7001);
|
|
6575
6579
|
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(58640);
|
|
6580
|
+
/* harmony import */ var _stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(76712);
|
|
6581
|
+
|
|
6576
6582
|
|
|
6577
6583
|
|
|
6578
6584
|
|
|
@@ -7089,9 +7095,10 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
7089
7095
|
activeHandleIndex !== null) {
|
|
7090
7096
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
7091
7097
|
}
|
|
7092
|
-
|
|
7098
|
+
const showHandlesAlways = Boolean((0,_stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_17__/* .getStyleProperty */ .h)('showHandlesAlways', {}));
|
|
7099
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
7093
7100
|
const handleGroupUID = '0';
|
|
7094
|
-
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_9__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, activeHandleCanvasCoords, {
|
|
7101
|
+
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_9__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
7095
7102
|
color,
|
|
7096
7103
|
});
|
|
7097
7104
|
}
|
|
@@ -11402,6 +11409,21 @@ function hasNaNValues(input) {
|
|
|
11402
11409
|
}
|
|
11403
11410
|
|
|
11404
11411
|
|
|
11412
|
+
/***/ }),
|
|
11413
|
+
|
|
11414
|
+
/***/ 39537:
|
|
11415
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
11416
|
+
|
|
11417
|
+
"use strict";
|
|
11418
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11419
|
+
/* harmony export */ A: () => (/* binding */ imageIdToURI)
|
|
11420
|
+
/* harmony export */ });
|
|
11421
|
+
function imageIdToURI(imageId) {
|
|
11422
|
+
const colonIndex = imageId.indexOf(':');
|
|
11423
|
+
return imageId.substring(colonIndex + 1);
|
|
11424
|
+
}
|
|
11425
|
+
|
|
11426
|
+
|
|
11405
11427
|
/***/ }),
|
|
11406
11428
|
|
|
11407
11429
|
/***/ 40133:
|
|
@@ -12857,14 +12879,15 @@ function internalAddSegmentationRepresentation(viewportId, representationInput)
|
|
|
12857
12879
|
};
|
|
12858
12880
|
_SegmentationStateManager__WEBPACK_IMPORTED_MODULE_5__/* .defaultSegmentationStateManager */ ._6.addSegmentationRepresentation(viewportId, segmentationId, representationInput.type, renderingConfig);
|
|
12859
12881
|
if (!(0,_segmentIndex__WEBPACK_IMPORTED_MODULE_6__.getActiveSegmentIndex)(segmentationId)) {
|
|
12882
|
+
let firstSegmentIndex = 1;
|
|
12860
12883
|
const segmentation = _SegmentationStateManager__WEBPACK_IMPORTED_MODULE_5__/* .defaultSegmentationStateManager */ ._6.getSegmentation(segmentationId);
|
|
12861
12884
|
if (segmentation) {
|
|
12862
12885
|
const segmentKeys = Object.keys(segmentation.segments);
|
|
12863
12886
|
if (segmentKeys.length > 0) {
|
|
12864
|
-
|
|
12865
|
-
(0,_segmentIndex__WEBPACK_IMPORTED_MODULE_6__.setActiveSegmentIndex)(segmentationId, firstSegmentIndex);
|
|
12887
|
+
firstSegmentIndex = segmentKeys.map((k) => Number(k)).sort()[0];
|
|
12866
12888
|
}
|
|
12867
12889
|
}
|
|
12890
|
+
(0,_segmentIndex__WEBPACK_IMPORTED_MODULE_6__.setActiveSegmentIndex)(segmentationId, firstSegmentIndex);
|
|
12868
12891
|
}
|
|
12869
12892
|
if (representationInput.type === _enums__WEBPACK_IMPORTED_MODULE_2__.SegmentationRepresentations.Contour) {
|
|
12870
12893
|
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_1__/* .triggerAnnotationRenderForViewportIds */ .t)([viewportId]);
|
|
@@ -19510,7 +19533,7 @@ var COLOR_LUT = __webpack_require__(93952);
|
|
|
19510
19533
|
|
|
19511
19534
|
|
|
19512
19535
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/version.js
|
|
19513
|
-
const version = '4.
|
|
19536
|
+
const version = '4.3.10';
|
|
19514
19537
|
|
|
19515
19538
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/cameraSyncCallback.js
|
|
19516
19539
|
|
|
@@ -25660,13 +25683,20 @@ class WindowLevelTool extends base/* BaseTool */.oS {
|
|
|
25660
25683
|
}, [Infinity, -Infinity]);
|
|
25661
25684
|
const BitsStored = imageVolume?.metadata?.BitsStored;
|
|
25662
25685
|
const metadataDynamicRange = BitsStored ? 2 ** BitsStored : Infinity;
|
|
25663
|
-
|
|
25686
|
+
const calculatedRange = calculatedDynamicRange[1] - calculatedDynamicRange[0];
|
|
25687
|
+
imageDynamicRange = !Number.isFinite(calculatedRange)
|
|
25688
|
+
? metadataDynamicRange
|
|
25689
|
+
: Math.min(calculatedRange, metadataDynamicRange);
|
|
25664
25690
|
}
|
|
25665
25691
|
else {
|
|
25666
25692
|
imageDynamicRange = this._getImageDynamicRangeFromViewport(viewport);
|
|
25667
25693
|
}
|
|
25668
25694
|
const ratio = imageDynamicRange / DEFAULT_IMAGE_DYNAMIC_RANGE;
|
|
25669
|
-
return
|
|
25695
|
+
return !Number.isFinite(ratio)
|
|
25696
|
+
? DEFAULT_IMAGE_DYNAMIC_RANGE
|
|
25697
|
+
: ratio > 1
|
|
25698
|
+
? Math.round(ratio)
|
|
25699
|
+
: ratio;
|
|
25670
25700
|
}
|
|
25671
25701
|
_getImageDynamicRangeFromViewport(viewport) {
|
|
25672
25702
|
const { imageData, voxelManager } = viewport.getImageData();
|
|
@@ -26093,6 +26123,7 @@ PlanarRotateTool.toolName = 'PlanarRotate';
|
|
|
26093
26123
|
|
|
26094
26124
|
|
|
26095
26125
|
|
|
26126
|
+
|
|
26096
26127
|
class ZoomTool extends base/* BaseTool */.oS {
|
|
26097
26128
|
constructor(toolProps = {}, defaultToolProps = {
|
|
26098
26129
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -26151,9 +26182,13 @@ class ZoomTool extends base/* BaseTool */.oS {
|
|
|
26151
26182
|
const imageWidth = dimensions[0] * spacing[0];
|
|
26152
26183
|
const imageHeight = dimensions[1] * spacing[1];
|
|
26153
26184
|
const canvasAspect = size[0] / size[1];
|
|
26185
|
+
const insetImageMultiplier = (0,esm.getConfiguration)().rendering
|
|
26186
|
+
?.useLegacyCameraFOV
|
|
26187
|
+
? 1.1
|
|
26188
|
+
: 1;
|
|
26154
26189
|
const displayArea = viewport.options?.displayArea;
|
|
26155
|
-
const imageAreaScaleX = displayArea?.imageArea?.[0] ??
|
|
26156
|
-
const imageAreaScaleY = displayArea?.imageArea?.[1] ??
|
|
26190
|
+
const imageAreaScaleX = displayArea?.imageArea?.[0] ?? insetImageMultiplier;
|
|
26191
|
+
const imageAreaScaleY = displayArea?.imageArea?.[1] ?? insetImageMultiplier;
|
|
26157
26192
|
const scaledImageWidth = imageWidth * imageAreaScaleX;
|
|
26158
26193
|
const scaledImageHeight = imageHeight * imageAreaScaleY;
|
|
26159
26194
|
const scaledImageAspect = scaledImageWidth / scaledImageHeight;
|
|
@@ -30949,6 +30984,7 @@ LabelTool.toolName = 'Label';
|
|
|
30949
30984
|
|
|
30950
30985
|
|
|
30951
30986
|
|
|
30987
|
+
|
|
30952
30988
|
const { transformWorldToIndex: LengthTool_transformWorldToIndex } = esm.utilities;
|
|
30953
30989
|
class LengthTool extends base/* AnnotationTool */.EC {
|
|
30954
30990
|
static { this.toolName = 'Length'; }
|
|
@@ -31206,7 +31242,8 @@ class LengthTool extends base/* AnnotationTool */.EC {
|
|
|
31206
31242
|
activeHandleIndex !== null) {
|
|
31207
31243
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
31208
31244
|
}
|
|
31209
|
-
|
|
31245
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
31246
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
31210
31247
|
const handleGroupUID = '0';
|
|
31211
31248
|
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, canvasCoordinates, {
|
|
31212
31249
|
color,
|
|
@@ -31393,6 +31430,7 @@ function defaultGetTextLines(data, targetId) {
|
|
|
31393
31430
|
|
|
31394
31431
|
|
|
31395
31432
|
|
|
31433
|
+
|
|
31396
31434
|
const { transformWorldToIndex: HeightTool_transformWorldToIndex } = esm.utilities;
|
|
31397
31435
|
class HeightTool extends base/* AnnotationTool */.EC {
|
|
31398
31436
|
static { this.toolName = 'Height'; }
|
|
@@ -31637,7 +31675,8 @@ class HeightTool extends base/* AnnotationTool */.EC {
|
|
|
31637
31675
|
activeHandleIndex !== null) {
|
|
31638
31676
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
31639
31677
|
}
|
|
31640
|
-
|
|
31678
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
31679
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
31641
31680
|
const handleGroupUID = '0';
|
|
31642
31681
|
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, canvasCoordinates, {
|
|
31643
31682
|
color,
|
|
@@ -32322,6 +32361,7 @@ var basic = __webpack_require__(73262);
|
|
|
32322
32361
|
|
|
32323
32362
|
|
|
32324
32363
|
|
|
32364
|
+
|
|
32325
32365
|
|
|
32326
32366
|
|
|
32327
32367
|
const { transformWorldToIndex: EllipticalROITool_transformWorldToIndex } = esm.utilities;
|
|
@@ -32749,9 +32789,10 @@ class EllipticalROITool extends base/* AnnotationTool */.EC {
|
|
|
32749
32789
|
activeHandleIndex !== null) {
|
|
32750
32790
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
32751
32791
|
}
|
|
32752
|
-
|
|
32792
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
32793
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
32753
32794
|
const handleGroupUID = '0';
|
|
32754
|
-
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, activeHandleCanvasCoords, {
|
|
32795
|
+
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
32755
32796
|
color,
|
|
32756
32797
|
});
|
|
32757
32798
|
}
|
|
@@ -33016,6 +33057,7 @@ function EllipticalROITool_defaultGetTextLines(data, targetId) {
|
|
|
33016
33057
|
|
|
33017
33058
|
|
|
33018
33059
|
|
|
33060
|
+
|
|
33019
33061
|
|
|
33020
33062
|
|
|
33021
33063
|
const { transformWorldToIndex: CircleROITool_transformWorldToIndex } = esm.utilities;
|
|
@@ -33407,9 +33449,10 @@ class CircleROITool extends base/* AnnotationTool */.EC {
|
|
|
33407
33449
|
activeHandleCanvasCoords = canvasCoordinates;
|
|
33408
33450
|
}
|
|
33409
33451
|
}
|
|
33410
|
-
|
|
33452
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
33453
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
33411
33454
|
const handleGroupUID = '0';
|
|
33412
|
-
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, activeHandleCanvasCoords, {
|
|
33455
|
+
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
33413
33456
|
color,
|
|
33414
33457
|
});
|
|
33415
33458
|
}
|
|
@@ -35686,6 +35729,7 @@ class LivewireContourSegmentationTool extends annotation_LivewireContourTool {
|
|
|
35686
35729
|
|
|
35687
35730
|
|
|
35688
35731
|
|
|
35732
|
+
|
|
35689
35733
|
class ArrowAnnotateTool extends base/* AnnotationTool */.EC {
|
|
35690
35734
|
static { this.toolName = 'ArrowAnnotate'; }
|
|
35691
35735
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -35970,7 +36014,8 @@ class ArrowAnnotateTool extends base/* AnnotationTool */.EC {
|
|
|
35970
36014
|
if (!(0,annotationVisibility.isAnnotationVisible)(annotationUID)) {
|
|
35971
36015
|
continue;
|
|
35972
36016
|
}
|
|
35973
|
-
|
|
36017
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
36018
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
35974
36019
|
const handleGroupUID = '0';
|
|
35975
36020
|
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, canvasCoordinates, {
|
|
35976
36021
|
color,
|
|
@@ -36122,6 +36167,7 @@ function ArrowAnnotateTool_changeTextCallback(data, eventData, doneChangingTextC
|
|
|
36122
36167
|
|
|
36123
36168
|
|
|
36124
36169
|
|
|
36170
|
+
|
|
36125
36171
|
class AngleTool extends base/* AnnotationTool */.EC {
|
|
36126
36172
|
static { this.toolName = 'Angle'; }
|
|
36127
36173
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -36404,7 +36450,8 @@ class AngleTool extends base/* AnnotationTool */.EC {
|
|
|
36404
36450
|
if (!(0,annotationVisibility.isAnnotationVisible)(annotationUID)) {
|
|
36405
36451
|
continue;
|
|
36406
36452
|
}
|
|
36407
|
-
|
|
36453
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
36454
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
36408
36455
|
const handleGroupUID = '0';
|
|
36409
36456
|
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, canvasCoordinates, {
|
|
36410
36457
|
color,
|
|
@@ -36620,6 +36667,7 @@ var midPoint = __webpack_require__(82983);
|
|
|
36620
36667
|
|
|
36621
36668
|
|
|
36622
36669
|
|
|
36670
|
+
|
|
36623
36671
|
class CobbAngleTool extends base/* AnnotationTool */.EC {
|
|
36624
36672
|
static { this.toolName = 'CobbAngle'; }
|
|
36625
36673
|
constructor(toolProps = {}, defaultToolProps = {
|
|
@@ -36954,7 +37002,8 @@ class CobbAngleTool extends base/* AnnotationTool */.EC {
|
|
|
36954
37002
|
if (!(0,annotationVisibility.isAnnotationVisible)(annotationUID)) {
|
|
36955
37003
|
continue;
|
|
36956
37004
|
}
|
|
36957
|
-
|
|
37005
|
+
const showHandlesAlways = Boolean((0,helpers/* getStyleProperty */.h)('showHandlesAlways', {}));
|
|
37006
|
+
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
36958
37007
|
const handleGroupUID = '0';
|
|
36959
37008
|
(0,drawingSvg.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, canvasCoordinates, {
|
|
36960
37009
|
color,
|