@ohif/app 3.8.0-beta.64 → 3.8.0-beta.66
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/{121.bundle.5399d807995157d368b7.js → 121.bundle.fda405f29003c308ce09.js} +2 -2
- package/dist/{155.bundle.55fa02bfc411cc91e261.js → 155.bundle.e9fdaa40010cc784f389.js} +4 -4
- package/dist/{191.bundle.4850ab82949bb6f0eb73.js → 191.bundle.509480b6972209d2567c.js} +29 -8
- package/dist/{270.bundle.58c74e58ad67b5069718.js → 270.bundle.d7d6957c20f95c675b32.js} +2 -2
- package/dist/{295.bundle.c0a29ff64d86f707fc20.js → 295.bundle.57700cd41fd87e1521b4.js} +2 -2
- package/dist/{339.bundle.e31c81c7179d3d24f3dd.js → 339.bundle.526cede81f0a9bb248e6.js} +2 -2
- package/dist/{41.bundle.0696b28613c7d47833c9.js → 41.bundle.b7bf03502ac3e2ddca35.js} +20 -29
- package/dist/{448.bundle.e856d2b2bd979c7d9ac0.js → 448.bundle.0061f5280490e1a1aa88.js} +55 -23
- package/dist/{530.bundle.f00fd953dcd9d0afd10b.js → 530.bundle.72d9812f117036615a38.js} +1 -1
- package/dist/{544.bundle.adfe5764f59b5fe0eba7.js → 544.bundle.c3009e245ceb1554c70a.js} +2 -2
- package/dist/{594.bundle.924cdc10e7435cf3e199.js → 594.bundle.483843d38640164a9aca.js} +3 -3
- package/dist/{638.bundle.62f8f8ada74bd900abfc.js → 638.bundle.4d7da6fe507df0000718.js} +3 -3
- package/dist/{699.bundle.b3b25017819be681ef3d.js → 699.bundle.62990e46c235ab4785db.js} +172 -97
- package/dist/{701.bundle.b7ebc1629fc121e13c58.js → 701.bundle.285943aebfc0efe2b4f1.js} +51 -22
- package/dist/{724.bundle.cd011bc1838a2bde1d66.js → 724.bundle.83a4176860f750353c0b.js} +2 -17
- package/dist/{862.bundle.d2e78b70286b59569e83.js → 862.bundle.999931264956ced59b33.js} +1 -1
- package/dist/{889.bundle.2aefa0a3eb114db0de3f.js → 889.bundle.edf546d8738c22b94be5.js} +2 -2
- package/dist/{90.bundle.7a9258532111121b5ee3.js → 90.bundle.49b20161b4f864100085.js} +138 -34
- package/dist/{987.bundle.91d4867efedd5b4d84cb.js → 987.bundle.6bdfb3cd8762b8889632.js} +27 -7
- package/dist/{app.bundle.039c4dc99821370f330d.js → app.bundle.81c01fc2e11fa9b6ccb8.js} +412 -70
- package/dist/app.bundle.css +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.c1cec6312eb6c6dc3701.js → polySeg.bundle.a97fc68de7599f9a9fdc.js} +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{164.bundle.0cfa2edabf8ef222f3ea.js → 164.bundle.3f877a2272b773332317.js} +0 -0
- /package/dist/{188.bundle.ec979013d89d90831c58.js → 188.bundle.67df9790c453b185fe1d.js} +0 -0
- /package/dist/{342.bundle.a039c24e9f661f3b884d.js → 342.bundle.17ec05907f93624fd494.js} +0 -0
- /package/dist/{504.bundle.aa165082e2acc5ccf080.js → 504.bundle.6d203e80d4bd8a823059.js} +0 -0
- /package/dist/{559.bundle.4f55f5df04c418b2854e.js → 559.bundle.bb2c52834fb372399002.js} +0 -0
- /package/dist/{905.bundle.d4bdcbd451de59b2191b.js → 905.bundle.88010c612e910657883d.js} +0 -0
- /package/dist/{907.bundle.ca236b83967a8459b778.js → 907.bundle.1206d58ae62d26beaf30.js} +0 -0
- /package/dist/{961.bundle.a5541d8090cb8b22f7e6.js → 961.bundle.b4d84dd80e4e1113de27.js} +0 -0
|
@@ -19,8 +19,8 @@ var prop_types = __webpack_require__(11374);
|
|
|
19
19
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
20
20
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
21
21
|
var src = __webpack_require__(78198);
|
|
22
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
23
|
-
var ui_src = __webpack_require__(
|
|
22
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
23
|
+
var ui_src = __webpack_require__(58046);
|
|
24
24
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-rt/src/utils/promptHydrateRT.ts
|
|
25
25
|
|
|
26
26
|
const RESPONSE = {
|
|
@@ -20,8 +20,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
|
20
20
|
var es = __webpack_require__(57593);
|
|
21
21
|
// EXTERNAL MODULE: ../../../node_modules/@xstate/react/es/index.js + 8 modules
|
|
22
22
|
var react_es = __webpack_require__(6835);
|
|
23
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
24
|
-
var src = __webpack_require__(
|
|
23
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
24
|
+
var src = __webpack_require__(58046);
|
|
25
25
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/measurementTrackingMachine.js
|
|
26
26
|
|
|
27
27
|
const RESPONSE = {
|
|
@@ -1104,8 +1104,8 @@ var dist = __webpack_require__(37396);
|
|
|
1104
1104
|
var es = __webpack_require__(80619);
|
|
1105
1105
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
1106
1106
|
var src = __webpack_require__(78198);
|
|
1107
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
1108
|
-
var ui_src = __webpack_require__(
|
|
1107
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
1108
|
+
var ui_src = __webpack_require__(58046);
|
|
1109
1109
|
;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.tsx
|
|
1110
1110
|
|
|
1111
1111
|
|
|
@@ -9784,6 +9784,26 @@ class TrackballRotateTool extends base/* BaseTool */.oS {
|
|
|
9784
9784
|
},
|
|
9785
9785
|
}) {
|
|
9786
9786
|
super(toolProps, defaultToolProps);
|
|
9787
|
+
this.preMouseDownCallback = (evt) => {
|
|
9788
|
+
const eventDetail = evt.detail;
|
|
9789
|
+
const { element } = eventDetail;
|
|
9790
|
+
const enabledElement = (0,esm.getEnabledElement)(element);
|
|
9791
|
+
const { viewport } = enabledElement;
|
|
9792
|
+
const actorEntry = viewport.getDefaultActor();
|
|
9793
|
+
const actor = actorEntry.actor;
|
|
9794
|
+
const mapper = actor.getMapper();
|
|
9795
|
+
const originalSampleDistance = mapper.getSampleDistance();
|
|
9796
|
+
mapper.setSampleDistance(originalSampleDistance * 2);
|
|
9797
|
+
if (this.cleanUp !== null) {
|
|
9798
|
+
element.removeEventListener('mouseup', this.cleanUp);
|
|
9799
|
+
}
|
|
9800
|
+
this.cleanUp = () => {
|
|
9801
|
+
mapper.setSampleDistance(originalSampleDistance);
|
|
9802
|
+
viewport.render();
|
|
9803
|
+
};
|
|
9804
|
+
element.addEventListener('mouseup', this.cleanUp, { once: true });
|
|
9805
|
+
return true;
|
|
9806
|
+
};
|
|
9787
9807
|
this.rotateCamera = (viewport, centerWorld, axis, angle) => {
|
|
9788
9808
|
const vtkCamera = viewport.getVtkActiveCamera();
|
|
9789
9809
|
const viewUp = vtkCamera.getViewUp();
|
|
@@ -24581,7 +24601,6 @@ function getToolStateByViewportId(viewportId) {
|
|
|
24581
24601
|
const { ViewportStatus } = esm.Enums;
|
|
24582
24602
|
const { triggerEvent } = esm.utilities;
|
|
24583
24603
|
const debounced = true;
|
|
24584
|
-
const loop = true;
|
|
24585
24604
|
const dynamicVolumesPlayingMap = new Map();
|
|
24586
24605
|
function playClip(element, playClipOptions) {
|
|
24587
24606
|
let playClipTimeouts;
|
|
@@ -24642,7 +24661,7 @@ function playClip(element, playClipOptions) {
|
|
|
24642
24661
|
const { numScrollSteps, currentStepIndex } = playClipContext;
|
|
24643
24662
|
let newStepIndex = currentStepIndex + (playClipData.reverse ? -1 : 1);
|
|
24644
24663
|
const newStepIndexOutOfRange = newStepIndex < 0 || newStepIndex >= numScrollSteps;
|
|
24645
|
-
if (!loop && newStepIndexOutOfRange) {
|
|
24664
|
+
if (!playClipData.loop && newStepIndexOutOfRange) {
|
|
24646
24665
|
_stopClip(element, {
|
|
24647
24666
|
stopDynamicCine: !isDynamicCinePlaying,
|
|
24648
24667
|
viewportId: viewport.id,
|
|
@@ -28270,6 +28289,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28270
28289
|
floodFill: () => (/* reexport */ floodFill/* default */.A),
|
|
28271
28290
|
getBrushSizeForToolGroup: () => (/* reexport */ getBrushSizeForToolGroup),
|
|
28272
28291
|
getBrushThresholdForToolGroup: () => (/* reexport */ getBrushThresholdForToolGroup),
|
|
28292
|
+
getBrushToolInstances: () => (/* reexport */ segmentation_utilities/* getBrushToolInstances */.n7),
|
|
28273
28293
|
getDefaultRepresentationConfig: () => (/* reexport */ getDefaultRepresentationConfig),
|
|
28274
28294
|
getHoveredContourSegmentationAnnotation: () => (/* reexport */ getHoveredContourSegmentationAnnotation),
|
|
28275
28295
|
getSegmentAtLabelmapBorder: () => (/* reexport */ getSegmentAtLabelmapBorder),
|
|
@@ -28522,7 +28542,7 @@ function setBrushSizeForToolGroup(toolGroupId, brushSize, toolName) {
|
|
|
28522
28542
|
if (toolGroup === undefined) {
|
|
28523
28543
|
return;
|
|
28524
28544
|
}
|
|
28525
|
-
const brushBasedToolInstances = (0,segmentation_utilities/*
|
|
28545
|
+
const brushBasedToolInstances = (0,segmentation_utilities/* getBrushToolInstances */.n7)(toolGroupId, toolName);
|
|
28526
28546
|
brushBasedToolInstances.forEach((tool) => {
|
|
28527
28547
|
tool.configuration.brushSize = brushSize;
|
|
28528
28548
|
tool.invalidateBrushCursor();
|
|
@@ -28546,7 +28566,7 @@ function getBrushSizeForToolGroup(toolGroupId, toolName) {
|
|
|
28546
28566
|
if (!Object.keys(toolInstances).length) {
|
|
28547
28567
|
return;
|
|
28548
28568
|
}
|
|
28549
|
-
const brushBasedToolInstances = (0,segmentation_utilities/*
|
|
28569
|
+
const brushBasedToolInstances = (0,segmentation_utilities/* getBrushToolInstances */.n7)(toolGroupId, toolName);
|
|
28550
28570
|
const brushToolInstance = brushBasedToolInstances[0];
|
|
28551
28571
|
if (!brushToolInstance) {
|
|
28552
28572
|
return;
|
|
@@ -28564,7 +28584,7 @@ function setBrushThresholdForToolGroup(toolGroupId, threshold, otherArgs = { isD
|
|
|
28564
28584
|
if (toolGroup === undefined) {
|
|
28565
28585
|
return;
|
|
28566
28586
|
}
|
|
28567
|
-
const brushBasedToolInstances = (0,segmentation_utilities/*
|
|
28587
|
+
const brushBasedToolInstances = (0,segmentation_utilities/* getBrushToolInstances */.n7)(toolGroupId);
|
|
28568
28588
|
const configuration = {
|
|
28569
28589
|
...otherArgs,
|
|
28570
28590
|
...(threshold !== undefined && { threshold }),
|
|
@@ -28593,7 +28613,7 @@ function getBrushThresholdForToolGroup(toolGroupId) {
|
|
|
28593
28613
|
if (!Object.keys(toolInstances).length) {
|
|
28594
28614
|
return;
|
|
28595
28615
|
}
|
|
28596
|
-
const brushBasedToolInstances = (0,segmentation_utilities/*
|
|
28616
|
+
const brushBasedToolInstances = (0,segmentation_utilities/* getBrushToolInstances */.n7)(toolGroupId);
|
|
28597
28617
|
const brushToolInstance = brushBasedToolInstances[0];
|
|
28598
28618
|
if (!brushToolInstance) {
|
|
28599
28619
|
return;
|
|
@@ -28992,7 +29012,7 @@ function invalidateBrushCursor(toolGroupId) {
|
|
|
28992
29012
|
if (toolGroup === undefined) {
|
|
28993
29013
|
return;
|
|
28994
29014
|
}
|
|
28995
|
-
const brushBasedToolInstances = (0,segmentation_utilities/*
|
|
29015
|
+
const brushBasedToolInstances = (0,segmentation_utilities/* getBrushToolInstances */.n7)(toolGroupId);
|
|
28996
29016
|
brushBasedToolInstances.forEach((tool) => {
|
|
28997
29017
|
tool.invalidateBrushCursor();
|
|
28998
29018
|
});
|
|
@@ -29208,6 +29228,7 @@ function getHoveredContourSegmentationAnnotation(segmentationId) {
|
|
|
29208
29228
|
|
|
29209
29229
|
|
|
29210
29230
|
|
|
29231
|
+
|
|
29211
29232
|
|
|
29212
29233
|
|
|
29213
29234
|
/***/ }),
|
|
@@ -29340,8 +29361,8 @@ function triggerSegmentationRender(toolGroupId) {
|
|
|
29340
29361
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
29341
29362
|
|
|
29342
29363
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29343
|
-
/* harmony export */ Ay: () => (/* binding */ getBrushToolInstances),
|
|
29344
29364
|
/* harmony export */ Q5: () => (/* binding */ getVoxelOverlap),
|
|
29365
|
+
/* harmony export */ n7: () => (/* binding */ getBrushToolInstances),
|
|
29345
29366
|
/* harmony export */ zf: () => (/* binding */ processVolumes)
|
|
29346
29367
|
/* harmony export */ });
|
|
29347
29368
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50719);
|
|
@@ -20,8 +20,8 @@ const id = package_namespaceObject.UU;
|
|
|
20
20
|
|
|
21
21
|
// EXTERNAL MODULE: ../../../node_modules/react/index.js
|
|
22
22
|
var react = __webpack_require__(41766);
|
|
23
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
24
|
-
var src = __webpack_require__(
|
|
23
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
24
|
+
var src = __webpack_require__(58046);
|
|
25
25
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
26
26
|
var core_src = __webpack_require__(78198);
|
|
27
27
|
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
|
|
@@ -21,8 +21,8 @@ var react = __webpack_require__(41766);
|
|
|
21
21
|
var es = __webpack_require__(80619);
|
|
22
22
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
23
23
|
var src = __webpack_require__(78198);
|
|
24
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
25
|
-
var ui_src = __webpack_require__(
|
|
24
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
25
|
+
var ui_src = __webpack_require__(58046);
|
|
26
26
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/utils/initSEGToolGroup.ts
|
|
27
27
|
function createSEGToolGroupAndAddTools(ToolGroupService, customizationService, toolGroupId) {
|
|
28
28
|
const {
|
|
@@ -693,8 +693,8 @@ var react = __webpack_require__(41766);
|
|
|
693
693
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
694
694
|
var prop_types = __webpack_require__(11374);
|
|
695
695
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
696
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
697
|
-
var src = __webpack_require__(
|
|
696
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
697
|
+
var src = __webpack_require__(58046);
|
|
698
698
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
699
699
|
var core_src = __webpack_require__(78198);
|
|
700
700
|
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
|
|
@@ -268,8 +268,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
|
268
268
|
initVolume3DToolGroup(extensionManager, toolGroupService);
|
|
269
269
|
}
|
|
270
270
|
/* harmony default export */ const src_initToolGroups = (initToolGroups);
|
|
271
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
272
|
-
var ui_src = __webpack_require__(
|
|
271
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
272
|
+
var ui_src = __webpack_require__(58046);
|
|
273
273
|
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.ts
|
|
274
274
|
// TODO: torn, can either bake this here; or have to create a whole new button type
|
|
275
275
|
// Only ways that you can pass in a custom React component for render :l
|
|
@@ -305,7 +305,7 @@ function _createWwwcPreset(preset, title, subtitle) {
|
|
|
305
305
|
const setToolActiveToolbar = {
|
|
306
306
|
commandName: 'setToolActiveToolbar',
|
|
307
307
|
commandOptions: {
|
|
308
|
-
toolGroupIds: ['default', 'mpr', 'SRToolGroup']
|
|
308
|
+
toolGroupIds: ['default', 'mpr', 'SRToolGroup', 'volume3d']
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
const toolbarButtons = [{
|
|
@@ -408,15 +408,23 @@ const toolbarButtons = [{
|
|
|
408
408
|
commands: setToolActiveToolbar,
|
|
409
409
|
evaluate: 'evaluate.cornerstoneTool'
|
|
410
410
|
}
|
|
411
|
+
}, {
|
|
412
|
+
id: 'TrackballRotate',
|
|
413
|
+
uiType: 'ohif.radioGroup',
|
|
414
|
+
props: {
|
|
415
|
+
type: 'tool',
|
|
416
|
+
icon: 'tool-3d-rotate',
|
|
417
|
+
label: '3D Rotate',
|
|
418
|
+
commands: setToolActiveToolbar,
|
|
419
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
420
|
+
}
|
|
411
421
|
}, {
|
|
412
422
|
id: 'Capture',
|
|
413
423
|
uiType: 'ohif.radioGroup',
|
|
414
424
|
props: {
|
|
415
425
|
icon: 'tool-capture',
|
|
416
426
|
label: 'Capture',
|
|
417
|
-
commands:
|
|
418
|
-
commandName: 'showDownloadViewportModal'
|
|
419
|
-
}],
|
|
427
|
+
commands: 'showDownloadViewportModal',
|
|
420
428
|
evaluate: 'evaluate.action'
|
|
421
429
|
}
|
|
422
430
|
}, {
|
|
@@ -424,25 +432,8 @@ const toolbarButtons = [{
|
|
|
424
432
|
uiType: 'ohif.layoutSelector',
|
|
425
433
|
props: {
|
|
426
434
|
rows: 3,
|
|
427
|
-
columns:
|
|
428
|
-
evaluate: 'evaluate.action'
|
|
429
|
-
commands: [{
|
|
430
|
-
commandName: 'setViewportGridLayout'
|
|
431
|
-
}]
|
|
432
|
-
}
|
|
433
|
-
}, {
|
|
434
|
-
id: 'MPR',
|
|
435
|
-
uiType: 'ohif.radioGroup',
|
|
436
|
-
props: {
|
|
437
|
-
icon: 'icon-mpr',
|
|
438
|
-
label: 'MPR',
|
|
439
|
-
commands: [{
|
|
440
|
-
commandName: 'toggleHangingProtocol',
|
|
441
|
-
commandOptions: {
|
|
442
|
-
protocolId: 'mpr'
|
|
443
|
-
}
|
|
444
|
-
}],
|
|
445
|
-
evaluate: 'evaluate.mpr'
|
|
435
|
+
columns: 4,
|
|
436
|
+
evaluate: 'evaluate.action'
|
|
446
437
|
}
|
|
447
438
|
}, {
|
|
448
439
|
id: 'Crosshairs',
|
|
@@ -513,7 +504,7 @@ const moreTools = [{
|
|
|
513
504
|
label: 'Flip Horizontal',
|
|
514
505
|
tooltip: 'Flip Horizontally',
|
|
515
506
|
commands: 'flipViewportHorizontal',
|
|
516
|
-
evaluate: 'evaluate.viewportProperties.toggle'
|
|
507
|
+
evaluate: ['evaluate.viewportProperties.toggle', 'evaluate.not3D']
|
|
517
508
|
}), moreTools_createButton({
|
|
518
509
|
id: 'ImageSliceSync',
|
|
519
510
|
icon: 'link',
|
|
@@ -533,7 +524,7 @@ const moreTools = [{
|
|
|
533
524
|
}
|
|
534
525
|
}
|
|
535
526
|
},
|
|
536
|
-
evaluate: 'evaluate.cornerstone.synchronizer'
|
|
527
|
+
evaluate: ['evaluate.cornerstone.synchronizer', 'evaluate.not3D']
|
|
537
528
|
}), moreTools_createButton({
|
|
538
529
|
id: 'ReferenceLines',
|
|
539
530
|
icon: 'tool-referenceLines',
|
|
@@ -591,7 +582,7 @@ const moreTools = [{
|
|
|
591
582
|
label: 'Cine',
|
|
592
583
|
tooltip: 'Cine',
|
|
593
584
|
commands: 'toggleCine',
|
|
594
|
-
evaluate: 'evaluate.cine'
|
|
585
|
+
evaluate: ['evaluate.cine', 'evaluate.not3D']
|
|
595
586
|
}), moreTools_createButton({
|
|
596
587
|
id: 'Angle',
|
|
597
588
|
icon: 'tool-angle',
|
|
@@ -712,7 +703,7 @@ function modeFactory({
|
|
|
712
703
|
// Init Default and SR ToolGroups
|
|
713
704
|
src_initToolGroups(extensionManager, toolGroupService, commandsManager);
|
|
714
705
|
toolbarService.addButtons([...src_toolbarButtons, ...src_moreTools]);
|
|
715
|
-
toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', '
|
|
706
|
+
toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', 'Pan', 'TrackballRotate', 'WindowLevel', 'Capture', 'Layout', 'Crosshairs', 'MoreTools']);
|
|
716
707
|
customizationService.addModeCustomizations([{
|
|
717
708
|
id: 'segmentation.disableEditing',
|
|
718
709
|
value: true
|
|
@@ -14,8 +14,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
|
|
15
15
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
16
16
|
var src = __webpack_require__(78198);
|
|
17
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
18
|
-
var ui_src = __webpack_require__(
|
|
17
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
18
|
+
var ui_src = __webpack_require__(58046);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/toolbarButtons.ts
|
|
20
20
|
// TODO: torn, can either bake this here; or have to create a whole new button type
|
|
21
21
|
// Only ways that you can pass in a custom React component for render :l
|
|
@@ -154,15 +154,36 @@ const toolbarButtons = [{
|
|
|
154
154
|
commands: setToolActiveToolbar,
|
|
155
155
|
evaluate: 'evaluate.cornerstoneTool'
|
|
156
156
|
}
|
|
157
|
+
}, {
|
|
158
|
+
id: 'MPR',
|
|
159
|
+
uiType: 'ohif.radioGroup',
|
|
160
|
+
props: {
|
|
161
|
+
icon: 'icon-mpr',
|
|
162
|
+
label: 'MPR',
|
|
163
|
+
commands: [{
|
|
164
|
+
commandName: 'toggleHangingProtocol',
|
|
165
|
+
commandOptions: {
|
|
166
|
+
protocolId: 'mpr'
|
|
167
|
+
}
|
|
168
|
+
}],
|
|
169
|
+
evaluate: 'evaluate.mpr'
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
id: 'TrackBallRotate',
|
|
173
|
+
type: 'ohif.radioGroup',
|
|
174
|
+
props: {
|
|
175
|
+
type: 'tool',
|
|
176
|
+
icon: 'tool-3d-rotate',
|
|
177
|
+
label: '3D Rotate',
|
|
178
|
+
commands: setToolActiveToolbar
|
|
179
|
+
}
|
|
157
180
|
}, {
|
|
158
181
|
id: 'Capture',
|
|
159
182
|
uiType: 'ohif.radioGroup',
|
|
160
183
|
props: {
|
|
161
184
|
icon: 'tool-capture',
|
|
162
185
|
label: 'Capture',
|
|
163
|
-
commands:
|
|
164
|
-
commandName: 'showDownloadViewportModal'
|
|
165
|
-
}],
|
|
186
|
+
commands: 'showDownloadViewportModal',
|
|
166
187
|
evaluate: 'evaluate.action'
|
|
167
188
|
}
|
|
168
189
|
}, {
|
|
@@ -170,25 +191,9 @@ const toolbarButtons = [{
|
|
|
170
191
|
uiType: 'ohif.layoutSelector',
|
|
171
192
|
props: {
|
|
172
193
|
rows: 3,
|
|
173
|
-
columns:
|
|
194
|
+
columns: 4,
|
|
174
195
|
evaluate: 'evaluate.action',
|
|
175
|
-
commands:
|
|
176
|
-
commandName: 'setViewportGridLayout'
|
|
177
|
-
}]
|
|
178
|
-
}
|
|
179
|
-
}, {
|
|
180
|
-
id: 'MPR',
|
|
181
|
-
uiType: 'ohif.radioGroup',
|
|
182
|
-
props: {
|
|
183
|
-
icon: 'icon-mpr',
|
|
184
|
-
label: 'MPR',
|
|
185
|
-
commands: [{
|
|
186
|
-
commandName: 'toggleHangingProtocol',
|
|
187
|
-
commandOptions: {
|
|
188
|
-
protocolId: 'mpr'
|
|
189
|
-
}
|
|
190
|
-
}],
|
|
191
|
-
evaluate: 'evaluate.mpr'
|
|
196
|
+
commands: 'setViewportGridLayout'
|
|
192
197
|
}
|
|
193
198
|
}, {
|
|
194
199
|
id: 'Crosshairs',
|
|
@@ -411,10 +416,37 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
411
416
|
};
|
|
412
417
|
toolGroupService.createToolGroupAndAddTools('mpr', tools);
|
|
413
418
|
}
|
|
419
|
+
function initVolume3DToolGroup(extensionManager, toolGroupService) {
|
|
420
|
+
const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
|
|
421
|
+
const {
|
|
422
|
+
toolNames,
|
|
423
|
+
Enums
|
|
424
|
+
} = utilityModule.exports;
|
|
425
|
+
const tools = {
|
|
426
|
+
active: [{
|
|
427
|
+
toolName: toolNames.TrackballRotateTool,
|
|
428
|
+
bindings: [{
|
|
429
|
+
mouseButton: Enums.MouseBindings.Primary
|
|
430
|
+
}]
|
|
431
|
+
}, {
|
|
432
|
+
toolName: toolNames.Zoom,
|
|
433
|
+
bindings: [{
|
|
434
|
+
mouseButton: Enums.MouseBindings.Secondary
|
|
435
|
+
}]
|
|
436
|
+
}, {
|
|
437
|
+
toolName: toolNames.Pan,
|
|
438
|
+
bindings: [{
|
|
439
|
+
mouseButton: Enums.MouseBindings.Auxiliary
|
|
440
|
+
}]
|
|
441
|
+
}]
|
|
442
|
+
};
|
|
443
|
+
toolGroupService.createToolGroupAndAddTools('volume3d', tools);
|
|
444
|
+
}
|
|
414
445
|
function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
415
446
|
initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, 'default');
|
|
416
447
|
initSRToolGroup(extensionManager, toolGroupService, commandsManager);
|
|
417
448
|
initMPRToolGroup(extensionManager, toolGroupService, commandsManager);
|
|
449
|
+
initVolume3DToolGroup(extensionManager, toolGroupService);
|
|
418
450
|
}
|
|
419
451
|
/* harmony default export */ const src_initToolGroups = (initToolGroups);
|
|
420
452
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 383 modules
|
|
@@ -14,7 +14,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14
14
|
/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80619);
|
|
15
15
|
/* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78198);
|
|
16
16
|
/* harmony import */ var _tools_modules_dicomSRModule__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(74334);
|
|
17
|
-
/* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
17
|
+
/* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58046);
|
|
18
18
|
/* harmony import */ var _utils_hydrateStructuredReport__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77089);
|
|
19
19
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15575);
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -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__(14771);
|
|
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 + 497 modules
|
|
26
|
+
var src = __webpack_require__(58046);
|
|
27
27
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/DicomMicroscopyViewport.css
|
|
28
28
|
// extracted by mini-css-extract-plugin
|
|
29
29
|
|
|
@@ -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 + 497 modules
|
|
16
|
+
var src = __webpack_require__(58046);
|
|
17
17
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
18
18
|
var core_src = __webpack_require__(78198);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/toolbarButtons.js
|
|
@@ -142,7 +142,7 @@ const toolbarButtons = [{
|
|
|
142
142
|
uiType: 'ohif.layoutSelector',
|
|
143
143
|
props: {
|
|
144
144
|
rows: 3,
|
|
145
|
-
columns:
|
|
145
|
+
columns: 4,
|
|
146
146
|
evaluate: 'evaluate.action',
|
|
147
147
|
commands: [{
|
|
148
148
|
commandName: 'setViewportGridLayout'
|
|
@@ -315,8 +315,8 @@ function getHangingProtocolModule() {
|
|
|
315
315
|
|
|
316
316
|
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
317
317
|
var state = __webpack_require__(15575);
|
|
318
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
319
|
-
var ui_src = __webpack_require__(
|
|
318
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
319
|
+
var ui_src = __webpack_require__(58046);
|
|
320
320
|
// EXTERNAL MODULE: ../../../extensions/default/src/index.ts + 78 modules
|
|
321
321
|
var default_src = __webpack_require__(54090);
|
|
322
322
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
@@ -937,7 +937,7 @@ function getUpdatedViewportsForSegmentation({
|
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
|
-
return updatedViewports;
|
|
940
|
+
return updatedViewports.filter(v => v.viewportOptions?.viewportType !== 'volume3d');
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/commandsModule.ts
|