@ohif/app 3.8.0-beta.5 → 3.8.0-beta.51
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/{12.bundle.1c0fcebb2e63f538b03b.js → 12.bundle.505ff8d33e3b91db6c4b.js} +9 -11
- package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
- package/dist/{663.bundle.68a67d3504dc24cccc1a.js → 170.bundle.3364dca0af95fde51ec6.js} +97 -89
- package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.aff453c348111303ceac.js} +107 -74
- package/dist/181.css +1 -1
- package/dist/{370.bundle.085badd6055e8feea84f.js → 185.bundle.892c8cbfeaaa14540821.js} +338 -209
- package/dist/{19.bundle.05ccf775cb70682dfcdf.js → 19.bundle.15ee26f7912d361e90b6.js} +127 -136
- package/dist/{99.bundle.51efd3493cd1de6bf63c.js → 199.bundle.a6fc393364e32b43a307.js} +215 -162
- package/dist/202.bundle.495cba6bbee744cf8f72.js +18239 -0
- package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
- package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 223.bundle.d4ac6ef2cfe47a9c4afc.js} +4422 -3671
- package/dist/{23.bundle.e008ad788170f2ed5569.js → 23.bundle.9d989522a6e4fdcb9c72.js} +1 -1
- package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.577da106dd763c7bf9d0.js} +22 -27
- package/dist/{281.bundle.64640869327edc0d2cae.js → 281.bundle.849a5e58fb2c0a9012dc.js} +23 -25
- package/dist/{82.bundle.9e269153bafc15562988.js → 290.bundle.744ac8d04daee807702f.js} +1244 -695
- package/dist/{359.bundle.e2f5680a854894c32944.js → 359.bundle.59878f46325c60f5d603.js} +27 -30
- package/dist/{410.bundle.8bb12b01e1f838340950.js → 410.bundle.ac46ff16910fa2785bcc.js} +24 -28
- package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
- package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.311cd3be9916e08450e9.js} +28 -41
- package/dist/{221.bundle.da7732c6f158b6f2b0d8.js → 466.bundle.43f3b29a2e1665bb9a65.js} +161 -151
- package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.eeb78105b59e688832a6.js} +31 -35
- package/dist/{788.bundle.428c065311327135d817.js → 483.bundle.3a3d61f78d5f1f8ad574.js} +131 -180
- package/dist/{506.bundle.c3d01c4b6cc01096ce9e.js → 506.bundle.97b3dd0fd0f4467dc21c.js} +13 -18
- package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
- package/dist/{613.bundle.de79995392c3fd2e9637.js → 613.bundle.72d635ed76fa208309f7.js} +76 -50
- package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 661.bundle.949c984fe2f9f753b65c.js} +1851 -8944
- package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
- package/dist/{687.bundle.763e03b2624b6cc03ad2.js → 687.bundle.a0c6c77073595745e58e.js} +19 -35
- package/dist/{342.bundle.22d2df5cf6d83b24acee.js → 738.bundle.bf1d2c76e385a091999d.js} +938 -571
- package/dist/{814.bundle.d45ba7f8b856fbd4e75d.js → 814.bundle.477d51b23a2fe79a5b96.js} +9 -11
- package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.8b745e28bc9eb9afbc61.js} +14 -16
- package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 831.bundle.127a3064e8844d6d2c82.js} +1 -368
- package/dist/{886.bundle.d5116d9b8ea4964b68a0.js → 886.bundle.94a4536167d0f8cae1ae.js} +19 -23
- package/dist/95.bundle.2236101be3cc36b322e8.js +8769 -0
- package/dist/{236.bundle.09d155c6f44b5a44e4bf.js → 965.bundle.5a31aeb079b7e72cec9c.js} +104 -126
- package/dist/app.bundle.css +11 -11
- package/dist/{app.bundle.671d2bb084d88c0cf3b7.js → app.bundle.ef06991fb9bbafce36ed.js} +185194 -61390
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
- package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
- package/dist/serve.json +12 -0
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- package/dist/202.bundle.d3490836f71e001dd30f.js +0 -6336
- package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
- package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
- package/dist/75788f12450d4c5ed494.wasm +0 -0
- package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
- package/dist/957.bundle.9ea4506963ef8b2d84ba.js +0 -30077
- package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
- /package/dist/{82.css → 290.css} +0 -0
- /package/dist/{221.css → 466.css} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[965],{
|
|
2
3
|
|
|
3
4
|
/***/ 80965:
|
|
4
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5
6
|
|
|
6
|
-
"use strict";
|
|
7
7
|
// ESM COMPAT FLAG
|
|
8
8
|
__webpack_require__.r(__webpack_exports__);
|
|
9
9
|
|
|
@@ -20,14 +20,14 @@ const id = package_namespaceObject.u2;
|
|
|
20
20
|
|
|
21
21
|
// EXTERNAL MODULE: ../../../node_modules/react/index.js
|
|
22
22
|
var react = __webpack_require__(43001);
|
|
23
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
24
|
-
var src = __webpack_require__(
|
|
23
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
|
|
24
|
+
var src = __webpack_require__(18414);
|
|
25
25
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
26
26
|
var core_src = __webpack_require__(71771);
|
|
27
27
|
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
|
|
28
28
|
var es = __webpack_require__(69190);
|
|
29
|
-
// EXTERNAL MODULE: ../../../node_modules/mathjs/lib/esm/index.js +
|
|
30
|
-
var esm = __webpack_require__(
|
|
29
|
+
// EXTERNAL MODULE: ../../../node_modules/mathjs/lib/esm/index.js + 996 modules
|
|
30
|
+
var esm = __webpack_require__(2223);
|
|
31
31
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/coordinateFormatScoord3d2Geometry.js
|
|
32
32
|
|
|
33
33
|
|
|
@@ -414,11 +414,10 @@ class ViewerManager extends core_src/* PubSubService */.hC {
|
|
|
414
414
|
* @param {object} roi.properties - ROI properties
|
|
415
415
|
* @returns {void}
|
|
416
416
|
*/
|
|
417
|
-
updateROIProperties(
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
} = _ref;
|
|
417
|
+
updateROIProperties({
|
|
418
|
+
uid,
|
|
419
|
+
properties
|
|
420
|
+
}) {
|
|
422
421
|
this.viewer.updateROI({
|
|
423
422
|
uid,
|
|
424
423
|
properties
|
|
@@ -617,9 +616,7 @@ const RoiAnnotation_EVENTS = {
|
|
|
617
616
|
* Represents a single annotation for the Microscopy Viewer
|
|
618
617
|
*/
|
|
619
618
|
class RoiAnnotation extends core_src/* PubSubService */.hC {
|
|
620
|
-
constructor(roiGraphic, studyInstanceUID, seriesInstanceUID) {
|
|
621
|
-
let label = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
622
|
-
let viewState = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
619
|
+
constructor(roiGraphic, studyInstanceUID, seriesInstanceUID, label = '', viewState = null) {
|
|
623
620
|
super(RoiAnnotation_EVENTS);
|
|
624
621
|
this.uid = roiGraphic.uid;
|
|
625
622
|
this.roiGraphic = roiGraphic;
|
|
@@ -770,6 +767,7 @@ class RoiAnnotation extends core_src/* PubSubService */.hC {
|
|
|
770
767
|
|
|
771
768
|
/* harmony default export */ const utils_RoiAnnotation = (RoiAnnotation);
|
|
772
769
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/services/MicroscopyService.ts
|
|
770
|
+
var _class;
|
|
773
771
|
|
|
774
772
|
|
|
775
773
|
|
|
@@ -1304,21 +1302,16 @@ class MicroscopyService extends core_src/* PubSubService */.hC {
|
|
|
1304
1302
|
* @param {RoiAnnotation} roiAnnotation The instance to be relabelled
|
|
1305
1303
|
* @param {boolean} newAnnotation Whether the annotation is newly drawn (so it deletes on cancel).
|
|
1306
1304
|
*/
|
|
1307
|
-
triggerRelabel(roiAnnotation) {
|
|
1308
|
-
let newAnnotation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1309
|
-
let onRelabel = arguments.length > 2 ? arguments[2] : undefined;
|
|
1305
|
+
triggerRelabel(roiAnnotation, newAnnotation = false, onRelabel) {
|
|
1310
1306
|
if (!onRelabel) {
|
|
1311
|
-
onRelabel =
|
|
1312
|
-
|
|
1307
|
+
onRelabel = ({
|
|
1308
|
+
label
|
|
1309
|
+
}) => this.managedViewers.forEach(mv => mv.updateROIProperties({
|
|
1310
|
+
uid: roiAnnotation.uid,
|
|
1311
|
+
properties: {
|
|
1313
1312
|
label
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
uid: roiAnnotation.uid,
|
|
1317
|
-
properties: {
|
|
1318
|
-
label
|
|
1319
|
-
}
|
|
1320
|
-
}));
|
|
1321
|
-
};
|
|
1313
|
+
}
|
|
1314
|
+
}));
|
|
1322
1315
|
}
|
|
1323
1316
|
this._broadcastEvent(MicroscopyService_EVENTS.RELABEL, {
|
|
1324
1317
|
roiAnnotation,
|
|
@@ -1354,15 +1347,15 @@ class MicroscopyService extends core_src/* PubSubService */.hC {
|
|
|
1354
1347
|
this.managedViewers.forEach(mv => mv.setROIStyle(uid, styleOptions));
|
|
1355
1348
|
}
|
|
1356
1349
|
}
|
|
1350
|
+
_class = MicroscopyService;
|
|
1357
1351
|
MicroscopyService.REGISTRATION = serviceManager => {
|
|
1358
1352
|
return {
|
|
1359
1353
|
name: 'microscopyService',
|
|
1360
1354
|
altName: 'MicroscopyService',
|
|
1361
|
-
create:
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
return new MicroscopyService(serviceManager);
|
|
1355
|
+
create: ({
|
|
1356
|
+
configuration = {}
|
|
1357
|
+
}) => {
|
|
1358
|
+
return new _class(serviceManager);
|
|
1366
1359
|
}
|
|
1367
1360
|
};
|
|
1368
1361
|
};
|
|
@@ -1382,19 +1375,17 @@ var dcmjs_es = __webpack_require__(67540);
|
|
|
1382
1375
|
* @param {func} callback
|
|
1383
1376
|
* @param {*} isArrowAnnotateInputDialog
|
|
1384
1377
|
*/
|
|
1385
|
-
function callInputDialog(
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
} = _ref;
|
|
1378
|
+
function callInputDialog({
|
|
1379
|
+
uiDialogService,
|
|
1380
|
+
title = 'Annotation',
|
|
1381
|
+
defaultValue = '',
|
|
1382
|
+
callback = (value, action) => {}
|
|
1383
|
+
}) {
|
|
1392
1384
|
const dialogId = 'microscopy-input-dialog';
|
|
1393
|
-
const onSubmitHandler =
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
} = _ref2;
|
|
1385
|
+
const onSubmitHandler = ({
|
|
1386
|
+
action,
|
|
1387
|
+
value
|
|
1388
|
+
}) => {
|
|
1398
1389
|
switch (action.id) {
|
|
1399
1390
|
case 'save':
|
|
1400
1391
|
callback(value.value, action.id);
|
|
@@ -1433,11 +1424,10 @@ function callInputDialog(_ref) {
|
|
|
1433
1424
|
type: src/* ButtonEnums.type */.LZ.dt.primary
|
|
1434
1425
|
}],
|
|
1435
1426
|
onSubmit: onSubmitHandler,
|
|
1436
|
-
body:
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
} = _ref3;
|
|
1427
|
+
body: ({
|
|
1428
|
+
value,
|
|
1429
|
+
setValue
|
|
1430
|
+
}) => {
|
|
1441
1431
|
return /*#__PURE__*/react.createElement(src/* Input */.II, {
|
|
1442
1432
|
label: "Enter your annotation",
|
|
1443
1433
|
labelClassName: "text-white text-[14px] leading-[1.2]",
|
|
@@ -1485,11 +1475,10 @@ const uid = '2.25.285241207697168520771311899641885187923';
|
|
|
1485
1475
|
*
|
|
1486
1476
|
* @return Comprehensive3DSR dataset
|
|
1487
1477
|
*/
|
|
1488
|
-
function constructSR(metadata,
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
} = _ref;
|
|
1478
|
+
function constructSR(metadata, {
|
|
1479
|
+
SeriesDescription,
|
|
1480
|
+
SeriesNumber
|
|
1481
|
+
}, annotations) {
|
|
1493
1482
|
// Handle malformed data
|
|
1494
1483
|
if (!metadata.SpecimenDescriptionSequence) {
|
|
1495
1484
|
metadata.SpecimenDescriptionSequence = {
|
|
@@ -1931,10 +1920,9 @@ function MicroscopyPanel(props) {
|
|
|
1931
1920
|
*
|
|
1932
1921
|
* @param param0
|
|
1933
1922
|
*/
|
|
1934
|
-
const onMeasurementItemClickHandler =
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
} = _ref;
|
|
1923
|
+
const onMeasurementItemClickHandler = ({
|
|
1924
|
+
uid
|
|
1925
|
+
}) => {
|
|
1938
1926
|
const roiAnnotation = microscopyService.getAnnotation(uid);
|
|
1939
1927
|
microscopyService.selectAnnotation(roiAnnotation);
|
|
1940
1928
|
microscopyService.focusAnnotation(roiAnnotation, props.activeViewportId);
|
|
@@ -1944,11 +1932,10 @@ function MicroscopyPanel(props) {
|
|
|
1944
1932
|
* Handler for "Edit" action of an annotation item
|
|
1945
1933
|
* @param param0
|
|
1946
1934
|
*/
|
|
1947
|
-
const onMeasurementItemEditHandler =
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
} = _ref2;
|
|
1935
|
+
const onMeasurementItemEditHandler = ({
|
|
1936
|
+
uid,
|
|
1937
|
+
isActive
|
|
1938
|
+
}) => {
|
|
1952
1939
|
props.commandsManager.runCommand('setLabel', {
|
|
1953
1940
|
uid
|
|
1954
1941
|
}, 'MICROSCOPY');
|
|
@@ -2010,12 +1997,11 @@ const connectedMicroscopyPanel = (0,es/* withTranslation */.Zh)(['MicroscopyTabl
|
|
|
2010
1997
|
// - cancel promises when component is destroyed
|
|
2011
1998
|
// - show errors in UI for thumbnails if promise fails
|
|
2012
1999
|
|
|
2013
|
-
function getPanelModule(
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
} = _ref;
|
|
2000
|
+
function getPanelModule({
|
|
2001
|
+
commandsManager,
|
|
2002
|
+
extensionManager,
|
|
2003
|
+
servicesManager
|
|
2004
|
+
}) {
|
|
2019
2005
|
const wrappedMeasurementPanel = () => {
|
|
2020
2006
|
const [{
|
|
2021
2007
|
activeViewportId,
|
|
@@ -2043,12 +2029,11 @@ function getPanelModule(_ref) {
|
|
|
2043
2029
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/getCommandsModule.ts
|
|
2044
2030
|
|
|
2045
2031
|
|
|
2046
|
-
function getCommandsModule(
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
} = _ref;
|
|
2032
|
+
function getCommandsModule({
|
|
2033
|
+
servicesManager,
|
|
2034
|
+
commandsManager,
|
|
2035
|
+
extensionManager
|
|
2036
|
+
}) {
|
|
2052
2037
|
const {
|
|
2053
2038
|
viewportGridService,
|
|
2054
2039
|
uiDialogService,
|
|
@@ -2056,10 +2041,9 @@ function getCommandsModule(_ref) {
|
|
|
2056
2041
|
} = servicesManager.services;
|
|
2057
2042
|
const actions = {
|
|
2058
2043
|
// Measurement tool commands:
|
|
2059
|
-
deleteMeasurement:
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
} = _ref2;
|
|
2044
|
+
deleteMeasurement: ({
|
|
2045
|
+
uid
|
|
2046
|
+
}) => {
|
|
2063
2047
|
if (uid) {
|
|
2064
2048
|
const roiAnnotation = microscopyService.getAnnotation(uid);
|
|
2065
2049
|
if (roiAnnotation) {
|
|
@@ -2067,10 +2051,9 @@ function getCommandsModule(_ref) {
|
|
|
2067
2051
|
}
|
|
2068
2052
|
}
|
|
2069
2053
|
},
|
|
2070
|
-
setLabel:
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
} = _ref3;
|
|
2054
|
+
setLabel: ({
|
|
2055
|
+
uid
|
|
2056
|
+
}) => {
|
|
2074
2057
|
const roiAnnotation = microscopyService.getAnnotation(uid);
|
|
2075
2058
|
callInputDialog({
|
|
2076
2059
|
uiDialogService,
|
|
@@ -2086,11 +2069,10 @@ function getCommandsModule(_ref) {
|
|
|
2086
2069
|
}
|
|
2087
2070
|
});
|
|
2088
2071
|
},
|
|
2089
|
-
setToolActive:
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
} = _ref4;
|
|
2072
|
+
setToolActive: ({
|
|
2073
|
+
toolName,
|
|
2074
|
+
toolGroupId = 'MICROSCOPY'
|
|
2075
|
+
}) => {
|
|
2094
2076
|
const dragPanOnMiddle = ['dragPan', {
|
|
2095
2077
|
bindings: {
|
|
2096
2078
|
mouseButtons: ['middle']
|
|
@@ -2284,11 +2266,10 @@ function _getDisplaySetsFromSeries(instances, servicesManager, extensionManager)
|
|
|
2284
2266
|
};
|
|
2285
2267
|
return [displaySet];
|
|
2286
2268
|
}
|
|
2287
|
-
function getDicomMicroscopySopClassHandler(
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
} = _ref;
|
|
2269
|
+
function getDicomMicroscopySopClassHandler({
|
|
2270
|
+
servicesManager,
|
|
2271
|
+
extensionManager
|
|
2272
|
+
}) {
|
|
2292
2273
|
const getDisplaySetsFromSeries = instances => {
|
|
2293
2274
|
return _getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
|
|
2294
2275
|
};
|
|
@@ -2311,7 +2292,6 @@ const DCM_CODE_VALUES = {
|
|
|
2311
2292
|
LONG_AXIS: 'G-A185',
|
|
2312
2293
|
ELLIPSE_AREA: 'G-D7FE' // TODO: Remove this
|
|
2313
2294
|
};
|
|
2314
|
-
|
|
2315
2295
|
/* harmony default export */ const dcmCodeValues = (DCM_CODE_VALUES);
|
|
2316
2296
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/toArray.js
|
|
2317
2297
|
function toArray(item) {
|
|
@@ -2573,11 +2553,10 @@ function DicomMicroscopySRSopClassHandler_getDisplaySetsFromSeries(instances, se
|
|
|
2573
2553
|
};
|
|
2574
2554
|
return [displaySet];
|
|
2575
2555
|
}
|
|
2576
|
-
function getDicomMicroscopySRSopClassHandler(
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
} = _ref;
|
|
2556
|
+
function getDicomMicroscopySRSopClassHandler({
|
|
2557
|
+
servicesManager,
|
|
2558
|
+
extensionManager
|
|
2559
|
+
}) {
|
|
2581
2560
|
const getDisplaySetsFromSeries = instances => {
|
|
2582
2561
|
return DicomMicroscopySRSopClassHandler_getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
|
|
2583
2562
|
};
|
|
@@ -2598,7 +2577,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2598
2577
|
|
|
2599
2578
|
|
|
2600
2579
|
const Component = /*#__PURE__*/react.lazy(() => {
|
|
2601
|
-
return Promise.all(/* import() */[__webpack_require__.e(
|
|
2580
|
+
return Promise.all(/* import() */[__webpack_require__.e(661), __webpack_require__.e(417), __webpack_require__.e(23), __webpack_require__.e(738), __webpack_require__.e(250)]).then(__webpack_require__.bind(__webpack_require__, 76516));
|
|
2602
2581
|
});
|
|
2603
2582
|
const MicroscopyViewport = props => {
|
|
2604
2583
|
return /*#__PURE__*/react.createElement(react.Suspense, {
|
|
@@ -2615,13 +2594,12 @@ const MicroscopyViewport = props => {
|
|
|
2615
2594
|
* You ID can be anything you want, but it should be unique.
|
|
2616
2595
|
*/
|
|
2617
2596
|
id: id,
|
|
2618
|
-
async preRegistration(
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
} = _ref;
|
|
2597
|
+
async preRegistration({
|
|
2598
|
+
servicesManager,
|
|
2599
|
+
commandsManager,
|
|
2600
|
+
configuration = {},
|
|
2601
|
+
appConfig
|
|
2602
|
+
}) {
|
|
2625
2603
|
servicesManager.registerService(MicroscopyService.REGISTRATION(servicesManager));
|
|
2626
2604
|
},
|
|
2627
2605
|
/**
|
|
@@ -2630,12 +2608,11 @@ const MicroscopyViewport = props => {
|
|
|
2630
2608
|
* {name, component} object. Example of a viewport module is the CornerstoneViewport
|
|
2631
2609
|
* that is provided by the Cornerstone extension in OHIF.
|
|
2632
2610
|
*/
|
|
2633
|
-
getViewportModule(
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
} = _ref2;
|
|
2611
|
+
getViewportModule({
|
|
2612
|
+
servicesManager,
|
|
2613
|
+
extensionManager,
|
|
2614
|
+
commandsManager
|
|
2615
|
+
}) {
|
|
2639
2616
|
/**
|
|
2640
2617
|
*
|
|
2641
2618
|
* @param props {*}
|
|
@@ -2655,7 +2632,16 @@ const MicroscopyViewport = props => {
|
|
|
2655
2632
|
const {
|
|
2656
2633
|
activeViewportId
|
|
2657
2634
|
} = viewportGrid;
|
|
2635
|
+
|
|
2636
|
+
// a unique identifier based on the contents of displaySets.
|
|
2637
|
+
// since we changed our rendering pipeline and if there is no
|
|
2638
|
+
// element size change nor viewportId change we won't re-render
|
|
2639
|
+
// we need a way to force re-rendering when displaySets change.
|
|
2640
|
+
const displaySetsKey = (0,react.useMemo)(() => {
|
|
2641
|
+
return props.displaySets.map(ds => ds.displaySetInstanceUID).join('-');
|
|
2642
|
+
}, [props.displaySets]);
|
|
2658
2643
|
return /*#__PURE__*/react.createElement(MicroscopyViewport, _extends({
|
|
2644
|
+
key: displaySetsKey,
|
|
2659
2645
|
servicesManager: servicesManager,
|
|
2660
2646
|
extensionManager: extensionManager,
|
|
2661
2647
|
commandsManager: commandsManager,
|
|
@@ -2677,12 +2663,11 @@ const MicroscopyViewport = props => {
|
|
|
2677
2663
|
* Each sop class handler is defined by a { name, sopClassUids, getDisplaySetsFromSeries}.
|
|
2678
2664
|
* Examples include the default sop class handler provided by the default extension
|
|
2679
2665
|
*/
|
|
2680
|
-
getSopClassHandlerModule(
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
} = _ref3;
|
|
2666
|
+
getSopClassHandlerModule({
|
|
2667
|
+
servicesManager,
|
|
2668
|
+
commandsManager,
|
|
2669
|
+
extensionManager
|
|
2670
|
+
}) {
|
|
2686
2671
|
return [getDicomMicroscopySopClassHandler({
|
|
2687
2672
|
servicesManager,
|
|
2688
2673
|
extensionManager
|
|
@@ -2695,13 +2680,6 @@ const MicroscopyViewport = props => {
|
|
|
2695
2680
|
getCommandsModule: getCommandsModule
|
|
2696
2681
|
});
|
|
2697
2682
|
|
|
2698
|
-
/***/ }),
|
|
2699
|
-
|
|
2700
|
-
/***/ 78753:
|
|
2701
|
-
/***/ (() => {
|
|
2702
|
-
|
|
2703
|
-
/* (ignored) */
|
|
2704
|
-
|
|
2705
2683
|
/***/ })
|
|
2706
2684
|
|
|
2707
2685
|
}]);
|