@ohif/app 3.8.0-beta.28 → 3.8.0-beta.29
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.9143213c69b6d81bb096.js → 12.bundle.abb6ab88fda1125f3b47.js} +9 -11
- package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
- package/dist/{170.bundle.4d78d3772d1acb65fded.js → 170.bundle.57dff48fc09ba5fa844b.js} +50 -69
- package/dist/{181.bundle.87f1df4f401b8023cfd1.js → 181.bundle.ae92b8a551d041d06e90.js} +58 -70
- package/dist/181.css +1 -1
- package/dist/{185.bundle.09cc8eea4e4056374e36.js → 185.bundle.0251703d5b77f265cc11.js} +21 -26
- package/dist/{19.bundle.d6a9a105cb89ce17cc8b.js → 19.bundle.55796dd5a6dfecf02682.js} +112 -127
- package/dist/{199.bundle.6f0caf3db1c473be990d.js → 199.bundle.f62693c1405b52bc6580.js} +18 -20
- package/dist/{202.bundle.a607e9ab460999d8c0c8.js → 202.bundle.0ca2f2479d2578f539b0.js} +9 -1
- 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.5634282a01bd6e15b70d.js → 250.bundle.09c69d348a5d965debc8.js} +17 -22
- package/dist/{281.bundle.ed6f4765a49b67b6fa43.js → 281.bundle.a934356f89499eb6ec48.js} +23 -25
- package/dist/{359.bundle.f935bae2cc0ad1065f50.js → 359.bundle.1f2a03766e18f1e3cca4.js} +24 -27
- package/dist/{410.bundle.caba83fcaf6ee8caabe6.js → 410.bundle.b59d9d09407856f9babc.js} +22 -26
- package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
- package/dist/{451.bundle.57c21db5d003c75e9d61.js → 451.bundle.68a551a7d1746cf904cb.js} +26 -32
- package/dist/{456.bundle.a2574e369e5fd60c0ed7.js → 456.bundle.475e0e878872ad61e39e.js} +392 -515
- package/dist/{466.bundle.e59923d0514cbfa2482a.js → 466.bundle.667b31151880a262d475.js} +101 -130
- package/dist/{471.bundle.49c8d281adbae4a2c4df.js → 471.bundle.5809b10f75c8fc2f7167.js} +27 -33
- package/dist/{483.bundle.ef869872fd6fd7aa5b6b.js → 483.bundle.775438e850fbee318b63.js} +128 -170
- package/dist/{485.bundle.8667a696ac2eaf99e4fa.js → 485.bundle.5b6c33cc43d8f3470642.js} +1 -1
- package/dist/{506.bundle.c7927979078083de7126.js → 506.bundle.dcae1c16f61651daa74d.js} +13 -18
- package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
- package/dist/{26.bundle.c92012465cee00a2a708.js → 566.bundle.4840518afd323372c70f.js} +1136 -442
- package/dist/{613.bundle.dae1b29d8c4912dde32c.js → 613.bundle.d080a15569910ff63fc8.js} +19 -24
- package/dist/{661.bundle.65dd579322b265c6e321.js → 661.bundle.28ef6d8cd035876bd8e2.js} +40 -12
- package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
- package/dist/{687.bundle.96fde3d28aaeeeea7b8f.js → 687.bundle.fc36244c7ec3b1146f13.js} +19 -35
- package/dist/{738.bundle.99bc9fe71e5dccd0b0cd.js → 738.bundle.7c78f93180d8405b167c.js} +434 -596
- package/dist/{814.bundle.76638a0bfd57b81339fa.js → 814.bundle.9c9805cd0d54a8ea9697.js} +9 -11
- package/dist/{822.bundle.775a62e1f79c403f3aed.js → 822.bundle.55759fd8e9b0b489cc6b.js} +13 -15
- package/dist/{886.bundle.c8dd3ecc42a4253de278.js → 886.bundle.4496fc7fb83b8c897d20.js} +18 -22
- package/dist/{95.bundle.db9d2d504abc5dd4fdfa.js → 95.bundle.d7a9f450bed3b770504d.js} +3 -3
- package/dist/{965.bundle.39dda96bd5335d372afb.js → 965.bundle.26d8f982af77f304a038.js} +91 -115
- package/dist/{app.bundle.75411c4a0421eb19f478.js → app.bundle.88eb088709ac23e29da0.js} +4643 -5947
- package/dist/app.bundle.css +11 -11
- package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +17 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[12],{
|
|
3
3
|
|
|
4
4
|
/***/ 85012:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -107,11 +107,10 @@ const _getDisplaySetsFromSeries = (instances, servicesManager, extensionManager)
|
|
|
107
107
|
return displaySet;
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
|
-
function getSopClassHandlerModule(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
} = _ref;
|
|
110
|
+
function getSopClassHandlerModule({
|
|
111
|
+
servicesManager,
|
|
112
|
+
extensionManager
|
|
113
|
+
}) {
|
|
115
114
|
const getDisplaySetsFromSeries = instances => {
|
|
116
115
|
return _getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
|
|
117
116
|
};
|
|
@@ -149,11 +148,10 @@ const dicomVideoExtension = {
|
|
|
149
148
|
* @param {object} [configuration={}]
|
|
150
149
|
* @param {object|array} [configuration.csToolsConfig] - Passed directly to `initCornerstoneTools`
|
|
151
150
|
*/
|
|
152
|
-
getViewportModule(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
} = _ref;
|
|
151
|
+
getViewportModule({
|
|
152
|
+
servicesManager,
|
|
153
|
+
extensionManager
|
|
154
|
+
}) {
|
|
157
155
|
const ExtendedOHIFCornerstoneVideoViewport = props => {
|
|
158
156
|
return /*#__PURE__*/react.createElement(OHIFCornerstoneVideoViewport, _extends({
|
|
159
157
|
servicesManager: servicesManager,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[125],{
|
|
3
3
|
|
|
4
4
|
/***/ 39125:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -13,10 +13,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13
13
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
function OHIFCornerstonePdfViewport(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} = _ref;
|
|
16
|
+
function OHIFCornerstonePdfViewport({
|
|
17
|
+
displaySets
|
|
18
|
+
}) {
|
|
20
19
|
const [url, setUrl] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);
|
|
21
20
|
if (displaySets && displaySets.length > 1) {
|
|
22
21
|
throw new Error('OHIFCornerstonePdfViewport: only one display set is supported for dicom pdf right now');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[170],{
|
|
3
3
|
|
|
4
4
|
/***/ 42170:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -29,10 +29,10 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
|
|
|
29
29
|
var src = __webpack_require__(71771);
|
|
30
30
|
// EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 10 modules
|
|
31
31
|
var esm = __webpack_require__(45451);
|
|
32
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js +
|
|
33
|
-
var dist_esm = __webpack_require__(
|
|
34
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
35
|
-
var core_dist_esm = __webpack_require__(
|
|
32
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 424 modules
|
|
33
|
+
var dist_esm = __webpack_require__(74566);
|
|
34
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 364 modules
|
|
35
|
+
var core_dist_esm = __webpack_require__(27968);
|
|
36
36
|
// EXTERNAL MODULE: ../../../extensions/cornerstone-dicom-sr/src/tools/modules/dicomSRModule.js
|
|
37
37
|
var dicomSRModule = __webpack_require__(64035);
|
|
38
38
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/constants/scoordTypes.js
|
|
@@ -49,11 +49,9 @@ var dicomSRModule = __webpack_require__(64035);
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
class DICOMSRDisplayTool extends dist_esm.AnnotationTool {
|
|
52
|
-
constructor(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
configuration: {}
|
|
56
|
-
};
|
|
52
|
+
constructor(toolProps = {}, defaultToolProps = {
|
|
53
|
+
configuration: {}
|
|
54
|
+
}) {
|
|
57
55
|
super(toolProps, defaultToolProps);
|
|
58
56
|
// This tool should not inherit from AnnotationTool and we should not need
|
|
59
57
|
// to add the following lines.
|
|
@@ -173,7 +171,6 @@ class DICOMSRDisplayTool extends dist_esm.AnnotationTool {
|
|
|
173
171
|
});
|
|
174
172
|
return allCanvasCoordinates; // used for drawing textBox
|
|
175
173
|
}
|
|
176
|
-
|
|
177
174
|
renderMultipoint(svgDrawingHelper, viewport, renderableData, annotationUID, referencedImageId, options) {
|
|
178
175
|
let canvasCoordinates;
|
|
179
176
|
renderableData.map((data, index) => {
|
|
@@ -216,7 +213,6 @@ class DICOMSRDisplayTool extends dist_esm.AnnotationTool {
|
|
|
216
213
|
});
|
|
217
214
|
return canvasCoordinates; // used for drawing textBox
|
|
218
215
|
}
|
|
219
|
-
|
|
220
216
|
renderEllipse(svgDrawingHelper, viewport, renderableData, annotationUID, referencedImageId, options) {
|
|
221
217
|
let canvasCoordinates;
|
|
222
218
|
renderableData.map((data, index) => {
|
|
@@ -242,8 +238,7 @@ class DICOMSRDisplayTool extends dist_esm.AnnotationTool {
|
|
|
242
238
|
});
|
|
243
239
|
return canvasCoordinates;
|
|
244
240
|
}
|
|
245
|
-
renderTextBox(svgDrawingHelper, viewport, canvasCoordinates, canvasCoordinatesAdapter, annotation, styleSpecifier) {
|
|
246
|
-
let options = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
|
|
241
|
+
renderTextBox(svgDrawingHelper, viewport, canvasCoordinates, canvasCoordinatesAdapter, annotation, styleSpecifier, options = {}) {
|
|
247
242
|
if (!canvasCoordinates || !annotation) {
|
|
248
243
|
return;
|
|
249
244
|
}
|
|
@@ -565,7 +560,6 @@ const sopClassUids = ['1.2.840.10008.5.1.4.1.1.88.11',
|
|
|
565
560
|
//COMPREHENSIVE_SR:
|
|
566
561
|
'1.2.840.10008.5.1.4.1.1.88.34' //COMPREHENSIVE_3D_SR:
|
|
567
562
|
];
|
|
568
|
-
|
|
569
563
|
const CORNERSTONE_3D_TOOLS_SOURCE_NAME = 'Cornerstone3DTools';
|
|
570
564
|
const CORNERSTONE_3D_TOOLS_SOURCE_VERSION = '0.1';
|
|
571
565
|
const validateSameStudyUID = (uid, instances) => {
|
|
@@ -589,7 +583,6 @@ const CodeNameCodeSequenceValues = {
|
|
|
589
583
|
// SRT
|
|
590
584
|
CornerstoneFreeText: Cornerstone3DCodeScheme.codeValues.CORNERSTONEFREETEXT //
|
|
591
585
|
};
|
|
592
|
-
|
|
593
586
|
const CodingSchemeDesignators = {
|
|
594
587
|
SRT: 'SRT',
|
|
595
588
|
CornerstoneCodeSchemes: [Cornerstone3DCodeScheme.CodingSchemeDesignator, 'CST4']
|
|
@@ -791,11 +784,10 @@ function _measurementReferencesSOPInstanceUID(measurement, SOPInstanceUID, frame
|
|
|
791
784
|
}
|
|
792
785
|
}
|
|
793
786
|
}
|
|
794
|
-
function getSopClassHandlerModule(
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
} = _ref;
|
|
787
|
+
function getSopClassHandlerModule({
|
|
788
|
+
servicesManager,
|
|
789
|
+
extensionManager
|
|
790
|
+
}) {
|
|
799
791
|
const getDisplaySetsFromSeries = instances => {
|
|
800
792
|
return _getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
|
|
801
793
|
};
|
|
@@ -980,7 +972,6 @@ function _getLabelFromMeasuredValueSequence(ConceptNameCodeSequence, MeasuredVal
|
|
|
980
972
|
value: `${formatedNumericValue} ${CodeValue}`
|
|
981
973
|
}; // E.g. Long Axis: 31.0 mm
|
|
982
974
|
}
|
|
983
|
-
|
|
984
975
|
function _getReferencedImagesList(ImagingMeasurementReportContentSequence) {
|
|
985
976
|
const ImageLibrary = ImagingMeasurementReportContentSequence.find(item => item.ConceptNameCodeSequence.CodeValue === CodeNameCodeSequenceValues.ImageLibrary);
|
|
986
977
|
const ImageLibraryGroup = _getSequenceAsArray(ImageLibrary.ContentSequence).find(item => item.ConceptNameCodeSequence.CodeValue === CodeNameCodeSequenceValues.ImageLibraryGroup);
|
|
@@ -1080,10 +1071,9 @@ function getHangingProtocolModule() {
|
|
|
1080
1071
|
|
|
1081
1072
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/onModeEnter.js
|
|
1082
1073
|
|
|
1083
|
-
function onModeEnter(
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
} = _ref;
|
|
1074
|
+
function onModeEnter({
|
|
1075
|
+
servicesManager
|
|
1076
|
+
}) {
|
|
1087
1077
|
const {
|
|
1088
1078
|
displaySetService
|
|
1089
1079
|
} = servicesManager.services;
|
|
@@ -1202,8 +1192,7 @@ const {
|
|
|
1202
1192
|
* @param options Naturalized DICOM JSON headers to merge into the displaySet.
|
|
1203
1193
|
*
|
|
1204
1194
|
*/
|
|
1205
|
-
const _generateReport =
|
|
1206
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1195
|
+
const _generateReport = (measurementData, additionalFindingTypes, options = {}) => {
|
|
1207
1196
|
const filteredToolState = utils_getFilteredCornerstoneToolState(measurementData, additionalFindingTypes);
|
|
1208
1197
|
const report = MeasurementReport.generateReport(filteredToolState, core_dist_esm.metaData, core_dist_esm.utilities.worldToImageCoords, options);
|
|
1209
1198
|
const {
|
|
@@ -1217,8 +1206,7 @@ const _generateReport = function (measurementData, additionalFindingTypes) {
|
|
|
1217
1206
|
}
|
|
1218
1207
|
return dataset;
|
|
1219
1208
|
};
|
|
1220
|
-
const commandsModule =
|
|
1221
|
-
let {} = _ref;
|
|
1209
|
+
const commandsModule = ({}) => {
|
|
1222
1210
|
const actions = {
|
|
1223
1211
|
/**
|
|
1224
1212
|
*
|
|
@@ -1228,12 +1216,11 @@ const commandsModule = _ref => {
|
|
|
1228
1216
|
* as opposed to Finding Sites.
|
|
1229
1217
|
* that you wish to serialize.
|
|
1230
1218
|
*/
|
|
1231
|
-
downloadReport:
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
} = _ref2;
|
|
1219
|
+
downloadReport: ({
|
|
1220
|
+
measurementData,
|
|
1221
|
+
additionalFindingTypes,
|
|
1222
|
+
options = {}
|
|
1223
|
+
}) => {
|
|
1237
1224
|
const srDataset = actions.generateReport(measurementData, additionalFindingTypes, options);
|
|
1238
1225
|
const reportBlob = dcmjs_es["default"].data.datasetToBlob(srDataset);
|
|
1239
1226
|
|
|
@@ -1250,13 +1237,12 @@ const commandsModule = _ref => {
|
|
|
1250
1237
|
* @param options Naturalized DICOM JSON headers to merge into the displaySet.
|
|
1251
1238
|
* @return The naturalized report
|
|
1252
1239
|
*/
|
|
1253
|
-
storeMeasurements: async
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
} = _ref3;
|
|
1240
|
+
storeMeasurements: async ({
|
|
1241
|
+
measurementData,
|
|
1242
|
+
dataSource,
|
|
1243
|
+
additionalFindingTypes,
|
|
1244
|
+
options = {}
|
|
1245
|
+
}) => {
|
|
1260
1246
|
// Use the @cornerstonejs adapter for converting to/from DICOM
|
|
1261
1247
|
// But it is good enough for now whilst we only have cornerstone as a datasource.
|
|
1262
1248
|
commandsModule_log.info('[DICOMSR] storeMeasurements');
|
|
@@ -1329,10 +1315,9 @@ function addToolInstance(name, toolClass, configuration) {
|
|
|
1329
1315
|
/**
|
|
1330
1316
|
* @param {object} configuration
|
|
1331
1317
|
*/
|
|
1332
|
-
function init(
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
} = _ref;
|
|
1318
|
+
function init({
|
|
1319
|
+
configuration = {}
|
|
1320
|
+
}) {
|
|
1336
1321
|
(0,dist_esm.addTool)(DICOMSRDisplayTool);
|
|
1337
1322
|
addToolInstance(tools_toolNames.SRLength, dist_esm.LengthTool, {});
|
|
1338
1323
|
addToolInstance(tools_toolNames.SRBidirectional, dist_esm.BidirectionalTool);
|
|
@@ -1486,11 +1471,10 @@ const dicomSRExtension = {
|
|
|
1486
1471
|
* @param {object} [configuration={}]
|
|
1487
1472
|
* @param {object|array} [configuration.csToolsConfig] - Passed directly to `initCornerstoneTools`
|
|
1488
1473
|
*/
|
|
1489
|
-
getViewportModule(
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
} = _ref;
|
|
1474
|
+
getViewportModule({
|
|
1475
|
+
servicesManager,
|
|
1476
|
+
extensionManager
|
|
1477
|
+
}) {
|
|
1494
1478
|
const ExtendedOHIFCornerstoneSRViewport = props => {
|
|
1495
1479
|
return /*#__PURE__*/react.createElement(OHIFCornerstoneSRViewport, _extends({
|
|
1496
1480
|
servicesManager: servicesManager,
|
|
@@ -1505,10 +1489,9 @@ const dicomSRExtension = {
|
|
|
1505
1489
|
getCommandsModule: src_commandsModule,
|
|
1506
1490
|
getSopClassHandlerModule: src_getSopClassHandlerModule,
|
|
1507
1491
|
// Include dynamically computed values such as toolNames not known till instantiation
|
|
1508
|
-
getUtilityModule(
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
} = _ref2;
|
|
1492
|
+
getUtilityModule({
|
|
1493
|
+
servicesManager
|
|
1494
|
+
}) {
|
|
1512
1495
|
return [{
|
|
1513
1496
|
name: 'tools',
|
|
1514
1497
|
exports: {
|
|
@@ -1532,7 +1515,7 @@ const dicomSRExtension = {
|
|
|
1532
1515
|
/* harmony export */ yR: () => (/* binding */ getTrackingUniqueIdentifiersForElement)
|
|
1533
1516
|
/* harmony export */ });
|
|
1534
1517
|
/* unused harmony export setActiveTrackingUniqueIdentifierForElement */
|
|
1535
|
-
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1518
|
+
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27968);
|
|
1536
1519
|
|
|
1537
1520
|
const state = {
|
|
1538
1521
|
TrackingUniqueIdentifier: null,
|
|
@@ -1547,8 +1530,7 @@ const state = {
|
|
|
1547
1530
|
* of the SR tools in state here, so that we can filter them later.
|
|
1548
1531
|
*/
|
|
1549
1532
|
|
|
1550
|
-
function setTrackingUniqueIdentifiersForElement(element, trackingUniqueIdentifiers) {
|
|
1551
|
-
let activeIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1533
|
+
function setTrackingUniqueIdentifiersForElement(element, trackingUniqueIdentifiers, activeIndex = 0) {
|
|
1552
1534
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
1553
1535
|
const {
|
|
1554
1536
|
viewport
|
|
@@ -1594,8 +1576,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1594
1576
|
Z: () => (/* binding */ hydrateStructuredReport)
|
|
1595
1577
|
});
|
|
1596
1578
|
|
|
1597
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
1598
|
-
var esm = __webpack_require__(
|
|
1579
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 364 modules
|
|
1580
|
+
var esm = __webpack_require__(27968);
|
|
1599
1581
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
1600
1582
|
var src = __webpack_require__(71771);
|
|
1601
1583
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js
|
|
@@ -1622,8 +1604,8 @@ function getLabelFromDCMJSImportedToolData(toolData) {
|
|
|
1622
1604
|
}
|
|
1623
1605
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/adapters.es.js
|
|
1624
1606
|
var adapters_es = __webpack_require__(91202);
|
|
1625
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js +
|
|
1626
|
-
var dist_esm = __webpack_require__(
|
|
1607
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 424 modules
|
|
1608
|
+
var dist_esm = __webpack_require__(74566);
|
|
1627
1609
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.js
|
|
1628
1610
|
|
|
1629
1611
|
|
|
@@ -1676,12 +1658,11 @@ const convertSites = (codingValues, sites) => {
|
|
|
1676
1658
|
* Hydrates a structured report, for default viewports.
|
|
1677
1659
|
*
|
|
1678
1660
|
*/
|
|
1679
|
-
function hydrateStructuredReport(
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
} = _ref;
|
|
1661
|
+
function hydrateStructuredReport({
|
|
1662
|
+
servicesManager,
|
|
1663
|
+
extensionManager,
|
|
1664
|
+
appConfig
|
|
1665
|
+
}, displaySetInstanceUID) {
|
|
1685
1666
|
const annotationManager = dist_esm.annotation.state.getAnnotationManager();
|
|
1686
1667
|
const disableEditing = appConfig?.disableEditing;
|
|
1687
1668
|
const dataSource = extensionManager.getActiveDataSource()[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[181],{
|
|
3
3
|
|
|
4
4
|
/***/ 86181:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -19,10 +19,10 @@ var index_esm = __webpack_require__(7023);
|
|
|
19
19
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
20
20
|
var prop_types = __webpack_require__(3827);
|
|
21
21
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
22
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js +
|
|
23
|
-
var esm = __webpack_require__(
|
|
24
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
25
|
-
var dist_esm = __webpack_require__(
|
|
22
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 424 modules
|
|
23
|
+
var esm = __webpack_require__(74566);
|
|
24
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 364 modules
|
|
25
|
+
var dist_esm = __webpack_require__(27968);
|
|
26
26
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
27
27
|
var src = __webpack_require__(71771);
|
|
28
28
|
// EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
|
|
@@ -38,16 +38,15 @@ var state = __webpack_require__(73704);
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
function CornerstoneImageScrollbar(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} = _ref;
|
|
41
|
+
function CornerstoneImageScrollbar({
|
|
42
|
+
viewportData,
|
|
43
|
+
viewportId,
|
|
44
|
+
element,
|
|
45
|
+
imageSliceData,
|
|
46
|
+
setImageSliceData,
|
|
47
|
+
scrollbarHeight,
|
|
48
|
+
servicesManager
|
|
49
|
+
}) {
|
|
51
50
|
const {
|
|
52
51
|
cineService,
|
|
53
52
|
cornerstoneViewportService
|
|
@@ -183,8 +182,7 @@ function isValidNumber(value) {
|
|
|
183
182
|
* @param {number} precision
|
|
184
183
|
* @returns {number} formatted number.
|
|
185
184
|
*/
|
|
186
|
-
function formatNumberPrecision(number) {
|
|
187
|
-
let precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
185
|
+
function formatNumberPrecision(number, precision = 0) {
|
|
188
186
|
if (number !== null) {
|
|
189
187
|
return parseFloat(number).toFixed(precision);
|
|
190
188
|
}
|
|
@@ -197,8 +195,7 @@ function formatNumberPrecision(number) {
|
|
|
197
195
|
* @param {string} strFormat
|
|
198
196
|
* @returns {string} formatted date.
|
|
199
197
|
*/
|
|
200
|
-
function formatDICOMDate(date) {
|
|
201
|
-
let strFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'MMM D, YYYY';
|
|
198
|
+
function formatDICOMDate(date, strFormat = 'MMM D, YYYY') {
|
|
202
199
|
return moment_default()(date, 'YYYYMMDD').format(strFormat);
|
|
203
200
|
}
|
|
204
201
|
|
|
@@ -215,8 +212,7 @@ function formatDICOMDate(date) {
|
|
|
215
212
|
* @param {string} strFormat
|
|
216
213
|
* @returns {string} formatted name.
|
|
217
214
|
*/
|
|
218
|
-
function formatDICOMTime(time) {
|
|
219
|
-
let strFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'HH:mm:ss';
|
|
215
|
+
function formatDICOMTime(time, strFormat = 'HH:mm:ss') {
|
|
220
216
|
return moment_default()(time, 'HH:mm:ss').format(strFormat);
|
|
221
217
|
}
|
|
222
218
|
|
|
@@ -269,11 +265,10 @@ const EPSILON = 1e-4;
|
|
|
269
265
|
/**
|
|
270
266
|
* Window Level / Center Overlay item
|
|
271
267
|
*/
|
|
272
|
-
function VOIOverlayItem(
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
} = _ref;
|
|
268
|
+
function VOIOverlayItem({
|
|
269
|
+
voi,
|
|
270
|
+
customization
|
|
271
|
+
}) {
|
|
277
272
|
const {
|
|
278
273
|
windowWidth,
|
|
279
274
|
windowCenter
|
|
@@ -300,11 +295,10 @@ function VOIOverlayItem(_ref) {
|
|
|
300
295
|
/**
|
|
301
296
|
* Zoom Level Overlay item
|
|
302
297
|
*/
|
|
303
|
-
function ZoomOverlayItem(
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
} = _ref2;
|
|
298
|
+
function ZoomOverlayItem({
|
|
299
|
+
scale,
|
|
300
|
+
customization
|
|
301
|
+
}) {
|
|
308
302
|
return /*#__PURE__*/react.createElement("div", {
|
|
309
303
|
className: "overlay-item flex flex-row",
|
|
310
304
|
style: {
|
|
@@ -320,12 +314,11 @@ function ZoomOverlayItem(_ref2) {
|
|
|
320
314
|
/**
|
|
321
315
|
* Instance Number Overlay Item
|
|
322
316
|
*/
|
|
323
|
-
function InstanceNumberOverlayItem(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
} = _ref3;
|
|
317
|
+
function InstanceNumberOverlayItem({
|
|
318
|
+
instanceNumber,
|
|
319
|
+
imageSliceData,
|
|
320
|
+
customization
|
|
321
|
+
}) {
|
|
329
322
|
const {
|
|
330
323
|
imageIndex,
|
|
331
324
|
numberOfSlices
|
|
@@ -345,14 +338,13 @@ function InstanceNumberOverlayItem(_ref3) {
|
|
|
345
338
|
/**
|
|
346
339
|
* Customizable Viewport Overlay
|
|
347
340
|
*/
|
|
348
|
-
function CustomizableViewportOverlay(
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
} = _ref4;
|
|
341
|
+
function CustomizableViewportOverlay({
|
|
342
|
+
element,
|
|
343
|
+
viewportData,
|
|
344
|
+
imageSliceData,
|
|
345
|
+
viewportId,
|
|
346
|
+
servicesManager
|
|
347
|
+
}) {
|
|
356
348
|
const {
|
|
357
349
|
toolbarService,
|
|
358
350
|
cornerstoneViewportService,
|
|
@@ -649,15 +641,14 @@ const {
|
|
|
649
641
|
getOrientationStringLPS,
|
|
650
642
|
invertOrientationStringLPS
|
|
651
643
|
} = esm.utilities.orientation;
|
|
652
|
-
function ViewportOrientationMarkers(
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
} = _ref;
|
|
644
|
+
function ViewportOrientationMarkers({
|
|
645
|
+
element,
|
|
646
|
+
viewportData,
|
|
647
|
+
imageSliceData,
|
|
648
|
+
viewportId,
|
|
649
|
+
servicesManager,
|
|
650
|
+
orientationMarkers = ['top', 'left']
|
|
651
|
+
}) {
|
|
661
652
|
// Rotation is in degrees
|
|
662
653
|
const [rotation, setRotation] = (0,react.useState)(0);
|
|
663
654
|
const [flipHorizontal, setFlipHorizontal] = (0,react.useState)(false);
|
|
@@ -818,11 +809,10 @@ function _getOrientationMarkers(rowCosines, columnCosines, rotation, flipVertica
|
|
|
818
809
|
|
|
819
810
|
|
|
820
811
|
|
|
821
|
-
function ViewportImageSliceLoadingIndicator(
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
} = _ref;
|
|
812
|
+
function ViewportImageSliceLoadingIndicator({
|
|
813
|
+
viewportData,
|
|
814
|
+
element
|
|
815
|
+
}) {
|
|
826
816
|
const [loading, setLoading] = (0,react.useState)(false);
|
|
827
817
|
const [error, setError] = (0,react.useState)(false);
|
|
828
818
|
const loadIndicatorRef = (0,react.useRef)(null);
|
|
@@ -969,12 +959,11 @@ var state_0 = __webpack_require__(62657);
|
|
|
969
959
|
|
|
970
960
|
|
|
971
961
|
|
|
972
|
-
function WrappedCinePlayer(
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
} = _ref;
|
|
962
|
+
function WrappedCinePlayer({
|
|
963
|
+
enabledVPElement,
|
|
964
|
+
viewportId,
|
|
965
|
+
servicesManager
|
|
966
|
+
}) {
|
|
978
967
|
const {
|
|
979
968
|
toolbarService,
|
|
980
969
|
customizationService,
|
|
@@ -1264,11 +1253,10 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
|
|
|
1264
1253
|
(0,react.useEffect)(() => {
|
|
1265
1254
|
const {
|
|
1266
1255
|
unsubscribe
|
|
1267
|
-
} = displaySetService.subscribe(displaySetService.EVENTS.DISPLAY_SET_SERIES_METADATA_INVALIDATED, async
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
} = _ref;
|
|
1256
|
+
} = displaySetService.subscribe(displaySetService.EVENTS.DISPLAY_SET_SERIES_METADATA_INVALIDATED, async ({
|
|
1257
|
+
displaySetInstanceUID: invalidatedDisplaySetInstanceUID,
|
|
1258
|
+
invalidateData
|
|
1259
|
+
}) => {
|
|
1272
1260
|
if (!invalidateData) {
|
|
1273
1261
|
return;
|
|
1274
1262
|
}
|
package/dist/181.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.viewport-wrapper{height:100%;position:relative;width:100%}.cornerstone-viewport-element{background-color:#000;
|
|
1
|
+
.cornerstone-viewport-element,.viewport-wrapper{height:100%;position:relative;width:100%}.cornerstone-viewport-element{background-color:#000;outline:0!important;overflow:hidden}
|
|
2
2
|
.viewport-overlay{max-width:40%}.viewport-overlay span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewport-overlay.left-viewport{text-align:left}.viewport-overlay.right-viewport-scrollbar{text-align:right}.viewport-overlay.right-viewport-scrollbar .flex.flex-row{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}
|
|
3
3
|
.ViewportOrientationMarkers{--marker-width:100px;--marker-height:100px;--scrollbar-width:20px;font-size:15px;line-height:18px;pointer-events:none}.ViewportOrientationMarkers .orientation-marker{position:absolute}.ViewportOrientationMarkers .top-mid{left:50%;top:.6rem}.ViewportOrientationMarkers .left-mid{left:5px;top:47%}.ViewportOrientationMarkers .right-mid{left:calc(100% - var(--marker-width) - var(--scrollbar-width));top:47%}.ViewportOrientationMarkers .bottom-mid{left:47%;top:calc(100% - var(--marker-height) - .6rem)}.ViewportOrientationMarkers .right-mid .orientation-marker-value{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;min-width:var(--marker-width)}.ViewportOrientationMarkers .bottom-mid .orientation-marker-value{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;min-height:var(--marker-height)}
|