@ohif/app 3.8.0-beta.3 → 3.8.0-beta.30
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.9b2ef667aa885a578371.js → 12.bundle.48ee708331b38142c47c.js} +9 -11
- package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
- package/dist/{663.bundle.81cfb1c981897d109629.js → 170.bundle.38b187c9f7abe2dfb84d.js} +97 -89
- package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.ae92b8a551d041d06e90.js} +60 -72
- package/dist/181.css +1 -1
- package/dist/{370.bundle.4e319ff9104d8a89220d.js → 185.bundle.e3bcbc2c96dd51868295.js} +338 -209
- package/dist/{19.bundle.bbad00adaeb0c0f2da83.js → 19.bundle.08a41384953ab98fbf7d.js} +119 -134
- package/dist/{99.bundle.4ab1ada642b321733689.js → 199.bundle.2a998ffc15ffcc122e59.js} +215 -162
- package/dist/{202.bundle.d3490836f71e001dd30f.js → 202.bundle.0ca2f2479d2578f539b0.js} +349 -332
- 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.09c69d348a5d965debc8.js} +21 -26
- package/dist/{281.bundle.6f09a55f6fb6a0c6aa4e.js → 281.bundle.33ca053a4954a538b521.js} +23 -25
- package/dist/{359.bundle.7d24077b9b48c59ec571.js → 359.bundle.e53e83a1a90cecf70cb3.js} +26 -29
- package/dist/{410.bundle.7b96f751af0c666c9567.js → 410.bundle.30567596b262e047951a.js} +24 -28
- package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
- package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.68a551a7d1746cf904cb.js} +28 -34
- package/dist/{82.bundle.5c4f2b25b65ae87c70e1.js → 456.bundle.fe30ae09d7a9936591a6.js} +1207 -662
- package/dist/{221.bundle.fd479ac26e9dc30d8314.js → 466.bundle.8622576a3d6310735b2f.js} +108 -144
- package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.5809b10f75c8fc2f7167.js} +29 -35
- package/dist/{788.bundle.ee6d5e927bb494147ada.js → 483.bundle.85c3ead1edaca231f6de.js} +131 -180
- package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 485.bundle.5b6c33cc43d8f3470642.js} +9 -98
- package/dist/{506.bundle.b6e2450f9614b551fc99.js → 506.bundle.3c072a4f72c4d7a07c32.js} +13 -18
- package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
- package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 566.bundle.4840518afd323372c70f.js} +24751 -13727
- package/dist/{613.bundle.5f4a22d23c9091878e44.js → 613.bundle.26a981b3a01a8b444ade.js} +29 -27
- package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 661.bundle.28ef6d8cd035876bd8e2.js} +1772 -8939
- package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
- package/dist/{687.bundle.2292faaee50cc4421488.js → 687.bundle.60ed47940e558d41e984.js} +19 -35
- package/dist/{342.bundle.ce0adc6253fcc6e2a0e7.js → 738.bundle.6501818304f8ce87ed61.js} +742 -503
- package/dist/{814.bundle.1debc907ccf495d4b4ca.js → 814.bundle.b9661e9acf9e6ba052f9.js} +9 -11
- package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.55759fd8e9b0b489cc6b.js} +14 -16
- package/dist/{886.bundle.4b3a7f2079d085fdbcb3.js → 886.bundle.4496fc7fb83b8c897d20.js} +20 -24
- package/dist/95.bundle.d7a9f450bed3b770504d.js +9002 -0
- package/dist/{236.bundle.0dac31b7539315606135.js → 965.bundle.06fb371211ed7b4b45d0.js} +104 -126
- package/dist/{app.bundle.abd0d9594a8e043568d4.js → app.bundle.431384e9f0df107cc122.js} +139808 -58799
- package/dist/app.bundle.css +11 -11
- 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 +20 -20
- 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/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
- /package/dist/{82.css → 456.css} +0 -0
- /package/dist/{221.css → 466.css} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[250,579],{
|
|
3
3
|
|
|
4
4
|
/***/ 76516:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -22,8 +22,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
|
22
22
|
// EXTERNAL MODULE: ../../../node_modules/lodash.debounce/index.js
|
|
23
23
|
var lodash_debounce = __webpack_require__(8324);
|
|
24
24
|
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
25
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
26
|
-
var src = __webpack_require__(
|
|
25
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
|
|
26
|
+
var src = __webpack_require__(22582);
|
|
27
27
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/DicomMicroscopyViewport.css
|
|
28
28
|
// extracted by mini-css-extract-plugin
|
|
29
29
|
|
|
@@ -59,8 +59,8 @@ const listComponentGenerator = props => {
|
|
|
59
59
|
|
|
60
60
|
// EXTERNAL MODULE: ../../../node_modules/moment/moment.js
|
|
61
61
|
var moment_moment = __webpack_require__(71271);
|
|
62
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js +
|
|
63
|
-
var esm = __webpack_require__(
|
|
62
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 364 modules
|
|
63
|
+
var esm = __webpack_require__(27968);
|
|
64
64
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/components/ViewportOverlay/utils.ts
|
|
65
65
|
|
|
66
66
|
|
|
@@ -95,8 +95,7 @@ function utils_formatNumberPrecision(number, precision) {
|
|
|
95
95
|
* @param {string} strFormat
|
|
96
96
|
* @returns {string} formatted date.
|
|
97
97
|
*/
|
|
98
|
-
function utils_formatDICOMDate(date) {
|
|
99
|
-
let strFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'MMM D, YYYY';
|
|
98
|
+
function utils_formatDICOMDate(date, strFormat = 'MMM D, YYYY') {
|
|
100
99
|
return moment(date, 'YYYYMMDD').format(strFormat);
|
|
101
100
|
}
|
|
102
101
|
|
|
@@ -113,8 +112,7 @@ function utils_formatDICOMDate(date) {
|
|
|
113
112
|
* @param {string} strFormat
|
|
114
113
|
* @returns {string} formatted name.
|
|
115
114
|
*/
|
|
116
|
-
function utils_formatDICOMTime(time) {
|
|
117
|
-
let strFormat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'HH:mm:ss';
|
|
115
|
+
function utils_formatDICOMTime(time, strFormat = 'HH:mm:ss') {
|
|
118
116
|
return moment(time, 'HH:mm:ss').format(strFormat);
|
|
119
117
|
}
|
|
120
118
|
|
|
@@ -173,14 +171,13 @@ function getCompression(imageId) {
|
|
|
173
171
|
* @param {*} extensionManager is used to load the image data.
|
|
174
172
|
* @returns
|
|
175
173
|
*/
|
|
176
|
-
const generateFromConfig =
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
} = _ref;
|
|
174
|
+
const generateFromConfig = ({
|
|
175
|
+
topLeft = [],
|
|
176
|
+
topRight = [],
|
|
177
|
+
bottomLeft = [],
|
|
178
|
+
bottomRight = [],
|
|
179
|
+
itemGenerator = () => {}
|
|
180
|
+
}) => {
|
|
184
181
|
return props => {
|
|
185
182
|
const topLeftClass = 'top-viewport left-viewport text-primary-light';
|
|
186
183
|
const topRightClass = 'top-viewport right-viewport-scrollbar text-primary-light';
|
|
@@ -281,11 +278,10 @@ DICOMwebClient._buildMultipartAcceptHeaderFieldValue = () => {
|
|
|
281
278
|
* @param param0
|
|
282
279
|
* @returns
|
|
283
280
|
*/
|
|
284
|
-
function getDicomWebClient(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
} = _ref;
|
|
281
|
+
function getDicomWebClient({
|
|
282
|
+
extensionManager,
|
|
283
|
+
servicesManager
|
|
284
|
+
}) {
|
|
289
285
|
const dataSourceConfig = window.config.dataSources.find(ds => ds.sourceName === extensionManager.activeDataSource);
|
|
290
286
|
const {
|
|
291
287
|
userAuthenticationService
|
|
@@ -343,8 +339,8 @@ function getDicomWebClient(_ref) {
|
|
|
343
339
|
}
|
|
344
340
|
// EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
|
|
345
341
|
var dcmjs_es = __webpack_require__(67540);
|
|
346
|
-
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts +
|
|
347
|
-
var default_src = __webpack_require__(
|
|
342
|
+
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts + 78 modules
|
|
343
|
+
var default_src = __webpack_require__(78738);
|
|
348
344
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/cleanDenaturalizedDataset.ts
|
|
349
345
|
|
|
350
346
|
function isPrimitive(v) {
|
|
@@ -452,8 +448,7 @@ class DicomMicroscopyViewport extends react.Component {
|
|
|
452
448
|
* @param autoselect
|
|
453
449
|
* @returns
|
|
454
450
|
*/
|
|
455
|
-
getNearbyROI(event) {
|
|
456
|
-
let autoselect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
451
|
+
getNearbyROI(event, autoselect = true) {
|
|
457
452
|
const symbols = Object.getOwnPropertySymbols(this.viewer);
|
|
458
453
|
const _drawingSource = symbols.find(p => p.description === 'drawingSource');
|
|
459
454
|
const _pyramid = symbols.find(p => p.description === 'pyramid');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[281],{
|
|
3
3
|
|
|
4
4
|
/***/ 42281:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -15,6 +15,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
15
15
|
|
|
16
16
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
17
17
|
var src = __webpack_require__(71771);
|
|
18
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
19
|
+
var i18next = __webpack_require__(73577);
|
|
18
20
|
;// CONCATENATED MODULE: ../../../modes/microscopy/package.json
|
|
19
21
|
const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-microscopy"}');
|
|
20
22
|
;// CONCATENATED MODULE: ../../../modes/microscopy/src/id.js
|
|
@@ -133,6 +135,7 @@ const toolbarButtons = [
|
|
|
133
135
|
|
|
134
136
|
|
|
135
137
|
|
|
138
|
+
|
|
136
139
|
const ohif = {
|
|
137
140
|
layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
|
|
138
141
|
sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
|
|
@@ -160,25 +163,23 @@ const extensionDependencies = {
|
|
|
160
163
|
'@ohif/extension-dicom-video': '^3.0.1',
|
|
161
164
|
'@ohif/extension-dicom-microscopy': '^3.0.0'
|
|
162
165
|
};
|
|
163
|
-
function modeFactory(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
} = _ref;
|
|
166
|
+
function modeFactory({
|
|
167
|
+
modeConfiguration
|
|
168
|
+
}) {
|
|
167
169
|
return {
|
|
168
170
|
// TODO: We're using this as a route segment
|
|
169
171
|
// We should not be.
|
|
170
172
|
id: id,
|
|
171
173
|
routeName: 'microscopy',
|
|
172
|
-
displayName: 'Microscopy',
|
|
174
|
+
displayName: i18next/* default */.Z.t('Modes:Microscopy'),
|
|
173
175
|
/**
|
|
174
176
|
* Lifecycle hooks
|
|
175
177
|
*/
|
|
176
|
-
onModeEnter:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
} = _ref2;
|
|
178
|
+
onModeEnter: ({
|
|
179
|
+
servicesManager,
|
|
180
|
+
extensionManager,
|
|
181
|
+
commandsManager
|
|
182
|
+
}) => {
|
|
182
183
|
const {
|
|
183
184
|
toolbarService
|
|
184
185
|
} = servicesManager.services;
|
|
@@ -186,10 +187,9 @@ function modeFactory(_ref) {
|
|
|
186
187
|
toolbarService.addButtons(src_toolbarButtons);
|
|
187
188
|
toolbarService.createButtonSection('primary', ['MeasurementTools', 'dragPan']);
|
|
188
189
|
},
|
|
189
|
-
onModeExit:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
} = _ref3;
|
|
190
|
+
onModeExit: ({
|
|
191
|
+
servicesManager
|
|
192
|
+
}) => {
|
|
193
193
|
const {
|
|
194
194
|
toolbarService
|
|
195
195
|
} = servicesManager.services;
|
|
@@ -199,10 +199,9 @@ function modeFactory(_ref) {
|
|
|
199
199
|
study: [],
|
|
200
200
|
series: []
|
|
201
201
|
},
|
|
202
|
-
isValidMode:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
} = _ref4;
|
|
202
|
+
isValidMode: ({
|
|
203
|
+
modalities
|
|
204
|
+
}) => {
|
|
206
205
|
const modalities_list = modalities.split('\\');
|
|
207
206
|
|
|
208
207
|
// Slide Microscopy and ECG modality not supported by basic mode yet
|
|
@@ -213,11 +212,10 @@ function modeFactory(_ref) {
|
|
|
213
212
|
/*init: ({ servicesManager, extensionManager }) => {
|
|
214
213
|
//defaultViewerRouteInit
|
|
215
214
|
},*/
|
|
216
|
-
layoutTemplate:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
} = _ref5;
|
|
215
|
+
layoutTemplate: ({
|
|
216
|
+
location,
|
|
217
|
+
servicesManager
|
|
218
|
+
}) => {
|
|
221
219
|
return {
|
|
222
220
|
id: ohif.layout,
|
|
223
221
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[359],{
|
|
3
3
|
|
|
4
4
|
/***/ 22359:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -14,8 +14,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
|
|
15
15
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
16
16
|
var src = __webpack_require__(71771);
|
|
17
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
18
|
-
var ui_src = __webpack_require__(
|
|
17
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
|
|
18
|
+
var ui_src = __webpack_require__(22582);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/tmtv/src/initToolGroups.js
|
|
20
20
|
const toolGroupIds = {
|
|
21
21
|
CT: 'ctToolGroup',
|
|
@@ -25,7 +25,6 @@ const toolGroupIds = {
|
|
|
25
25
|
default: 'default'
|
|
26
26
|
// MPR: 'mpr',
|
|
27
27
|
};
|
|
28
|
-
|
|
29
28
|
function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
|
|
30
29
|
const tools = {
|
|
31
30
|
active: [{
|
|
@@ -404,6 +403,8 @@ function setFusionActiveVolume(matches, toolNames, toolGroupService, displaySetS
|
|
|
404
403
|
toolGroupService.setToolConfiguration(toolGroupIds.Fusion, toolNames.WindowLevel, windowLevelConfig);
|
|
405
404
|
toolGroupService.setToolConfiguration(toolGroupIds.Fusion, toolNames.EllipticalROI, ellipticalROIConfig);
|
|
406
405
|
}
|
|
406
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
407
|
+
var i18next = __webpack_require__(73577);
|
|
407
408
|
;// CONCATENATED MODULE: ../../../modes/tmtv/src/index.js
|
|
408
409
|
|
|
409
410
|
|
|
@@ -411,6 +412,7 @@ function setFusionActiveVolume(matches, toolNames, toolGroupService, displaySetS
|
|
|
411
412
|
|
|
412
413
|
|
|
413
414
|
|
|
415
|
+
|
|
414
416
|
const {
|
|
415
417
|
MetadataProvider
|
|
416
418
|
} = src.classes;
|
|
@@ -435,25 +437,23 @@ const extensionDependencies = {
|
|
|
435
437
|
'@ohif/extension-tmtv': '^3.0.0'
|
|
436
438
|
};
|
|
437
439
|
let unsubscriptions = [];
|
|
438
|
-
function modeFactory(
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
} = _ref;
|
|
440
|
+
function modeFactory({
|
|
441
|
+
modeConfiguration
|
|
442
|
+
}) {
|
|
442
443
|
return {
|
|
443
444
|
// TODO: We're using this as a route segment
|
|
444
445
|
// We should not be.
|
|
445
446
|
id: id,
|
|
446
447
|
routeName: 'tmtv',
|
|
447
|
-
displayName: 'Total Metabolic Tumor Volume',
|
|
448
|
+
displayName: i18next/* default */.Z.t('Modes:Total Metabolic Tumor Volume'),
|
|
448
449
|
/**
|
|
449
450
|
* Lifecycle hooks
|
|
450
451
|
*/
|
|
451
|
-
onModeEnter:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
} = _ref2;
|
|
452
|
+
onModeEnter: ({
|
|
453
|
+
servicesManager,
|
|
454
|
+
extensionManager,
|
|
455
|
+
commandsManager
|
|
456
|
+
}) => {
|
|
457
457
|
const {
|
|
458
458
|
toolbarService,
|
|
459
459
|
toolGroupService,
|
|
@@ -538,10 +538,9 @@ function modeFactory(_ref) {
|
|
|
538
538
|
return;
|
|
539
539
|
});
|
|
540
540
|
},
|
|
541
|
-
onModeExit:
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
} = _ref3;
|
|
541
|
+
onModeExit: ({
|
|
542
|
+
servicesManager
|
|
543
|
+
}) => {
|
|
545
544
|
const {
|
|
546
545
|
toolGroupService,
|
|
547
546
|
syncGroupService,
|
|
@@ -558,11 +557,10 @@ function modeFactory(_ref) {
|
|
|
558
557
|
study: [],
|
|
559
558
|
series: []
|
|
560
559
|
},
|
|
561
|
-
isValidMode:
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
} = _ref4;
|
|
560
|
+
isValidMode: ({
|
|
561
|
+
modalities,
|
|
562
|
+
study
|
|
563
|
+
}) => {
|
|
566
564
|
const modalities_list = modalities.split('\\');
|
|
567
565
|
const invalidModalities = ['SM'];
|
|
568
566
|
const isValid = modalities_list.includes('CT') && modalities_list.includes('PT') && !invalidModalities.some(modality => modalities_list.includes(modality)) &&
|
|
@@ -581,11 +579,10 @@ function modeFactory(_ref) {
|
|
|
581
579
|
/*init: ({ servicesManager, extensionManager }) => {
|
|
582
580
|
//defaultViewerRouteInit
|
|
583
581
|
},*/
|
|
584
|
-
layoutTemplate:
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
} = _ref5;
|
|
582
|
+
layoutTemplate: ({
|
|
583
|
+
location,
|
|
584
|
+
servicesManager
|
|
585
|
+
}) => {
|
|
589
586
|
return {
|
|
590
587
|
id: ohif.layout,
|
|
591
588
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[410],{
|
|
3
3
|
|
|
4
4
|
/***/ 15410:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -12,8 +12,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12
12
|
"default": () => (/* binding */ basic_dev_mode_src)
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
16
|
-
var src = __webpack_require__(
|
|
15
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
|
|
16
|
+
var src = __webpack_require__(22582);
|
|
17
17
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
18
18
|
var core_src = __webpack_require__(71771);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/toolbarButtons.js
|
|
@@ -248,15 +248,17 @@ const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-basic-dev-mode"}')
|
|
|
248
248
|
|
|
249
249
|
const id = package_namespaceObject.u2;
|
|
250
250
|
|
|
251
|
+
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
252
|
+
var i18next = __webpack_require__(73577);
|
|
251
253
|
;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/index.js
|
|
252
254
|
|
|
253
255
|
|
|
254
256
|
|
|
257
|
+
|
|
255
258
|
const configs = {
|
|
256
259
|
Length: {}
|
|
257
260
|
//
|
|
258
261
|
};
|
|
259
|
-
|
|
260
262
|
const ohif = {
|
|
261
263
|
layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
|
|
262
264
|
sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
|
|
@@ -285,22 +287,20 @@ const extensionDependencies = {
|
|
|
285
287
|
'@ohif/extension-dicom-pdf': '^3.0.1',
|
|
286
288
|
'@ohif/extension-dicom-video': '^3.0.1'
|
|
287
289
|
};
|
|
288
|
-
function modeFactory(
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
} = _ref;
|
|
290
|
+
function modeFactory({
|
|
291
|
+
modeConfiguration
|
|
292
|
+
}) {
|
|
292
293
|
return {
|
|
293
294
|
id: id,
|
|
294
295
|
routeName: 'dev',
|
|
295
|
-
displayName: 'Basic Dev Viewer',
|
|
296
|
+
displayName: i18next/* default */.Z.t('Modes:Basic Dev Viewer'),
|
|
296
297
|
/**
|
|
297
298
|
* Lifecycle hooks
|
|
298
299
|
*/
|
|
299
|
-
onModeEnter:
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
} = _ref2;
|
|
300
|
+
onModeEnter: ({
|
|
301
|
+
servicesManager,
|
|
302
|
+
extensionManager
|
|
303
|
+
}) => {
|
|
304
304
|
const {
|
|
305
305
|
toolbarService,
|
|
306
306
|
toolGroupService
|
|
@@ -353,7 +353,6 @@ function modeFactory(_ref) {
|
|
|
353
353
|
}]
|
|
354
354
|
// disabled
|
|
355
355
|
};
|
|
356
|
-
|
|
357
356
|
const toolGroupId = 'default';
|
|
358
357
|
toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
|
|
359
358
|
let unsubscribe;
|
|
@@ -384,10 +383,9 @@ function modeFactory(_ref) {
|
|
|
384
383
|
toolbarService.addButtons(src_toolbarButtons);
|
|
385
384
|
toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Layout', 'MoreTools']);
|
|
386
385
|
},
|
|
387
|
-
onModeExit:
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
} = _ref3;
|
|
386
|
+
onModeExit: ({
|
|
387
|
+
servicesManager
|
|
388
|
+
}) => {
|
|
391
389
|
const {
|
|
392
390
|
toolGroupService,
|
|
393
391
|
measurementService,
|
|
@@ -399,10 +397,9 @@ function modeFactory(_ref) {
|
|
|
399
397
|
study: [],
|
|
400
398
|
series: []
|
|
401
399
|
},
|
|
402
|
-
isValidMode:
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} = _ref4;
|
|
400
|
+
isValidMode: ({
|
|
401
|
+
modalities
|
|
402
|
+
}) => {
|
|
406
403
|
const modalities_list = modalities.split('\\');
|
|
407
404
|
|
|
408
405
|
// Slide Microscopy modality not supported by basic mode yet
|
|
@@ -413,11 +410,10 @@ function modeFactory(_ref) {
|
|
|
413
410
|
/*init: ({ servicesManager, extensionManager }) => {
|
|
414
411
|
//defaultViewerRouteInit
|
|
415
412
|
},*/
|
|
416
|
-
layoutTemplate:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
} = _ref5;
|
|
413
|
+
layoutTemplate: ({
|
|
414
|
+
location,
|
|
415
|
+
servicesManager
|
|
416
|
+
}) => {
|
|
421
417
|
return {
|
|
422
418
|
id: ohif.layout,
|
|
423
419
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[417],{
|
|
3
3
|
|
|
4
4
|
/***/ 15747:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -1747,7 +1747,7 @@ function createListComponent(_ref) {
|
|
|
1747
1747
|
scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
|
|
1748
1748
|
return {
|
|
1749
1749
|
isScrolling: true,
|
|
1750
|
-
scrollDirection: prevState.scrollOffset <
|
|
1750
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',
|
|
1751
1751
|
scrollOffset: scrollOffset,
|
|
1752
1752
|
scrollUpdateWasRequested: false
|
|
1753
1753
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[451],{
|
|
3
3
|
|
|
4
4
|
/***/ 4451:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
@@ -21,8 +21,8 @@ var react = __webpack_require__(43001);
|
|
|
21
21
|
var es = __webpack_require__(69190);
|
|
22
22
|
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
23
23
|
var src = __webpack_require__(71771);
|
|
24
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
25
|
-
var ui_src = __webpack_require__(
|
|
24
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
|
|
25
|
+
var ui_src = __webpack_require__(22582);
|
|
26
26
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/utils/initSEGToolGroup.ts
|
|
27
27
|
function createSEGToolGroupAndAddTools(ToolGroupService, customizationService, toolGroupId) {
|
|
28
28
|
const {
|
|
@@ -38,14 +38,13 @@ const RESPONSE = {
|
|
|
38
38
|
CANCEL: 0,
|
|
39
39
|
HYDRATE_SEG: 5
|
|
40
40
|
};
|
|
41
|
-
function promptHydrateSEG(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} = _ref;
|
|
41
|
+
function promptHydrateSEG({
|
|
42
|
+
servicesManager,
|
|
43
|
+
segDisplaySet,
|
|
44
|
+
viewportId,
|
|
45
|
+
preHydrateCallbacks,
|
|
46
|
+
hydrateSEGDisplaySet
|
|
47
|
+
}) {
|
|
49
48
|
const {
|
|
50
49
|
uiViewportDialogService
|
|
51
50
|
} = servicesManager.services;
|
|
@@ -97,11 +96,10 @@ function _askHydrate(uiViewportDialogService, viewportId) {
|
|
|
97
96
|
|
|
98
97
|
|
|
99
98
|
|
|
100
|
-
function _getStatusComponent(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
} = _ref;
|
|
99
|
+
function _getStatusComponent({
|
|
100
|
+
isHydrated,
|
|
101
|
+
onStatusClick
|
|
102
|
+
}) {
|
|
105
103
|
let ToolTipMessage = null;
|
|
106
104
|
let StatusIcon = null;
|
|
107
105
|
const {
|
|
@@ -224,10 +222,9 @@ function OHIFCornerstoneSEGViewport(props) {
|
|
|
224
222
|
setElement(null);
|
|
225
223
|
};
|
|
226
224
|
const storePresentationState = (0,react.useCallback)(() => {
|
|
227
|
-
viewportGrid?.viewports.forEach(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
} = _ref;
|
|
225
|
+
viewportGrid?.viewports.forEach(({
|
|
226
|
+
viewportId
|
|
227
|
+
}) => {
|
|
231
228
|
commandsManager.runCommand('storePresentation', {
|
|
232
229
|
viewportId
|
|
233
230
|
});
|
|
@@ -313,11 +310,10 @@ function OHIFCornerstoneSEGViewport(props) {
|
|
|
313
310
|
(0,react.useEffect)(() => {
|
|
314
311
|
const {
|
|
315
312
|
unsubscribe
|
|
316
|
-
} = segmentationService.subscribe(segmentationService.EVENTS.SEGMENT_LOADING_COMPLETE,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
} = _ref2;
|
|
313
|
+
} = segmentationService.subscribe(segmentationService.EVENTS.SEGMENT_LOADING_COMPLETE, ({
|
|
314
|
+
percentComplete,
|
|
315
|
+
numSegments
|
|
316
|
+
}) => {
|
|
321
317
|
setProcessingProgress({
|
|
322
318
|
percentComplete,
|
|
323
319
|
totalSegments: numSegments
|
|
@@ -332,10 +328,9 @@ function OHIFCornerstoneSEGViewport(props) {
|
|
|
332
328
|
Cleanup the SEG viewport when the viewport is destroyed
|
|
333
329
|
*/
|
|
334
330
|
(0,react.useEffect)(() => {
|
|
335
|
-
const onDisplaySetsRemovedSubscription = displaySetService.subscribe(displaySetService.EVENTS.DISPLAY_SETS_REMOVED,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
} = _ref3;
|
|
331
|
+
const onDisplaySetsRemovedSubscription = displaySetService.subscribe(displaySetService.EVENTS.DISPLAY_SETS_REMOVED, ({
|
|
332
|
+
displaySetInstanceUIDs
|
|
333
|
+
}) => {
|
|
339
334
|
const activeViewport = viewports.get(activeViewportId);
|
|
340
335
|
if (displaySetInstanceUIDs.includes(activeViewport.displaySetInstanceUID)) {
|
|
341
336
|
viewportGridService.setDisplaySetsForViewport({
|
|
@@ -398,11 +393,10 @@ function OHIFCornerstoneSEGViewport(props) {
|
|
|
398
393
|
SeriesDescription,
|
|
399
394
|
SpacingBetweenSlices
|
|
400
395
|
} = referencedDisplaySetRef.current.metadata;
|
|
401
|
-
const hydrateSEGDisplaySet =
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} = _ref4;
|
|
396
|
+
const hydrateSEGDisplaySet = ({
|
|
397
|
+
segDisplaySet,
|
|
398
|
+
viewportId
|
|
399
|
+
}) => {
|
|
406
400
|
commandsManager.runCommand('loadSegmentationDisplaySetsForViewport', {
|
|
407
401
|
displaySets: [segDisplaySet],
|
|
408
402
|
viewportId
|