@ohif/app 3.7.0-beta.55 → 3.7.0-beta.57
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/{654.bundle.1faeb72b7f4c02dcceef.js → 654.bundle.a2d29dc0d277100f8bee.js} +2 -2
- package/dist/{678.bundle.b85860f14e6863b98b36.js → 678.bundle.9995ff30e61c63ed6e9b.js} +1 -3
- package/dist/{754.bundle.8a16fc8ad21fe00c2e15.js → 754.bundle.1884c227b361aefa66b4.js} +49 -23
- package/dist/{925.bundle.22f021ff05c44ae74f24.js → 925.bundle.7b06521fc75e0d3f71c3.js} +155 -74
- package/dist/{app.bundle.98c9c0231de30d41e2ae.js → app.bundle.583f3a50698617e6ce16.js} +5 -5
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +19 -19
- /package/dist/{12.bundle.ca7a24d331b606d9ca10.js → 12.bundle.e700b4f7fed061124c30.js} +0 -0
- /package/dist/{128.bundle.b31521216b013d9b9796.js → 128.bundle.7a19676226ebadc64139.js} +0 -0
- /package/dist/{150.bundle.2f14b8168308c78da2da.js → 150.bundle.283cf42533b034afbc60.js} +0 -0
- /package/dist/{236.bundle.b0539dc4a0c77ec85c45.js → 236.bundle.269d01bfd535b5114980.js} +0 -0
- /package/dist/{281.bundle.39ac590a6fe5ecc651b8.js → 281.bundle.97a1fa1cf2b71bbfbba1.js} +0 -0
- /package/dist/{30.bundle.67698f353903b49324b2.js → 30.bundle.f19f9496718d60d1c2f9.js} +0 -0
- /package/dist/{348.bundle.5943d65f9eb1b2e0ebb0.js → 348.bundle.2e98107bfbeb8acaf2d6.js} +0 -0
- /package/dist/{359.bundle.4d9bd4a4662735d644ee.js → 359.bundle.13aa30ac6c8f4d94d1c5.js} +0 -0
- /package/dist/{378.bundle.6409ef71b62857d24425.js → 378.bundle.6cc7898097ba34752e81.js} +0 -0
- /package/dist/{410.bundle.aa6155752bc25f014971.js → 410.bundle.819f12d4a10a16f66582.js} +0 -0
- /package/dist/{506.bundle.e29274fc7c7eaf63870b.js → 506.bundle.a283db0a482175fbb3ac.js} +0 -0
- /package/dist/{663.bundle.1a6e44438e332f9e33a0.js → 663.bundle.751d2d27e38cd81e4ecb.js} +0 -0
- /package/dist/{782.bundle.7f8f484e071edf4c064e.js → 782.bundle.5209b8b8d564411c6375.js} +0 -0
- /package/dist/{814.bundle.5274d0603448396e0bb0.js → 814.bundle.335d0f516f0bea5a34a5.js} +0 -0
|
@@ -2211,8 +2211,8 @@ function ViewerLayout(_ref) {
|
|
|
2211
2211
|
hotkeyDefinitions,
|
|
2212
2212
|
hotkeyDefaults
|
|
2213
2213
|
} = hotkeysManager;
|
|
2214
|
-
const versionNumber = "3.7.0-beta.
|
|
2215
|
-
const commitHash = "
|
|
2214
|
+
const versionNumber = "3.7.0-beta.57";
|
|
2215
|
+
const commitHash = "65b49aeb1b5f38224e4892bdf32453500ee351f8";
|
|
2216
2216
|
const menuOptions = [{
|
|
2217
2217
|
title: t('Header:About'),
|
|
2218
2218
|
icon: 'info',
|
|
@@ -110,7 +110,7 @@ function initWADOImageLoader(userAuthenticationService, appConfig, extensionMana
|
|
|
110
110
|
function destroy() {
|
|
111
111
|
// Note: we don't want to call .terminate on the webWorkerManager since
|
|
112
112
|
// that resets the config
|
|
113
|
-
const webWorkers =
|
|
113
|
+
const webWorkers = webWorkerManager.webWorkers;
|
|
114
114
|
for (let i = 0; i < webWorkers.length; i++) {
|
|
115
115
|
webWorkers[i].worker.terminate();
|
|
116
116
|
}
|
|
@@ -8844,7 +8844,6 @@ function src_extends() { src_extends = Object.assign ? Object.assign.bind() : fu
|
|
|
8844
8844
|
|
|
8845
8845
|
|
|
8846
8846
|
|
|
8847
|
-
|
|
8848
8847
|
|
|
8849
8848
|
|
|
8850
8849
|
const Component = /*#__PURE__*/react.lazy(() => {
|
|
@@ -8871,7 +8870,6 @@ const cornerstoneExtension = {
|
|
|
8871
8870
|
esm.imageLoadPoolManager.clearRequestStack(type);
|
|
8872
8871
|
esm.imageRetrievalPoolManager.clearRequestStack(type);
|
|
8873
8872
|
});
|
|
8874
|
-
destroy();
|
|
8875
8873
|
(0,state/* reset */.mc)();
|
|
8876
8874
|
},
|
|
8877
8875
|
/**
|
|
@@ -2526,8 +2526,9 @@ function getNextRuntimeId(context, symbol, max) {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
else {
|
|
2528
2528
|
n = 0;
|
|
2529
|
-
if (i + 1 === idComponents.length)
|
|
2529
|
+
if (i + 1 === idComponents.length) {
|
|
2530
2530
|
idComponents.push(0);
|
|
2531
|
+
}
|
|
2531
2532
|
}
|
|
2532
2533
|
idComponents[i] = n;
|
|
2533
2534
|
}
|
|
@@ -27049,12 +27050,11 @@ class ImageVolume {
|
|
|
27049
27050
|
return this._imageURIsIndexMap.get(imageURI);
|
|
27050
27051
|
}
|
|
27051
27052
|
destroy() {
|
|
27052
|
-
this.vtkOpenGLTexture.releaseGraphicsResources();
|
|
27053
|
-
this.vtkOpenGLTexture.destroyTexture();
|
|
27054
|
-
this.vtkOpenGLTexture.delete();
|
|
27055
27053
|
this.imageData.delete();
|
|
27056
27054
|
this.imageData = null;
|
|
27057
27055
|
this.scalarData = null;
|
|
27056
|
+
this.vtkOpenGLTexture.releaseGraphicsResources();
|
|
27057
|
+
this.vtkOpenGLTexture.delete();
|
|
27058
27058
|
}
|
|
27059
27059
|
}
|
|
27060
27060
|
/* harmony default export */ const classes_ImageVolume = (ImageVolume);
|
|
@@ -27590,7 +27590,7 @@ class RequestPoolManager {
|
|
|
27590
27590
|
const priorities = Object.keys(this.requestPool[type])
|
|
27591
27591
|
.map(Number)
|
|
27592
27592
|
.filter((priority) => this.requestPool[type][priority].length)
|
|
27593
|
-
.sort();
|
|
27593
|
+
.sort((a, b) => a - b);
|
|
27594
27594
|
return priorities;
|
|
27595
27595
|
}
|
|
27596
27596
|
getRequestPool() {
|
|
@@ -28192,7 +28192,9 @@ class Transform {
|
|
|
28192
28192
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/getVOILut.js
|
|
28193
28193
|
function generateLinearVOILUT(windowWidth, windowCenter) {
|
|
28194
28194
|
return function (modalityLutValue) {
|
|
28195
|
-
|
|
28195
|
+
const value = ((modalityLutValue - (windowCenter - 0.5)) / (windowWidth - 1) + 0.5) *
|
|
28196
|
+
255.0;
|
|
28197
|
+
return Math.min(Math.max(value, 0), 255);
|
|
28196
28198
|
};
|
|
28197
28199
|
}
|
|
28198
28200
|
function generateNonLinearVOILUT(voiLUT) {
|
|
@@ -28416,8 +28418,9 @@ function getRenderCanvas(enabledElement, image, invalidated) {
|
|
|
28416
28418
|
document.createElement('canvas');
|
|
28417
28419
|
}
|
|
28418
28420
|
const renderCanvas = enabledElement.renderingTools.renderCanvas;
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
+
const { windowWidth, windowCenter } = enabledElement.viewport.voi;
|
|
28422
|
+
if ((windowWidth === 256 || windowWidth === 255) &&
|
|
28423
|
+
(windowCenter === 128 || windowCenter === 127) &&
|
|
28421
28424
|
enabledElement.viewport.invert === false &&
|
|
28422
28425
|
image.getCanvas &&
|
|
28423
28426
|
image.getCanvas()) {
|
|
@@ -29827,12 +29830,14 @@ function getClosestStackImageIndexForPoint(point, viewport) {
|
|
|
29827
29830
|
function calculateMinimalDistanceForStackViewport(point, viewport) {
|
|
29828
29831
|
const imageIds = viewport.getImageIds();
|
|
29829
29832
|
const currentImageIdIndex = viewport.getCurrentImageIdIndex();
|
|
29830
|
-
if (imageIds.length === 0)
|
|
29833
|
+
if (imageIds.length === 0) {
|
|
29831
29834
|
return null;
|
|
29835
|
+
}
|
|
29832
29836
|
const getDistance = (imageId) => {
|
|
29833
29837
|
const planeMetadata = getPlaneMetadata(imageId);
|
|
29834
|
-
if (!planeMetadata)
|
|
29838
|
+
if (!planeMetadata) {
|
|
29835
29839
|
return null;
|
|
29840
|
+
}
|
|
29836
29841
|
const plane = planeEquation(planeMetadata.planeNormal, planeMetadata.imagePositionPatient);
|
|
29837
29842
|
const distance = planeDistanceToPoint(plane, point);
|
|
29838
29843
|
return distance;
|
|
@@ -29845,27 +29850,31 @@ function calculateMinimalDistanceForStackViewport(point, viewport) {
|
|
|
29845
29850
|
for (let i = 0; i < higherImageIds.length; i++) {
|
|
29846
29851
|
const id = higherImageIds[i];
|
|
29847
29852
|
const distance = getDistance(id);
|
|
29848
|
-
if (distance === null)
|
|
29853
|
+
if (distance === null) {
|
|
29849
29854
|
continue;
|
|
29855
|
+
}
|
|
29850
29856
|
if (distance <= closestStack.distance) {
|
|
29851
29857
|
closestStack.distance = distance;
|
|
29852
29858
|
closestStack.index = i + currentImageIdIndex + 1;
|
|
29853
29859
|
}
|
|
29854
|
-
else
|
|
29860
|
+
else {
|
|
29855
29861
|
break;
|
|
29862
|
+
}
|
|
29856
29863
|
}
|
|
29857
29864
|
const lowerImageIds = imageIds.slice(0, currentImageIdIndex);
|
|
29858
29865
|
for (let i = lowerImageIds.length - 1; i >= 0; i--) {
|
|
29859
29866
|
const id = lowerImageIds[i];
|
|
29860
29867
|
const distance = getDistance(id);
|
|
29861
|
-
if (distance === null || distance === closestStack.distance)
|
|
29868
|
+
if (distance === null || distance === closestStack.distance) {
|
|
29862
29869
|
continue;
|
|
29870
|
+
}
|
|
29863
29871
|
if (distance < closestStack.distance) {
|
|
29864
29872
|
closestStack.distance = distance;
|
|
29865
29873
|
closestStack.index = i;
|
|
29866
29874
|
}
|
|
29867
|
-
else
|
|
29875
|
+
else {
|
|
29868
29876
|
break;
|
|
29877
|
+
}
|
|
29869
29878
|
}
|
|
29870
29879
|
return closestStack.distance === Infinity ? null : closestStack;
|
|
29871
29880
|
}
|
|
@@ -30318,13 +30327,13 @@ function planeDistanceToPoint(plane, point, signed = false) {
|
|
|
30318
30327
|
|
|
30319
30328
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/windowLevel.js
|
|
30320
30329
|
function toWindowLevel(low, high) {
|
|
30321
|
-
const windowWidth = Math.abs(
|
|
30322
|
-
const windowCenter = low +
|
|
30330
|
+
const windowWidth = Math.abs(high - low) + 1;
|
|
30331
|
+
const windowCenter = (low + high + 1) / 2;
|
|
30323
30332
|
return { windowWidth, windowCenter };
|
|
30324
30333
|
}
|
|
30325
30334
|
function toLowHighRange(windowWidth, windowCenter) {
|
|
30326
|
-
const lower = windowCenter - windowWidth / 2
|
|
30327
|
-
const upper = windowCenter + windowWidth / 2
|
|
30335
|
+
const lower = windowCenter - 0.5 - (windowWidth - 1) / 2;
|
|
30336
|
+
const upper = windowCenter - 0.5 + (windowWidth - 1) / 2;
|
|
30328
30337
|
return { lower, upper };
|
|
30329
30338
|
}
|
|
30330
30339
|
|
|
@@ -46390,8 +46399,9 @@ class BaseVolumeViewport extends RenderingEngine_Viewport {
|
|
|
46390
46399
|
const volumeActor = actorEntry.actor;
|
|
46391
46400
|
const volumeId = actorEntry.uid;
|
|
46392
46401
|
const volume = esm_cache.getVolume(volumeId);
|
|
46393
|
-
if (!volume)
|
|
46402
|
+
if (!volume) {
|
|
46394
46403
|
return null;
|
|
46404
|
+
}
|
|
46395
46405
|
const cfun = volumeActor.getProperty().getRGBTransferFunction(0);
|
|
46396
46406
|
const [lower, upper] = this.VOILUTFunction === 'SIGMOID'
|
|
46397
46407
|
? getVoiFromSigmoidRGBTransferFunction(cfun)
|
|
@@ -46887,6 +46897,7 @@ class BaseVolumeViewport extends RenderingEngine_Viewport {
|
|
|
46887
46897
|
|
|
46888
46898
|
|
|
46889
46899
|
|
|
46900
|
+
|
|
46890
46901
|
class VolumeViewport extends RenderingEngine_BaseVolumeViewport {
|
|
46891
46902
|
constructor(props) {
|
|
46892
46903
|
super(props);
|
|
@@ -47060,6 +47071,14 @@ class VolumeViewport extends RenderingEngine_BaseVolumeViewport {
|
|
|
47060
47071
|
this.updateClippingPlanesForActors(currentCamera);
|
|
47061
47072
|
this.triggerCameraModifiedEventIfNecessary(currentCamera, currentCamera);
|
|
47062
47073
|
}
|
|
47074
|
+
resetProperties() {
|
|
47075
|
+
this._resetProperties();
|
|
47076
|
+
}
|
|
47077
|
+
_resetProperties() {
|
|
47078
|
+
const volumeActor = this.getDefaultActor();
|
|
47079
|
+
const imageVolume = esm_cache.getVolume(volumeActor.uid);
|
|
47080
|
+
helpers_setDefaultVolumeVOI(volumeActor.actor, imageVolume, false);
|
|
47081
|
+
}
|
|
47063
47082
|
}
|
|
47064
47083
|
/* harmony default export */ const RenderingEngine_VolumeViewport = (VolumeViewport);
|
|
47065
47084
|
|
|
@@ -49742,6 +49761,9 @@ class VolumeViewport3D extends RenderingEngine_BaseVolumeViewport {
|
|
|
49742
49761
|
setBlendMode(blendMode, filterActorUIDs, immediate) {
|
|
49743
49762
|
return null;
|
|
49744
49763
|
}
|
|
49764
|
+
resetProperties() {
|
|
49765
|
+
return null;
|
|
49766
|
+
}
|
|
49745
49767
|
}
|
|
49746
49768
|
/* harmony default export */ const RenderingEngine_VolumeViewport3D = (VolumeViewport3D);
|
|
49747
49769
|
|
|
@@ -49816,8 +49838,9 @@ class RenderingEngine {
|
|
|
49816
49838
|
this._animationFrameSet = false;
|
|
49817
49839
|
this._animationFrameHandle = null;
|
|
49818
49840
|
eventDetailArray.forEach((eventDetail) => {
|
|
49819
|
-
if (!eventDetail?.element)
|
|
49841
|
+
if (!eventDetail?.element) {
|
|
49820
49842
|
return;
|
|
49843
|
+
}
|
|
49821
49844
|
triggerEvent(eventDetail.element, enums_Events.IMAGE_RENDERED, eventDetail);
|
|
49822
49845
|
});
|
|
49823
49846
|
};
|
|
@@ -50015,8 +50038,9 @@ class RenderingEngine {
|
|
|
50015
50038
|
}
|
|
50016
50039
|
_resizeUsingCustomResizeHandler(customRenderingViewports, keepCamera = true, immediate = true) {
|
|
50017
50040
|
customRenderingViewports.forEach((vp) => {
|
|
50018
|
-
if (typeof vp.resize === 'function')
|
|
50041
|
+
if (typeof vp.resize === 'function') {
|
|
50019
50042
|
vp.resize();
|
|
50043
|
+
}
|
|
50020
50044
|
});
|
|
50021
50045
|
customRenderingViewports.forEach((vp) => {
|
|
50022
50046
|
const prevCamera = vp.getCamera();
|
|
@@ -50566,12 +50590,14 @@ function get(dictionary, key) {
|
|
|
50566
50590
|
}
|
|
50567
50591
|
function isValidKey(key) {
|
|
50568
50592
|
let last, current, previous;
|
|
50569
|
-
if (typeof key !== 'string' || (last = key.length - 1) < 0)
|
|
50593
|
+
if (typeof key !== 'string' || (last = key.length - 1) < 0) {
|
|
50570
50594
|
return false;
|
|
50595
|
+
}
|
|
50571
50596
|
previous = -1;
|
|
50572
50597
|
while ((current = key.indexOf('.', previous + 1)) >= 0) {
|
|
50573
|
-
if (current - previous < 2 || current === last)
|
|
50598
|
+
if (current - previous < 2 || current === last) {
|
|
50574
50599
|
return false;
|
|
50600
|
+
}
|
|
50575
50601
|
previous = current;
|
|
50576
50602
|
}
|
|
50577
50603
|
return true;
|