@ohif/app 3.7.0-beta.8 → 3.7.0-beta.81

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.
Files changed (66) hide show
  1. package/dist/{917.bundle.d238efac58b7fe8fd1a3.js → 12.bundle.f5ca9901f923a487d8b3.js} +6 -6
  2. package/dist/{295.bundle.957b1159fec14b9199a1.js → 125.bundle.253395f320b72180da63.js} +6 -6
  3. package/dist/{208.bundle.37c2a73b3387e657568c.js → 128.bundle.2dfd63dcf3b846809dfb.js} +41 -59
  4. package/dist/{351.bundle.0742237651aef9694a65.js → 181.bundle.fa57199595cf28f44c7b.js} +226 -204
  5. package/dist/{351.css → 181.css} +1 -1
  6. package/dist/{744.bundle.23011553706b687f67e4.js → 19.bundle.0d74cbc1db3841b851a6.js} +240 -375
  7. package/dist/{606.bundle.5d876f5f3dd8287f0a28.js → 202.bundle.96bbb4547a346fe3921f.js} +1420 -750
  8. package/dist/{926.bundle.dbc9d0e591cb9217fda2.js → 220.bundle.f7e1c96c94245e70f2be.js} +990 -400
  9. package/dist/221.bundle.933ef6dcf6d29eea0259.js +1722 -0
  10. package/dist/221.css +2 -0
  11. package/dist/{664.bundle.09abae984223969d1bde.js → 23.bundle.e008ad788170f2ed5569.js} +5 -6
  12. package/dist/{976.bundle.dcbddf56a7d8f388bb8a.js → 236.bundle.3f6a0e3dd259bc60d4d0.js} +87 -103
  13. package/dist/{55.bundle.550a823e75eb608e8d5e.js → 250.bundle.36909d7bc681d66087d1.js} +52 -36
  14. package/dist/{973.bundle.03b016e6095622adf12f.js → 281.bundle.69d85dc35d1bc1335fbd.js} +18 -14
  15. package/dist/{82.bundle.10c2133333748ec6fba0.js → 342.bundle.46b3527fb38b74a044e8.js} +1768 -475
  16. package/dist/{192.bundle.2dc14a6e3c4c6be913b0.js → 348.bundle.46d4c41b9ae681c50903.js} +86 -73
  17. package/dist/{404.bundle.5d57295bc05206092d42.js → 359.bundle.408fa86b95fd1597552c.js} +46 -131
  18. package/dist/{790.bundle.cedf27deeed29266a92b.js → 410.bundle.bf702dcec9db605d0d72.js} +11 -9
  19. package/dist/{151.bundle.31ea35044218837bf73f.js → 417.bundle.af0a207c29b109f84159.js} +49 -17
  20. package/dist/{569.bundle.c8e771a8d28e237b32be.js → 451.bundle.dc0d14c3724464cca2bf.js} +86 -106
  21. package/dist/{581.bundle.dc6197189f7c88c27d4c.js → 471.bundle.2206d4c0ac2ad0df2362.js} +78 -99
  22. package/dist/{199.bundle.e4ac6606dd62e42e9da4.js → 506.bundle.90364a62dcd8e433c1a4.js} +11 -9
  23. package/dist/{531.bundle.2a82fb1d69e5b57cc72b.js → 530.bundle.a03b6f942ace3e1baa1e.js} +726 -447
  24. package/dist/579.css +1 -0
  25. package/dist/{935.bundle.deeffff0e4f7b528e3c3.js → 604.bundle.a51f83e64004bca5f497.js} +2 -3
  26. package/dist/613.bundle.a06431b9a1b14cb8f469.js +532 -0
  27. package/dist/{984.bundle.e7dcbd3b8992748823fb.js → 663.bundle.482bdfb562bfb3700c55.js} +68 -38
  28. package/dist/{205.bundle.b5a473c200dcf2bbcdb4.js → 686.bundle.dccef1f36e4bc79bcc48.js} +6 -6
  29. package/dist/{50.bundle.424f8d05f1bebaafcf2c.js → 687.bundle.b456dd5eae1afeaab05d.js} +218 -9
  30. package/dist/{331.bundle.bd0c13931a21d53086c9.js → 754.bundle.e3ce6855d8d4d187f224.js} +12423 -7549
  31. package/dist/{728.bundle.d13856835357400fef82.js → 774.bundle.d365320749c4f67cda70.js} +93 -64
  32. package/dist/{381.bundle.0905e683605fcbc0895f.js → 775.bundle.2285e7e0e67878948c0d.js} +16 -16
  33. package/dist/{270.bundle.4564621556b0f963a004.js → 777.bundle.ae3fdb8a470caecc0c6a.js} +1330 -929
  34. package/dist/{283.bundle.085cddb2f16e430677b0.js → 782.bundle.742caefc99a1393225d2.js} +117 -67
  35. package/dist/{642.bundle.25e56df5f0bcd2c729b4.js → 814.bundle.f84f8c34cd82d9456367.js} +6 -6
  36. package/dist/{799.bundle.758558e64147e5aad612.js → 822.bundle.5fca45a4f40f5259aec5.js} +81 -34
  37. package/dist/831.bundle.83658f62fcc769043605.js +16700 -0
  38. package/dist/{953.bundle.3b0189ebc11cf0946f18.js → 886.bundle.a9de117c3a42b7907cf6.js} +34 -29
  39. package/dist/945.min.worker.js +1 -1
  40. package/dist/945.min.worker.js.map +1 -1
  41. package/dist/{707.bundle.17a9d7352409b6269596.js → 967.bundle.aa7e40475fa7cab0726e.js} +895 -572
  42. package/dist/_redirects +1 -1
  43. package/dist/app-config.js +35 -17
  44. package/dist/{app.bundle.837996a8f7dd2aaac338.js → app.bundle.91713b6c13b1264236f9.js} +73339 -68140
  45. package/dist/app.bundle.css +13 -12
  46. package/dist/assets/yandex-browser-manifest.json +1 -1
  47. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  48. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  49. package/dist/{dicom-microscopy-viewer.bundle.aa60bdf008c32c39cfd7.js → dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js} +5 -4
  50. package/dist/es6-shim.min.js +3569 -2
  51. package/dist/google.js +8 -7
  52. package/dist/index.html +1 -1
  53. package/dist/{index.worker.1c69152d710fa7b84bce.worker.js → index.worker.e62ecca63f1a2e124230.worker.js} +2 -2
  54. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +1 -0
  55. package/dist/init-service-worker.js +3 -5
  56. package/dist/oidc-client.min.js +10857 -39
  57. package/dist/polyfill.min.js +184 -1
  58. package/dist/silent-refresh.html +18 -9
  59. package/dist/sw.js +1 -1
  60. package/package.json +20 -21
  61. package/dist/616.bundle.eb4887184da6c57bf7a3.js +0 -685
  62. package/dist/780.bundle.fd0f13dc92e9caa0581e.js +0 -4769
  63. package/dist/index.worker.1c69152d710fa7b84bce.worker.js.map +0 -1
  64. /package/dist/{806.css → 19.css} +0 -0
  65. /package/dist/{55.css → 250.css} +0 -0
  66. /package/dist/{707.css → 967.css} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[192],{
2
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[348],{
3
3
 
4
- /***/ 6192:
4
+ /***/ 14348:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -14,10 +14,10 @@ __webpack_require__.d(__webpack_exports__, {
14
14
  toolbarButtons: () => (/* reexport */ src_toolbarButtons)
15
15
  });
16
16
 
17
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
18
- var src = __webpack_require__(48501);
19
- // EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
20
- var ui_src = __webpack_require__(28619);
17
+ // EXTERNAL MODULE: ../../core/src/index.ts + 75 modules
18
+ var src = __webpack_require__(34491);
19
+ // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
20
+ var ui_src = __webpack_require__(71783);
21
21
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.js
22
22
  // TODO: torn, can either bake this here; or have to create a whole new button type
23
23
  // Only ways that you can pass in a custom React component for render :l
@@ -33,7 +33,7 @@ const {
33
33
  * @param {*} icon
34
34
  * @param {*} label
35
35
  */
36
- function _createButton(type, id, icon, label, commands, tooltip, uiType) {
36
+ function _createButton(type, id, icon, label, commands, tooltip, uiType, isActive) {
37
37
  return {
38
38
  id,
39
39
  icon,
@@ -41,7 +41,8 @@ function _createButton(type, id, icon, label, commands, tooltip, uiType) {
41
41
  type,
42
42
  commands,
43
43
  tooltip,
44
- uiType
44
+ uiType,
45
+ isActive
45
46
  };
46
47
  }
47
48
  const _createActionButton = _createButton.bind(null, 'action');
@@ -323,11 +324,27 @@ const toolbarButtons = [
323
324
  context: 'CORNERSTONE'
324
325
  }]), _createToggleButton('ReferenceLines', 'tool-referenceLines',
325
326
  // change this with the new icon
326
- 'Reference Lines', [{
327
- commandName: 'toggleReferenceLines',
327
+ 'Reference Lines',
328
+ // two commands for the reference lines tool:
329
+ // - the first to set the source viewport for the tool when it is enabled
330
+ // - the second to toggle the tool
331
+ [{
332
+ commandName: 'setSourceViewportForReferenceLinesTool',
328
333
  commandOptions: {},
329
334
  context: 'CORNERSTONE'
330
- }]), _createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
335
+ }, {
336
+ commandName: 'setToolActive',
337
+ commandOptions: {
338
+ toolName: 'ReferenceLines'
339
+ },
340
+ context: 'CORNERSTONE'
341
+ }]), _createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
342
+ commandName: 'setToolActive',
343
+ commandOptions: {
344
+ toolName: 'ImageOverlayViewer'
345
+ },
346
+ context: 'CORNERSTONE'
347
+ }], 'Image Overlay', null, true), _createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
331
348
  commandName: 'setToolActive',
332
349
  commandOptions: {
333
350
  toolName: 'StackScroll'
@@ -446,7 +463,18 @@ function initDefaultToolGroup(extensionManager, toolGroupService, commandsManage
446
463
  passive: [{
447
464
  toolName: toolNames.Length
448
465
  }, {
449
- toolName: toolNames.ArrowAnnotate
466
+ toolName: toolNames.ArrowAnnotate,
467
+ configuration: {
468
+ getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
469
+ callback,
470
+ eventDetails
471
+ }),
472
+ changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
473
+ callback,
474
+ data,
475
+ eventDetails
476
+ })
477
+ }
450
478
  }, {
451
479
  toolName: toolNames.Bidirectional
452
480
  }, {
@@ -473,28 +501,21 @@ function initDefaultToolGroup(extensionManager, toolGroupService, commandsManage
473
501
  toolName: toolNames.CalibrationLine
474
502
  }],
475
503
  // enabled
504
+ enabled: [{
505
+ toolName: toolNames.ImageOverlayViewer
506
+ }],
476
507
  // disabled
477
508
  disabled: [{
478
509
  toolName: toolNames.ReferenceLines
479
510
  }]
480
511
  };
481
- const toolsConfig = {
482
- [toolNames.ArrowAnnotate]: {
483
- getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
484
- callback,
485
- eventDetails
486
- }),
487
- changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
488
- callback,
489
- data,
490
- eventDetails
491
- })
492
- }
493
- };
494
- toolGroupService.createToolGroupAndAddTools(toolGroupId, tools, toolsConfig);
512
+ toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
495
513
  }
496
514
  function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
497
515
  const SRUtilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone-dicom-sr.utilityModule.tools');
516
+ if (!SRUtilityModule) {
517
+ return;
518
+ }
498
519
  const CS3DUtilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
499
520
  const {
500
521
  toolNames: SRToolNames
@@ -541,21 +562,8 @@ function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
541
562
  // disabled
542
563
  };
543
564
 
544
- const toolsConfig = {
545
- [toolNames.ArrowAnnotate]: {
546
- getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
547
- callback,
548
- eventDetails
549
- }),
550
- changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
551
- callback,
552
- data,
553
- eventDetails
554
- })
555
- }
556
- };
557
565
  const toolGroupId = 'SRToolGroup';
558
- toolGroupService.createToolGroupAndAddTools(toolGroupId, tools, toolsConfig);
566
+ toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
559
567
  }
560
568
  function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
561
569
  const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
@@ -586,7 +594,18 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
586
594
  passive: [{
587
595
  toolName: toolNames.Length
588
596
  }, {
589
- toolName: toolNames.ArrowAnnotate
597
+ toolName: toolNames.ArrowAnnotate,
598
+ configuration: {
599
+ getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
600
+ callback,
601
+ eventDetails
602
+ }),
603
+ changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
604
+ callback,
605
+ data,
606
+ eventDetails
607
+ })
608
+ }
590
609
  }, {
591
610
  toolName: toolNames.Bidirectional
592
611
  }, {
@@ -609,7 +628,14 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
609
628
  toolName: toolNames.SegmentationDisplay
610
629
  }],
611
630
  disabled: [{
612
- toolName: toolNames.Crosshairs
631
+ toolName: toolNames.Crosshairs,
632
+ configuration: {
633
+ viewportIndicators: false,
634
+ autoPan: {
635
+ enabled: false,
636
+ panSize: 10
637
+ }
638
+ }
613
639
  }, {
614
640
  toolName: toolNames.ReferenceLines
615
641
  }]
@@ -618,27 +644,7 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
618
644
  // disabled
619
645
  };
620
646
 
621
- const toolsConfig = {
622
- [toolNames.Crosshairs]: {
623
- viewportIndicators: false,
624
- autoPan: {
625
- enabled: false,
626
- panSize: 10
627
- }
628
- },
629
- [toolNames.ArrowAnnotate]: {
630
- getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
631
- callback,
632
- eventDetails
633
- }),
634
- changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
635
- callback,
636
- data,
637
- eventDetails
638
- })
639
- }
640
- };
641
- toolGroupService.createToolGroupAndAddTools('mpr', tools, toolsConfig);
647
+ toolGroupService.createToolGroupAndAddTools('mpr', tools);
642
648
  }
643
649
  function initVolume3DToolGroup(extensionManager, toolGroupService) {
644
650
  const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
@@ -724,7 +730,10 @@ const extensionDependencies = {
724
730
  '@ohif/extension-dicom-pdf': '^3.0.1',
725
731
  '@ohif/extension-dicom-video': '^3.0.1'
726
732
  };
727
- function modeFactory() {
733
+ function modeFactory(_ref) {
734
+ let {
735
+ modeConfiguration
736
+ } = _ref;
728
737
  let _activatePanelTriggersSubscriptions = [];
729
738
  return {
730
739
  // TODO: We're using this as a route segment
@@ -735,18 +744,18 @@ function modeFactory() {
735
744
  /**
736
745
  * Lifecycle hooks
737
746
  */
738
- onModeEnter: _ref => {
747
+ onModeEnter: _ref2 => {
739
748
  let {
740
749
  servicesManager,
741
750
  extensionManager,
742
751
  commandsManager
743
- } = _ref;
752
+ } = _ref2;
744
753
  const {
745
754
  measurementService,
746
755
  toolbarService,
747
756
  toolGroupService,
748
757
  panelService,
749
- segmentationService
758
+ customizationService
750
759
  } = servicesManager.services;
751
760
  measurementService.clearMeasurements();
752
761
 
@@ -756,7 +765,6 @@ function modeFactory() {
756
765
  const activateTool = () => {
757
766
  toolbarService.recordInteraction({
758
767
  groupId: 'WindowLevel',
759
- itemId: 'WindowLevel',
760
768
  interactionType: 'tool',
761
769
  commands: [{
762
770
  commandName: 'setToolActive',
@@ -780,6 +788,10 @@ function modeFactory() {
780
788
  toolbarService.init(extensionManager);
781
789
  toolbarService.addButtons(src_toolbarButtons);
782
790
  toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreTools']);
791
+ customizationService.addModeCustomizations([{
792
+ id: 'segmentation.disableEditing',
793
+ value: true
794
+ }]);
783
795
 
784
796
  // // ActivatePanel event trigger for when a segmentation or measurement is added.
785
797
  // // Do not force activation so as to respect the state the user may have left the UI in.
@@ -804,10 +816,10 @@ function modeFactory() {
804
816
  // ];
805
817
  },
806
818
 
807
- onModeExit: _ref2 => {
819
+ onModeExit: _ref3 => {
808
820
  let {
809
821
  servicesManager
810
- } = _ref2;
822
+ } = _ref3;
811
823
  const {
812
824
  toolGroupService,
813
825
  syncGroupService,
@@ -826,10 +838,10 @@ function modeFactory() {
826
838
  study: [],
827
839
  series: []
828
840
  },
829
- isValidMode: function (_ref3) {
841
+ isValidMode: function (_ref4) {
830
842
  let {
831
843
  modalities
832
- } = _ref3;
844
+ } = _ref4;
833
845
  const modalities_list = modalities.split('\\');
834
846
 
835
847
  // Exclude non-image modalities
@@ -878,7 +890,8 @@ function modeFactory() {
878
890
  // general handler needs to come last. For this case, the dicomvideo must
879
891
  // come first to remove video transfer syntax before ohif uses images
880
892
  sopClassHandlers: [dicomvideo.sopClassHandler, dicomSeg.sopClassHandler, ohif.sopClassHandler, dicompdf.sopClassHandler, dicomsr.sopClassHandler, dicomRt.sopClassHandler],
881
- hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings]
893
+ hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings],
894
+ ...modeConfiguration
882
895
  };
883
896
  }
884
897
  const mode = {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[404],{
2
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[359],{
3
3
 
4
- /***/ 92404:
4
+ /***/ 22359:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -12,10 +12,10 @@ __webpack_require__.d(__webpack_exports__, {
12
12
  "default": () => (/* binding */ tmtv_src)
13
13
  });
14
14
 
15
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
16
- var src = __webpack_require__(48501);
17
- // EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
18
- var ui_src = __webpack_require__(28619);
15
+ // EXTERNAL MODULE: ../../core/src/index.ts + 75 modules
16
+ var src = __webpack_require__(34491);
17
+ // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
18
+ var ui_src = __webpack_require__(71783);
19
19
  ;// CONCATENATED MODULE: ../../../modes/tmtv/src/initToolGroups.js
20
20
  const toolGroupIds = {
21
21
  CT: 'ctToolGroup',
@@ -50,7 +50,20 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
50
50
  passive: [{
51
51
  toolName: toolNames.Length
52
52
  }, {
53
- toolName: toolNames.ArrowAnnotate
53
+ toolName: toolNames.ArrowAnnotate,
54
+ configuration: {
55
+ getTextCallback: (callback, eventDetails) => {
56
+ commandsManager.runCommand('arrowTextCallback', {
57
+ callback,
58
+ eventDetails
59
+ });
60
+ },
61
+ changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
62
+ callback,
63
+ data,
64
+ eventDetails
65
+ })
66
+ }
54
67
  }, {
55
68
  toolName: toolNames.Bidirectional
56
69
  }, {
@@ -74,32 +87,17 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
74
87
  toolName: toolNames.SegmentationDisplay
75
88
  }],
76
89
  disabled: [{
77
- toolName: toolNames.Crosshairs
78
- }]
79
- };
80
- const toolsConfig = {
81
- [toolNames.Crosshairs]: {
82
- viewportIndicators: false,
83
- autoPan: {
84
- enabled: false,
85
- panSize: 10
90
+ toolName: toolNames.Crosshairs,
91
+ configuration: {
92
+ viewportIndicators: false,
93
+ autoPan: {
94
+ enabled: false,
95
+ panSize: 10
96
+ }
86
97
  }
87
- },
88
- [toolNames.ArrowAnnotate]: {
89
- getTextCallback: (callback, eventDetails) => {
90
- commandsManager.runCommand('arrowTextCallback', {
91
- callback,
92
- eventDetails
93
- });
94
- },
95
- changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
96
- callback,
97
- data,
98
- eventDetails
99
- })
100
- }
98
+ }]
101
99
  };
102
- toolGroupService.createToolGroupAndAddTools(toolGroupIds.CT, tools, toolsConfig);
100
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.CT, tools);
103
101
  toolGroupService.createToolGroupAndAddTools(toolGroupIds.PT, {
104
102
  active: tools.active,
105
103
  passive: [...tools.passive, {
@@ -107,14 +105,20 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
107
105
  }],
108
106
  enabled: tools.enabled,
109
107
  disabled: tools.disabled
110
- }, toolsConfig);
111
- toolGroupService.createToolGroupAndAddTools(toolGroupIds.Fusion, tools, toolsConfig);
112
- toolGroupService.createToolGroupAndAddTools(toolGroupIds.default, tools, toolsConfig);
108
+ });
109
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.Fusion, tools);
110
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.default, tools);
113
111
  const mipTools = {
114
112
  active: [{
115
- toolName: toolNames.VolumeRotateMouseWheel
113
+ toolName: toolNames.VolumeRotateMouseWheel,
114
+ configuration: {
115
+ rotateIncrementDegrees: 0.1
116
+ }
116
117
  }, {
117
118
  toolName: toolNames.MipJumpToClick,
119
+ configuration: {
120
+ toolGroupId: toolGroupIds.PT
121
+ },
118
122
  bindings: [{
119
123
  mouseButton: Enums.MouseBindings.Primary
120
124
  }]
@@ -123,93 +127,11 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
123
127
  toolName: toolNames.SegmentationDisplay
124
128
  }]
125
129
  };
126
- const mipToolsConfig = {
127
- [toolNames.VolumeRotateMouseWheel]: {
128
- rotateIncrementDegrees: 0.1
129
- },
130
- [toolNames.MipJumpToClick]: {
131
- targetViewportIds: ['ptAXIAL', 'ptCORONAL', 'ptSAGITTAL']
132
- }
133
- };
134
- toolGroupService.createToolGroupAndAddTools(toolGroupIds.MIP, mipTools, mipToolsConfig);
135
- }
136
- function initMPRToolGroup(toolNames, Enums, toolGroupService, commandsManager) {
137
- const tools = {
138
- active: [{
139
- toolName: toolNames.WindowLevel,
140
- bindings: [{
141
- mouseButton: Enums.MouseBindings.Primary
142
- }]
143
- }, {
144
- toolName: toolNames.Pan,
145
- bindings: [{
146
- mouseButton: Enums.MouseBindings.Auxiliary
147
- }]
148
- }, {
149
- toolName: toolNames.Zoom,
150
- bindings: [{
151
- mouseButton: Enums.MouseBindings.Secondary
152
- }]
153
- }, {
154
- toolName: toolNames.StackScrollMouseWheel,
155
- bindings: []
156
- }],
157
- passive: [{
158
- toolName: toolNames.Length
159
- }, {
160
- toolName: toolNames.ArrowAnnotate
161
- }, {
162
- toolName: toolNames.Bidirectional
163
- }, {
164
- toolName: toolNames.DragProbe
165
- }, {
166
- toolName: toolNames.EllipticalROI
167
- }, {
168
- toolName: toolNames.RectangleROI
169
- }, {
170
- toolName: toolNames.StackScroll
171
- }, {
172
- toolName: toolNames.Angle
173
- }, {
174
- toolName: toolNames.CobbAngle
175
- }, {
176
- toolName: toolNames.SegmentationDisplay
177
- }],
178
- disabled: [{
179
- toolName: toolNames.Crosshairs
180
- }]
181
-
182
- // enabled
183
- // disabled
184
- };
185
-
186
- const toolsConfig = {
187
- [toolNames.Crosshairs]: {
188
- viewportIndicators: false,
189
- autoPan: {
190
- enabled: false,
191
- panSize: 10
192
- }
193
- },
194
- [toolNames.ArrowAnnotate]: {
195
- getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
196
- callback,
197
- eventDetails
198
- }),
199
- changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
200
- callback,
201
- data,
202
- eventDetails
203
- })
204
- }
205
- };
206
- toolGroupService.createToolGroupAndAddTools('mpr', tools, toolsConfig);
130
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.MIP, mipTools);
207
131
  }
208
132
  function initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
209
133
  _initToolGroups(toolNames, Enums, toolGroupService, commandsManager);
210
- // initMPRToolGroup(toolNames, Enums, toolGroupService, commandsManager);
211
134
  }
212
-
213
135
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
214
136
  ;// CONCATENATED MODULE: ../../../modes/tmtv/src/toolbarButtons.js
215
137
  // TODO: torn, can either bake this here; or have to create a whole new button type
@@ -239,9 +161,8 @@ function _createButton(type, id, icon, label, commands, tooltip) {
239
161
  }
240
162
  function _createColormap(label, colormap) {
241
163
  return {
242
- id: label.toString(),
243
- title: label,
244
- subtitle: label,
164
+ id: label,
165
+ label,
245
166
  type: 'action',
246
167
  commands: [{
247
168
  commandName: 'setFusionPTColormap',
@@ -249,12 +170,6 @@ function _createColormap(label, colormap) {
249
170
  toolGroupId: toolGroupIds.Fusion,
250
171
  colormap
251
172
  }
252
- }, {
253
- commandName: 'setFusionPTColormap',
254
- commandOptions: {
255
- toolGroupId: toolGroupIds.Fusion,
256
- colormap
257
- }
258
173
  }]
259
174
  };
260
175
  }
@@ -433,7 +348,6 @@ const toolbarButtons = [
433
348
  },
434
349
  isAction: true,
435
350
  // ?
436
- renderer: ui_src/* WindowLevelMenuItem */.eJ,
437
351
  items: [_createColormap('HSV', 'hsv'), _createColormap('Hot Iron', 'hot_iron'), _createColormap('S PET', 's_pet'), _createColormap('Red Hot', 'red_hot'), _createColormap('Perfusion', 'perfusion'), _createColormap('Rainbow', 'rainbow_2'), _createColormap('SUV', 'suv'), _createColormap('GE 256', 'ge_256'), _createColormap('GE', 'ge'), _createColormap('Siemens', 'siemens')]
438
352
  }
439
353
  }];
@@ -559,7 +473,6 @@ function modeFactory(_ref) {
559
473
  const setWindowLevelActive = () => {
560
474
  toolbarService.recordInteraction({
561
475
  groupId: 'WindowLevel',
562
- itemId: 'WindowLevel',
563
476
  interactionType: 'tool',
564
477
  commands: [{
565
478
  commandName: 'setToolActive',
@@ -678,7 +591,8 @@ function modeFactory(_ref) {
678
591
  return {
679
592
  id: ohif.layout,
680
593
  props: {
681
- // leftPanels: [ohif.thumbnailList],
594
+ leftPanels: [ohif.thumbnailList],
595
+ leftPanelDefaultClosed: true,
682
596
  rightPanels: [tmtv.ROIThresholdPanel, tmtv.petSUV],
683
597
  viewports: [{
684
598
  namespace: cs3d.viewport,
@@ -691,7 +605,8 @@ function modeFactory(_ref) {
691
605
  extensions: extensionDependencies,
692
606
  hangingProtocol: tmtv.hangingProtocol,
693
607
  sopClassHandlers: [ohif.sopClassHandler],
694
- hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings]
608
+ hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings],
609
+ ...modeConfiguration
695
610
  };
696
611
  }
697
612
  const mode = {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[790],{
2
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[410],{
3
3
 
4
- /***/ 17790:
4
+ /***/ 15410:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -12,10 +12,10 @@ __webpack_require__.d(__webpack_exports__, {
12
12
  "default": () => (/* binding */ basic_dev_mode_src)
13
13
  });
14
14
 
15
- // EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
16
- var src = __webpack_require__(28619);
17
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
18
- var core_src = __webpack_require__(48501);
15
+ // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
16
+ var src = __webpack_require__(71783);
17
+ // EXTERNAL MODULE: ../../core/src/index.ts + 75 modules
18
+ var core_src = __webpack_require__(34491);
19
19
  ;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/toolbarButtons.js
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
@@ -346,18 +346,20 @@ function modeFactory(_ref) {
346
346
  toolName: toolNames.StackScroll
347
347
  }, {
348
348
  toolName: toolNames.CalibrationLine
349
- }]
349
+ }],
350
350
  // enabled
351
+ enabled: [{
352
+ toolName: toolNames.ImageOverlayViewer
353
+ }]
351
354
  // disabled
352
355
  };
353
356
 
354
357
  const toolGroupId = 'default';
355
- toolGroupService.createToolGroupAndAddTools(toolGroupId, tools, configs);
358
+ toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
356
359
  let unsubscribe;
357
360
  const activateTool = () => {
358
361
  toolbarService.recordInteraction({
359
362
  groupId: 'WindowLevel',
360
- itemId: 'WindowLevel',
361
363
  interactionType: 'tool',
362
364
  commands: [{
363
365
  commandName: 'setToolActive',