@ohif/app 3.8.0-beta.1 → 3.8.0-beta.10

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 (35) hide show
  1. package/dist/{99.bundle.10b538f4741be2127cce.js → 126.bundle.3cd68933197926fde916.js} +196 -137
  2. package/dist/{181.bundle.ceb057236403bcb630ac.js → 181.bundle.ad00da8ec76668c23796.js} +50 -16
  3. package/dist/{19.bundle.b4d51b6faf7e93909d93.js → 19.bundle.91e1f09823b1ca59386c.js} +5 -5
  4. package/dist/{221.bundle.4eb2caf56905561d3862.js → 221.bundle.736d8d8c7523829ac27c.js} +8 -8
  5. package/dist/{743.bundle.489f7df3a089d4d374e1.js → 231.bundle.547eda66b55aa62b037b.js} +18205 -17189
  6. package/dist/{236.bundle.b1425f8f89e6c06f33ad.js → 236.bundle.0c08de61b4fc915bd280.js} +3 -3
  7. package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.64f78a14b2a4c6e17da3.js} +4 -4
  8. package/dist/{342.bundle.d5c2e5fd9785f23d0e6c.js → 342.bundle.4ae51a2a054bc23b2a7a.js} +26 -13
  9. package/dist/{359.bundle.62a2471f666d07c13ea4.js → 359.bundle.8fcc4ce49cbcc6628018.js} +2 -2
  10. package/dist/{410.bundle.e7ca529354f622db5188.js → 410.bundle.9c4e66fe4005e2967968.js} +2 -2
  11. package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.57c21db5d003c75e9d61.js} +2 -2
  12. package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.49c8d281adbae4a2c4df.js} +2 -2
  13. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 485.bundle.8667a696ac2eaf99e4fa.js} +9 -98
  14. package/dist/{370.bundle.c6de43271139327a12ac.js → 563.bundle.58ec063dc0b0c58ca5ef.js} +320 -179
  15. package/dist/{613.bundle.48e656b649762a888aeb.js → 613.bundle.efb9a24be50011b8f1d8.js} +7 -3
  16. package/dist/{663.bundle.e05465f11d3696e3a5a1.js → 663.bundle.d1c2e74badec76b31836.js} +9 -9
  17. package/dist/{82.bundle.658632dc10cf0b6a0bdd.js → 776.bundle.cc9ab1ee9087b898a826.js} +15 -20
  18. package/dist/{788.bundle.8d7f20a8e6a23983548b.js → 788.bundle.416f2a85d491ed81ce18.js} +6 -6
  19. package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 82.bundle.aa2e1120fbae6122c2d3.js} +12007 -3800
  20. package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.4f0424bd1dc0308bb489.js} +3 -3
  21. package/dist/{886.bundle.4b3a7f2079d085fdbcb3.js → 886.bundle.c8dd3ecc42a4253de278.js} +2 -2
  22. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 933.bundle.e515e4ebc902535ac56f.js} +29 -10
  23. package/dist/{app.bundle.a435bb8d049dbaa0af06.js → app.bundle.368c32cd68c83d1941da.js} +11723 -11305
  24. package/dist/app.bundle.css +1 -1
  25. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  26. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  27. package/dist/index.html +1 -1
  28. package/dist/sw.js +1 -1
  29. package/package.json +19 -19
  30. /package/dist/{12.bundle.303afec3e26be7ffd343.js → 12.bundle.79b71d52d853057f0e22.js} +0 -0
  31. /package/dist/{281.bundle.a81963ec7b14c33f0f41.js → 281.bundle.364782f53ccd512024ee.js} +0 -0
  32. /package/dist/{506.bundle.382cdcba3e578ab74f0b.js → 506.bundle.9d5f65f9ed57dac7e005.js} +0 -0
  33. /package/dist/{687.bundle.d15dd758f258b67c8dc4.js → 687.bundle.175df54c81c7397a6545.js} +0 -0
  34. /package/dist/{82.css → 776.css} +0 -0
  35. /package/dist/{814.bundle.b4ed686df286f06f3c93.js → 814.bundle.25ec786c437a1970c689.js} +0 -0
@@ -1,6 +1,6 @@
1
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[370],{
1
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[563],{
2
2
 
3
- /***/ 71522:
3
+ /***/ 59185:
4
4
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
5
 
6
6
  "use strict";
@@ -16,22 +16,16 @@ __webpack_require__.d(__webpack_exports__, {
16
16
 
17
17
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
18
18
  var src = __webpack_require__(71771);
19
- // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
20
- var ui_src = __webpack_require__(71783);
21
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
22
- var esm = __webpack_require__(3743);
19
+ // EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
20
+ var ui_src = __webpack_require__(22582);
23
21
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.ts
24
22
  // TODO: torn, can either bake this here; or have to create a whole new button type
25
23
  // Only ways that you can pass in a custom React component for render :l
26
24
 
27
25
 
28
-
29
26
  const {
30
27
  windowLevelPresets
31
28
  } = src.defaults;
32
- const _createActionButton = src/* ToolbarService */.Ok._createButton.bind(null, 'action');
33
- const _createToggleButton = src/* ToolbarService */.Ok._createButton.bind(null, 'toggle');
34
- const _createToolButton = src/* ToolbarService */.Ok._createButton.bind(null, 'tool');
35
29
 
36
30
  /**
37
31
  *
@@ -73,16 +67,6 @@ function _createSetToolActiveCommands(toolName) {
73
67
  }));
74
68
  return temp;
75
69
  }
76
- const ReferenceLinesCommands = [{
77
- commandName: 'setSourceViewportForReferenceLinesTool',
78
- context: 'CORNERSTONE'
79
- }, {
80
- commandName: 'setToolActive',
81
- commandOptions: {
82
- toolName: 'ReferenceLines'
83
- },
84
- context: 'CORNERSTONE'
85
- }];
86
70
  const toolbarButtons = [
87
71
  // Measurement
88
72
  {
@@ -93,7 +77,7 @@ const toolbarButtons = [
93
77
  isRadio: true,
94
78
  // ?
95
79
  // Switch?
96
- primary: _createToolButton('Length', 'tool-length', 'Length', [{
80
+ primary: src/* ToolbarService */.Ok._createToolButton('Length', 'tool-length', 'Length', [{
97
81
  commandName: 'setToolActive',
98
82
  commandOptions: {
99
83
  toolName: 'Length'
@@ -114,7 +98,7 @@ const toolbarButtons = [
114
98
  isActive: true,
115
99
  tooltip: 'More Measure Tools'
116
100
  },
117
- items: [_createToolButton('Length', 'tool-length', 'Length', [{
101
+ items: [src/* ToolbarService */.Ok._createToolButton('Length', 'tool-length', 'Length', [{
118
102
  commandName: 'setToolActive',
119
103
  commandOptions: {
120
104
  toolName: 'Length'
@@ -128,7 +112,7 @@ const toolbarButtons = [
128
112
  },
129
113
  // we can use the setToolActive command for this from Cornerstone commandsModule
130
114
  context: 'CORNERSTONE'
131
- }], 'Length Tool'), _createToolButton('Bidirectional', 'tool-bidirectional', 'Bidirectional', [{
115
+ }], 'Length Tool'), src/* ToolbarService */.Ok._createToolButton('Bidirectional', 'tool-bidirectional', 'Bidirectional', [{
132
116
  commandName: 'setToolActive',
133
117
  commandOptions: {
134
118
  toolName: 'Bidirectional'
@@ -141,7 +125,7 @@ const toolbarButtons = [
141
125
  toolGroupId: 'SRToolGroup'
142
126
  },
143
127
  context: 'CORNERSTONE'
144
- }], 'Bidirectional Tool'), _createToolButton('ArrowAnnotate', 'tool-annotate', 'Annotation', [{
128
+ }], 'Bidirectional Tool'), src/* ToolbarService */.Ok._createToolButton('ArrowAnnotate', 'tool-annotate', 'Annotation', [{
145
129
  commandName: 'setToolActive',
146
130
  commandOptions: {
147
131
  toolName: 'ArrowAnnotate'
@@ -154,7 +138,7 @@ const toolbarButtons = [
154
138
  toolGroupId: 'SRToolGroup'
155
139
  },
156
140
  context: 'CORNERSTONE'
157
- }], 'Arrow Annotate'), _createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
141
+ }], 'Arrow Annotate'), src/* ToolbarService */.Ok._createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
158
142
  commandName: 'setToolActive',
159
143
  commandOptions: {
160
144
  toolName: 'EllipticalROI'
@@ -167,7 +151,7 @@ const toolbarButtons = [
167
151
  toolGroupId: 'SRToolGroup'
168
152
  },
169
153
  context: 'CORNERSTONE'
170
- }], 'Ellipse Tool'), _createToolButton('CircleROI', 'tool-circle', 'Circle', [{
154
+ }], 'Ellipse Tool'), src/* ToolbarService */.Ok._createToolButton('CircleROI', 'tool-circle', 'Circle', [{
171
155
  commandName: 'setToolActive',
172
156
  commandOptions: {
173
157
  toolName: 'CircleROI'
@@ -200,7 +184,7 @@ const toolbarButtons = [
200
184
  type: 'ohif.splitButton',
201
185
  props: {
202
186
  groupId: 'WindowLevel',
203
- primary: _createToolButton('WindowLevel', 'tool-window-level', 'Window Level', [{
187
+ primary: src/* ToolbarService */.Ok._createToolButton('WindowLevel', 'tool-window-level', 'Window Level', [{
204
188
  commandName: 'setToolActive',
205
189
  commandOptions: {
206
190
  toolName: 'WindowLevel'
@@ -280,146 +264,10 @@ const toolbarButtons = [
280
264
  context: 'CORNERSTONE'
281
265
  }]
282
266
  }
283
- },
267
+ }
284
268
  // More...
285
- {
286
- id: 'MoreTools',
287
- type: 'ohif.splitButton',
288
- props: {
289
- isRadio: true,
290
- // ?
291
- groupId: 'MoreTools',
292
- primary: _createActionButton('Reset', 'tool-reset', 'Reset View', [{
293
- commandName: 'resetViewport',
294
- commandOptions: {},
295
- context: 'CORNERSTONE'
296
- }], 'Reset'),
297
- secondary: {
298
- icon: 'chevron-down',
299
- label: '',
300
- isActive: true,
301
- tooltip: 'More Tools'
302
- },
303
- items: [_createActionButton('Reset', 'tool-reset', 'Reset View', [{
304
- commandName: 'resetViewport',
305
- commandOptions: {},
306
- context: 'CORNERSTONE'
307
- }], 'Reset'), _createActionButton('rotate-right', 'tool-rotate-right', 'Rotate Right', [{
308
- commandName: 'rotateViewportCW',
309
- commandOptions: {},
310
- context: 'CORNERSTONE'
311
- }], 'Rotate +90'), _createActionButton('flip-horizontal', 'tool-flip-horizontal', 'Flip Horizontally', [{
312
- commandName: 'flipViewportHorizontal',
313
- commandOptions: {},
314
- context: 'CORNERSTONE'
315
- }], 'Flip Horizontal'), _createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
316
- commandName: 'toggleStackImageSync'
317
- }], 'Enable position synchronization on stack viewports', {
318
- listeners: {
319
- [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
320
- commandName: 'toggleStackImageSync',
321
- commandOptions: {
322
- toggledState: true
323
- }
324
- }
325
- }
326
- }), _createToggleButton('ReferenceLines', 'tool-referenceLines',
327
- // change this with the new icon
328
- 'Reference Lines', ReferenceLinesCommands, 'Show Reference Lines', {
329
- listeners: {
330
- [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: ReferenceLinesCommands,
331
- [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesCommands
332
- }
333
- }), _createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
334
- commandName: 'setToolActive',
335
- commandOptions: {
336
- toolName: 'ImageOverlayViewer'
337
- },
338
- context: 'CORNERSTONE'
339
- }], 'Image Overlay', {
340
- isActive: true
341
- }), _createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
342
- commandName: 'setToolActive',
343
- commandOptions: {
344
- toolName: 'StackScroll'
345
- },
346
- context: 'CORNERSTONE'
347
- }], 'Stack Scroll'), _createActionButton('invert', 'tool-invert', 'Invert', [{
348
- commandName: 'invertViewport',
349
- commandOptions: {},
350
- context: 'CORNERSTONE'
351
- }], 'Invert Colors'), _createToolButton('Probe', 'tool-probe', 'Probe', [{
352
- commandName: 'setToolActive',
353
- commandOptions: {
354
- toolName: 'DragProbe'
355
- },
356
- context: 'CORNERSTONE'
357
- }], 'Probe'), _createToggleButton('cine', 'tool-cine', 'Cine', [{
358
- commandName: 'toggleCine',
359
- context: 'CORNERSTONE'
360
- }], 'Cine'), _createToolButton('Angle', 'tool-angle', 'Angle', [{
361
- commandName: 'setToolActive',
362
- commandOptions: {
363
- toolName: 'Angle'
364
- },
365
- context: 'CORNERSTONE'
366
- }], 'Angle'),
367
- // Next two tools can be added once icons are added
368
- // _createToolButton(
369
- // 'Cobb Angle',
370
- // 'tool-cobb-angle',
371
- // 'Cobb Angle',
372
- // [
373
- // {
374
- // commandName: 'setToolActive',
375
- // commandOptions: {
376
- // toolName: 'CobbAngle',
377
- // },
378
- // context: 'CORNERSTONE',
379
- // },
380
- // ],
381
- // 'Cobb Angle'
382
- // ),
383
- // _createToolButton(
384
- // 'Planar Freehand ROI',
385
- // 'tool-freehand',
386
- // 'PlanarFreehandROI',
387
- // [
388
- // {
389
- // commandName: 'setToolActive',
390
- // commandOptions: {
391
- // toolName: 'PlanarFreehandROI',
392
- // },
393
- // context: 'CORNERSTONE',
394
- // },
395
- // ],
396
- // 'Planar Freehand ROI'
397
- // ),
398
- _createToolButton('Magnify', 'tool-magnify', 'Magnify', [{
399
- commandName: 'setToolActive',
400
- commandOptions: {
401
- toolName: 'Magnify'
402
- },
403
- context: 'CORNERSTONE'
404
- }], 'Magnify'), _createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
405
- commandName: 'setToolActive',
406
- commandOptions: {
407
- toolName: 'RectangleROI'
408
- },
409
- context: 'CORNERSTONE'
410
- }], 'Rectangle'), _createToolButton('CalibrationLine', 'tool-calibration', 'Calibration', [{
411
- commandName: 'setToolActive',
412
- commandOptions: {
413
- toolName: 'CalibrationLine'
414
- },
415
- context: 'CORNERSTONE'
416
- }], 'Calibration Line'), _createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
417
- commandName: 'openDICOMTagViewer',
418
- commandOptions: {},
419
- context: 'DEFAULT'
420
- }], 'Dicom Tag Browser')]
421
- }
422
- }];
269
+ ];
270
+
423
271
  /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
424
272
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/package.json
425
273
  const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-longitudinal"}');
@@ -673,15 +521,305 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
673
521
  initVolume3DToolGroup(extensionManager, toolGroupService);
674
522
  }
675
523
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
524
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 344 modules
525
+ var esm = __webpack_require__(62231);
526
+ ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/moreTools.ts
527
+
528
+
529
+ const ReferenceLinesCommands = [{
530
+ commandName: 'setSourceViewportForReferenceLinesTool',
531
+ context: 'CORNERSTONE'
532
+ }, {
533
+ commandName: 'setToolActive',
534
+ commandOptions: {
535
+ toolName: 'ReferenceLines'
536
+ },
537
+ context: 'CORNERSTONE'
538
+ }];
539
+ const moreTools = [{
540
+ id: 'MoreTools',
541
+ type: 'ohif.splitButton',
542
+ props: {
543
+ isRadio: true,
544
+ // ?
545
+ groupId: 'MoreTools',
546
+ primary: src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
547
+ commandName: 'resetViewport',
548
+ commandOptions: {},
549
+ context: 'CORNERSTONE'
550
+ }], 'Reset'),
551
+ secondary: {
552
+ icon: 'chevron-down',
553
+ label: '',
554
+ isActive: true,
555
+ tooltip: 'More Tools'
556
+ },
557
+ items: [src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
558
+ commandName: 'resetViewport',
559
+ commandOptions: {},
560
+ context: 'CORNERSTONE'
561
+ }], 'Reset'), src/* ToolbarService */.Ok._createActionButton('rotate-right', 'tool-rotate-right', 'Rotate Right', [{
562
+ commandName: 'rotateViewportCW',
563
+ commandOptions: {},
564
+ context: 'CORNERSTONE'
565
+ }], 'Rotate +90'), src/* ToolbarService */.Ok._createActionButton('flip-horizontal', 'tool-flip-horizontal', 'Flip Horizontally', [{
566
+ commandName: 'flipViewportHorizontal',
567
+ commandOptions: {},
568
+ context: 'CORNERSTONE'
569
+ }], 'Flip Horizontal'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
570
+ commandName: 'toggleStackImageSync'
571
+ }], 'Enable position synchronization on stack viewports', {
572
+ listeners: {
573
+ [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
574
+ commandName: 'toggleStackImageSync',
575
+ commandOptions: {
576
+ toggledState: true
577
+ }
578
+ }
579
+ }
580
+ }), src/* ToolbarService */.Ok._createToggleButton('ReferenceLines', 'tool-referenceLines',
581
+ // change this with the new icon
582
+ 'Reference Lines', ReferenceLinesCommands, 'Show Reference Lines', {
583
+ listeners: {
584
+ [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: ReferenceLinesCommands,
585
+ [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesCommands
586
+ }
587
+ }), src/* ToolbarService */.Ok._createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
588
+ commandName: 'setToolActive',
589
+ commandOptions: {
590
+ toolName: 'ImageOverlayViewer'
591
+ },
592
+ context: 'CORNERSTONE'
593
+ }], 'Image Overlay', {
594
+ isActive: true
595
+ }), src/* ToolbarService */.Ok._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
596
+ commandName: 'setToolActive',
597
+ commandOptions: {
598
+ toolName: 'StackScroll'
599
+ },
600
+ context: 'CORNERSTONE'
601
+ }], 'Stack Scroll'), src/* ToolbarService */.Ok._createActionButton('invert', 'tool-invert', 'Invert', [{
602
+ commandName: 'invertViewport',
603
+ commandOptions: {},
604
+ context: 'CORNERSTONE'
605
+ }], 'Invert Colors'), src/* ToolbarService */.Ok._createToolButton('Probe', 'tool-probe', 'Probe', [{
606
+ commandName: 'setToolActive',
607
+ commandOptions: {
608
+ toolName: 'DragProbe'
609
+ },
610
+ context: 'CORNERSTONE'
611
+ }], 'Probe'), src/* ToolbarService */.Ok._createToggleButton('cine', 'tool-cine', 'Cine', [{
612
+ commandName: 'toggleCine',
613
+ context: 'CORNERSTONE'
614
+ }], 'Cine'), src/* ToolbarService */.Ok._createToolButton('Angle', 'tool-angle', 'Angle', [{
615
+ commandName: 'setToolActive',
616
+ commandOptions: {
617
+ toolName: 'Angle'
618
+ },
619
+ context: 'CORNERSTONE'
620
+ }], 'Angle'),
621
+ // Next two tools can be added once icons are added
622
+ // ToolbarService._createToolButton(
623
+ // 'Cobb Angle',
624
+ // 'tool-cobb-angle',
625
+ // 'Cobb Angle',
626
+ // [
627
+ // {
628
+ // commandName: 'setToolActive',
629
+ // commandOptions: {
630
+ // toolName: 'CobbAngle',
631
+ // },
632
+ // context: 'CORNERSTONE',
633
+ // },
634
+ // ],
635
+ // 'Cobb Angle'
636
+ // ),
637
+ // ToolbarService._createToolButton(
638
+ // 'Planar Freehand ROI',
639
+ // 'tool-freehand',
640
+ // 'PlanarFreehandROI',
641
+ // [
642
+ // {
643
+ // commandName: 'setToolActive',
644
+ // commandOptions: {
645
+ // toolName: 'PlanarFreehandROI',
646
+ // },
647
+ // context: 'CORNERSTONE',
648
+ // },
649
+ // ],
650
+ // 'Planar Freehand ROI'
651
+ // ),
652
+ src/* ToolbarService */.Ok._createToolButton('Magnify', 'tool-magnify', 'Magnify', [{
653
+ commandName: 'setToolActive',
654
+ commandOptions: {
655
+ toolName: 'Magnify'
656
+ },
657
+ context: 'CORNERSTONE'
658
+ }], 'Magnify'), src/* ToolbarService */.Ok._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
659
+ commandName: 'setToolActive',
660
+ commandOptions: {
661
+ toolName: 'RectangleROI'
662
+ },
663
+ context: 'CORNERSTONE'
664
+ }], 'Rectangle'), src/* ToolbarService */.Ok._createToolButton('CalibrationLine', 'tool-calibration', 'Calibration', [{
665
+ commandName: 'setToolActive',
666
+ commandOptions: {
667
+ toolName: 'CalibrationLine'
668
+ },
669
+ context: 'CORNERSTONE'
670
+ }], 'Calibration Line'), src/* ToolbarService */.Ok._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
671
+ commandName: 'openDICOMTagViewer',
672
+ commandOptions: {},
673
+ context: 'DEFAULT'
674
+ }], 'Dicom Tag Browser')]
675
+ }
676
+ }];
677
+ /* harmony default export */ const src_moreTools = (moreTools);
678
+ ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/moreToolsMpr.ts
679
+
680
+
681
+ const moreToolsMpr_ReferenceLinesCommands = [{
682
+ commandName: 'setSourceViewportForReferenceLinesTool',
683
+ context: 'CORNERSTONE'
684
+ }, {
685
+ commandName: 'setToolActive',
686
+ commandOptions: {
687
+ toolName: 'ReferenceLines'
688
+ },
689
+ context: 'CORNERSTONE'
690
+ }];
691
+ const moreToolsMpr = [{
692
+ id: 'MoreToolsMpr',
693
+ type: 'ohif.splitButton',
694
+ props: {
695
+ isRadio: true,
696
+ // ?
697
+ groupId: 'MoreTools',
698
+ primary: src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
699
+ commandName: 'resetViewport',
700
+ commandOptions: {},
701
+ context: 'CORNERSTONE'
702
+ }], 'Reset'),
703
+ secondary: {
704
+ icon: 'chevron-down',
705
+ label: '',
706
+ isActive: true,
707
+ tooltip: 'More Tools'
708
+ },
709
+ items: [src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
710
+ commandName: 'resetViewport',
711
+ commandOptions: {},
712
+ context: 'CORNERSTONE'
713
+ }], 'Reset'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
714
+ commandName: 'toggleStackImageSync'
715
+ }], 'Enable position synchronization on stack viewports', {
716
+ listeners: {
717
+ [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
718
+ commandName: 'toggleStackImageSync',
719
+ commandOptions: {
720
+ toggledState: true
721
+ }
722
+ }
723
+ }
724
+ }), src/* ToolbarService */.Ok._createToggleButton('ReferenceLines', 'tool-referenceLines',
725
+ // change this with the new icon
726
+ 'Reference Lines', moreToolsMpr_ReferenceLinesCommands, 'Show Reference Lines', {
727
+ listeners: {
728
+ [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: moreToolsMpr_ReferenceLinesCommands,
729
+ [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: moreToolsMpr_ReferenceLinesCommands
730
+ }
731
+ }), src/* ToolbarService */.Ok._createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
732
+ commandName: 'setToolActive',
733
+ commandOptions: {
734
+ toolName: 'ImageOverlayViewer'
735
+ },
736
+ context: 'CORNERSTONE'
737
+ }], 'Image Overlay', {
738
+ isActive: true
739
+ }), src/* ToolbarService */.Ok._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
740
+ commandName: 'setToolActive',
741
+ commandOptions: {
742
+ toolName: 'StackScroll'
743
+ },
744
+ context: 'CORNERSTONE'
745
+ }], 'Stack Scroll'), src/* ToolbarService */.Ok._createActionButton('invert', 'tool-invert', 'Invert', [{
746
+ commandName: 'invertViewport',
747
+ commandOptions: {},
748
+ context: 'CORNERSTONE'
749
+ }], 'Invert Colors'), src/* ToolbarService */.Ok._createToolButton('Probe', 'tool-probe', 'Probe', [{
750
+ commandName: 'setToolActive',
751
+ commandOptions: {
752
+ toolName: 'DragProbe'
753
+ },
754
+ context: 'CORNERSTONE'
755
+ }], 'Probe'), src/* ToolbarService */.Ok._createToggleButton('cine', 'tool-cine', 'Cine', [{
756
+ commandName: 'toggleCine',
757
+ context: 'CORNERSTONE'
758
+ }], 'Cine'), src/* ToolbarService */.Ok._createToolButton('Angle', 'tool-angle', 'Angle', [{
759
+ commandName: 'setToolActive',
760
+ commandOptions: {
761
+ toolName: 'Angle'
762
+ },
763
+ context: 'CORNERSTONE'
764
+ }], 'Angle'),
765
+ // Next two tools can be added once icons are added
766
+ // ToolbarService._createToolButton(
767
+ // 'Cobb Angle',
768
+ // 'tool-cobb-angle',
769
+ // 'Cobb Angle',
770
+ // [
771
+ // {
772
+ // commandName: 'setToolActive',
773
+ // commandOptions: {
774
+ // toolName: 'CobbAngle',
775
+ // },
776
+ // context: 'CORNERSTONE',
777
+ // },
778
+ // ],
779
+ // 'Cobb Angle'
780
+ // ),
781
+ // ToolbarService._createToolButton(
782
+ // 'Planar Freehand ROI',
783
+ // 'tool-freehand',
784
+ // 'PlanarFreehandROI',
785
+ // [
786
+ // {
787
+ // commandName: 'setToolActive',
788
+ // commandOptions: {
789
+ // toolName: 'PlanarFreehandROI',
790
+ // },
791
+ // context: 'CORNERSTONE',
792
+ // },
793
+ // ],
794
+ // 'Planar Freehand ROI'
795
+ // ),
796
+ src/* ToolbarService */.Ok._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
797
+ commandName: 'setToolActive',
798
+ commandOptions: {
799
+ toolName: 'RectangleROI'
800
+ },
801
+ context: 'CORNERSTONE'
802
+ }], 'Rectangle'), src/* ToolbarService */.Ok._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
803
+ commandName: 'openDICOMTagViewer',
804
+ commandOptions: {},
805
+ context: 'DEFAULT'
806
+ }], 'Dicom Tag Browser')]
807
+ }
808
+ }];
809
+ /* harmony default export */ const src_moreToolsMpr = (moreToolsMpr);
676
810
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/index.js
677
811
 
678
812
 
679
813
 
680
814
 
681
815
 
816
+
817
+
682
818
  // Allow this mode by excluding non-imaging modalities such as SR, SEG
683
819
  // Also, SM is not a simple imaging modalities, so exclude it.
684
820
  const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG', 'RTSTRUCT'];
821
+ const DEFAULT_TOOL_GROUP_ID = 'default';
822
+ const MPR_TOOL_GROUP_ID = 'mpr';
685
823
  const ohif = {
686
824
  layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
687
825
  sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
@@ -756,18 +894,20 @@ function modeFactory(_ref) {
756
894
  // Init Default and SR ToolGroups
757
895
  src_initToolGroups(extensionManager, toolGroupService, commandsManager);
758
896
  let unsubscribe;
897
+ toolbarService.setDefaultTool({
898
+ groupId: 'WindowLevel',
899
+ itemId: 'WindowLevel',
900
+ interactionType: 'tool',
901
+ commands: [{
902
+ commandName: 'setToolActive',
903
+ commandOptions: {
904
+ toolName: 'WindowLevel'
905
+ },
906
+ context: 'CORNERSTONE'
907
+ }]
908
+ });
759
909
  const activateTool = () => {
760
- toolbarService.recordInteraction({
761
- groupId: 'WindowLevel',
762
- interactionType: 'tool',
763
- commands: [{
764
- commandName: 'setToolActive',
765
- commandOptions: {
766
- toolName: 'WindowLevel'
767
- },
768
- context: 'CORNERSTONE'
769
- }]
770
- });
910
+ toolbarService.recordInteraction(toolbarService.getDefaultTool());
771
911
 
772
912
  // We don't need to reset the active tool whenever a viewport is getting
773
913
  // added to the toolGroup.
@@ -780,8 +920,9 @@ function modeFactory(_ref) {
780
920
  unsubscribe
781
921
  } = toolGroupService.subscribe(toolGroupService.EVENTS.VIEWPORT_ADDED, activateTool));
782
922
  toolbarService.init(extensionManager);
783
- toolbarService.addButtons(src_toolbarButtons);
784
- toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreTools']);
923
+ toolbarService.addButtons([...src_toolbarButtons, ...src_moreTools, ...src_moreToolsMpr]);
924
+ toolbarService.createButtonSection(DEFAULT_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'MoreTools']);
925
+ toolbarService.createButtonSection(MPR_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreToolsMpr']);
785
926
  customizationService.addModeCustomizations([{
786
927
  id: 'segmentation.disableEditing',
787
928
  value: true
@@ -20,8 +20,8 @@ const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-segmentation"}');
20
20
 
21
21
  const id = package_namespaceObject.u2;
22
22
 
23
- // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
24
- var ui_src = __webpack_require__(71783);
23
+ // EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
24
+ var ui_src = __webpack_require__(22582);
25
25
  ;// CONCATENATED MODULE: ../../../modes/segmentation/src/toolbarButtons.ts
26
26
 
27
27
 
@@ -467,12 +467,16 @@ function modeFactory(_ref) {
467
467
  },
468
468
  /**
469
469
  * A boolean return value that indicates whether the mode is valid for the
470
- * modalities of the selected studies. For instance a PET/CT mode should be
470
+ * modalities of the selected studies. Currently we don't have stack viewport
471
+ * segmentations and we should exclude them
471
472
  */
472
473
  isValidMode: _ref4 => {
473
474
  let {
474
475
  modalities
475
476
  } = _ref4;
477
+ if (modalities.length === 1) {
478
+ return !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalities[0]);
479
+ }
476
480
  return true;
477
481
  },
478
482
  /**
@@ -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 + 348 modules
33
- var dist_esm = __webpack_require__(14957);
34
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
35
- var core_dist_esm = __webpack_require__(3743);
32
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 391 modules
33
+ var dist_esm = __webpack_require__(28082);
34
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 344 modules
35
+ var core_dist_esm = __webpack_require__(62231);
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
@@ -1531,7 +1531,7 @@ const dicomSRExtension = {
1531
1531
  /* harmony export */ yR: () => (/* binding */ getTrackingUniqueIdentifiersForElement)
1532
1532
  /* harmony export */ });
1533
1533
  /* unused harmony export setActiveTrackingUniqueIdentifierForElement */
1534
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3743);
1534
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62231);
1535
1535
 
1536
1536
  const state = {
1537
1537
  TrackingUniqueIdentifier: null,
@@ -1594,8 +1594,8 @@ __webpack_require__.d(__webpack_exports__, {
1594
1594
  Z: () => (/* binding */ hydrateStructuredReport)
1595
1595
  });
1596
1596
 
1597
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
1598
- var esm = __webpack_require__(3743);
1597
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 344 modules
1598
+ var esm = __webpack_require__(62231);
1599
1599
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
1600
1600
  var src = __webpack_require__(71771);
1601
1601
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js
@@ -1622,8 +1622,8 @@ function getLabelFromDCMJSImportedToolData(toolData) {
1622
1622
  }
1623
1623
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/adapters.es.js
1624
1624
  var adapters_es = __webpack_require__(91202);
1625
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 348 modules
1626
- var dist_esm = __webpack_require__(14957);
1625
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 391 modules
1626
+ var dist_esm = __webpack_require__(28082);
1627
1627
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.js
1628
1628
 
1629
1629