@ohif/app 3.8.0-beta.4 → 3.8.0-beta.41

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 (54) hide show
  1. package/dist/{12.bundle.3749796d3d0655f356e8.js → 12.bundle.63db34a3b20be1f0934b.js} +9 -11
  2. package/dist/{125.bundle.253395f320b72180da63.js → 125.bundle.df666cb677e5a8982157.js} +4 -5
  3. package/dist/{663.bundle.3485d3509c179a19eead.js → 170.bundle.09f893d07dcf83ac176e.js} +97 -89
  4. package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.d2fe517852935b82368b.js} +60 -72
  5. package/dist/181.css +1 -1
  6. package/dist/{370.bundle.8782c787fc0e3db12d96.js → 185.bundle.a102e9b21a64c3d184b5.js} +338 -209
  7. package/dist/{19.bundle.75decca183cfe0936af8.js → 19.bundle.5334bbd0ad20de90c4ed.js} +127 -136
  8. package/dist/{99.bundle.f444b466668c45a5768d.js → 199.bundle.3e89d8b3b3e148dcde9f.js} +215 -162
  9. package/dist/{202.bundle.d3490836f71e001dd30f.js → 202.bundle.0ca2f2479d2578f539b0.js} +349 -332
  10. package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
  11. package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 223.bundle.d4ac6ef2cfe47a9c4afc.js} +4422 -3671
  12. package/dist/{23.bundle.e008ad788170f2ed5569.js → 23.bundle.9d989522a6e4fdcb9c72.js} +1 -1
  13. package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.ba94ff371388e395cd05.js} +21 -26
  14. package/dist/{281.bundle.adddd60d4c338f5cc6d1.js → 281.bundle.2deef03aed8386b77ae5.js} +23 -25
  15. package/dist/{359.bundle.968f29b5916b0fac14e1.js → 359.bundle.a409659d9ea752a2134c.js} +27 -30
  16. package/dist/{410.bundle.7ebf2894e1ede5a264fb.js → 410.bundle.779bbaa3ac6c2a080d82.js} +24 -28
  17. package/dist/{417.bundle.af0a207c29b109f84159.js → 417.bundle.5c66801d23d0e98c00e6.js} +2 -2
  18. package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.68a551a7d1746cf904cb.js} +28 -34
  19. package/dist/{82.bundle.ebdcc3ccc426053f83f1.js → 456.bundle.7a17ca1207796633d76b.js} +1216 -663
  20. package/dist/{221.bundle.5188188cec50980afae4.js → 466.bundle.137863082a90664de71f.js} +128 -146
  21. package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.5809b10f75c8fc2f7167.js} +29 -35
  22. package/dist/{788.bundle.4b95e6b64d45fec4e1ac.js → 483.bundle.e40a5e33afb7f649cefb.js} +131 -180
  23. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 485.bundle.5b6c33cc43d8f3470642.js} +9 -98
  24. package/dist/{506.bundle.fdead68decb348a84807.js → 506.bundle.2ced3ec9123269a09438.js} +13 -18
  25. package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 530.bundle.f904325ef4195d69ac0e.js} +10 -3
  26. package/dist/{613.bundle.f040e35c03fa3fe65d16.js → 613.bundle.9ca9a303f4e5b5e8bb2a.js} +29 -27
  27. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 661.bundle.949c984fe2f9f753b65c.js} +1851 -8944
  28. package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 686.bundle.62c827fe4f0d054c164e.js} +4 -5
  29. package/dist/{687.bundle.a46770cd4c472e87d57c.js → 687.bundle.99a8701f5057e311afa1.js} +19 -35
  30. package/dist/{342.bundle.9624373301727ec2a70d.js → 738.bundle.0d2e81fc51b3dad4f791.js} +776 -509
  31. package/dist/{814.bundle.93bb98785fdf1bffeb6f.js → 814.bundle.09f8ed2733ec31b94bc8.js} +9 -11
  32. package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.f5ae3f366ce742fb060a.js} +14 -16
  33. package/dist/{886.bundle.4b3a7f2079d085fdbcb3.js → 886.bundle.4496fc7fb83b8c897d20.js} +20 -24
  34. package/dist/95.bundle.830304446bffa705883c.js +9002 -0
  35. package/dist/{236.bundle.c29fd0ec6b1f041b5e3e.js → 965.bundle.6cabf4bb493bdfe30665.js} +104 -126
  36. package/dist/{app.bundle.6267cddde349bad128c2.js → app.bundle.38ea6972be1841b927cc.js} +183950 -60781
  37. package/dist/app.bundle.css +11 -11
  38. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  39. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  40. package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.a7d5060eead13771e784.js} +1 -1
  41. package/dist/index.html +1 -1
  42. package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
  43. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
  44. package/dist/serve.json +12 -0
  45. package/dist/sw.js +1 -1
  46. package/package.json +21 -21
  47. package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
  48. package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
  49. package/dist/75788f12450d4c5ed494.wasm +0 -0
  50. package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
  51. package/dist/957.bundle.9ea4506963ef8b2d84ba.js +0 -30077
  52. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
  53. /package/dist/{82.css → 456.css} +0 -0
  54. /package/dist/{221.css → 466.css} +0 -0
@@ -1,9 +1,9 @@
1
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[99],{
1
+ "use strict";
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[199],{
2
3
 
3
- /***/ 7395:
4
+ /***/ 32199:
4
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
6
 
6
- "use strict";
7
7
  // ESM COMPAT FLAG
8
8
  __webpack_require__.r(__webpack_exports__);
9
9
 
@@ -14,22 +14,16 @@ __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 + 485 modules
18
- var ui_src = __webpack_require__(71783);
19
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
20
- var esm = __webpack_require__(3743);
17
+ // EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
18
+ var ui_src = __webpack_require__(22582);
21
19
  ;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/toolbarButtons.ts
22
20
  // TODO: torn, can either bake this here; or have to create a whole new button type
23
21
  // Only ways that you can pass in a custom React component for render :l
24
22
 
25
23
 
26
-
27
24
  const {
28
25
  windowLevelPresets
29
26
  } = src.defaults;
30
- const _createActionButton = src/* ToolbarService */.Ok._createButton.bind(null, 'action');
31
- const _createToggleButton = src/* ToolbarService */.Ok._createButton.bind(null, 'toggle');
32
- const _createToolButton = src/* ToolbarService */.Ok._createButton.bind(null, 'tool');
33
27
 
34
28
  /**
35
29
  *
@@ -52,16 +46,6 @@ function _createWwwcPreset(preset, title, subtitle) {
52
46
  }]
53
47
  };
54
48
  }
55
- const ReferenceLinesCommands = [{
56
- commandName: 'setSourceViewportForReferenceLinesTool',
57
- context: 'CORNERSTONE'
58
- }, {
59
- commandName: 'setToolActive',
60
- commandOptions: {
61
- toolName: 'ReferenceLines'
62
- },
63
- context: 'CORNERSTONE'
64
- }];
65
49
  const toolbarButtons = [
66
50
  // Measurement
67
51
  {
@@ -72,7 +56,7 @@ const toolbarButtons = [
72
56
  isRadio: true,
73
57
  // ?
74
58
  // Switch?
75
- primary: _createToolButton('Length', 'tool-length', 'Length', [{
59
+ primary: src/* ToolbarService */.Ok._createToolButton('Length', 'tool-length', 'Length', [{
76
60
  commandName: 'setToolActive',
77
61
  commandOptions: {
78
62
  toolName: 'Length'
@@ -93,7 +77,7 @@ const toolbarButtons = [
93
77
  isActive: true,
94
78
  tooltip: 'More Measure Tools'
95
79
  },
96
- items: [_createToolButton('Length', 'tool-length', 'Length', [{
80
+ items: [src/* ToolbarService */.Ok._createToolButton('Length', 'tool-length', 'Length', [{
97
81
  commandName: 'setToolActive',
98
82
  commandOptions: {
99
83
  toolName: 'Length'
@@ -107,7 +91,7 @@ const toolbarButtons = [
107
91
  },
108
92
  // we can use the setToolActive command for this from Cornerstone commandsModule
109
93
  context: 'CORNERSTONE'
110
- }], 'Length Tool'), _createToolButton('Bidirectional', 'tool-bidirectional', 'Bidirectional', [{
94
+ }], 'Length Tool'), src/* ToolbarService */.Ok._createToolButton('Bidirectional', 'tool-bidirectional', 'Bidirectional', [{
111
95
  commandName: 'setToolActive',
112
96
  commandOptions: {
113
97
  toolName: 'Bidirectional'
@@ -120,7 +104,7 @@ const toolbarButtons = [
120
104
  toolGroupId: 'SRToolGroup'
121
105
  },
122
106
  context: 'CORNERSTONE'
123
- }], 'Bidirectional Tool'), _createToolButton('ArrowAnnotate', 'tool-annotate', 'Annotation', [{
107
+ }], 'Bidirectional Tool'), src/* ToolbarService */.Ok._createToolButton('ArrowAnnotate', 'tool-annotate', 'Annotation', [{
124
108
  commandName: 'setToolActive',
125
109
  commandOptions: {
126
110
  toolName: 'ArrowAnnotate'
@@ -133,7 +117,7 @@ const toolbarButtons = [
133
117
  toolGroupId: 'SRToolGroup'
134
118
  },
135
119
  context: 'CORNERSTONE'
136
- }], 'Arrow Annotate'), _createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
120
+ }], 'Arrow Annotate'), src/* ToolbarService */.Ok._createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
137
121
  commandName: 'setToolActive',
138
122
  commandOptions: {
139
123
  toolName: 'EllipticalROI'
@@ -146,7 +130,7 @@ const toolbarButtons = [
146
130
  toolGroupId: 'SRToolGroup'
147
131
  },
148
132
  context: 'CORNERSTONE'
149
- }], 'Ellipse Tool'), _createToolButton('CircleROI', 'tool-circle', 'Circle', [{
133
+ }], 'Ellipse Tool'), src/* ToolbarService */.Ok._createToolButton('CircleROI', 'tool-circle', 'Circle', [{
150
134
  commandName: 'setToolActive',
151
135
  commandOptions: {
152
136
  toolName: 'CircleROI'
@@ -185,7 +169,7 @@ const toolbarButtons = [
185
169
  type: 'ohif.splitButton',
186
170
  props: {
187
171
  groupId: 'WindowLevel',
188
- primary: _createToolButton('WindowLevel', 'tool-window-level', 'Window Level', [{
172
+ primary: src/* ToolbarService */.Ok._createToolButton('WindowLevel', 'tool-window-level', 'Window Level', [{
189
173
  commandName: 'setToolActive',
190
174
  commandOptions: {
191
175
  toolName: 'WindowLevel'
@@ -322,8 +306,7 @@ const toolbarButtons = [
322
306
  commandName: 'toggleHangingProtocol',
323
307
  commandOptions: {
324
308
  protocolId: 'mpr'
325
- },
326
- context: 'DEFAULT'
309
+ }
327
310
  }]
328
311
  }
329
312
  }, {
@@ -338,102 +321,8 @@ const toolbarButtons = [
338
321
  commandOptions: {
339
322
  toolGroupId: 'mpr',
340
323
  toolName: 'Crosshairs'
341
- },
342
- context: 'CORNERSTONE'
343
- }]
344
- }
345
- },
346
- // More...
347
- {
348
- id: 'MoreTools',
349
- type: 'ohif.splitButton',
350
- props: {
351
- isRadio: true,
352
- // ?
353
- groupId: 'MoreTools',
354
- primary: _createActionButton('Reset', 'tool-reset', 'Reset View', [{
355
- commandName: 'resetViewport',
356
- commandOptions: {},
357
- context: 'CORNERSTONE'
358
- }], 'Reset'),
359
- secondary: {
360
- icon: 'chevron-down',
361
- label: '',
362
- isActive: true,
363
- tooltip: 'More Tools'
364
- },
365
- items: [_createActionButton('Reset', 'tool-reset', 'Reset View', [{
366
- commandName: 'resetViewport',
367
- commandOptions: {},
368
- context: 'CORNERSTONE'
369
- }], 'Reset'), _createActionButton('rotate-right', 'tool-rotate-right', 'Rotate Right', [{
370
- commandName: 'rotateViewportCW',
371
- commandOptions: {},
372
- context: 'CORNERSTONE'
373
- }], 'Rotate +90'), _createActionButton('flip-horizontal', 'tool-flip-horizontal', 'Flip Horizontally', [{
374
- commandName: 'flipViewportHorizontal',
375
- commandOptions: {},
376
- context: 'CORNERSTONE'
377
- }], 'Flip Horizontally'), _createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
378
- commandName: 'toggleStackImageSync'
379
- }], 'Enable position synchronization on stack viewports', {
380
- listeners: {
381
- [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
382
- commandName: 'toggleStackImageSync',
383
- commandOptions: {
384
- toggledState: true
385
- }
386
- }
387
- }
388
- }), _createToggleButton('ReferenceLines', 'tool-referenceLines',
389
- // change this with the new icon
390
- 'Reference Lines', ReferenceLinesCommands, 'Show Reference Lines', {
391
- listeners: {
392
- [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: ReferenceLinesCommands,
393
- [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesCommands
394
324
  }
395
- }), _createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
396
- commandName: 'setToolActive',
397
- commandOptions: {
398
- toolName: 'StackScroll'
399
- },
400
- context: 'CORNERSTONE'
401
- }], 'Stack Scroll'), _createActionButton('invert', 'tool-invert', 'Invert', [{
402
- commandName: 'invertViewport',
403
- commandOptions: {},
404
- context: 'CORNERSTONE'
405
- }], 'Invert Colors'), _createToolButton('Probe', 'tool-probe', 'Probe', [{
406
- commandName: 'setToolActive',
407
- commandOptions: {
408
- toolName: 'DragProbe'
409
- },
410
- context: 'CORNERSTONE'
411
- }], 'Probe'), _createToggleButton('cine', 'tool-cine', 'Cine', [{
412
- commandName: 'toggleCine',
413
- context: 'CORNERSTONE'
414
- }], 'Cine'), _createToolButton('Angle', 'tool-angle', 'Angle', [{
415
- commandName: 'setToolActive',
416
- commandOptions: {
417
- toolName: 'Angle'
418
- },
419
- context: 'CORNERSTONE'
420
- }], 'Angle'), _createToolButton('Magnify', 'tool-magnify', 'Magnify', [{
421
- commandName: 'setToolActive',
422
- commandOptions: {
423
- toolName: 'Magnify'
424
- },
425
- context: 'CORNERSTONE'
426
- }], 'Magnify'), _createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
427
- commandName: 'setToolActive',
428
- commandOptions: {
429
- toolName: 'RectangleROI'
430
- },
431
- context: 'CORNERSTONE'
432
- }], 'Rectangle'), _createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
433
- commandName: 'openDICOMTagViewer',
434
- commandOptions: {},
435
- context: 'DEFAULT'
436
- }], 'Dicom Tag Browser')]
325
+ }]
437
326
  }
438
327
  }];
439
328
  /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
@@ -505,6 +394,9 @@ function initDefaultToolGroup(extensionManager, toolGroupService, commandsManage
505
394
  toolName: toolNames.SegmentationDisplay
506
395
  }],
507
396
  // enabled
397
+ enabled: [{
398
+ toolName: toolNames.ImageOverlayViewer
399
+ }],
508
400
  // disabled
509
401
  disabled: [{
510
402
  toolName: toolNames.ReferenceLines
@@ -559,7 +451,6 @@ function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
559
451
  }]
560
452
  // disabled
561
453
  };
562
-
563
454
  const toolGroupId = 'SRToolGroup';
564
455
  toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
565
456
  }
@@ -637,7 +528,6 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
637
528
  // enabled
638
529
  // disabled
639
530
  };
640
-
641
531
  toolGroupService.createToolGroupAndAddTools('mpr', tools);
642
532
  }
643
533
  function initToolGroups(extensionManager, toolGroupService, commandsManager) {
@@ -646,15 +536,185 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
646
536
  initMPRToolGroup(extensionManager, toolGroupService, commandsManager);
647
537
  }
648
538
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
539
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 368 modules
540
+ var esm = __webpack_require__(62881);
541
+ ;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/moreTools.ts
542
+
543
+
544
+ const ReferenceLinesCommands = [{
545
+ commandName: 'setSourceViewportForReferenceLinesTool',
546
+ context: 'CORNERSTONE'
547
+ }, {
548
+ commandName: 'setToolActive',
549
+ commandOptions: {
550
+ toolName: 'ReferenceLines'
551
+ },
552
+ context: 'CORNERSTONE'
553
+ }];
554
+ const moreTools = [{
555
+ id: 'MoreTools',
556
+ type: 'ohif.splitButton',
557
+ props: {
558
+ isRadio: true,
559
+ // ?
560
+ groupId: 'MoreTools',
561
+ primary: src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
562
+ commandName: 'resetViewport'
563
+ }], 'Reset'),
564
+ secondary: {
565
+ icon: 'chevron-down',
566
+ label: '',
567
+ isActive: true,
568
+ tooltip: 'More Tools'
569
+ },
570
+ items: [src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
571
+ commandName: 'resetViewport'
572
+ }], 'Reset'), src/* ToolbarService */.Ok._createActionButton('rotate-right', 'tool-rotate-right', 'Rotate Right', [{
573
+ commandName: 'rotateViewportCW',
574
+ commandOptions: {},
575
+ context: 'CORNERSTONE'
576
+ }], 'Rotate +90'), src/* ToolbarService */.Ok._createActionButton('flip-horizontal', 'tool-flip-horizontal', 'Flip Horizontally', [{
577
+ commandName: 'flipViewportHorizontal',
578
+ commandOptions: {},
579
+ context: 'CORNERSTONE'
580
+ }], 'Flip Horizontally'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
581
+ commandName: 'toggleStackImageSync'
582
+ }], 'Enable position synchronization on stack viewports', {
583
+ listeners: {
584
+ [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
585
+ commandName: 'toggleStackImageSync',
586
+ commandOptions: {
587
+ toggledState: true
588
+ }
589
+ }
590
+ }
591
+ }), src/* ToolbarService */.Ok._createToggleButton('ReferenceLines', 'tool-referenceLines',
592
+ // change this with the new icon
593
+ 'Reference Lines', ReferenceLinesCommands, 'Show Reference Lines', {
594
+ listeners: {
595
+ [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: ReferenceLinesCommands,
596
+ [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesCommands
597
+ }
598
+ }), src/* ToolbarService */.Ok._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
599
+ commandName: 'setToolActive',
600
+ commandOptions: {
601
+ toolName: 'StackScroll'
602
+ },
603
+ context: 'CORNERSTONE'
604
+ }], 'Stack Scroll'), src/* ToolbarService */.Ok._createActionButton('invert', 'tool-invert', 'Invert', [{
605
+ commandName: 'invertViewport',
606
+ commandOptions: {},
607
+ context: 'CORNERSTONE'
608
+ }], 'Invert Colors'), src/* ToolbarService */.Ok._createToolButton('Probe', 'tool-probe', 'Probe', [{
609
+ commandName: 'setToolActive',
610
+ commandOptions: {
611
+ toolName: 'DragProbe'
612
+ },
613
+ context: 'CORNERSTONE'
614
+ }], 'Probe'), src/* ToolbarService */.Ok._createToggleButton('cine', 'tool-cine', 'Cine', [{
615
+ commandName: 'toggleCine',
616
+ context: 'CORNERSTONE'
617
+ }], 'Cine'), src/* ToolbarService */.Ok._createToolButton('Angle', 'tool-angle', 'Angle', [{
618
+ commandName: 'setToolActive',
619
+ commandOptions: {
620
+ toolName: 'Angle'
621
+ },
622
+ context: 'CORNERSTONE'
623
+ }], 'Angle'), src/* ToolbarService */.Ok._createToolButton('Magnify', 'tool-magnify', 'Magnify', [{
624
+ commandName: 'setToolActive',
625
+ commandOptions: {
626
+ toolName: 'Magnify'
627
+ },
628
+ context: 'CORNERSTONE'
629
+ }], 'Magnify'), src/* ToolbarService */.Ok._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
630
+ commandName: 'setToolActive',
631
+ commandOptions: {
632
+ toolName: 'RectangleROI'
633
+ },
634
+ context: 'CORNERSTONE'
635
+ }], 'Rectangle'), src/* ToolbarService */.Ok._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
636
+ commandName: 'openDICOMTagViewer',
637
+ commandOptions: {},
638
+ context: 'DEFAULT'
639
+ }], 'Dicom Tag Browser')]
640
+ }
641
+ }];
642
+ /* harmony default export */ const src_moreTools = (moreTools);
643
+ ;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/moreToolsMpr.ts
644
+
645
+ const moreToolsMpr = [{
646
+ id: 'MoreToolsMpr',
647
+ type: 'ohif.splitButton',
648
+ props: {
649
+ isRadio: true,
650
+ // ?
651
+ groupId: 'MoreTools',
652
+ primary: src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
653
+ commandName: 'resetViewport'
654
+ }], 'Reset'),
655
+ secondary: {
656
+ icon: 'chevron-down',
657
+ label: '',
658
+ isActive: true,
659
+ tooltip: 'More Tools'
660
+ },
661
+ items: [src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
662
+ commandName: 'resetViewport'
663
+ }], 'Reset'), src/* ToolbarService */.Ok._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
664
+ commandName: 'setToolActive',
665
+ commandOptions: {
666
+ toolName: 'StackScroll'
667
+ },
668
+ context: 'CORNERSTONE'
669
+ }], 'Stack Scroll'), src/* ToolbarService */.Ok._createActionButton('invert', 'tool-invert', 'Invert', [{
670
+ commandName: 'invertViewport',
671
+ commandOptions: {},
672
+ context: 'CORNERSTONE'
673
+ }], 'Invert Colors'), src/* ToolbarService */.Ok._createToolButton('Probe', 'tool-probe', 'Probe', [{
674
+ commandName: 'setToolActive',
675
+ commandOptions: {
676
+ toolName: 'DragProbe'
677
+ },
678
+ context: 'CORNERSTONE'
679
+ }], 'Probe'), src/* ToolbarService */.Ok._createToggleButton('cine', 'tool-cine', 'Cine', [{
680
+ commandName: 'toggleCine',
681
+ context: 'CORNERSTONE'
682
+ }], 'Cine'), src/* ToolbarService */.Ok._createToolButton('Angle', 'tool-angle', 'Angle', [{
683
+ commandName: 'setToolActive',
684
+ commandOptions: {
685
+ toolName: 'Angle'
686
+ },
687
+ context: 'CORNERSTONE'
688
+ }], 'Angle'), src/* ToolbarService */.Ok._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
689
+ commandName: 'setToolActive',
690
+ commandOptions: {
691
+ toolName: 'RectangleROI'
692
+ },
693
+ context: 'CORNERSTONE'
694
+ }], 'Rectangle'), src/* ToolbarService */.Ok._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
695
+ commandName: 'openDICOMTagViewer',
696
+ commandOptions: {},
697
+ context: 'DEFAULT'
698
+ }], 'Dicom Tag Browser')]
699
+ }
700
+ }];
701
+ /* harmony default export */ const src_moreToolsMpr = (moreToolsMpr);
702
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
703
+ var i18next = __webpack_require__(73577);
649
704
  ;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/index.ts
650
705
 
651
706
 
652
707
 
653
708
 
654
709
 
710
+
711
+
712
+
655
713
  // Allow this mode by excluding non-imaging modalities such as SR, SEG
656
714
  // Also, SM is not a simple imaging modalities, so exclude it.
657
715
  const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG'];
716
+ const DEFAULT_TOOL_GROUP_ID = 'default';
717
+ const MPR_TOOL_GROUP_ID = 'mpr';
658
718
  const ohif = {
659
719
  layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
660
720
  sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
@@ -699,16 +759,15 @@ function modeFactory() {
699
759
  // We should not be.
700
760
  id: id,
701
761
  routeName: 'basic-test',
702
- displayName: 'Basic Test Mode',
762
+ displayName: i18next/* default */.Z.t('Modes:Basic Test Mode'),
703
763
  /**
704
764
  * Lifecycle hooks
705
765
  */
706
- onModeEnter: _ref => {
707
- let {
708
- servicesManager,
709
- extensionManager,
710
- commandsManager
711
- } = _ref;
766
+ onModeEnter: ({
767
+ servicesManager,
768
+ extensionManager,
769
+ commandsManager
770
+ }) => {
712
771
  const {
713
772
  measurementService,
714
773
  toolbarService,
@@ -723,18 +782,20 @@ function modeFactory() {
723
782
  // init customizations
724
783
  customizationService.addModeCustomizations(['@ohif/extension-test.customizationModule.custom-context-menu']);
725
784
  let unsubscribe;
785
+ toolbarService.setDefaultTool({
786
+ groupId: 'WindowLevel',
787
+ itemId: 'WindowLevel',
788
+ interactionType: 'tool',
789
+ commands: [{
790
+ commandName: 'setToolActive',
791
+ commandOptions: {
792
+ toolName: 'WindowLevel'
793
+ },
794
+ context: 'CORNERSTONE'
795
+ }]
796
+ });
726
797
  const activateTool = () => {
727
- toolbarService.recordInteraction({
728
- groupId: 'WindowLevel',
729
- interactionType: 'tool',
730
- commands: [{
731
- commandName: 'setToolActive',
732
- commandOptions: {
733
- toolName: 'WindowLevel'
734
- },
735
- context: 'CORNERSTONE'
736
- }]
737
- });
798
+ toolbarService.recordInteraction(toolbarService.getDefaultTool());
738
799
 
739
800
  // We don't need to reset the active tool whenever a viewport is getting
740
801
  // added to the toolGroup.
@@ -747,13 +808,13 @@ function modeFactory() {
747
808
  unsubscribe
748
809
  } = toolGroupService.subscribe(toolGroupService.EVENTS.VIEWPORT_ADDED, activateTool));
749
810
  toolbarService.init(extensionManager);
750
- toolbarService.addButtons(src_toolbarButtons);
751
- toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreTools']);
811
+ toolbarService.addButtons([...src_toolbarButtons, ...src_moreTools, ...src_moreToolsMpr]);
812
+ toolbarService.createButtonSection(DEFAULT_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'MoreTools']);
813
+ toolbarService.createButtonSection(MPR_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreToolsMpr']);
752
814
  },
753
- onModeExit: _ref2 => {
754
- let {
755
- servicesManager
756
- } = _ref2;
815
+ onModeExit: ({
816
+ servicesManager
817
+ }) => {
757
818
  const {
758
819
  toolGroupService,
759
820
  syncGroupService,
@@ -769,10 +830,9 @@ function modeFactory() {
769
830
  study: [],
770
831
  series: []
771
832
  },
772
- isValidMode: function (_ref3) {
773
- let {
774
- modalities
775
- } = _ref3;
833
+ isValidMode: function ({
834
+ modalities
835
+ }) {
776
836
  const modalities_list = modalities.split('\\');
777
837
 
778
838
  // Exclude non-image modalities
@@ -833,13 +893,6 @@ const mode = {
833
893
  };
834
894
  /* harmony default export */ const basic_test_mode_src = (mode);
835
895
 
836
- /***/ }),
837
-
838
- /***/ 78753:
839
- /***/ (() => {
840
-
841
- /* (ignored) */
842
-
843
896
  /***/ })
844
897
 
845
898
  }]);