@ohif/app 3.9.0-beta.11 → 3.9.0-beta.12
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/{117.bundle.a80b1511ef4b302fb7cc.js → 117.bundle.58f96ac1d52fd08db5c2.js} +49 -15
- package/dist/{164.bundle.1da1cadb56951caef1d6.js → 164.bundle.db5eee347be4e24f6fdd.js} +315 -41
- package/dist/{236.bundle.4ca7987e1d57f60ec13a.js → 236.bundle.e128a6f4c3e4600c55b0.js} +376 -52
- package/dist/{342.bundle.340982440de15f540a89.js → 342.bundle.8da40c53fe26b492a0a1.js} +7 -0
- package/dist/{473.bundle.6cd4be953853f35b29c3.js → 367.bundle.da5db5b510b537e43888.js} +278 -29
- package/dist/{806.bundle.50e039eb624382ee1fce.js → 370.bundle.d009a20516eae7c98921.js} +77 -9
- package/dist/{390.bundle.4fb18436fcd8c75bfab9.js → 390.bundle.41fd0a538167790d9d47.js} +2 -2
- package/dist/{483.bundle.a353efc5a5dd563c903c.js → 483.bundle.67e9abdcf23262c94606.js} +16 -3
- package/dist/{35.bundle.0168d78bfad0cb784112.js → 501.bundle.d5262ba2d61a134e80f9.js} +739 -244
- package/dist/{550.bundle.76c529a79ade359c0af7.js → 550.bundle.a716f910818556a3fe25.js} +1 -0
- package/dist/{722.bundle.2547630541b670f10d6e.js → 722.bundle.1242e0348afc63ca4f5e.js} +10 -4
- package/dist/{889.bundle.60a917f43d3d3aebd378.js → 889.bundle.452d430a2de1befbb4b6.js} +1 -1
- package/dist/{app.bundle.f2e1810071777956e5da.js → app.bundle.4aad780d7de60fbea88c.js} +410 -213
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.1799686b019040500219.js → polySeg.bundle.e577ad8d051493b01ed8.js} +3 -3
- package/dist/{suv-peak-worker.bundle.25f8b85eab9ec06da48d.js → suv-peak-worker.bundle.63bd26cc0f6f37ade9c9.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{243.bundle.f701d3acde1d3750fda2.js → 243.bundle.d1aebc1b37fbc79b4efa.js} +0 -0
- /package/dist/{325.bundle.242d9efe2ed15a5a334e.js → 325.bundle.b9562b2d87395c98c6fd.js} +0 -0
- /package/dist/{448.bundle.97cfffdf73a6f7410119.js → 448.bundle.8cc61deda2bc80acba01.js} +0 -0
- /package/dist/{487.bundle.3146b9a2006ff92246f9.js → 487.bundle.95038d078cb68e2ef2fb.js} +0 -0
- /package/dist/{544.bundle.e8227e98860e39636a00.js → 544.bundle.4d1fb477b572f50f4220.js} +0 -0
- /package/dist/{574.bundle.72bd5061ccd504235419.js → 574.bundle.a09bcafd228eaa261546.js} +0 -0
- /package/dist/{682.bundle.f786c869b632dadc55d3.js → 682.bundle.a1fa16d4d12332743a01.js} +0 -0
- /package/dist/{699.bundle.d8fd228d9425a584b6d1.js → 699.bundle.ce1da733d32e72f233dc.js} +0 -0
- /package/dist/{721.bundle.1070ac1c9bc6aa07e964.js → 721.bundle.24b04bc522eb42eed661.js} +0 -0
- /package/dist/{776.bundle.505d83008d54340ddcee.js → 776.bundle.4b13326929e972f1b556.js} +0 -0
- /package/dist/{783.bundle.f0eabf38cc6f986f2b96.js → 783.bundle.82c773591d704fd43704.js} +0 -0
- /package/dist/{862.bundle.55dde21bab4c841b6259.js → 862.bundle.1380dc65a7782ec98457.js} +0 -0
- /package/dist/{905.bundle.da4b814f42846a91663c.js → 905.bundle.7cdf93c8dcb4a64cf85a.js} +0 -0
- /package/dist/{907.bundle.f3edaafebee9db2e2736.js → 907.bundle.770adbc99f6c80f17ab2.js} +0 -0
- /package/dist/{94.bundle.2486a958cb879d59aa7d.js → 94.bundle.830180a268276294cb20.js} +0 -0
- /package/dist/{961.bundle.5711180f24fad3da4096.js → 961.bundle.ebc13fc1dd54a0a4c577.js} +0 -0
- /package/dist/{981.bundle.b5bcd103ff48bc8817e6.js → 981.bundle.acde3b12915e455d660c.js} +0 -0
- /package/dist/{989.bundle.130439d9d862e47a9200.js → 989.bundle.852be152ceda813c34b8.js} +0 -0
- /package/dist/{998.bundle.d9191b5ca5bde4305742.js → 998.bundle.cd8fbf4a16475a9eaa13.js} +0 -0
|
@@ -1005,8 +1005,8 @@ function WorkList({
|
|
|
1005
1005
|
};
|
|
1006
1006
|
});
|
|
1007
1007
|
const hasStudies = numOfStudies > 0;
|
|
1008
|
-
const versionNumber = "3.9.0-beta.
|
|
1009
|
-
const commitHash = "
|
|
1008
|
+
const versionNumber = "3.9.0-beta.12";
|
|
1009
|
+
const commitHash = "29944c8512c35718af03c03ef82bc43675ee1872";
|
|
1010
1010
|
const menuOptions = [{
|
|
1011
1011
|
title: t('Header:About'),
|
|
1012
1012
|
icon: 'info',
|
|
@@ -1925,27 +1925,27 @@ modes.push("@ohif/mode-preclinical-4d");
|
|
|
1925
1925
|
async function loadModule(module) {
|
|
1926
1926
|
if (typeof module !== 'string') return module;
|
|
1927
1927
|
if (module === "@ohif/extension-default") {
|
|
1928
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1928
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(644), __webpack_require__.e(931), __webpack_require__.e(390), __webpack_require__.e(481)]).then(__webpack_require__.bind(__webpack_require__, 47390));
|
|
1929
1929
|
return imported.default;
|
|
1930
1930
|
}
|
|
1931
1931
|
if (module === "@ohif/extension-cornerstone") {
|
|
1932
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1932
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(644), __webpack_require__.e(722), __webpack_require__.e(445), __webpack_require__.e(550)]).then(__webpack_require__.bind(__webpack_require__, 550));
|
|
1933
1933
|
return imported.default;
|
|
1934
1934
|
}
|
|
1935
1935
|
if (module === "@ohif/extension-measurement-tracking") {
|
|
1936
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1936
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(644), __webpack_require__.e(342), __webpack_require__.e(931), __webpack_require__.e(835), __webpack_require__.e(390), __webpack_require__.e(721), __webpack_require__.e(325)]).then(__webpack_require__.bind(__webpack_require__, 84284));
|
|
1937
1937
|
return imported.default;
|
|
1938
1938
|
}
|
|
1939
1939
|
if (module === "@ohif/extension-cornerstone-dicom-sr") {
|
|
1940
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1940
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(342), __webpack_require__.e(721)]).then(__webpack_require__.bind(__webpack_require__, 14721));
|
|
1941
1941
|
return imported.default;
|
|
1942
1942
|
}
|
|
1943
1943
|
if (module === "@ohif/extension-cornerstone-dicom-seg") {
|
|
1944
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1944
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(644), __webpack_require__.e(342), __webpack_require__.e(931), __webpack_require__.e(726), __webpack_require__.e(390), __webpack_require__.e(998)]).then(__webpack_require__.bind(__webpack_require__, 32009));
|
|
1945
1945
|
return imported.default;
|
|
1946
1946
|
}
|
|
1947
1947
|
if (module === "@ohif/extension-cornerstone-dynamic-volume") {
|
|
1948
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1948
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(722), __webpack_require__.e(487)]).then(__webpack_require__.bind(__webpack_require__, 26487));
|
|
1949
1949
|
return imported.default;
|
|
1950
1950
|
}
|
|
1951
1951
|
if (module === "@ohif/extension-dicom-microscopy") {
|
|
@@ -1961,7 +1961,7 @@ async function loadModule(module) {
|
|
|
1961
1961
|
return imported.default;
|
|
1962
1962
|
}
|
|
1963
1963
|
if (module === "@ohif/extension-tmtv") {
|
|
1964
|
-
const imported = await Promise.all(/* import() */[__webpack_require__.e(
|
|
1964
|
+
const imported = await Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(342), __webpack_require__.e(981)]).then(__webpack_require__.bind(__webpack_require__, 93981));
|
|
1965
1965
|
return imported.default;
|
|
1966
1966
|
}
|
|
1967
1967
|
if (module === "@ohif/extension-test") {
|
|
@@ -6615,7 +6615,7 @@ const detectionOptions = {
|
|
|
6615
6615
|
}
|
|
6616
6616
|
});
|
|
6617
6617
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
6618
|
-
const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"3.9.0-beta.
|
|
6618
|
+
const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"3.9.0-beta.11"}');
|
|
6619
6619
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
6620
6620
|
const languagesMap = {
|
|
6621
6621
|
ar: 'Arabic',
|
|
@@ -72615,7 +72615,7 @@ webpackContext.id = 64692;
|
|
|
72615
72615
|
/* harmony import */ var _eventTarget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(51884);
|
|
72616
72616
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(71702);
|
|
72617
72617
|
/* harmony import */ var _loaders_volumeLoader__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(82041);
|
|
72618
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
72618
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(20228);
|
|
72619
72619
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(90601);
|
|
72620
72620
|
/* harmony import */ var _helpers_volumeNewImageEventDispatcher__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(46820);
|
|
72621
72621
|
/* harmony import */ var _Viewport__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(11512);
|
|
@@ -72857,13 +72857,15 @@ class BaseVolumeViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_14__/* ["def
|
|
|
72857
72857
|
static get useCustomRenderingPipeline() {
|
|
72858
72858
|
return false;
|
|
72859
72859
|
}
|
|
72860
|
-
applyViewOrientation(orientation) {
|
|
72860
|
+
applyViewOrientation(orientation, resetCamera = true) {
|
|
72861
72861
|
const { viewPlaneNormal, viewUp } = this._getOrientationVectors(orientation);
|
|
72862
72862
|
const camera = this.getVtkActiveCamera();
|
|
72863
72863
|
camera.setDirectionOfProjection(-viewPlaneNormal[0], -viewPlaneNormal[1], -viewPlaneNormal[2]);
|
|
72864
72864
|
camera.setViewUpFrom(viewUp);
|
|
72865
72865
|
this.initialViewUp = viewUp;
|
|
72866
|
-
|
|
72866
|
+
if (resetCamera) {
|
|
72867
|
+
this.resetCamera();
|
|
72868
|
+
}
|
|
72867
72869
|
}
|
|
72868
72870
|
initializeVolumeNewImageEventDispatcher() {
|
|
72869
72871
|
const volumeNewImageHandlerBound = volumeNewImageHandler.bind(this);
|
|
@@ -73092,15 +73094,26 @@ class BaseVolumeViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_14__/* ["def
|
|
|
73092
73094
|
}
|
|
73093
73095
|
getViewReference(viewRefSpecifier = {}) {
|
|
73094
73096
|
const target = super.getViewReference(viewRefSpecifier);
|
|
73097
|
+
const volumeId = this.getVolumeId(viewRefSpecifier);
|
|
73095
73098
|
if (viewRefSpecifier?.forFrameOfReference !== false) {
|
|
73096
|
-
target.volumeId =
|
|
73097
|
-
}
|
|
73098
|
-
|
|
73099
|
-
|
|
73100
|
-
|
|
73101
|
-
};
|
|
73099
|
+
target.volumeId = volumeId;
|
|
73100
|
+
}
|
|
73101
|
+
if (typeof viewRefSpecifier?.sliceIndex !== 'number') {
|
|
73102
|
+
return target;
|
|
73103
|
+
}
|
|
73104
|
+
const { viewPlaneNormal } = target;
|
|
73105
|
+
const delta = viewRefSpecifier.sliceIndex - this.getCurrentImageIdIndex();
|
|
73106
|
+
const { sliceRangeInfo } = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.getVolumeViewportScrollInfo)(this, volumeId, true);
|
|
73107
|
+
const { sliceRange, spacingInNormalDirection, camera } = sliceRangeInfo;
|
|
73108
|
+
const { focalPoint, position } = camera;
|
|
73109
|
+
const { newFocalPoint } = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.snapFocalPointToSlice)(focalPoint, position, sliceRange, viewPlaneNormal, spacingInNormalDirection, delta);
|
|
73110
|
+
target.cameraFocalPoint = newFocalPoint;
|
|
73111
|
+
return target;
|
|
73102
73112
|
}
|
|
73103
73113
|
isReferenceViewable(viewRef, options) {
|
|
73114
|
+
if (!viewRef.FrameOfReferenceUID) {
|
|
73115
|
+
return false;
|
|
73116
|
+
}
|
|
73104
73117
|
if (!super.isReferenceViewable(viewRef, options)) {
|
|
73105
73118
|
return false;
|
|
73106
73119
|
}
|
|
@@ -73114,6 +73127,63 @@ class BaseVolumeViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_14__/* ["def
|
|
|
73114
73127
|
}
|
|
73115
73128
|
return sliceIndex === undefined || sliceIndex === currentSliceIndex;
|
|
73116
73129
|
}
|
|
73130
|
+
scroll(delta = 1) {
|
|
73131
|
+
const volumeId = this.getVolumeId();
|
|
73132
|
+
const { sliceRangeInfo } = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.getVolumeViewportScrollInfo)(this, volumeId, true);
|
|
73133
|
+
if (!sliceRangeInfo) {
|
|
73134
|
+
return;
|
|
73135
|
+
}
|
|
73136
|
+
const { sliceRange, spacingInNormalDirection, camera } = sliceRangeInfo;
|
|
73137
|
+
const { focalPoint, viewPlaneNormal, position } = camera;
|
|
73138
|
+
const { newFocalPoint, newPosition } = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.snapFocalPointToSlice)(focalPoint, position, sliceRange, viewPlaneNormal, spacingInNormalDirection, delta);
|
|
73139
|
+
this.setCamera({
|
|
73140
|
+
focalPoint: newFocalPoint,
|
|
73141
|
+
position: newPosition,
|
|
73142
|
+
});
|
|
73143
|
+
}
|
|
73144
|
+
setViewReference(viewRef) {
|
|
73145
|
+
if (!viewRef) {
|
|
73146
|
+
return;
|
|
73147
|
+
}
|
|
73148
|
+
const volumeId = this.getVolumeId();
|
|
73149
|
+
const { viewPlaneNormal: refViewPlaneNormal, FrameOfReferenceUID: refFrameOfReference, cameraFocalPoint, viewUp, } = viewRef;
|
|
73150
|
+
let { sliceIndex } = viewRef;
|
|
73151
|
+
const { focalPoint, viewPlaneNormal, position } = this.getCamera();
|
|
73152
|
+
const isNegativeNormal = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.isEqualNegative)(viewPlaneNormal, refViewPlaneNormal);
|
|
73153
|
+
const isSameNormal = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.isEqual)(viewPlaneNormal, refViewPlaneNormal);
|
|
73154
|
+
if (typeof sliceIndex === 'number' &&
|
|
73155
|
+
viewRef.volumeId === volumeId &&
|
|
73156
|
+
(isNegativeNormal || isSameNormal)) {
|
|
73157
|
+
const { currentStepIndex, sliceRangeInfo, numScrollSteps } = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.getVolumeViewportScrollInfo)(this, volumeId, true);
|
|
73158
|
+
const { sliceRange, spacingInNormalDirection } = sliceRangeInfo;
|
|
73159
|
+
if (isNegativeNormal) {
|
|
73160
|
+
sliceIndex = numScrollSteps - sliceIndex - 1;
|
|
73161
|
+
}
|
|
73162
|
+
const delta = sliceIndex - currentStepIndex;
|
|
73163
|
+
const { newFocalPoint, newPosition } = (0,_utilities__WEBPACK_IMPORTED_MODULE_11__.snapFocalPointToSlice)(focalPoint, position, sliceRange, viewPlaneNormal, spacingInNormalDirection, delta);
|
|
73164
|
+
this.setCamera({ focalPoint: newFocalPoint, position: newPosition });
|
|
73165
|
+
}
|
|
73166
|
+
else if (refFrameOfReference === this.getFrameOfReferenceUID()) {
|
|
73167
|
+
if (refViewPlaneNormal && !isNegativeNormal && !isSameNormal) {
|
|
73168
|
+
this.setOrientation({ viewPlaneNormal: refViewPlaneNormal, viewUp });
|
|
73169
|
+
return this.setViewReference(viewRef);
|
|
73170
|
+
}
|
|
73171
|
+
if (cameraFocalPoint) {
|
|
73172
|
+
const focalDelta = gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.subtract */ .eR.subtract([0, 0, 0], cameraFocalPoint, focalPoint);
|
|
73173
|
+
const useNormal = refViewPlaneNormal ?? viewPlaneNormal;
|
|
73174
|
+
const normalDot = gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.dot */ .eR.dot(focalDelta, useNormal);
|
|
73175
|
+
if (!(0,_utilities__WEBPACK_IMPORTED_MODULE_11__.isEqual)(normalDot, 0)) {
|
|
73176
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.scale */ .eR.scale(focalDelta, useNormal, normalDot);
|
|
73177
|
+
}
|
|
73178
|
+
const newFocal = gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.add */ .eR.add([0, 0, 0], focalPoint, focalDelta);
|
|
73179
|
+
const newPosition = gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.add */ .eR.add([0, 0, 0], position, focalDelta);
|
|
73180
|
+
this.setCamera({ focalPoint: newFocal, position: newPosition });
|
|
73181
|
+
}
|
|
73182
|
+
}
|
|
73183
|
+
else {
|
|
73184
|
+
throw new Error(`Incompatible view refs: ${refFrameOfReference}!==${this.getFrameOfReferenceUID()}`);
|
|
73185
|
+
}
|
|
73186
|
+
}
|
|
73117
73187
|
setProperties({ voiRange, VOILUTFunction, invert, colormap, preset, interpolationType, slabThickness, rotation, } = {}, volumeId, suppressEvents = false) {
|
|
73118
73188
|
if (this.globalDefaultProperties == null) {
|
|
73119
73189
|
this.setDefaultProperties({
|
|
@@ -73272,7 +73342,7 @@ class BaseVolumeViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_14__/* ["def
|
|
|
73272
73342
|
this.render();
|
|
73273
73343
|
}
|
|
73274
73344
|
}
|
|
73275
|
-
setOrientation(
|
|
73345
|
+
setOrientation(_orientation, _immediate = true) {
|
|
73276
73346
|
console.warn('Method "setOrientation" needs implementation');
|
|
73277
73347
|
}
|
|
73278
73348
|
initializeColorTransferFunction(volumeInputArray) {
|
|
@@ -73408,14 +73478,15 @@ class BaseVolumeViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_14__/* ["def
|
|
|
73408
73478
|
return volume.getScalarData()[voxelIndex];
|
|
73409
73479
|
}
|
|
73410
73480
|
getVolumeId(specifier) {
|
|
73481
|
+
const actorEntries = this.getActors();
|
|
73482
|
+
if (!actorEntries) {
|
|
73483
|
+
return;
|
|
73484
|
+
}
|
|
73411
73485
|
if (!specifier?.volumeId) {
|
|
73412
|
-
const actorEntries = this.getActors();
|
|
73413
|
-
if (!actorEntries) {
|
|
73414
|
-
return;
|
|
73415
|
-
}
|
|
73416
73486
|
return actorEntries.find((actorEntry) => actorEntry.actor.getClassName() === 'vtkVolume')?.uid;
|
|
73417
73487
|
}
|
|
73418
|
-
return
|
|
73488
|
+
return actorEntries.find((actorEntry) => actorEntry.actor.getClassName() === 'vtkVolume' &&
|
|
73489
|
+
actorEntry.uid === specifier.volumeId)?.uid;
|
|
73419
73490
|
}
|
|
73420
73491
|
getReferenceId(specifier = {}) {
|
|
73421
73492
|
let { volumeId, sliceIndex: sliceIndex } = specifier;
|
|
@@ -73426,7 +73497,8 @@ class BaseVolumeViewport extends _Viewport__WEBPACK_IMPORTED_MODULE_14__/* ["def
|
|
|
73426
73497
|
}
|
|
73427
73498
|
volumeId = actorEntries.find((actorEntry) => actorEntry.actor.getClassName() === 'vtkVolume')?.uid;
|
|
73428
73499
|
}
|
|
73429
|
-
|
|
73500
|
+
const currentIndex = this.getCurrentImageIdIndex();
|
|
73501
|
+
sliceIndex ??= currentIndex;
|
|
73430
73502
|
const { viewPlaneNormal, focalPoint } = this.getCamera();
|
|
73431
73503
|
const querySeparator = volumeId.indexOf('?') > -1 ? '&' : '?';
|
|
73432
73504
|
return `volumeId:${volumeId}${querySeparator}sliceIndex=${sliceIndex}&viewPlaneNormal=${viewPlaneNormal.join(',')}&focalPoint=${focalPoint.join(',')}`;
|
|
@@ -74354,8 +74426,8 @@ var metaData = __webpack_require__(55692);
|
|
|
74354
74426
|
// EXTERNAL MODULE: ../../../node_modules/lodash.clonedeep/index.js
|
|
74355
74427
|
var lodash_clonedeep = __webpack_require__(48463);
|
|
74356
74428
|
var lodash_clonedeep_default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep);
|
|
74357
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
74358
|
-
var utilities = __webpack_require__(
|
|
74429
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
74430
|
+
var utilities = __webpack_require__(20228);
|
|
74359
74431
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/Viewport.js
|
|
74360
74432
|
var Viewport = __webpack_require__(11512);
|
|
74361
74433
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/cpuFallback/colors/index.js + 2 modules
|
|
@@ -74565,20 +74637,8 @@ class StackViewport extends Viewport/* default */.A {
|
|
|
74565
74637
|
resize(this._cpuFallbackEnabledElement);
|
|
74566
74638
|
}
|
|
74567
74639
|
};
|
|
74568
|
-
this.getFrameOfReferenceUID = () =>
|
|
74569
|
-
|
|
74570
|
-
if (!imageId) {
|
|
74571
|
-
return;
|
|
74572
|
-
}
|
|
74573
|
-
const imagePlaneModule = metaData.get('imagePlaneModule', imageId);
|
|
74574
|
-
if (!imagePlaneModule) {
|
|
74575
|
-
return;
|
|
74576
|
-
}
|
|
74577
|
-
return imagePlaneModule.frameOfReferenceUID;
|
|
74578
|
-
};
|
|
74579
|
-
this.getCornerstoneImage = () => {
|
|
74580
|
-
return this.csImage;
|
|
74581
|
-
};
|
|
74640
|
+
this.getFrameOfReferenceUID = (sliceIndex) => this.getImagePlaneReferenceData(sliceIndex)?.FrameOfReferenceUID;
|
|
74641
|
+
this.getCornerstoneImage = () => this.csImage;
|
|
74582
74642
|
this.createActorMapper = (imageData) => {
|
|
74583
74643
|
const mapper = vtkImageMapper$1.newInstance();
|
|
74584
74644
|
mapper.setInputData(imageData);
|
|
@@ -74741,9 +74801,6 @@ class StackViewport extends Viewport/* default */.A {
|
|
|
74741
74801
|
this.getCurrentImageIdIndex = () => {
|
|
74742
74802
|
return this.currentImageIdIndex;
|
|
74743
74803
|
};
|
|
74744
|
-
this.getSliceIndex = () => {
|
|
74745
|
-
return this.currentImageIdIndex;
|
|
74746
|
-
};
|
|
74747
74804
|
this.getTargetImageIdIndex = () => {
|
|
74748
74805
|
return this.targetImageIdIndex;
|
|
74749
74806
|
};
|
|
@@ -75554,6 +75611,25 @@ class StackViewport extends Viewport/* default */.A {
|
|
|
75554
75611
|
imagePixelModule,
|
|
75555
75612
|
};
|
|
75556
75613
|
}
|
|
75614
|
+
getImagePlaneReferenceData(sliceIndex = this.getCurrentImageIdIndex()) {
|
|
75615
|
+
const imageId = this.imageIds[sliceIndex];
|
|
75616
|
+
if (!imageId) {
|
|
75617
|
+
return;
|
|
75618
|
+
}
|
|
75619
|
+
const imagePlaneModule = metaData.get(enums.MetadataModules.IMAGE_PLANE, imageId);
|
|
75620
|
+
const { imagePositionPatient, frameOfReferenceUID: FrameOfReferenceUID } = imagePlaneModule;
|
|
75621
|
+
let { rowCosines, columnCosines } = imagePlaneModule;
|
|
75622
|
+
rowCosines ||= [1, 0, 0];
|
|
75623
|
+
columnCosines ||= [0, 1, 0];
|
|
75624
|
+
const viewPlaneNormal = (esm/* vec3.cross */.eR.cross([0, 0, 0], columnCosines, rowCosines));
|
|
75625
|
+
return {
|
|
75626
|
+
FrameOfReferenceUID,
|
|
75627
|
+
viewPlaneNormal,
|
|
75628
|
+
cameraFocalPoint: imagePositionPatient,
|
|
75629
|
+
referencedImageId: imageId,
|
|
75630
|
+
sliceIndex,
|
|
75631
|
+
};
|
|
75632
|
+
}
|
|
75557
75633
|
_getCameraOrientation(imageDataDirection) {
|
|
75558
75634
|
const viewPlaneNormal = imageDataDirection.slice(6, 9).map((x) => -x);
|
|
75559
75635
|
const viewUp = imageDataDirection.slice(3, 6).map((x) => -x);
|
|
@@ -75869,7 +75945,7 @@ class StackViewport extends Viewport/* default */.A {
|
|
|
75869
75945
|
this.cpuRenderingInvalidated = true;
|
|
75870
75946
|
this._cpuFallbackEnabledElement.transform = (0,calculateTransform/* default */.A)(this._cpuFallbackEnabledElement);
|
|
75871
75947
|
}
|
|
75872
|
-
|
|
75948
|
+
addImages(stackInputs) {
|
|
75873
75949
|
const actors = this.getActors();
|
|
75874
75950
|
stackInputs.forEach((stackInput) => {
|
|
75875
75951
|
const image = cache/* default */.Ay.getImage(stackInput.imageId);
|
|
@@ -76164,24 +76240,39 @@ class StackViewport extends Viewport/* default */.A {
|
|
|
76164
76240
|
return referencedImageId?.endsWith(imageURI);
|
|
76165
76241
|
}
|
|
76166
76242
|
getViewReference(viewRefSpecifier = {}) {
|
|
76167
|
-
const { sliceIndex
|
|
76168
|
-
|
|
76169
|
-
|
|
76170
|
-
|
|
76171
|
-
|
|
76172
|
-
}
|
|
76173
|
-
|
|
76174
|
-
|
|
76175
|
-
|
|
76176
|
-
|
|
76177
|
-
if (viewRef) {
|
|
76178
|
-
const { viewPlaneNormal, sliceIndex } = viewRef;
|
|
76179
|
-
if (viewPlaneNormal &&
|
|
76180
|
-
!(0,utilities.isEqual)(viewPlaneNormal, camera.viewPlaneNormal)) {
|
|
76243
|
+
const { sliceIndex = this.getCurrentImageIdIndex() } = viewRefSpecifier;
|
|
76244
|
+
const reference = super.getViewReference(viewRefSpecifier);
|
|
76245
|
+
const referencedImageId = this.imageIds[sliceIndex];
|
|
76246
|
+
if (!referencedImageId) {
|
|
76247
|
+
return;
|
|
76248
|
+
}
|
|
76249
|
+
reference.referencedImageId = referencedImageId;
|
|
76250
|
+
if (this.getCurrentImageIdIndex() !== sliceIndex) {
|
|
76251
|
+
const referenceData = this.getImagePlaneReferenceData(sliceIndex);
|
|
76252
|
+
if (!referenceData) {
|
|
76181
76253
|
return;
|
|
76182
76254
|
}
|
|
76183
|
-
|
|
76184
|
-
|
|
76255
|
+
Object.assign(reference, referenceData);
|
|
76256
|
+
}
|
|
76257
|
+
return reference;
|
|
76258
|
+
}
|
|
76259
|
+
setViewReference(viewRef) {
|
|
76260
|
+
if (!viewRef) {
|
|
76261
|
+
return;
|
|
76262
|
+
}
|
|
76263
|
+
const { referencedImageId, sliceIndex, volumeId } = viewRef;
|
|
76264
|
+
if (typeof sliceIndex === 'number' &&
|
|
76265
|
+
referencedImageId &&
|
|
76266
|
+
referencedImageId === this.imageIds[sliceIndex]) {
|
|
76267
|
+
this.setImageIdIndex(sliceIndex);
|
|
76268
|
+
}
|
|
76269
|
+
else {
|
|
76270
|
+
const foundIndex = this.imageIds.indexOf(referencedImageId);
|
|
76271
|
+
if (foundIndex !== -1) {
|
|
76272
|
+
this.setImageIdIndex(foundIndex);
|
|
76273
|
+
}
|
|
76274
|
+
else {
|
|
76275
|
+
throw new Error('Unsupported - referenced image id not found');
|
|
76185
76276
|
}
|
|
76186
76277
|
}
|
|
76187
76278
|
}
|
|
@@ -76305,8 +76396,8 @@ var enums = __webpack_require__(98362);
|
|
|
76305
76396
|
var metaData = __webpack_require__(55692);
|
|
76306
76397
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/transform.js
|
|
76307
76398
|
var rendering_transform = __webpack_require__(18714);
|
|
76308
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
76309
|
-
var utilities = __webpack_require__(
|
|
76399
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
76400
|
+
var utilities = __webpack_require__(20228);
|
|
76310
76401
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/Viewport.js
|
|
76311
76402
|
var Viewport = __webpack_require__(11512);
|
|
76312
76403
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/index.js + 5 modules
|
|
@@ -77217,7 +77308,7 @@ class VideoViewport extends Viewport/* default */.A {
|
|
|
77217
77308
|
/* harmony import */ var _enums_ViewportStatus__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(17702);
|
|
77218
77309
|
/* harmony import */ var _enums_ViewportType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21432);
|
|
77219
77310
|
/* harmony import */ var _renderingEngineCache__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(94070);
|
|
77220
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
77311
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20228);
|
|
77221
77312
|
/* harmony import */ var _utilities_hasNaNValues__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(73139);
|
|
77222
77313
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(88903);
|
|
77223
77314
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(71702);
|
|
@@ -77517,7 +77608,7 @@ class Viewport {
|
|
|
77517
77608
|
this.setDisplayAreaScale(displayArea);
|
|
77518
77609
|
}
|
|
77519
77610
|
else {
|
|
77520
|
-
this.setInterpolationType(this.getProperties()
|
|
77611
|
+
this.setInterpolationType(this.getProperties()?.interpolationType || _enums__WEBPACK_IMPORTED_MODULE_13__.InterpolationType.LINEAR);
|
|
77521
77612
|
this.setDisplayAreaFit(displayArea);
|
|
77522
77613
|
}
|
|
77523
77614
|
if (storeAsInitialCamera) {
|
|
@@ -77746,6 +77837,9 @@ class Viewport {
|
|
|
77746
77837
|
}, storeAsInitialCamera);
|
|
77747
77838
|
}
|
|
77748
77839
|
getZoom(compareCamera = this.initialCamera) {
|
|
77840
|
+
if (!compareCamera) {
|
|
77841
|
+
return 1;
|
|
77842
|
+
}
|
|
77749
77843
|
const activeCamera = this.getVtkActiveCamera();
|
|
77750
77844
|
const { parallelScale: initialParallelScale } = compareCamera;
|
|
77751
77845
|
return initialParallelScale / activeCamera.getParallelScale();
|
|
@@ -77999,11 +78093,12 @@ class Viewport {
|
|
|
77999
78093
|
return { widthWorld: maxX - minX, heightWorld: maxY - minY };
|
|
78000
78094
|
}
|
|
78001
78095
|
getViewReference(viewRefSpecifier = {}) {
|
|
78002
|
-
const { focalPoint: cameraFocalPoint, viewPlaneNormal } = this.getCamera();
|
|
78096
|
+
const { focalPoint: cameraFocalPoint, viewPlaneNormal, viewUp, } = this.getCamera();
|
|
78003
78097
|
const target = {
|
|
78004
78098
|
FrameOfReferenceUID: this.getFrameOfReferenceUID(),
|
|
78005
78099
|
cameraFocalPoint,
|
|
78006
78100
|
viewPlaneNormal,
|
|
78101
|
+
viewUp,
|
|
78007
78102
|
sliceIndex: viewRefSpecifier.sliceIndex ?? this.getCurrentImageIdIndex(),
|
|
78008
78103
|
};
|
|
78009
78104
|
return target;
|
|
@@ -78018,7 +78113,7 @@ class Viewport {
|
|
|
78018
78113
|
if (viewPlaneNormal &&
|
|
78019
78114
|
!(0,_utilities__WEBPACK_IMPORTED_MODULE_9__.isEqual)(viewPlaneNormal, camera.viewPlaneNormal) &&
|
|
78020
78115
|
!(0,_utilities__WEBPACK_IMPORTED_MODULE_9__.isEqual)(gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec3.negate */ .eR.negate(camera.viewPlaneNormal, camera.viewPlaneNormal), viewPlaneNormal)) {
|
|
78021
|
-
return options?.
|
|
78116
|
+
return options?.withOrientation === true;
|
|
78022
78117
|
}
|
|
78023
78118
|
return true;
|
|
78024
78119
|
}
|
|
@@ -78046,19 +78141,22 @@ class Viewport {
|
|
|
78046
78141
|
}
|
|
78047
78142
|
return target;
|
|
78048
78143
|
}
|
|
78049
|
-
|
|
78050
|
-
|
|
78051
|
-
|
|
78052
|
-
|
|
78053
|
-
|
|
78054
|
-
|
|
78055
|
-
|
|
78056
|
-
|
|
78057
|
-
|
|
78058
|
-
|
|
78059
|
-
|
|
78060
|
-
|
|
78061
|
-
|
|
78144
|
+
setViewReference(viewRef) {
|
|
78145
|
+
}
|
|
78146
|
+
setViewPresentation(viewPres) {
|
|
78147
|
+
if (!viewPres) {
|
|
78148
|
+
return;
|
|
78149
|
+
}
|
|
78150
|
+
const { displayArea, zoom = this.getZoom(), pan, rotation } = viewPres;
|
|
78151
|
+
if (displayArea !== this.getDisplayArea()) {
|
|
78152
|
+
this.setDisplayArea(displayArea);
|
|
78153
|
+
}
|
|
78154
|
+
this.setZoom(zoom);
|
|
78155
|
+
if (pan) {
|
|
78156
|
+
this.setPan(gl_matrix__WEBPACK_IMPORTED_MODULE_3__/* .vec2.scale */ .Zc.scale([0, 0], pan, zoom));
|
|
78157
|
+
}
|
|
78158
|
+
if (rotation >= 0) {
|
|
78159
|
+
this.setRotation(rotation);
|
|
78062
78160
|
}
|
|
78063
78161
|
}
|
|
78064
78162
|
_shouldUseNativeDataType() {
|
|
@@ -78147,15 +78245,15 @@ class Viewport {
|
|
|
78147
78245
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
78148
78246
|
/* harmony export */ });
|
|
78149
78247
|
/* harmony import */ var _kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84441);
|
|
78150
|
-
/* harmony import */ var
|
|
78151
|
-
/* harmony import */ var
|
|
78152
|
-
/* harmony import */ var
|
|
78153
|
-
/* harmony import */ var
|
|
78154
|
-
/* harmony import */ var
|
|
78155
|
-
/* harmony import */ var
|
|
78156
|
-
/* harmony import */ var
|
|
78157
|
-
/* harmony import */ var
|
|
78158
|
-
/* harmony import */ var
|
|
78248
|
+
/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13320);
|
|
78249
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88903);
|
|
78250
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98362);
|
|
78251
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20228);
|
|
78252
|
+
/* harmony import */ var _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6203);
|
|
78253
|
+
/* harmony import */ var _helpers_setDefaultVolumeVOI__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(83853);
|
|
78254
|
+
/* harmony import */ var _utilities_transferFunctionUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(22350);
|
|
78255
|
+
/* harmony import */ var _utilities_getImageSliceDataForVolumeViewport__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97508);
|
|
78256
|
+
/* harmony import */ var _utilities_getVolumeViewportScrollInfo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62255);
|
|
78159
78257
|
|
|
78160
78258
|
|
|
78161
78259
|
|
|
@@ -78166,43 +78264,34 @@ class Viewport {
|
|
|
78166
78264
|
|
|
78167
78265
|
|
|
78168
78266
|
|
|
78169
|
-
class VolumeViewport extends
|
|
78267
|
+
class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A {
|
|
78170
78268
|
constructor(props) {
|
|
78171
78269
|
super(props);
|
|
78172
78270
|
this._useAcquisitionPlaneForViewPlane = false;
|
|
78173
78271
|
this.getNumberOfSlices = () => {
|
|
78174
|
-
const { numberOfSlices } = (0,
|
|
78272
|
+
const { numberOfSlices } = (0,_utilities_getImageSliceDataForVolumeViewport__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)(this);
|
|
78175
78273
|
return numberOfSlices;
|
|
78176
78274
|
};
|
|
78177
78275
|
this.getSliceIndex = () => {
|
|
78178
|
-
const { imageIndex } = (0,
|
|
78276
|
+
const { imageIndex } = (0,_utilities_getImageSliceDataForVolumeViewport__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)(this);
|
|
78179
78277
|
return imageIndex;
|
|
78180
78278
|
};
|
|
78181
|
-
this.getCurrentImageIdIndex = (volumeId) => {
|
|
78182
|
-
const {
|
|
78183
|
-
|
|
78184
|
-
if (!imageData) {
|
|
78185
|
-
return;
|
|
78186
|
-
}
|
|
78187
|
-
const { origin, direction, spacing } = imageData;
|
|
78188
|
-
const spacingInNormal = (0,_utilities__WEBPACK_IMPORTED_MODULE_5__.getSpacingInNormalDirection)({ direction, spacing }, viewPlaneNormal);
|
|
78189
|
-
const sub = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.create */ .eR.create();
|
|
78190
|
-
gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.sub */ .eR.sub(sub, focalPoint, origin);
|
|
78191
|
-
const distance = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(sub, viewPlaneNormal);
|
|
78192
|
-
return Math.round(Math.abs(distance) / spacingInNormal);
|
|
78279
|
+
this.getCurrentImageIdIndex = (volumeId, useSlabThickness = true) => {
|
|
78280
|
+
const { currentStepIndex } = (0,_utilities_getVolumeViewportScrollInfo__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(this, volumeId || this.getVolumeId(), useSlabThickness);
|
|
78281
|
+
return currentStepIndex;
|
|
78193
78282
|
};
|
|
78194
78283
|
this.getCurrentImageId = () => {
|
|
78195
78284
|
const actorEntry = this.getDefaultActor();
|
|
78196
|
-
if (!actorEntry || !(0,
|
|
78285
|
+
if (!actorEntry || !(0,_utilities__WEBPACK_IMPORTED_MODULE_4__.actorIsA)(actorEntry, 'vtkVolume')) {
|
|
78197
78286
|
return;
|
|
78198
78287
|
}
|
|
78199
78288
|
const { uid } = actorEntry;
|
|
78200
|
-
const volume =
|
|
78289
|
+
const volume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(uid);
|
|
78201
78290
|
if (!volume) {
|
|
78202
78291
|
return;
|
|
78203
78292
|
}
|
|
78204
78293
|
const { viewPlaneNormal, focalPoint } = this.getCamera();
|
|
78205
|
-
return (0,
|
|
78294
|
+
return (0,_utilities__WEBPACK_IMPORTED_MODULE_4__.getClosestImageId)(volume, focalPoint, viewPlaneNormal);
|
|
78206
78295
|
};
|
|
78207
78296
|
this.getSlicePlaneCoordinates = () => {
|
|
78208
78297
|
const actorEntry = this.getDefaultActor();
|
|
@@ -78211,30 +78300,30 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78211
78300
|
return [];
|
|
78212
78301
|
}
|
|
78213
78302
|
const volumeId = actorEntry.uid;
|
|
78214
|
-
const imageVolume =
|
|
78303
|
+
const imageVolume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(volumeId);
|
|
78215
78304
|
const camera = this.getCamera();
|
|
78216
78305
|
const { focalPoint, position, viewPlaneNormal } = camera;
|
|
78217
|
-
const spacingInNormalDirection = (0,
|
|
78218
|
-
const sliceRange = (0,
|
|
78306
|
+
const spacingInNormalDirection = (0,_utilities__WEBPACK_IMPORTED_MODULE_4__.getSpacingInNormalDirection)(imageVolume, viewPlaneNormal);
|
|
78307
|
+
const sliceRange = (0,_utilities__WEBPACK_IMPORTED_MODULE_4__.getSliceRange)(actorEntry.actor, viewPlaneNormal, focalPoint);
|
|
78219
78308
|
const numSlicesBackward = Math.round((sliceRange.current - sliceRange.min) / spacingInNormalDirection);
|
|
78220
78309
|
const numSlicesForward = Math.round((sliceRange.max - sliceRange.current) / spacingInNormalDirection);
|
|
78221
78310
|
const currentSliceIndex = this.getSliceIndex();
|
|
78222
78311
|
const focalPoints = [];
|
|
78223
78312
|
for (let i = -numSlicesBackward; i <= numSlicesForward; i++) {
|
|
78224
|
-
const { newFocalPoint: point } = (0,
|
|
78313
|
+
const { newFocalPoint: point } = (0,_utilities__WEBPACK_IMPORTED_MODULE_4__.snapFocalPointToSlice)(focalPoint, position, sliceRange, viewPlaneNormal, spacingInNormalDirection, i);
|
|
78225
78314
|
focalPoints.push({ sliceIndex: currentSliceIndex + i, point });
|
|
78226
78315
|
}
|
|
78227
78316
|
return focalPoints;
|
|
78228
78317
|
};
|
|
78229
78318
|
const { orientation } = this.options;
|
|
78230
|
-
if (orientation && orientation !==
|
|
78319
|
+
if (orientation && orientation !== _enums__WEBPACK_IMPORTED_MODULE_3__.OrientationAxis.ACQUISITION) {
|
|
78231
78320
|
this.applyViewOrientation(orientation);
|
|
78232
78321
|
return;
|
|
78233
78322
|
}
|
|
78234
78323
|
this._useAcquisitionPlaneForViewPlane = true;
|
|
78235
78324
|
}
|
|
78236
78325
|
async setVolumes(volumeInputArray, immediate = false, suppressEvents = false) {
|
|
78237
|
-
const firstImageVolume =
|
|
78326
|
+
const firstImageVolume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(volumeInputArray[0].volumeId);
|
|
78238
78327
|
if (!firstImageVolume) {
|
|
78239
78328
|
throw new Error(`imageVolume with id: ${firstImageVolume.volumeId} does not exist`);
|
|
78240
78329
|
}
|
|
@@ -78245,7 +78334,7 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78245
78334
|
return super.setVolumes(volumeInputArray, immediate, suppressEvents);
|
|
78246
78335
|
}
|
|
78247
78336
|
async addVolumes(volumeInputArray, immediate = false, suppressEvents = false) {
|
|
78248
|
-
const firstImageVolume =
|
|
78337
|
+
const firstImageVolume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(volumeInputArray[0].volumeId);
|
|
78249
78338
|
if (!firstImageVolume) {
|
|
78250
78339
|
throw new Error(`imageVolume with id: ${firstImageVolume.volumeId} does not exist`);
|
|
78251
78340
|
}
|
|
@@ -78258,8 +78347,8 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78258
78347
|
setOrientation(orientation, immediate = true) {
|
|
78259
78348
|
let viewPlaneNormal, viewUp;
|
|
78260
78349
|
if (typeof orientation === 'string') {
|
|
78261
|
-
if (
|
|
78262
|
-
({ viewPlaneNormal, viewUp } =
|
|
78350
|
+
if (_constants__WEBPACK_IMPORTED_MODULE_2__.MPR_CAMERA_VALUES[orientation]) {
|
|
78351
|
+
({ viewPlaneNormal, viewUp } = _constants__WEBPACK_IMPORTED_MODULE_2__.MPR_CAMERA_VALUES[orientation]);
|
|
78263
78352
|
}
|
|
78264
78353
|
else if (orientation === 'acquisition') {
|
|
78265
78354
|
({ viewPlaneNormal, viewUp } = this._getAcquisitionPlaneOrientation());
|
|
@@ -78288,7 +78377,7 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78288
78377
|
return;
|
|
78289
78378
|
}
|
|
78290
78379
|
const volumeId = actorEntry.uid;
|
|
78291
|
-
const imageVolume =
|
|
78380
|
+
const imageVolume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(volumeId);
|
|
78292
78381
|
if (!imageVolume) {
|
|
78293
78382
|
throw new Error(`imageVolume with id: ${volumeId} does not exist in cache`);
|
|
78294
78383
|
}
|
|
@@ -78333,12 +78422,15 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78333
78422
|
this.render();
|
|
78334
78423
|
}
|
|
78335
78424
|
}
|
|
78336
|
-
resetCamera(resetPan = true, resetZoom = true, resetToCenter = true, resetRotation = false) {
|
|
78425
|
+
resetCamera(resetPan = true, resetZoom = true, resetToCenter = true, resetRotation = false, supressEvents = false) {
|
|
78426
|
+
const { orientation } = this.viewportProperties;
|
|
78427
|
+
if (orientation) {
|
|
78428
|
+
this.applyViewOrientation(orientation, false);
|
|
78429
|
+
}
|
|
78337
78430
|
super.resetCamera(resetPan, resetZoom, resetToCenter);
|
|
78338
78431
|
this.resetVolumeViewportClippingRange();
|
|
78339
78432
|
const activeCamera = this.getVtkActiveCamera();
|
|
78340
78433
|
const viewPlaneNormal = activeCamera.getViewPlaneNormal();
|
|
78341
|
-
const viewUp = activeCamera.getViewUp();
|
|
78342
78434
|
const focalPoint = activeCamera.getFocalPoint();
|
|
78343
78435
|
const actorEntries = this.getActors();
|
|
78344
78436
|
actorEntries.forEach((actorEntry) => {
|
|
@@ -78351,7 +78443,7 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78351
78443
|
const clipPlane1 = _kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_0__/* ["default"].newInstance */ .Ay.newInstance();
|
|
78352
78444
|
const clipPlane2 = _kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_0__/* ["default"].newInstance */ .Ay.newInstance();
|
|
78353
78445
|
const newVtkPlanes = [clipPlane1, clipPlane2];
|
|
78354
|
-
let slabThickness =
|
|
78446
|
+
let slabThickness = _constants__WEBPACK_IMPORTED_MODULE_2__.RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS;
|
|
78355
78447
|
if (actorEntry.slabThickness) {
|
|
78356
78448
|
slabThickness = actorEntry.slabThickness;
|
|
78357
78449
|
}
|
|
@@ -78361,13 +78453,22 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78361
78453
|
}
|
|
78362
78454
|
});
|
|
78363
78455
|
if (resetRotation &&
|
|
78364
|
-
|
|
78365
|
-
const viewToReset =
|
|
78456
|
+
_constants__WEBPACK_IMPORTED_MODULE_2__.MPR_CAMERA_VALUES[this.viewportProperties.orientation] !== undefined) {
|
|
78457
|
+
const viewToReset = _constants__WEBPACK_IMPORTED_MODULE_2__.MPR_CAMERA_VALUES[this.viewportProperties.orientation];
|
|
78366
78458
|
this.setCameraNoEvent({
|
|
78367
78459
|
viewUp: viewToReset.viewUp,
|
|
78368
78460
|
viewPlaneNormal: viewToReset.viewPlaneNormal,
|
|
78369
78461
|
});
|
|
78370
78462
|
}
|
|
78463
|
+
if (!supressEvents) {
|
|
78464
|
+
const eventDetail = {
|
|
78465
|
+
viewportId: this.id,
|
|
78466
|
+
camera: this.getCamera(),
|
|
78467
|
+
renderingEngineId: this.renderingEngineId,
|
|
78468
|
+
element: this.element,
|
|
78469
|
+
};
|
|
78470
|
+
(0,_utilities__WEBPACK_IMPORTED_MODULE_4__.triggerEvent)(this.element, _enums__WEBPACK_IMPORTED_MODULE_3__.Events.CAMERA_RESET, eventDetail);
|
|
78471
|
+
}
|
|
78371
78472
|
return true;
|
|
78372
78473
|
}
|
|
78373
78474
|
setSlabThickness(slabThickness, filterActorUIDs = []) {
|
|
@@ -78381,7 +78482,7 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78381
78482
|
});
|
|
78382
78483
|
}
|
|
78383
78484
|
actorEntries.forEach((actorEntry) => {
|
|
78384
|
-
if ((0,
|
|
78485
|
+
if ((0,_utilities__WEBPACK_IMPORTED_MODULE_4__.actorIsA)(actorEntry, 'vtkVolume')) {
|
|
78385
78486
|
actorEntry.slabThickness = slabThickness;
|
|
78386
78487
|
}
|
|
78387
78488
|
});
|
|
@@ -78390,6 +78491,27 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78390
78491
|
this.triggerCameraModifiedEventIfNecessary(currentCamera, currentCamera);
|
|
78391
78492
|
this.viewportProperties.slabThickness = slabThickness;
|
|
78392
78493
|
}
|
|
78494
|
+
resetSlabThickness() {
|
|
78495
|
+
const actorEntries = this.getActors();
|
|
78496
|
+
actorEntries.forEach((actorEntry) => {
|
|
78497
|
+
if ((0,_utilities__WEBPACK_IMPORTED_MODULE_4__.actorIsA)(actorEntry, 'vtkVolume')) {
|
|
78498
|
+
actorEntry.slabThickness = _constants__WEBPACK_IMPORTED_MODULE_2__.RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS;
|
|
78499
|
+
}
|
|
78500
|
+
});
|
|
78501
|
+
const currentCamera = this.getCamera();
|
|
78502
|
+
this.updateClippingPlanesForActors(currentCamera);
|
|
78503
|
+
this.triggerCameraModifiedEventIfNecessary(currentCamera, currentCamera);
|
|
78504
|
+
this.viewportProperties.slabThickness = undefined;
|
|
78505
|
+
}
|
|
78506
|
+
getViewReference(viewRefSpecifier = {}) {
|
|
78507
|
+
const viewRef = super.getViewReference(viewRefSpecifier);
|
|
78508
|
+
if (!viewRef?.volumeId) {
|
|
78509
|
+
return;
|
|
78510
|
+
}
|
|
78511
|
+
const volume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(viewRef.volumeId);
|
|
78512
|
+
viewRef.referencedImageId = (0,_utilities__WEBPACK_IMPORTED_MODULE_4__.getClosestImageId)(volume, viewRef.cameraFocalPoint, viewRef.viewPlaneNormal);
|
|
78513
|
+
return viewRef;
|
|
78514
|
+
}
|
|
78393
78515
|
resetProperties(volumeId) {
|
|
78394
78516
|
this._resetProperties(volumeId);
|
|
78395
78517
|
}
|
|
@@ -78401,20 +78523,20 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78401
78523
|
throw new Error(`No actor found for the given volumeId: ${volumeId}`);
|
|
78402
78524
|
}
|
|
78403
78525
|
if (volumeActor.slabThickness) {
|
|
78404
|
-
volumeActor.slabThickness =
|
|
78526
|
+
volumeActor.slabThickness = _constants__WEBPACK_IMPORTED_MODULE_2__.RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS;
|
|
78405
78527
|
this.viewportProperties.slabThickness = undefined;
|
|
78406
78528
|
this.updateClippingPlanesForActors(this.getCamera());
|
|
78407
78529
|
}
|
|
78408
|
-
const imageVolume =
|
|
78530
|
+
const imageVolume = _cache__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay.getVolume(volumeActor.uid);
|
|
78409
78531
|
if (!imageVolume) {
|
|
78410
78532
|
throw new Error(`imageVolume with id: ${volumeActor.uid} does not exist in cache`);
|
|
78411
78533
|
}
|
|
78412
|
-
(0,
|
|
78413
|
-
if ((0,
|
|
78534
|
+
(0,_helpers_setDefaultVolumeVOI__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A)(volumeActor.actor, imageVolume, false);
|
|
78535
|
+
if ((0,_utilities__WEBPACK_IMPORTED_MODULE_4__.isImageActor)(volumeActor)) {
|
|
78414
78536
|
const transferFunction = volumeActor.actor
|
|
78415
78537
|
.getProperty()
|
|
78416
78538
|
.getRGBTransferFunction(0);
|
|
78417
|
-
(0,
|
|
78539
|
+
(0,_utilities_transferFunctionUtils__WEBPACK_IMPORTED_MODULE_7__.setTransferFunctionNodes)(transferFunction, this.initialTransferFunctionNodes);
|
|
78418
78540
|
}
|
|
78419
78541
|
const eventDetails = {
|
|
78420
78542
|
...super.getVOIModifiedEventDetail(volumeId),
|
|
@@ -78424,12 +78546,12 @@ class VolumeViewport extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_6__/*
|
|
|
78424
78546
|
const resetToCenter = true;
|
|
78425
78547
|
const resetCameraRotation = true;
|
|
78426
78548
|
this.resetCamera(resetPan, resetZoom, resetToCenter, resetCameraRotation);
|
|
78427
|
-
(0,
|
|
78549
|
+
(0,_utilities__WEBPACK_IMPORTED_MODULE_4__.triggerEvent)(this.element, _enums__WEBPACK_IMPORTED_MODULE_3__.Events.VOI_MODIFIED, eventDetails);
|
|
78428
78550
|
}
|
|
78429
78551
|
getSlicesClippingPlanes() {
|
|
78430
78552
|
const focalPoints = this.getSlicePlaneCoordinates();
|
|
78431
78553
|
const { viewPlaneNormal } = this.getCamera();
|
|
78432
|
-
const slabThickness =
|
|
78554
|
+
const slabThickness = _constants__WEBPACK_IMPORTED_MODULE_2__.RENDERING_DEFAULTS.MINIMUM_SLAB_THICKNESS;
|
|
78433
78555
|
return focalPoints.map(({ point, sliceIndex }) => {
|
|
78434
78556
|
const vtkPlanes = [_kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_0__/* ["default"].newInstance */ .Ay.newInstance(), _kitware_vtk_js_Common_DataModel_Plane__WEBPACK_IMPORTED_MODULE_0__/* ["default"].newInstance */ .Ay.newInstance()];
|
|
78435
78557
|
this.setOrientationOfClippingPlanes(vtkPlanes, slabThickness, viewPlaneNormal, point);
|
|
@@ -78492,6 +78614,9 @@ class VolumeViewport3D extends _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_1__/
|
|
|
78492
78614
|
resetProperties(volumeId) {
|
|
78493
78615
|
return null;
|
|
78494
78616
|
}
|
|
78617
|
+
resetSlabThickness() {
|
|
78618
|
+
return null;
|
|
78619
|
+
}
|
|
78495
78620
|
}
|
|
78496
78621
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VolumeViewport3D);
|
|
78497
78622
|
|
|
@@ -79789,8 +79914,8 @@ function storedPixelDataToCanvasImageDataPseudocolorLUTPET(image, lutFunction, c
|
|
|
79789
79914
|
}
|
|
79790
79915
|
/* harmony default export */ const rendering_storedPixelDataToCanvasImageDataPseudocolorLUTPET = (storedPixelDataToCanvasImageDataPseudocolorLUTPET);
|
|
79791
79916
|
|
|
79792
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
79793
|
-
var utilities = __webpack_require__(
|
|
79917
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
79918
|
+
var utilities = __webpack_require__(20228);
|
|
79794
79919
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/cpuFallback/rendering/renderPseudoColorImage.js
|
|
79795
79920
|
|
|
79796
79921
|
|
|
@@ -80846,8 +80971,8 @@ function createVolumeMapper(imageData, vtkOpenGLTexture) {
|
|
|
80846
80971
|
return volumeMapper;
|
|
80847
80972
|
}
|
|
80848
80973
|
|
|
80849
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
80850
|
-
var utilities = __webpack_require__(
|
|
80974
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
80975
|
+
var utilities = __webpack_require__(20228);
|
|
80851
80976
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/index.js + 4 modules
|
|
80852
80977
|
var enums = __webpack_require__(98362);
|
|
80853
80978
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/setDefaultVolumeVOI.js
|
|
@@ -80960,7 +81085,7 @@ var addImageSlicesToViewports = __webpack_require__(25271);
|
|
|
80960
81085
|
/* harmony export */ });
|
|
80961
81086
|
/* harmony import */ var _loaders_imageLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79220);
|
|
80962
81087
|
/* harmony import */ var _metaData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55692);
|
|
80963
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
81088
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20228);
|
|
80964
81089
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98362);
|
|
80965
81090
|
/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13320);
|
|
80966
81091
|
|
|
@@ -81108,7 +81233,7 @@ function _isCurrentImagePTPrescaled(modality, imageVolume) {
|
|
|
81108
81233
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
81109
81234
|
/* harmony export */ g: () => (/* binding */ resetVolumeNewImageState)
|
|
81110
81235
|
/* harmony export */ });
|
|
81111
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
81236
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20228);
|
|
81112
81237
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98362);
|
|
81113
81238
|
/* harmony import */ var _getRenderingEngine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49184);
|
|
81114
81239
|
/* harmony import */ var _BaseVolumeViewport__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6203);
|
|
@@ -81178,8 +81303,8 @@ var Events = __webpack_require__(11731);
|
|
|
81178
81303
|
var renderingEngineCache = __webpack_require__(94070);
|
|
81179
81304
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/eventTarget.js
|
|
81180
81305
|
var eventTarget = __webpack_require__(51884);
|
|
81181
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
81182
|
-
var utilities = __webpack_require__(
|
|
81306
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
81307
|
+
var utilities = __webpack_require__(20228);
|
|
81183
81308
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/vtkClasses/index.js + 27 modules
|
|
81184
81309
|
var vtkClasses = __webpack_require__(69585);
|
|
81185
81310
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/ViewportType.js
|
|
@@ -81511,7 +81636,12 @@ class RenderingEngine {
|
|
|
81511
81636
|
const prevCamera = vp.getCamera();
|
|
81512
81637
|
const rotation = vp.getRotation();
|
|
81513
81638
|
const { flipHorizontal } = prevCamera;
|
|
81514
|
-
|
|
81639
|
+
const resetPan = true;
|
|
81640
|
+
const resetZoom = true;
|
|
81641
|
+
const resetToCenter = true;
|
|
81642
|
+
const resetRotation = false;
|
|
81643
|
+
const supressEvents = true;
|
|
81644
|
+
vp.resetCamera(resetPan, resetZoom, resetToCenter, resetRotation, supressEvents);
|
|
81515
81645
|
const displayArea = vp.getDisplayArea();
|
|
81516
81646
|
if (keepCamera) {
|
|
81517
81647
|
if (displayArea) {
|
|
@@ -88169,7 +88299,7 @@ Settings.getDefaultSettings().set('useCursors', true);
|
|
|
88169
88299
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
88170
88300
|
/* harmony export */ });
|
|
88171
88301
|
/* unused harmony export Cache */
|
|
88172
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
88302
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20228);
|
|
88173
88303
|
/* harmony import */ var _eventTarget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51884);
|
|
88174
88304
|
/* harmony import */ var _enums_Events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11731);
|
|
88175
88305
|
/* harmony import */ var _classes_ImageVolume__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77076);
|
|
@@ -88185,7 +88315,7 @@ class Cache {
|
|
|
88185
88315
|
this._imageCacheSize = 0;
|
|
88186
88316
|
this._volumeCacheSize = 0;
|
|
88187
88317
|
this._maxCacheSize = 3 * ONE_GB;
|
|
88188
|
-
this._maxInstanceSize =
|
|
88318
|
+
this._maxInstanceSize = 4 * ONE_GB - 8;
|
|
88189
88319
|
this.setMaxCacheSize = (newMaxCacheSize) => {
|
|
88190
88320
|
if (!newMaxCacheSize || typeof newMaxCacheSize !== 'number') {
|
|
88191
88321
|
const errorMessage = `New max cacheSize ${this._maxCacheSize} should be defined and should be a number.`;
|
|
@@ -88651,8 +88781,8 @@ function isTypedArray(obj) {
|
|
|
88651
88781
|
obj instanceof Float64Array);
|
|
88652
88782
|
}
|
|
88653
88783
|
|
|
88654
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
88655
|
-
var utilities = __webpack_require__(
|
|
88784
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
88785
|
+
var utilities = __webpack_require__(20228);
|
|
88656
88786
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/vtkClasses/index.js + 27 modules
|
|
88657
88787
|
var vtkClasses = __webpack_require__(69585);
|
|
88658
88788
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/cache/cache.js
|
|
@@ -96737,8 +96867,8 @@ async function createAndCacheGeometry(geometryId, options) {
|
|
|
96737
96867
|
|
|
96738
96868
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/loaders/ProgressiveRetrieveImages.js + 4 modules
|
|
96739
96869
|
var ProgressiveRetrieveImages = __webpack_require__(71090);
|
|
96740
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
96741
|
-
var utilities = __webpack_require__(
|
|
96870
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
96871
|
+
var utilities = __webpack_require__(20228);
|
|
96742
96872
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/triggerEvent.js
|
|
96743
96873
|
var triggerEvent = __webpack_require__(13292);
|
|
96744
96874
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/helpers/index.js + 5 modules
|
|
@@ -96806,8 +96936,8 @@ function e(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{
|
|
|
96806
96936
|
var enums = __webpack_require__(98362);
|
|
96807
96937
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/getRenderingEngine.js
|
|
96808
96938
|
var getRenderingEngine = __webpack_require__(49184);
|
|
96809
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
96810
|
-
var utilities = __webpack_require__(
|
|
96939
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
96940
|
+
var utilities = __webpack_require__(20228);
|
|
96811
96941
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/webWorkerManager/webWorkerManager.js
|
|
96812
96942
|
var webWorkerManager = __webpack_require__(61874);
|
|
96813
96943
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/init.js
|
|
@@ -97129,8 +97259,8 @@ const interleavedRetrieveConfiguration = [
|
|
|
97129
97259
|
|
|
97130
97260
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/loaders/imageLoader.js
|
|
97131
97261
|
var imageLoader = __webpack_require__(79220);
|
|
97132
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js +
|
|
97133
|
-
var utilities = __webpack_require__(
|
|
97262
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/index.js + 68 modules
|
|
97263
|
+
var utilities = __webpack_require__(20228);
|
|
97134
97264
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/requestPool/imageLoadPoolManager.js
|
|
97135
97265
|
var imageLoadPoolManager = __webpack_require__(775);
|
|
97136
97266
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/cache/index.js
|
|
@@ -97431,7 +97561,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97431
97561
|
/* harmony import */ var _cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13320);
|
|
97432
97562
|
/* harmony import */ var _enums_Events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11731);
|
|
97433
97563
|
/* harmony import */ var _eventTarget__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51884);
|
|
97434
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
97564
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20228);
|
|
97435
97565
|
/* harmony import */ var _requestPool_imageLoadPoolManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(775);
|
|
97436
97566
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92136);
|
|
97437
97567
|
|
|
@@ -97701,7 +97831,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
97701
97831
|
/* harmony import */ var _utilities_triggerEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(13292);
|
|
97702
97832
|
/* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(48463);
|
|
97703
97833
|
/* harmony import */ var lodash_clonedeep__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_clonedeep__WEBPACK_IMPORTED_MODULE_8__);
|
|
97704
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
97834
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20228);
|
|
97705
97835
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(71702);
|
|
97706
97836
|
/* harmony import */ var _utilities_cacheUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(51631);
|
|
97707
97837
|
|
|
@@ -97998,8 +98128,22 @@ function generateVolumeScalarData(targetBuffer, scalarLength) {
|
|
|
97998
98128
|
}
|
|
97999
98129
|
let volumeScalarData;
|
|
98000
98130
|
if (targetBuffer?.sharedArrayBuffer) {
|
|
98001
|
-
|
|
98002
|
-
|
|
98131
|
+
switch (targetBuffer.type) {
|
|
98132
|
+
case 'Float32Array':
|
|
98133
|
+
volumeScalarData = (0,_utilities__WEBPACK_IMPORTED_MODULE_9__.createFloat32SharedArray)(scalarLength);
|
|
98134
|
+
break;
|
|
98135
|
+
case 'Uint8Array':
|
|
98136
|
+
volumeScalarData = (0,_utilities__WEBPACK_IMPORTED_MODULE_9__.createUint8SharedArray)(scalarLength);
|
|
98137
|
+
break;
|
|
98138
|
+
case 'Uint16Array':
|
|
98139
|
+
volumeScalarData = (0,_utilities__WEBPACK_IMPORTED_MODULE_9__.createUint16SharedArray)(scalarLength);
|
|
98140
|
+
break;
|
|
98141
|
+
case 'Int16Array':
|
|
98142
|
+
volumeScalarData = (0,_utilities__WEBPACK_IMPORTED_MODULE_9__.createUint16SharedArray)(scalarLength);
|
|
98143
|
+
break;
|
|
98144
|
+
default:
|
|
98145
|
+
throw new Error('generateVolumeScalarData: SharedArrayBuffer is not supported for the specified target buffer type');
|
|
98146
|
+
}
|
|
98003
98147
|
}
|
|
98004
98148
|
else {
|
|
98005
98149
|
volumeScalarData = new TypedArrayConstructor(scalarLength);
|
|
@@ -98089,7 +98233,7 @@ imageLoadPoolManager.setMaxSimultaneousRequests(_enums_RequestType__WEBPACK_IMPO
|
|
|
98089
98233
|
/* harmony export */ R: () => (/* binding */ RequestPoolManager)
|
|
98090
98234
|
/* harmony export */ });
|
|
98091
98235
|
/* harmony import */ var _enums_RequestType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15453);
|
|
98092
|
-
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
98236
|
+
/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20228);
|
|
98093
98237
|
|
|
98094
98238
|
|
|
98095
98239
|
class RequestPoolManager {
|
|
@@ -98400,7 +98544,7 @@ function findMatchingColormap(rgbPoints, actor) {
|
|
|
98400
98544
|
return false;
|
|
98401
98545
|
}
|
|
98402
98546
|
for (let i = 0; i < presetRGBPoints.length; i += 4) {
|
|
98403
|
-
if (!(0,_isEqual__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .
|
|
98547
|
+
if (!(0,_isEqual__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Ay)(presetRGBPoints.slice(i + 1, i + 4), rgbPoints.slice(i + 1, i + 4))) {
|
|
98404
98548
|
return false;
|
|
98405
98549
|
}
|
|
98406
98550
|
}
|
|
@@ -98429,6 +98573,7 @@ function findMatchingColormap(rgbPoints, actor) {
|
|
|
98429
98573
|
}
|
|
98430
98574
|
return {
|
|
98431
98575
|
name: matchedColormap.Name,
|
|
98576
|
+
opacity,
|
|
98432
98577
|
};
|
|
98433
98578
|
}
|
|
98434
98579
|
|
|
@@ -98733,6 +98878,73 @@ const getVolumeId = (targetId) => {
|
|
|
98733
98878
|
};
|
|
98734
98879
|
|
|
98735
98880
|
|
|
98881
|
+
/***/ }),
|
|
98882
|
+
|
|
98883
|
+
/***/ 76399:
|
|
98884
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
98885
|
+
|
|
98886
|
+
"use strict";
|
|
98887
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
98888
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
98889
|
+
/* harmony export */ });
|
|
98890
|
+
/* harmony import */ var _getSliceRange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51849);
|
|
98891
|
+
/* harmony import */ var _getTargetVolumeAndSpacingInNormalDir__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94172);
|
|
98892
|
+
|
|
98893
|
+
|
|
98894
|
+
function getVolumeSliceRangeInfo(viewport, volumeId, useSlabThickness = false) {
|
|
98895
|
+
const camera = viewport.getCamera();
|
|
98896
|
+
const { focalPoint, viewPlaneNormal } = camera;
|
|
98897
|
+
const { spacingInNormalDirection, actorUID } = (0,_getTargetVolumeAndSpacingInNormalDir__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(viewport, camera, volumeId, useSlabThickness);
|
|
98898
|
+
if (!actorUID) {
|
|
98899
|
+
throw new Error(`Could not find image volume with id ${volumeId} in the viewport`);
|
|
98900
|
+
}
|
|
98901
|
+
const actorEntry = viewport.getActor(actorUID);
|
|
98902
|
+
if (!actorEntry) {
|
|
98903
|
+
console.warn('No actor found for with actorUID of', actorUID);
|
|
98904
|
+
return null;
|
|
98905
|
+
}
|
|
98906
|
+
const volumeActor = actorEntry.actor;
|
|
98907
|
+
const sliceRange = (0,_getSliceRange__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(volumeActor, viewPlaneNormal, focalPoint);
|
|
98908
|
+
return {
|
|
98909
|
+
sliceRange,
|
|
98910
|
+
spacingInNormalDirection,
|
|
98911
|
+
camera,
|
|
98912
|
+
};
|
|
98913
|
+
}
|
|
98914
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getVolumeSliceRangeInfo);
|
|
98915
|
+
|
|
98916
|
+
|
|
98917
|
+
/***/ }),
|
|
98918
|
+
|
|
98919
|
+
/***/ 62255:
|
|
98920
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
98921
|
+
|
|
98922
|
+
"use strict";
|
|
98923
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
98924
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
98925
|
+
/* harmony export */ });
|
|
98926
|
+
/* harmony import */ var _getVolumeSliceRangeInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76399);
|
|
98927
|
+
|
|
98928
|
+
function getVolumeViewportScrollInfo(viewport, volumeId, useSlabThickness = false) {
|
|
98929
|
+
const { sliceRange, spacingInNormalDirection, camera } = (0,_getVolumeSliceRangeInfo__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(viewport, volumeId, useSlabThickness);
|
|
98930
|
+
const { min, max, current } = sliceRange;
|
|
98931
|
+
const numScrollSteps = Math.round((max - min) / spacingInNormalDirection);
|
|
98932
|
+
const fraction = (current - min) / (max - min);
|
|
98933
|
+
const floatingStepNumber = fraction * numScrollSteps;
|
|
98934
|
+
const currentStepIndex = Math.round(floatingStepNumber);
|
|
98935
|
+
return {
|
|
98936
|
+
numScrollSteps,
|
|
98937
|
+
currentStepIndex,
|
|
98938
|
+
sliceRangeInfo: {
|
|
98939
|
+
sliceRange,
|
|
98940
|
+
spacingInNormalDirection,
|
|
98941
|
+
camera,
|
|
98942
|
+
},
|
|
98943
|
+
};
|
|
98944
|
+
}
|
|
98945
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getVolumeViewportScrollInfo);
|
|
98946
|
+
|
|
98947
|
+
|
|
98736
98948
|
/***/ }),
|
|
98737
98949
|
|
|
98738
98950
|
/***/ 73139:
|
|
@@ -98752,7 +98964,7 @@ function hasNaNValues(input) {
|
|
|
98752
98964
|
|
|
98753
98965
|
/***/ }),
|
|
98754
98966
|
|
|
98755
|
-
/***/
|
|
98967
|
+
/***/ 20228:
|
|
98756
98968
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
98757
98969
|
|
|
98758
98970
|
"use strict";
|
|
@@ -98763,6 +98975,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
98763
98975
|
__webpack_require__.d(__webpack_exports__, {
|
|
98764
98976
|
PointsManager: () => (/* reexport */ PointsManager),
|
|
98765
98977
|
ProgressiveIterator: () => (/* reexport */ ProgressiveIterator),
|
|
98978
|
+
RLEVoxelMap: () => (/* reexport */ RLEVoxelMap),
|
|
98766
98979
|
VoxelManager: () => (/* reexport */ VoxelManager),
|
|
98767
98980
|
actorIsA: () => (/* reexport */ actorCheck/* actorIsA */.N),
|
|
98768
98981
|
applyPreset: () => (/* reexport */ applyPreset),
|
|
@@ -98808,8 +99021,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
98808
99021
|
getVoiFromSigmoidRGBTransferFunction: () => (/* reexport */ getVoiFromSigmoidRGBTransferFunction),
|
|
98809
99022
|
getVolumeActorCorners: () => (/* reexport */ getVolumeActorCorners/* default */.A),
|
|
98810
99023
|
getVolumeId: () => (/* reexport */ getVolumeId/* getVolumeId */.A),
|
|
98811
|
-
getVolumeSliceRangeInfo: () => (/* reexport */
|
|
98812
|
-
getVolumeViewportScrollInfo: () => (/* reexport */
|
|
99024
|
+
getVolumeSliceRangeInfo: () => (/* reexport */ getVolumeSliceRangeInfo/* default */.A),
|
|
99025
|
+
getVolumeViewportScrollInfo: () => (/* reexport */ getVolumeViewportScrollInfo/* default */.A),
|
|
98813
99026
|
getVolumeViewportsContainingSameVolumes: () => (/* reexport */ utilities_getVolumeViewportsContainingSameVolumes),
|
|
98814
99027
|
hasFloatScalingParameters: () => (/* reexport */ hasFloatScalingParameters),
|
|
98815
99028
|
hasNaNValues: () => (/* reexport */ hasNaNValues/* default */.A),
|
|
@@ -98818,7 +99031,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
98818
99031
|
imageToWorldCoords: () => (/* reexport */ imageToWorldCoords),
|
|
98819
99032
|
indexWithinDimensions: () => (/* reexport */ indexWithinDimensions),
|
|
98820
99033
|
invertRgbTransferFunction: () => (/* reexport */ invertRgbTransferFunction),
|
|
98821
|
-
isEqual: () => (/* reexport */ isEqual/*
|
|
99034
|
+
isEqual: () => (/* reexport */ isEqual/* isEqual */.n4),
|
|
99035
|
+
isEqualAbs: () => (/* reexport */ isEqual/* isEqualAbs */.Ph),
|
|
99036
|
+
isEqualNegative: () => (/* reexport */ isEqual/* isEqualNegative */.WC),
|
|
98822
99037
|
isImageActor: () => (/* reexport */ actorCheck/* isImageActor */.e),
|
|
98823
99038
|
isOpposite: () => (/* reexport */ isOpposite),
|
|
98824
99039
|
isPTPrescaledWithSUV: () => (/* reexport */ utilities_isPTPrescaledWithSUV),
|
|
@@ -99249,6 +99464,9 @@ function createUint8SharedArray(length) {
|
|
|
99249
99464
|
|
|
99250
99465
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/createFloat32SharedArray.js
|
|
99251
99466
|
|
|
99467
|
+
const SMALL_MEMORY_LIMIT = 2 * 1024 * 1024 * 1024 - 2;
|
|
99468
|
+
const BIG_MEMORY_LIMIT = SMALL_MEMORY_LIMIT * 2;
|
|
99469
|
+
const PAGE_SIZE = 65536;
|
|
99252
99470
|
function createFloat32SharedArray(length) {
|
|
99253
99471
|
if (!(0,init/* getShouldUseSharedArrayBuffer */.TB)()) {
|
|
99254
99472
|
throw new Error('Your page is NOT cross-origin isolated, see https://developer.mozilla.org/en-US/docs/Web/API/crossOriginIsolated');
|
|
@@ -99256,8 +99474,20 @@ function createFloat32SharedArray(length) {
|
|
|
99256
99474
|
if (window.SharedArrayBuffer === undefined) {
|
|
99257
99475
|
throw new Error('SharedArrayBuffer is NOT supported in your browser see https://developer.chrome.com/blog/enabling-shared-array-buffer/');
|
|
99258
99476
|
}
|
|
99259
|
-
const
|
|
99260
|
-
|
|
99477
|
+
const byteLength = length * 4;
|
|
99478
|
+
if (byteLength < SMALL_MEMORY_LIMIT) {
|
|
99479
|
+
const sharedArrayBuffer = new SharedArrayBuffer(byteLength);
|
|
99480
|
+
return new Float32Array(sharedArrayBuffer);
|
|
99481
|
+
}
|
|
99482
|
+
else if (byteLength < BIG_MEMORY_LIMIT) {
|
|
99483
|
+
const pages = Math.ceil(byteLength / PAGE_SIZE);
|
|
99484
|
+
const memory = new WebAssembly.Memory({
|
|
99485
|
+
initial: pages,
|
|
99486
|
+
maximum: pages,
|
|
99487
|
+
shared: true,
|
|
99488
|
+
});
|
|
99489
|
+
return new Float32Array(memory.buffer, 0, length);
|
|
99490
|
+
}
|
|
99261
99491
|
}
|
|
99262
99492
|
/* harmony default export */ const utilities_createFloat32SharedArray = (createFloat32SharedArray);
|
|
99263
99493
|
|
|
@@ -99648,54 +99878,12 @@ function imageToWorldCoords(imageId, imageCoords) {
|
|
|
99648
99878
|
return Array.from(imageCoordsInWorld);
|
|
99649
99879
|
}
|
|
99650
99880
|
|
|
99881
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/getVolumeSliceRangeInfo.js
|
|
99882
|
+
var getVolumeSliceRangeInfo = __webpack_require__(76399);
|
|
99883
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/getVolumeViewportScrollInfo.js
|
|
99884
|
+
var getVolumeViewportScrollInfo = __webpack_require__(62255);
|
|
99651
99885
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/getSliceRange.js
|
|
99652
99886
|
var getSliceRange = __webpack_require__(51849);
|
|
99653
|
-
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/getVolumeSliceRangeInfo.js
|
|
99654
|
-
|
|
99655
|
-
|
|
99656
|
-
function getVolumeSliceRangeInfo(viewport, volumeId, useSlabThickness = false) {
|
|
99657
|
-
const camera = viewport.getCamera();
|
|
99658
|
-
const { focalPoint, viewPlaneNormal } = camera;
|
|
99659
|
-
const { spacingInNormalDirection, actorUID } = (0,getTargetVolumeAndSpacingInNormalDir/* default */.A)(viewport, camera, volumeId, useSlabThickness);
|
|
99660
|
-
if (!actorUID) {
|
|
99661
|
-
throw new Error(`Could not find image volume with id ${volumeId} in the viewport`);
|
|
99662
|
-
}
|
|
99663
|
-
const actorEntry = viewport.getActor(actorUID);
|
|
99664
|
-
if (!actorEntry) {
|
|
99665
|
-
console.warn('No actor found for with actorUID of', actorUID);
|
|
99666
|
-
return null;
|
|
99667
|
-
}
|
|
99668
|
-
const volumeActor = actorEntry.actor;
|
|
99669
|
-
const sliceRange = (0,getSliceRange/* default */.A)(volumeActor, viewPlaneNormal, focalPoint);
|
|
99670
|
-
return {
|
|
99671
|
-
sliceRange,
|
|
99672
|
-
spacingInNormalDirection,
|
|
99673
|
-
camera,
|
|
99674
|
-
};
|
|
99675
|
-
}
|
|
99676
|
-
/* harmony default export */ const utilities_getVolumeSliceRangeInfo = (getVolumeSliceRangeInfo);
|
|
99677
|
-
|
|
99678
|
-
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/getVolumeViewportScrollInfo.js
|
|
99679
|
-
|
|
99680
|
-
function getVolumeViewportScrollInfo(viewport, volumeId, useSlabThickness = false) {
|
|
99681
|
-
const { sliceRange, spacingInNormalDirection, camera } = utilities_getVolumeSliceRangeInfo(viewport, volumeId, useSlabThickness);
|
|
99682
|
-
const { min, max, current } = sliceRange;
|
|
99683
|
-
const numScrollSteps = Math.round((max - min) / spacingInNormalDirection);
|
|
99684
|
-
const fraction = (current - min) / (max - min);
|
|
99685
|
-
const floatingStepNumber = fraction * numScrollSteps;
|
|
99686
|
-
const currentStepIndex = Math.round(floatingStepNumber);
|
|
99687
|
-
return {
|
|
99688
|
-
numScrollSteps,
|
|
99689
|
-
currentStepIndex,
|
|
99690
|
-
sliceRangeInfo: {
|
|
99691
|
-
sliceRange,
|
|
99692
|
-
spacingInNormalDirection,
|
|
99693
|
-
camera,
|
|
99694
|
-
},
|
|
99695
|
-
};
|
|
99696
|
-
}
|
|
99697
|
-
/* harmony default export */ const utilities_getVolumeViewportScrollInfo = (getVolumeViewportScrollInfo);
|
|
99698
|
-
|
|
99699
99887
|
;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/utilities/snapFocalPointToSlice.js
|
|
99700
99888
|
|
|
99701
99889
|
function snapFocalPointToSlice(focalPoint, position, sliceRange, viewPlaneNormal, spacingInNormalDirection, deltaFrames) {
|
|
@@ -100596,8 +100784,8 @@ function isValidVolume(imageIds) {
|
|
|
100596
100784
|
modality === baseMetadata.modality &&
|
|
100597
100785
|
columns === baseMetadata.columns &&
|
|
100598
100786
|
rows === baseMetadata.rows &&
|
|
100599
|
-
(0,isEqual/* default */.
|
|
100600
|
-
(0,isEqual/* default */.
|
|
100787
|
+
(0,isEqual/* default */.Ay)(imageOrientationPatient, baseMetadata.imageOrientationPatient) &&
|
|
100788
|
+
(0,isEqual/* default */.Ay)(pixelSpacing, baseMetadata.pixelSpacing));
|
|
100601
100789
|
});
|
|
100602
100790
|
return validVolume;
|
|
100603
100791
|
}
|
|
@@ -101430,7 +101618,7 @@ class VoxelManager {
|
|
|
101430
101618
|
return [scalarData[index++], scalarData[index++], scalarData[index++]];
|
|
101431
101619
|
}, (index, v) => {
|
|
101432
101620
|
index *= 3;
|
|
101433
|
-
const isChanged = !(0,isEqual/* default */.
|
|
101621
|
+
const isChanged = !(0,isEqual/* default */.Ay)(scalarData[index], v);
|
|
101434
101622
|
scalarData[index++] = v[0];
|
|
101435
101623
|
scalarData[index++] = v[1];
|
|
101436
101624
|
scalarData[index++] = v[2];
|
|
@@ -101784,6 +101972,7 @@ function hexToRgb(hex) {
|
|
|
101784
101972
|
|
|
101785
101973
|
|
|
101786
101974
|
|
|
101975
|
+
|
|
101787
101976
|
|
|
101788
101977
|
|
|
101789
101978
|
/***/ }),
|
|
@@ -101793,7 +101982,10 @@ function hexToRgb(hex) {
|
|
|
101793
101982
|
|
|
101794
101983
|
"use strict";
|
|
101795
101984
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
101796
|
-
/* harmony export */
|
|
101985
|
+
/* harmony export */ Ay: () => (/* binding */ isEqual),
|
|
101986
|
+
/* harmony export */ Ph: () => (/* binding */ isEqualAbs),
|
|
101987
|
+
/* harmony export */ WC: () => (/* binding */ isEqualNegative),
|
|
101988
|
+
/* harmony export */ n4: () => (/* binding */ isEqual)
|
|
101797
101989
|
/* harmony export */ });
|
|
101798
101990
|
function areNumbersEqualWithTolerance(num1, num2, tolerance) {
|
|
101799
101991
|
return Math.abs(num1 - num2) <= tolerance;
|
|
@@ -101827,6 +102019,11 @@ function isEqual(v1, v2, tolerance = 1e-5) {
|
|
|
101827
102019
|
}
|
|
101828
102020
|
return false;
|
|
101829
102021
|
}
|
|
102022
|
+
const negative = (v) => typeof v === 'number' ? -v : v?.map ? v.map(negative) : !v;
|
|
102023
|
+
const abs = (v) => typeof v === 'number' ? Math.abs(v) : v?.map ? v.map(abs) : v;
|
|
102024
|
+
const isEqualNegative = (v1, v2, tolerance = undefined) => isEqual(v1, negative(v2), tolerance);
|
|
102025
|
+
const isEqualAbs = (v1, v2, tolerance = undefined) => isEqual(abs(v1), abs(v2), tolerance);
|
|
102026
|
+
|
|
101830
102027
|
|
|
101831
102028
|
|
|
101832
102029
|
/***/ }),
|
|
@@ -257993,7 +258190,7 @@ var selectOrdinal = function selectOrdinal() {
|
|
|
257993
258190
|
/******/ // This function allow to reference async chunks
|
|
257994
258191
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
257995
258192
|
/******/ // return url for filenames based on template
|
|
257996
|
-
/******/ return "" + ({"54":"histogram-worker","525":"dicom-microscopy-viewer","572":"polySeg","584":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"54":"829e14ec12c2b41a4323","94":"
|
|
258193
|
+
/******/ return "" + ({"54":"histogram-worker","525":"dicom-microscopy-viewer","572":"polySeg","584":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"54":"829e14ec12c2b41a4323","94":"830180a268276294cb20","109":"b4fee2a22b622839baf5","121":"b582314ec0024fdf2d15","236":"e128a6f4c3e4600c55b0","243":"d1aebc1b37fbc79b4efa","295":"9926ff25c6dbf53845b1","297":"194d8985ab974839b5b6","325":"b9562b2d87395c98c6fd","342":"8da40c53fe26b492a0a1","367":"da5db5b510b537e43888","370":"d009a20516eae7c98921","390":"41fd0a538167790d9d47","445":"38c6d2af64e41cd7c614","448":"8cc61deda2bc80acba01","481":"a2b01ffe06a262fa9375","483":"67e9abdcf23262c94606","487":"95038d078cb68e2ef2fb","525":"d3a56dc9f62df5e11019","530":"17b9a34fefff133e5379","544":"4d1fb477b572f50f4220","550":"a716f910818556a3fe25","572":"e577ad8d051493b01ed8","574":"a09bcafd228eaa261546","584":"63bd26cc0f6f37ade9c9","644":"1e77691d2eeb96a423b0","682":"a1fa16d4d12332743a01","699":"ce1da733d32e72f233dc","721":"24b04bc522eb42eed661","722":"1242e0348afc63ca4f5e","726":"c8de818cf1a3ff0cf7d2","776":"4b13326929e972f1b556","783":"82c773591d704fd43704","835":"4c0eaa2c1a427ee41817","862":"1380dc65a7782ec98457","889":"452d430a2de1befbb4b6","905":"7cdf93c8dcb4a64cf85a","907":"770adbc99f6c80f17ab2","931":"d270a1fda9a2836c3cc5","939":"9d93b2e47c52338747a2","961":"ebc13fc1dd54a0a4c577","981":"acde3b12915e455d660c","989":"852be152ceda813c34b8","998":"cd8fbf4a16475a9eaa13"}[chunkId] + ".js";
|
|
257997
258194
|
/******/ };
|
|
257998
258195
|
/******/ })();
|
|
257999
258196
|
/******/
|