@ohif/app 3.14.0-beta.72 → 3.14.0-beta.74
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/{2894.bundle.770d3d9e.js → 1153.bundle.efd8a415.js} +3129 -166
- package/dist/{1566.bundle.e9f5d851.js → 1566.bundle.d58db206.js} +47 -9
- package/dist/{1645.bundle.1a86b10e.js → 1645.bundle.a8ee81ea.js} +73 -20
- package/dist/{1793.bundle.7b6d510f.js → 1793.bundle.27458a55.js} +2 -2
- package/dist/{1862.bundle.10bed54a.js → 1862.bundle.79bfe469.js} +1 -1
- package/dist/{9892.bundle.fe68e426.js → 2382.bundle.3198d878.js} +41 -28
- package/dist/{2717.bundle.4167aa16.js → 2717.bundle.e4bad54f.js} +2 -2
- package/dist/{2748.bundle.a90b290d.js → 2748.bundle.eaa94e2e.js} +0 -805
- package/dist/{513.bundle.9c0548cf.js → 2894.bundle.d612efb2.js} +1 -1
- package/dist/{3004.bundle.cbd2e499.js → 3004.bundle.483559ec.js} +4 -4
- package/dist/3723.bundle.eab70100.js +808 -0
- package/dist/{3771.bundle.1c9e74f3.js → 3771.bundle.6cb07c14.js} +2 -2
- package/dist/{4500.bundle.79728db8.js → 4449.bundle.3e4b07e6.js} +1043 -69
- package/dist/{4606.bundle.05282205.js → 4606.bundle.a2a1aa34.js} +1 -1
- package/dist/{5076.bundle.157252dd.js → 5076.bundle.95c07142.js} +50 -8
- package/dist/{5143.bundle.1ddc3eb4.js → 5143.bundle.2ea0b15d.js} +1145 -134
- package/dist/{5320.bundle.43308cb4.js → 5320.bundle.335efd86.js} +247 -210
- package/dist/{5914.bundle.00f408d2.js → 5914.bundle.f6e9fc4a.js} +37 -9
- package/dist/{5989.bundle.6da1ff18.js → 5989.bundle.2999d206.js} +320 -231
- package/dist/{213.bundle.6bbe580b.js → 6133.bundle.d4f7403f.js} +3062 -117
- package/dist/{3386.bundle.bdaa8014.js → 6289.bundle.a946bfc5.js} +99 -30
- package/dist/{8699.bundle.c00d7ae1.js → 6507.bundle.1b793bf6.js} +13 -8
- package/dist/{6847.bundle.7fd47a86.js → 6847.bundle.5a087332.js} +27 -4
- package/dist/{7526.bundle.1803d311.js → 7526.bundle.ed8b2bf3.js} +6 -2
- package/dist/{7604.bundle.2d399cf0.js → 7604.bundle.e703a54d.js} +1 -1
- package/dist/{7464.bundle.36e9c349.js → 8037.bundle.8b5f4114.js} +2753 -495
- package/dist/{9187.bundle.134a42b2.js → 9187.bundle.2a03db07.js} +6 -6
- package/dist/{9481.bundle.65162f9d.js → 9481.bundle.6fe2a588.js} +4 -4
- package/dist/{9620.bundle.e098e167.js → 9620.bundle.36e4615d.js} +11 -6
- package/dist/{9841.bundle.74186de7.js → 9841.bundle.e74fc41c.js} +2 -2
- package/dist/{9886.bundle.5c1ff898.js → 9886.bundle.cabb4a24.js} +2 -2
- package/dist/{9948.bundle.29548cec.js → 9948.bundle.b4ff610d.js} +2 -2
- package/dist/app-config.js +2 -0
- package/dist/{app.bundle.58791784.js → app.bundle.af846c60.js} +83 -45
- package/dist/{compute.bundle.09be4c13.js → compute.bundle.19cf1283.js} +10 -10
- package/dist/customizations/gpu/high-texture-4096.jsonc +9 -0
- package/dist/customizations/gpu/high.jsonc +8 -0
- package/dist/customizations/gpu/low-tablet.jsonc +7 -0
- package/dist/customizations/gpu/low.jsonc +7 -0
- package/dist/customizations/gpu/medium.jsonc +7 -0
- package/dist/customizations/index.html +39 -0
- package/dist/{histogram-worker.bundle.a8bb873a.js → histogram-worker.bundle.58e60d7c.js} +4 -4
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.1eeebcfe.js → interpolation.bundle.7b3850e6.js} +7 -7
- package/dist/{polySeg.bundle.5bc24361.js → polySeg.bundle.157e1e17.js} +11 -11
- package/dist/sw.js +1 -1
- package/package.json +6 -6
|
@@ -3393,20 +3393,54 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3393
3393
|
/* import */ var _init_js__rspack_import_1 = __webpack_require__(90934);
|
|
3394
3394
|
/* import */ var _kitware_vtk_js_Rendering_Core_VolumeMapper_js__rspack_import_2 = __webpack_require__(21067);
|
|
3395
3395
|
/* import */ var _kitware_vtk_js_Common_Core_DataArray_js__rspack_import_3 = __webpack_require__(84472);
|
|
3396
|
+
/* import */ var _kitware_vtk_js_Common_DataModel_BoundingBox_js__rspack_import_4 = __webpack_require__(28710);
|
|
3396
3397
|
|
|
3397
3398
|
|
|
3398
3399
|
|
|
3399
3400
|
|
|
3401
|
+
|
|
3402
|
+
const MAXIMUM_SAMPLES_PER_RAY = 4000;
|
|
3403
|
+
function sampleDistanceOf(imageData, texture, multiplier = (0,_init_js__rspack_import_1/* .getConfiguration */.D0)().rendering?.volumeRendering
|
|
3404
|
+
?.sampleDistanceMultiplier || 1) {
|
|
3405
|
+
const grid = texture?.getGrid?.();
|
|
3406
|
+
const spacing = grid?.spacing ?? imageData.getSpacing();
|
|
3407
|
+
const distance = (multiplier * (spacing[0] + spacing[1] + spacing[2])) / 6;
|
|
3408
|
+
if (!(0,_init_js__rspack_import_1/* .getLossyDownsampling */.GR)().final) {
|
|
3409
|
+
return distance;
|
|
3410
|
+
}
|
|
3411
|
+
const diagonal = _kitware_vtk_js_Common_DataModel_BoundingBox_js__rspack_import_4/* ["default"].getDiagonalLength */.Ay.getDiagonalLength(imageData.getBounds());
|
|
3412
|
+
return Math.max(distance, diagonal / (MAXIMUM_SAMPLES_PER_RAY - 1));
|
|
3413
|
+
}
|
|
3414
|
+
const idleSampleDistanceMultipliers = new WeakMap();
|
|
3415
|
+
function setIdleSampleDistanceMultiplier(mapper, multiplier) {
|
|
3416
|
+
idleSampleDistanceMultipliers.set(mapper, Number.isFinite(multiplier) ? Math.max(multiplier, 0.001) : 1);
|
|
3417
|
+
}
|
|
3418
|
+
function idleSampleDistanceMultiplierOf(mapper) {
|
|
3419
|
+
return (idleSampleDistanceMultipliers.get(mapper) ??
|
|
3420
|
+
((0,_init_js__rspack_import_1/* .getConfiguration */.D0)().rendering?.volumeRendering?.sampleDistanceMultiplier ||
|
|
3421
|
+
1));
|
|
3422
|
+
}
|
|
3423
|
+
function sampleDistanceRatiosOf(mapper, texture = mapper?.getScalarTexture?.()) {
|
|
3424
|
+
const current = mapper?.getSampleDistance?.();
|
|
3425
|
+
const imageData = mapper?.getInputData?.();
|
|
3426
|
+
if (!imageData || !(current > 0)) {
|
|
3427
|
+
return { current: 1, idle: 1 };
|
|
3428
|
+
}
|
|
3429
|
+
const baseline = sampleDistanceOf(imageData, texture, 1);
|
|
3430
|
+
if (!(baseline > 0)) {
|
|
3431
|
+
return { current: 1, idle: 1 };
|
|
3432
|
+
}
|
|
3433
|
+
const idle = sampleDistanceOf(imageData, texture, idleSampleDistanceMultiplierOf(mapper));
|
|
3434
|
+
return { current: current / baseline, idle: idle / baseline };
|
|
3435
|
+
}
|
|
3400
3436
|
function createVolumeMapper(imageData, vtkOpenGLTexture) {
|
|
3401
3437
|
const volumeMapper = _vtkClasses_index_js__rspack_import_0/* .vtkSharedVolumeMapper.newInstance */.wu.newInstance();
|
|
3402
3438
|
volumeMapper.setInputData(imageData);
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
volumeMapper.setSampleDistance(sampleDistance);
|
|
3409
|
-
volumeMapper.setScalarTexture(vtkOpenGLTexture);
|
|
3439
|
+
volumeMapper.setMaximumSamplesPerRay(MAXIMUM_SAMPLES_PER_RAY);
|
|
3440
|
+
volumeMapper.setSampleDistance(sampleDistanceOf(imageData, vtkOpenGLTexture));
|
|
3441
|
+
if (vtkOpenGLTexture) {
|
|
3442
|
+
volumeMapper.setScalarTexture(vtkOpenGLTexture);
|
|
3443
|
+
}
|
|
3410
3444
|
return volumeMapper;
|
|
3411
3445
|
}
|
|
3412
3446
|
function convertMapperToNotSharedMapper(sharedMapper) {
|
|
@@ -3427,8 +3461,12 @@ function convertMapperToNotSharedMapper(sharedMapper) {
|
|
|
3427
3461
|
}
|
|
3428
3462
|
|
|
3429
3463
|
__webpack_require__.d(__webpack_exports__, {
|
|
3430
|
-
|
|
3431
|
-
|
|
3464
|
+
$U: () => (setIdleSampleDistanceMultiplier),
|
|
3465
|
+
Ax: () => (idleSampleDistanceMultiplierOf),
|
|
3466
|
+
Ay: () => (createVolumeMapper),
|
|
3467
|
+
h6: () => (sampleDistanceOf),
|
|
3468
|
+
hA: () => (convertMapperToNotSharedMapper),
|
|
3469
|
+
nr: () => (sampleDistanceRatiosOf)
|
|
3432
3470
|
});
|
|
3433
3471
|
|
|
3434
3472
|
|
|
@@ -4229,8 +4229,9 @@ const getViewportByViewportId = (viewportId) => {
|
|
|
4229
4229
|
const enabledElement = (0,_cornerstonejs_core__rspack_import_0.getEnabledElementByViewportId)(viewportId);
|
|
4230
4230
|
return enabledElement?.viewport ?? undefined;
|
|
4231
4231
|
};
|
|
4232
|
+
const segmentationsWithStaleVolume = new Set();
|
|
4232
4233
|
const onLabelmapSegmentationDataModified = function (evt) {
|
|
4233
|
-
const { segmentationId, modifiedSlicesToUse } = evt.detail;
|
|
4234
|
+
const { segmentationId, modifiedSlicesToUse, voxelsUnchanged } = evt.detail;
|
|
4234
4235
|
const { representationData } = (0,_stateManagement_segmentation_getSegmentation_js__rspack_import_4/* .getSegmentation */.T)(segmentationId);
|
|
4235
4236
|
const viewportIds = (0,_stateManagement_segmentation_getViewportIdsWithSegmentation_js__rspack_import_5/* .getViewportIdsWithSegmentation */.P)(segmentationId);
|
|
4236
4237
|
const volumeViewportIds = [];
|
|
@@ -4266,11 +4267,16 @@ const onLabelmapSegmentationDataModified = function (evt) {
|
|
|
4266
4267
|
const hasVolumeViewport = volumeViewportIds.length > 0;
|
|
4267
4268
|
const hasStackViewport = stackViewportIds.length > 0;
|
|
4268
4269
|
const hasBothStackAndVolume = hasVolumeViewport && hasStackViewport;
|
|
4270
|
+
if (!hasVolumeViewport && !voxelsUnchanged) {
|
|
4271
|
+
segmentationsWithStaleVolume.add(segmentationId);
|
|
4272
|
+
}
|
|
4269
4273
|
if (hasVolumeViewport) {
|
|
4274
|
+
const volumeIsStale = segmentationsWithStaleVolume.delete(segmentationId);
|
|
4270
4275
|
(0,_performVolumeLabelmapUpdate_js__rspack_import_2/* .performVolumeLabelmapUpdate */.r)({
|
|
4271
|
-
modifiedSlicesToUse: hasBothStackAndVolume ? [] : modifiedSlicesToUse,
|
|
4276
|
+
modifiedSlicesToUse: hasBothStackAndVolume || volumeIsStale ? [] : modifiedSlicesToUse,
|
|
4272
4277
|
representationData,
|
|
4273
4278
|
type: _enums_index_js__rspack_import_1.SegmentationRepresentations.Labelmap,
|
|
4279
|
+
voxelsUnchanged: Boolean(voxelsUnchanged) && !volumeIsStale,
|
|
4274
4280
|
});
|
|
4275
4281
|
}
|
|
4276
4282
|
if (hasStackViewport) {
|
|
@@ -4336,11 +4342,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4336
4342
|
/* import */ var _stateManagement_segmentation_helpers_labelmapSegmentationState_js__rspack_import_1 = __webpack_require__(92996);
|
|
4337
4343
|
|
|
4338
4344
|
|
|
4339
|
-
function performVolumeLabelmapUpdate({ modifiedSlicesToUse, representationData, type, }) {
|
|
4345
|
+
function performVolumeLabelmapUpdate({ modifiedSlicesToUse, representationData, type, voxelsUnchanged = false, }) {
|
|
4340
4346
|
const labelmapData = representationData[type];
|
|
4341
4347
|
const volumes = getVolumesToUpdate(labelmapData);
|
|
4342
4348
|
volumes.forEach((segmentationVolume) => {
|
|
4343
|
-
const { imageData,
|
|
4349
|
+
const { imageData, voxelManager } = segmentationVolume;
|
|
4350
|
+
if (voxelsUnchanged) {
|
|
4351
|
+
triggerVolumeModified(segmentationVolume);
|
|
4352
|
+
return;
|
|
4353
|
+
}
|
|
4344
4354
|
let slicesToUpdate;
|
|
4345
4355
|
if (modifiedSlicesToUse?.length > 0) {
|
|
4346
4356
|
slicesToUpdate = modifiedSlicesToUse;
|
|
@@ -4349,20 +4359,24 @@ function performVolumeLabelmapUpdate({ modifiedSlicesToUse, representationData,
|
|
|
4349
4359
|
const numSlices = imageData.getDimensions()[2];
|
|
4350
4360
|
slicesToUpdate = [...Array(numSlices).keys()];
|
|
4351
4361
|
}
|
|
4352
|
-
|
|
4362
|
+
segmentationVolume.markFrameModified &&
|
|
4353
4363
|
slicesToUpdate.forEach((i) => {
|
|
4354
|
-
|
|
4364
|
+
segmentationVolume.markFrameModified(i);
|
|
4355
4365
|
});
|
|
4356
4366
|
voxelManager?.invalidateCache?.();
|
|
4357
4367
|
imageData.modified();
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4368
|
+
triggerVolumeModified(segmentationVolume);
|
|
4369
|
+
});
|
|
4370
|
+
}
|
|
4371
|
+
function triggerVolumeModified(segmentationVolume) {
|
|
4372
|
+
const { imageData } = segmentationVolume;
|
|
4373
|
+
const numberOfFrames = segmentationVolume.imageIds?.length ?? imageData.getDimensions()[2] ?? 0;
|
|
4374
|
+
const FrameOfReferenceUID = segmentationVolume.metadata?.FrameOfReferenceUID ?? '';
|
|
4375
|
+
(0,_cornerstonejs_core__rspack_import_0.triggerEvent)(_cornerstonejs_core__rspack_import_0.eventTarget, _cornerstonejs_core__rspack_import_0.Enums.Events.IMAGE_VOLUME_MODIFIED, {
|
|
4376
|
+
volumeId: segmentationVolume.volumeId,
|
|
4377
|
+
FrameOfReferenceUID,
|
|
4378
|
+
numberOfFrames,
|
|
4379
|
+
framesProcessed: numberOfFrames,
|
|
4366
4380
|
});
|
|
4367
4381
|
}
|
|
4368
4382
|
function getVolumesToUpdate(labelmapData) {
|
|
@@ -5170,7 +5184,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
5170
5184
|
store: () => (/* reexport module object */ _store_index_js__rspack_import_1),
|
|
5171
5185
|
synchronizers: () => (/* reexport module object */ _synchronizers_index_js__rspack_import_5),
|
|
5172
5186
|
utilities: () => (/* reexport module object */ _utilities_index_js__rspack_import_7),
|
|
5173
|
-
version: () => (/* reexport safe */ (/* inlined export _version_js__rspack_import_4 */"5.
|
|
5187
|
+
version: () => (/* reexport safe */ (/* inlined export _version_js__rspack_import_4 */"5.17.1"))
|
|
5174
5188
|
});
|
|
5175
5189
|
|
|
5176
5190
|
|
|
@@ -7515,11 +7529,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
7515
7529
|
|
|
7516
7530
|
|
|
7517
7531
|
|
|
7518
|
-
function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse, segmentIndex) {
|
|
7532
|
+
function triggerSegmentationDataModified(segmentationId, modifiedSlicesToUse, segmentIndex, { voxelsUnchanged } = {}) {
|
|
7519
7533
|
const eventDetail = {
|
|
7520
7534
|
segmentationId,
|
|
7521
7535
|
modifiedSlicesToUse,
|
|
7522
7536
|
segmentIndex,
|
|
7537
|
+
...(voxelsUnchanged ? { voxelsUnchanged } : {}),
|
|
7523
7538
|
};
|
|
7524
7539
|
(0,_utilities_segmentation_utilities_js__rspack_import_2/* .setSegmentationDirty */.HM)(segmentationId);
|
|
7525
7540
|
(0,_cornerstonejs_core__rspack_import_0.triggerEvent)(_cornerstonejs_core__rspack_import_0.eventTarget, _enums_index_js__rspack_import_1.Events.SEGMENTATION_DATA_MODIFIED, eventDetail);
|
|
@@ -18761,7 +18776,9 @@ class TrackballRotateTool extends _base_index_js__rspack_import_4/* .BaseTool */
|
|
|
18761
18776
|
}
|
|
18762
18777
|
const originalSampleDistance = mapper.getSampleDistance();
|
|
18763
18778
|
if (!this._hasResolutionChanged) {
|
|
18764
|
-
const
|
|
18779
|
+
const rotateSampleDistanceFactor = (0,_cornerstonejs_core__rspack_import_2.getLossyDownsampling)().interactive
|
|
18780
|
+
? this.configuration.rotateSampleDistanceFactor
|
|
18781
|
+
: 1;
|
|
18765
18782
|
mapper.setSampleDistance(originalSampleDistance * rotateSampleDistanceFactor);
|
|
18766
18783
|
this._hasResolutionChanged = true;
|
|
18767
18784
|
if (this.cleanUp !== null) {
|
|
@@ -19780,7 +19797,9 @@ class VolumeCroppingTool extends _base_index_js__rspack_import_7/* .BaseTool */.
|
|
|
19780
19797
|
}
|
|
19781
19798
|
const originalSampleDistance = mapper.getSampleDistance();
|
|
19782
19799
|
if (!this._hasResolutionChanged) {
|
|
19783
|
-
const
|
|
19800
|
+
const rotateSampleDistanceFactor = (0,_cornerstonejs_core__rspack_import_8.getLossyDownsampling)().interactive
|
|
19801
|
+
? this.configuration.rotateSampleDistanceFactor
|
|
19802
|
+
: 1;
|
|
19784
19803
|
mapper.setSampleDistance(originalSampleDistance * rotateSampleDistanceFactor);
|
|
19785
19804
|
this._hasResolutionChanged = true;
|
|
19786
19805
|
if (this.cleanUp !== null) {
|
|
@@ -38416,7 +38435,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38416
38435
|
|
|
38417
38436
|
|
|
38418
38437
|
|
|
38419
|
-
function getStrategyDataForVolumeViewport({ operationData }) {
|
|
38438
|
+
function getStrategyDataForVolumeViewport({ operationData, }) {
|
|
38420
38439
|
const { volumeId } = operationData;
|
|
38421
38440
|
if (!volumeId) {
|
|
38422
38441
|
const event = new CustomEvent(_cornerstonejs_core__rspack_import_0.Enums.Events.ERROR_EVENT, {
|
|
@@ -47766,6 +47785,9 @@ function prefetch(element, priority = 0) {
|
|
|
47766
47785
|
cs3dLogger.warn('CornerstoneTools.stackPrefetch: No images in stack.');
|
|
47767
47786
|
return;
|
|
47768
47787
|
}
|
|
47788
|
+
if ((0,_stackPrefetchUtils_js__rspack_import_2/* .isLoadedByProgressiveVolume */.yN)(stack.imageIds)) {
|
|
47789
|
+
return;
|
|
47790
|
+
}
|
|
47769
47791
|
const stackPrefetchData = (0,_state_js__rspack_import_1/* .getToolState */.k)(element);
|
|
47770
47792
|
if (!stackPrefetchData) {
|
|
47771
47793
|
return;
|
|
@@ -47983,6 +48005,20 @@ let configuration = {
|
|
|
47983
48005
|
};
|
|
47984
48006
|
let resetPrefetchTimeout;
|
|
47985
48007
|
const resetPrefetchDelay = 10;
|
|
48008
|
+
const loadingCancelledHandlers = new WeakMap();
|
|
48009
|
+
function getLoadingCancelledHandler(element) {
|
|
48010
|
+
return (evt) => {
|
|
48011
|
+
const { volumeId } = evt.detail;
|
|
48012
|
+
try {
|
|
48013
|
+
const imageId = (0,_stackPrefetchUtils_js__rspack_import_2/* .getStackData */.bV)(element)?.imageIds[0];
|
|
48014
|
+
if (_cornerstonejs_core__rspack_import_0.cache.getVolume(volumeId)?.getImageIdIndex(imageId) !== undefined) {
|
|
48015
|
+
prefetch(element);
|
|
48016
|
+
}
|
|
48017
|
+
}
|
|
48018
|
+
catch {
|
|
48019
|
+
}
|
|
48020
|
+
};
|
|
48021
|
+
}
|
|
47986
48022
|
function prefetch(element) {
|
|
47987
48023
|
const stackPrefetchData = (0,_state_js__rspack_import_1/* .getToolState */.k)(element);
|
|
47988
48024
|
if (!stackPrefetchData) {
|
|
@@ -47994,6 +48030,9 @@ function prefetch(element) {
|
|
|
47994
48030
|
cs3dLogger.warn('CornerstoneTools.stackPrefetch: No images in stack.');
|
|
47995
48031
|
return;
|
|
47996
48032
|
}
|
|
48033
|
+
if ((0,_stackPrefetchUtils_js__rspack_import_2/* .isLoadedByProgressiveVolume */.yN)(stack.imageIds)) {
|
|
48034
|
+
return;
|
|
48035
|
+
}
|
|
47997
48036
|
const { currentImageIdIndex } = stack;
|
|
47998
48037
|
stackPrefetch.enabled =
|
|
47999
48038
|
stackPrefetch.enabled && (stackPrefetch.indicesToRequest?.length ?? 0) > 0;
|
|
@@ -48118,12 +48157,21 @@ function enable(element) {
|
|
|
48118
48157
|
const promiseRemovedHandler = (0,_stackPrefetchUtils_js__rspack_import_2/* .getPromiseRemovedHandler */.m0)(element);
|
|
48119
48158
|
_cornerstonejs_core__rspack_import_0.eventTarget.removeEventListener(_cornerstonejs_core__rspack_import_0.Enums.Events.IMAGE_CACHE_IMAGE_REMOVED, promiseRemovedHandler);
|
|
48120
48159
|
_cornerstonejs_core__rspack_import_0.eventTarget.addEventListener(_cornerstonejs_core__rspack_import_0.Enums.Events.IMAGE_CACHE_IMAGE_REMOVED, promiseRemovedHandler);
|
|
48160
|
+
removeLoadingCancelledHandler(element);
|
|
48161
|
+
const loadingCancelledHandler = getLoadingCancelledHandler(element);
|
|
48162
|
+
loadingCancelledHandlers.set(element, loadingCancelledHandler);
|
|
48163
|
+
_cornerstonejs_core__rspack_import_0.eventTarget.addEventListener(_cornerstonejs_core__rspack_import_0.Enums.Events.IMAGE_VOLUME_LOADING_CANCELLED, loadingCancelledHandler);
|
|
48164
|
+
}
|
|
48165
|
+
function removeLoadingCancelledHandler(element) {
|
|
48166
|
+
_cornerstonejs_core__rspack_import_0.eventTarget.removeEventListener(_cornerstonejs_core__rspack_import_0.Enums.Events.IMAGE_VOLUME_LOADING_CANCELLED, loadingCancelledHandlers.get(element));
|
|
48167
|
+
loadingCancelledHandlers.delete(element);
|
|
48121
48168
|
}
|
|
48122
48169
|
function disable(element) {
|
|
48123
48170
|
clearTimeout(resetPrefetchTimeout);
|
|
48124
48171
|
element.removeEventListener(_cornerstonejs_core__rspack_import_0.Enums.Events.STACK_NEW_IMAGE, onImageUpdated);
|
|
48125
48172
|
const promiseRemovedHandler = (0,_stackPrefetchUtils_js__rspack_import_2/* .getPromiseRemovedHandler */.m0)(element);
|
|
48126
48173
|
_cornerstonejs_core__rspack_import_0.eventTarget.removeEventListener(_cornerstonejs_core__rspack_import_0.Enums.Events.IMAGE_CACHE_IMAGE_REMOVED, promiseRemovedHandler);
|
|
48174
|
+
removeLoadingCancelledHandler(element);
|
|
48127
48175
|
const stackPrefetchData = (0,_state_js__rspack_import_1/* .getToolState */.k)(element);
|
|
48128
48176
|
if (stackPrefetchData && stackPrefetchData.indicesToRequest.length) {
|
|
48129
48177
|
stackPrefetchData.enabled = false;
|
|
@@ -48220,6 +48268,10 @@ function getPromiseRemovedHandler(element) {
|
|
|
48220
48268
|
stackPrefetchData.indicesToRequest.push(imageIdIndex);
|
|
48221
48269
|
};
|
|
48222
48270
|
}
|
|
48271
|
+
function isLoadedByProgressiveVolume(imageIds) {
|
|
48272
|
+
const volume = _cornerstonejs_core__rspack_import_0.cache.getVolumeContainingImageId(imageIds[0])?.volume;
|
|
48273
|
+
return !!volume?.isLoadingProgressively?.();
|
|
48274
|
+
}
|
|
48223
48275
|
const clearFromImageIds = (stack) => {
|
|
48224
48276
|
const imageIdSet = new Set(stack.imageIds);
|
|
48225
48277
|
return (requestDetails) => requestDetails.type !== requestType ||
|
|
@@ -48230,6 +48282,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
48230
48282
|
bV: () => (getStackData),
|
|
48231
48283
|
m0: () => (getPromiseRemovedHandler),
|
|
48232
48284
|
y1: () => (range),
|
|
48285
|
+
yN: () => (isLoadedByProgressiveVolume),
|
|
48233
48286
|
zo: () => (nearestIndex)
|
|
48234
48287
|
}, {
|
|
48235
48288
|
Pg: clearFromImageIds,
|
|
@@ -49277,7 +49330,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
49277
49330
|
|
|
49278
49331
|
},
|
|
49279
49332
|
72563() {
|
|
49280
|
-
const version = '5.
|
|
49333
|
+
const version = '5.17.1';
|
|
49281
49334
|
|
|
49282
49335
|
|
|
49283
49336
|
},
|
|
@@ -548,8 +548,8 @@ function getCustomizationModule() {
|
|
|
548
548
|
var jsx_runtime = __webpack_require__(31085);
|
|
549
549
|
// EXTERNAL MODULE: ../../node_modules/react/index.js
|
|
550
550
|
var react = __webpack_require__(14041);
|
|
551
|
-
// EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx +
|
|
552
|
-
var src = __webpack_require__(
|
|
551
|
+
// EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx + 217 modules
|
|
552
|
+
var src = __webpack_require__(87407);
|
|
553
553
|
;// CONCATENATED MODULE: ../../extensions/test-extension/src/getPanelModule.tsx
|
|
554
554
|
|
|
555
555
|
|
|
@@ -6,7 +6,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6
6
|
/* import */ var react_compiler_runtime__rspack_import_1 = __webpack_require__(54005);
|
|
7
7
|
/* import */ var react__rspack_import_2 = __webpack_require__(14041);
|
|
8
8
|
/* import */ var _ohif_ui_next__rspack_import_3 = __webpack_require__(2727);
|
|
9
|
-
/* import */ var _ohif_extension_cornerstone__rspack_import_4 = __webpack_require__(
|
|
9
|
+
/* import */ var _ohif_extension_cornerstone__rspack_import_4 = __webpack_require__(87407);
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["rspackChunk_ohif_app"] ||= []).push([[
|
|
2
|
+
(globalThis["rspackChunk_ohif_app"] ||= []).push([[2382], {
|
|
3
3
|
5900(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
|
-
/* import */ var _cornerstonejs_adapters__rspack_import_0 = __webpack_require__(
|
|
4
|
+
/* import */ var _cornerstonejs_adapters__rspack_import_0 = __webpack_require__(24694);
|
|
5
5
|
|
|
6
6
|
const { CodeScheme: Cornerstone3DCodeScheme } = _cornerstonejs_adapters__rspack_import_0/* .adaptersSR.Cornerstone3D */.QX.Cornerstone3D;
|
|
7
7
|
const SCOORDTypes = {
|
|
@@ -52,7 +52,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
78589(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
56
56
|
|
|
57
57
|
// EXPORTS
|
|
58
58
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -72,10 +72,10 @@ var react = __webpack_require__(14041);
|
|
|
72
72
|
var src = __webpack_require__(24178);
|
|
73
73
|
// EXTERNAL MODULE: ../i18n/src/index.js + 287 modules
|
|
74
74
|
var i18n_src = __webpack_require__(65778);
|
|
75
|
-
// EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx +
|
|
76
|
-
var cornerstone_src = __webpack_require__(
|
|
77
|
-
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/adapters/dist/esm/index.js +
|
|
78
|
-
var esm = __webpack_require__(
|
|
75
|
+
// EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx + 217 modules
|
|
76
|
+
var cornerstone_src = __webpack_require__(87407);
|
|
77
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 77 modules
|
|
78
|
+
var esm = __webpack_require__(24694);
|
|
79
79
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/tools/dist/esm/index.js
|
|
80
80
|
var dist_esm = __webpack_require__(17819);
|
|
81
81
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/index.js
|
|
@@ -1101,6 +1101,8 @@ function onModeEnter({ servicesManager }) {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
|
+
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/adapters/dist/esm/version.js
|
|
1105
|
+
var version = __webpack_require__(69544);
|
|
1104
1106
|
;// CONCATENATED MODULE: ../../extensions/cornerstone-dicom-sr/src/utils/getFilteredCornerstoneToolState.ts
|
|
1105
1107
|
|
|
1106
1108
|
|
|
@@ -1176,6 +1178,36 @@ function getFilteredCornerstoneToolState(measurementData, additionalFindingTypes
|
|
|
1176
1178
|
}
|
|
1177
1179
|
/* export default */ var utils_getFilteredCornerstoneToolState = (getFilteredCornerstoneToolState);
|
|
1178
1180
|
|
|
1181
|
+
;// CONCATENATED MODULE: ../../extensions/cornerstone-dicom-sr/src/utils/generateReport.ts
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
const { MeasurementReport: generateReport_MeasurementReport } = esm/* .adaptersSR.Cornerstone3D */.QX.Cornerstone3D; /**
|
|
1188
|
+
* Builds the naturalized SR dataset of the given measurements.
|
|
1189
|
+
*
|
|
1190
|
+
* @param measurementData An array of measurements from the measurements service
|
|
1191
|
+
* that you wish to serialize.
|
|
1192
|
+
* @param additionalFindingTypes toolTypes that should be stored with labels as Findings
|
|
1193
|
+
* @param options Naturalized DICOM JSON headers to merge into the displaySet.
|
|
1194
|
+
* The writer header (`Manufacturer`, `ManufacturerModelName`, `SoftwareVersions`)
|
|
1195
|
+
* defaults to OHIF and the adapters version; a value in `options` wins.
|
|
1196
|
+
*/
|
|
1197
|
+
function generateReport(measurementData, additionalFindingTypes, options = {}) {
|
|
1198
|
+
const filteredToolState = utils_getFilteredCornerstoneToolState(measurementData, additionalFindingTypes);
|
|
1199
|
+
const report = generateReport_MeasurementReport.generateReport(filteredToolState, core_dist_esm.metaData, {
|
|
1200
|
+
...options,
|
|
1201
|
+
...src/* .utils.getOhifWriterHeader */.Wp.getOhifWriterHeader('@cornerstonejs/adapters', 'CS3D', (/* inlined export .version */"5.17.1"), options)
|
|
1202
|
+
});
|
|
1203
|
+
const { dataset } = report; // Set the default character set as UTF-8
|
|
1204
|
+
// https://dicom.innolitics.com/ciods/nm-image/sop-common/00080005
|
|
1205
|
+
if (typeof dataset.SpecificCharacterSet === 'undefined') {
|
|
1206
|
+
dataset.SpecificCharacterSet = 'ISO_IR 192';
|
|
1207
|
+
}
|
|
1208
|
+
return dataset;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1179
1211
|
;// CONCATENATED MODULE: ../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js
|
|
1180
1212
|
|
|
1181
1213
|
const { CodeScheme: getLabelFromDCMJSImportedToolData_Cornerstone3DCodeScheme } = esm/* .adaptersSR.Cornerstone3D */.QX.Cornerstone3D; /**
|
|
@@ -1519,26 +1551,7 @@ function choosePoints(points) {
|
|
|
1519
1551
|
|
|
1520
1552
|
|
|
1521
1553
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
const { MeasurementReport: commandsModule_MeasurementReport } = esm/* .adaptersSR.Cornerstone3D */.QX.Cornerstone3D;
|
|
1525
|
-
const { log } = src/* ["default"] */.Ay; /**
|
|
1526
|
-
* @param measurementData An array of measurements from the measurements service
|
|
1527
|
-
* that you wish to serialize.
|
|
1528
|
-
* @param additionalFindingTypes toolTypes that should be stored with labels as Findings
|
|
1529
|
-
* @param options Naturalized DICOM JSON headers to merge into the displaySet.
|
|
1530
|
-
*
|
|
1531
|
-
*/
|
|
1532
|
-
const _generateReport = (measurementData, additionalFindingTypes, options = {})=>{
|
|
1533
|
-
const filteredToolState = utils_getFilteredCornerstoneToolState(measurementData, additionalFindingTypes);
|
|
1534
|
-
const report = commandsModule_MeasurementReport.generateReport(filteredToolState, core_dist_esm.metaData, options);
|
|
1535
|
-
const { dataset } = report; // Set the default character set as UTF-8
|
|
1536
|
-
// https://dicom.innolitics.com/ciods/nm-image/sop-common/00080005
|
|
1537
|
-
if (typeof dataset.SpecificCharacterSet === 'undefined') {
|
|
1538
|
-
dataset.SpecificCharacterSet = 'ISO_IR 192';
|
|
1539
|
-
}
|
|
1540
|
-
return dataset;
|
|
1541
|
-
};
|
|
1554
|
+
const { log } = src/* ["default"] */.Ay;
|
|
1542
1555
|
const commandsModule = (props)=>{
|
|
1543
1556
|
const { servicesManager, extensionManager, commandsManager } = props;
|
|
1544
1557
|
const { customizationService } = servicesManager.services;
|
|
@@ -1585,7 +1598,7 @@ const commandsModule = (props)=>{
|
|
|
1585
1598
|
// series takes that series' date and time, which the adapter copies
|
|
1586
1599
|
// from the predecessor instance.
|
|
1587
1600
|
const { date, time } = src/* .utils.getCurrentDicomDateTime */.Wp.getCurrentDicomDateTime();
|
|
1588
|
-
const naturalizedReport =
|
|
1601
|
+
const naturalizedReport = generateReport(measurementData, additionalFindingTypes, {
|
|
1589
1602
|
...options.predecessorImageId ? {} : {
|
|
1590
1603
|
SeriesDate: date,
|
|
1591
1604
|
SeriesTime: time
|
|
@@ -1656,8 +1656,8 @@ function WorkflowPanel(t0) {
|
|
|
1656
1656
|
|
|
1657
1657
|
// EXTERNAL MODULE: ../../extensions/default/src/index.ts + 155 modules
|
|
1658
1658
|
var default_src = __webpack_require__(40546);
|
|
1659
|
-
// EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx +
|
|
1660
|
-
var cornerstone_src = __webpack_require__(
|
|
1659
|
+
// EXTERNAL MODULE: ../../extensions/cornerstone/src/index.tsx + 217 modules
|
|
1660
|
+
var cornerstone_src = __webpack_require__(87407);
|
|
1661
1661
|
;// CONCATENATED MODULE: ../../extensions/cornerstone-dynamic-volume/src/panels/DynamicExport.tsx
|
|
1662
1662
|
|
|
1663
1663
|
|