@ohif/app 3.8.0-beta.6 → 3.8.0-beta.60

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 (62) hide show
  1. package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 109.bundle.b4fee2a22b622839baf5.js} +4466 -3715
  2. package/dist/{471.bundle.b3d77b83b1593c09a504.js → 121.bundle.ed23e7752a11005322e6.js} +47 -51
  3. package/dist/{19.bundle.f6ac71d29001b0db0ec0.js → 155.bundle.a089b4e1dd8a13064c21.js} +198 -207
  4. package/dist/{687.bundle.f87fb1a36ef1ca951690.js → 164.bundle.6f0b21868890158eda40.js} +22 -38
  5. package/dist/17dd54813d5acc10bf8f.wasm +0 -0
  6. package/dist/{506.bundle.06f5c5620d0088ec0102.js → 188.bundle.903a17abf035c26e672f.js} +23 -28
  7. package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
  8. package/dist/214.bundle.7f5beb123035a163bf85.js +122755 -0
  9. package/dist/{126.bundle.cefdf26c03a5ab8d60c8.js → 250.bundle.13a1f5d003a00c2b8694.js} +63 -69
  10. package/dist/{236.bundle.3148dc4715c254801727.js → 270.bundle.4e3cd0e72bbff21f9596.js} +156 -178
  11. package/dist/290.bundle.fdf51412462b919e2772.js +8883 -0
  12. package/dist/{451.bundle.9fd36f52ff69594f0669.js → 295.bundle.462f3328c716cbe6c613.js} +45 -59
  13. package/dist/{125.bundle.253395f320b72180da63.js → 297.bundle.81d63bb0b66d63df6d86.js} +7 -8
  14. package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 307.bundle.6e884b1c8766c69560bd.js} +14569 -27570
  15. package/dist/{613.bundle.a0eee4dc2d2764c2f7cd.js → 317.bundle.9d9acdf28d8dfd3ab39e.js} +83 -57
  16. package/dist/{788.bundle.af903bf0598f0ad618e3.js → 339.bundle.d514a9189b0bbdedac75.js} +190 -239
  17. package/dist/342.bundle.8f20bc9a1fa5fed22d2d.js +51866 -0
  18. package/dist/457.bundle.64785b282dc8c9b64c92.js +30200 -0
  19. package/dist/{221.bundle.3f5f700b4c1ee8b1ce94.js → 50.bundle.5f1ddd2697906f8bde6b.js} +199 -189
  20. package/dist/{886.bundle.d5116d9b8ea4964b68a0.js → 530.bundle.ce13c30b93a28cc85098.js} +40 -44
  21. package/dist/{250.bundle.8084960e3318cda37317.js → 544.bundle.3f48123a58d3bdc052f5.js} +39 -44
  22. package/dist/{663.bundle.e3539f14edf9214e07eb.js → 559.bundle.7426bb86db4352f1c401.js} +149 -141
  23. package/dist/{410.bundle.5e16274b1082de6e127e.js → 594.bundle.9eb2863c4d3fbe4120c5.js} +31 -35
  24. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 644.bundle.1e77691d2eeb96a423b0.js} +1852 -8945
  25. package/dist/{82.bundle.ae82f6434056c8d79fec.js → 68.bundle.7ca79597088a0784c4ee.js} +313 -324
  26. package/dist/{342.bundle.e485b92bd6d91bb7cc04.js → 704.bundle.9ecbe7b05ea278ef6ba8.js} +1128 -737
  27. package/dist/{359.bundle.dedb5b782335939bdc52.js → 724.bundle.46d9ce1eb6867cdd81c0.js} +34 -37
  28. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 726.bundle.2bdb443d1b5620d74e6e.js} +512 -879
  29. package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 835.bundle.15aff0b7433bb0dd6d6d.js} +37 -30
  30. package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 862.bundle.d20d6b2d29fd89bf2f83.js} +27 -29
  31. package/dist/{181.bundle.2ddc6f90740895a3949c.js → 889.bundle.d77bbd1805d4f0bd0565.js} +135 -107
  32. package/dist/{181.css → 889.css} +1 -1
  33. package/dist/{281.bundle.e4c37762343dc03e4fa0.js → 905.bundle.53a0daccf13d3e134ab9.js} +29 -31
  34. package/dist/{814.bundle.98e400df965d000d78e6.js → 907.bundle.b1f7dffcc6187de1b7ad.js} +16 -18
  35. package/dist/{417.bundle.af0a207c29b109f84159.js → 931.bundle.d270a1fda9a2836c3cc5.js} +26 -26
  36. package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 939.bundle.84ee0b844023d924a22b.js} +7 -8
  37. package/dist/{12.bundle.75c761bd89ad782675c8.js → 961.bundle.54abd182a494b2e1d8ec.js} +16 -18
  38. package/dist/{776.bundle.08eb381dc3d06708eb0f.js → 963.bundle.8110049ad01d956455a2.js} +1629 -845
  39. package/dist/app.bundle.css +11 -11
  40. package/dist/{app.bundle.eeb94536f34535b1153f.js → app.bundle.f783ca295d5aa9042c31.js} +142266 -61058
  41. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  42. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  43. package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js} +3 -3
  44. package/dist/index.html +1 -1
  45. package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
  46. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
  47. package/dist/polySeg.bundle.cffa671e87c4c9110149.js +252 -0
  48. package/dist/serve.json +12 -0
  49. package/dist/sw.js +1 -1
  50. package/package.json +25 -22
  51. package/dist/202.bundle.d3490836f71e001dd30f.js +0 -6336
  52. package/dist/23.bundle.e008ad788170f2ed5569.js +0 -900
  53. package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
  54. package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
  55. package/dist/75788f12450d4c5ed494.wasm +0 -0
  56. package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
  57. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
  58. /package/dist/{19.css → 155.css} +0 -0
  59. /package/dist/{579.css → 481.css} +0 -0
  60. /package/dist/{221.css → 50.css} +0 -0
  61. /package/dist/{250.css → 544.css} +0 -0
  62. /package/dist/{776.css → 963.css} +0 -0
@@ -1,9 +1,9 @@
1
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[82],{
1
+ "use strict";
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[68],{
2
3
 
3
- /***/ 59185:
4
+ /***/ 76068:
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
 
@@ -11,269 +11,19 @@ __webpack_require__.r(__webpack_exports__);
11
11
  __webpack_require__.d(__webpack_exports__, {
12
12
  "default": () => (/* binding */ longitudinal_src),
13
13
  initToolGroups: () => (/* reexport */ src_initToolGroups),
14
+ moreTools: () => (/* reexport */ src_moreTools),
14
15
  toolbarButtons: () => (/* reexport */ src_toolbarButtons)
15
16
  });
16
17
 
17
- // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
18
- var src = __webpack_require__(71771);
19
- // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
20
- var ui_src = __webpack_require__(71783);
21
- ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.ts
22
- // TODO: torn, can either bake this here; or have to create a whole new button type
23
- // Only ways that you can pass in a custom React component for render :l
24
-
25
-
26
- const {
27
- windowLevelPresets
28
- } = src.defaults;
29
-
30
- /**
31
- *
32
- * @param {*} preset - preset number (from above import)
33
- * @param {*} title
34
- * @param {*} subtitle
35
- */
36
- function _createWwwcPreset(preset, title, subtitle) {
37
- return {
38
- id: preset.toString(),
39
- title,
40
- subtitle,
41
- type: 'action',
42
- commands: [{
43
- commandName: 'setWindowLevel',
44
- commandOptions: {
45
- ...windowLevelPresets[preset]
46
- },
47
- context: 'CORNERSTONE'
48
- }]
49
- };
50
- }
51
- const toolGroupIds = ['default', 'mpr', 'SRToolGroup'];
52
-
53
- /**
54
- * Creates an array of 'setToolActive' commands for the given toolName - one for
55
- * each toolGroupId specified in toolGroupIds.
56
- * @param {string} toolName
57
- * @returns {Array} an array of 'setToolActive' commands
58
- */
59
- function _createSetToolActiveCommands(toolName) {
60
- const temp = toolGroupIds.map(toolGroupId => ({
61
- commandName: 'setToolActive',
62
- commandOptions: {
63
- toolGroupId,
64
- toolName
65
- },
66
- context: 'CORNERSTONE'
67
- }));
68
- return temp;
69
- }
70
- const toolbarButtons = [
71
- // Measurement
72
- {
73
- id: 'MeasurementTools',
74
- type: 'ohif.splitButton',
75
- props: {
76
- groupId: 'MeasurementTools',
77
- isRadio: true,
78
- // ?
79
- // Switch?
80
- primary: src/* ToolbarService */.Ok._createToolButton('Length', 'tool-length', 'Length', [{
81
- commandName: 'setToolActive',
82
- commandOptions: {
83
- toolName: 'Length'
84
- },
85
- context: 'CORNERSTONE'
86
- }, {
87
- commandName: 'setToolActive',
88
- commandOptions: {
89
- toolName: 'SRLength',
90
- toolGroupId: 'SRToolGroup'
91
- },
92
- // we can use the setToolActive command for this from Cornerstone commandsModule
93
- context: 'CORNERSTONE'
94
- }], 'Length'),
95
- secondary: {
96
- icon: 'chevron-down',
97
- label: '',
98
- isActive: true,
99
- tooltip: 'More Measure Tools'
100
- },
101
- items: [src/* ToolbarService */.Ok._createToolButton('Length', 'tool-length', 'Length', [{
102
- commandName: 'setToolActive',
103
- commandOptions: {
104
- toolName: 'Length'
105
- },
106
- context: 'CORNERSTONE'
107
- }, {
108
- commandName: 'setToolActive',
109
- commandOptions: {
110
- toolName: 'SRLength',
111
- toolGroupId: 'SRToolGroup'
112
- },
113
- // we can use the setToolActive command for this from Cornerstone commandsModule
114
- context: 'CORNERSTONE'
115
- }], 'Length Tool'), src/* ToolbarService */.Ok._createToolButton('Bidirectional', 'tool-bidirectional', 'Bidirectional', [{
116
- commandName: 'setToolActive',
117
- commandOptions: {
118
- toolName: 'Bidirectional'
119
- },
120
- context: 'CORNERSTONE'
121
- }, {
122
- commandName: 'setToolActive',
123
- commandOptions: {
124
- toolName: 'SRBidirectional',
125
- toolGroupId: 'SRToolGroup'
126
- },
127
- context: 'CORNERSTONE'
128
- }], 'Bidirectional Tool'), src/* ToolbarService */.Ok._createToolButton('ArrowAnnotate', 'tool-annotate', 'Annotation', [{
129
- commandName: 'setToolActive',
130
- commandOptions: {
131
- toolName: 'ArrowAnnotate'
132
- },
133
- context: 'CORNERSTONE'
134
- }, {
135
- commandName: 'setToolActive',
136
- commandOptions: {
137
- toolName: 'SRArrowAnnotate',
138
- toolGroupId: 'SRToolGroup'
139
- },
140
- context: 'CORNERSTONE'
141
- }], 'Arrow Annotate'), src/* ToolbarService */.Ok._createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
142
- commandName: 'setToolActive',
143
- commandOptions: {
144
- toolName: 'EllipticalROI'
145
- },
146
- context: 'CORNERSTONE'
147
- }, {
148
- commandName: 'setToolActive',
149
- commandOptions: {
150
- toolName: 'SREllipticalROI',
151
- toolGroupId: 'SRToolGroup'
152
- },
153
- context: 'CORNERSTONE'
154
- }], 'Ellipse Tool'), src/* ToolbarService */.Ok._createToolButton('CircleROI', 'tool-circle', 'Circle', [{
155
- commandName: 'setToolActive',
156
- commandOptions: {
157
- toolName: 'CircleROI'
158
- },
159
- context: 'CORNERSTONE'
160
- }, {
161
- commandName: 'setToolActive',
162
- commandOptions: {
163
- toolName: 'SRCircleROI',
164
- toolGroupId: 'SRToolGroup'
165
- },
166
- context: 'CORNERSTONE'
167
- }], 'Circle Tool')]
168
- }
169
- },
170
- // Zoom..
171
- {
172
- id: 'Zoom',
173
- type: 'ohif.radioGroup',
174
- props: {
175
- type: 'tool',
176
- icon: 'tool-zoom',
177
- label: 'Zoom',
178
- commands: _createSetToolActiveCommands('Zoom')
179
- }
180
- },
181
- // Window Level + Presets...
182
- {
183
- id: 'WindowLevel',
184
- type: 'ohif.splitButton',
185
- props: {
186
- groupId: 'WindowLevel',
187
- primary: src/* ToolbarService */.Ok._createToolButton('WindowLevel', 'tool-window-level', 'Window Level', [{
188
- commandName: 'setToolActive',
189
- commandOptions: {
190
- toolName: 'WindowLevel'
191
- },
192
- context: 'CORNERSTONE'
193
- }], 'Window Level'),
194
- secondary: {
195
- icon: 'chevron-down',
196
- label: 'W/L Manual',
197
- isActive: true,
198
- tooltip: 'W/L Presets'
199
- },
200
- isAction: true,
201
- // ?
202
- renderer: ui_src/* WindowLevelMenuItem */.eJ,
203
- items: [_createWwwcPreset(1, 'Soft tissue', '400 / 40'), _createWwwcPreset(2, 'Lung', '1500 / -600'), _createWwwcPreset(3, 'Liver', '150 / 90'), _createWwwcPreset(4, 'Bone', '2500 / 480'), _createWwwcPreset(5, 'Brain', '80 / 40')]
204
- }
205
- },
206
- // Pan...
207
- {
208
- id: 'Pan',
209
- type: 'ohif.radioGroup',
210
- props: {
211
- type: 'tool',
212
- icon: 'tool-move',
213
- label: 'Pan',
214
- commands: _createSetToolActiveCommands('Pan')
215
- }
216
- }, {
217
- id: 'Capture',
218
- type: 'ohif.action',
219
- props: {
220
- icon: 'tool-capture',
221
- label: 'Capture',
222
- type: 'action',
223
- commands: [{
224
- commandName: 'showDownloadViewportModal',
225
- commandOptions: {},
226
- context: 'CORNERSTONE'
227
- }]
228
- }
229
- }, {
230
- id: 'Layout',
231
- type: 'ohif.layoutSelector',
232
- props: {
233
- rows: 3,
234
- columns: 3
235
- }
236
- }, {
237
- id: 'MPR',
238
- type: 'ohif.action',
239
- props: {
240
- type: 'toggle',
241
- icon: 'icon-mpr',
242
- label: 'MPR',
243
- commands: [{
244
- commandName: 'toggleHangingProtocol',
245
- commandOptions: {
246
- protocolId: 'mpr'
247
- },
248
- context: 'DEFAULT'
249
- }]
250
- }
251
- }, {
252
- id: 'Crosshairs',
253
- type: 'ohif.radioGroup',
254
- props: {
255
- type: 'tool',
256
- icon: 'tool-crosshair',
257
- label: 'Crosshairs',
258
- commands: [{
259
- commandName: 'setToolActive',
260
- commandOptions: {
261
- toolName: 'Crosshairs',
262
- toolGroupId: 'mpr'
263
- },
264
- context: 'CORNERSTONE'
265
- }]
266
- }
267
- }
268
- // More...
269
- ];
270
-
271
- /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
18
+ // EXTERNAL MODULE: ../../core/src/index.ts + 66 modules
19
+ var src = __webpack_require__(14283);
20
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
21
+ var i18next = __webpack_require__(92344);
272
22
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/package.json
273
- const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-longitudinal"}');
23
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/mode-longitudinal"}');
274
24
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/id.js
275
25
 
276
- const id = package_namespaceObject.u2;
26
+ const id = package_namespaceObject.UU;
277
27
 
278
28
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/initToolGroups.js
279
29
  function initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, toolGroupId) {
@@ -403,7 +153,6 @@ function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
403
153
  }]
404
154
  // disabled
405
155
  };
406
-
407
156
  const toolGroupId = 'SRToolGroup';
408
157
  toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
409
158
  }
@@ -485,7 +234,6 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
485
234
  // enabled
486
235
  // disabled
487
236
  };
488
-
489
237
  toolGroupService.createToolGroupAndAddTools('mpr', tools);
490
238
  }
491
239
  function initVolume3DToolGroup(extensionManager, toolGroupService) {
@@ -521,8 +269,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
521
269
  initVolume3DToolGroup(extensionManager, toolGroupService);
522
270
  }
523
271
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
524
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
525
- var esm = __webpack_require__(3743);
272
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 382 modules
273
+ var esm = __webpack_require__(39526);
526
274
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/moreTools.ts
527
275
 
528
276
 
@@ -543,7 +291,7 @@ const moreTools = [{
543
291
  isRadio: true,
544
292
  // ?
545
293
  groupId: 'MoreTools',
546
- primary: src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
294
+ primary: src/* ToolbarService */.hx._createActionButton('Reset', 'tool-reset', 'Reset View', [{
547
295
  commandName: 'resetViewport',
548
296
  commandOptions: {},
549
297
  context: 'CORNERSTONE'
@@ -554,37 +302,37 @@ const moreTools = [{
554
302
  isActive: true,
555
303
  tooltip: 'More Tools'
556
304
  },
557
- items: [src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
305
+ items: [src/* ToolbarService */.hx._createActionButton('Reset', 'tool-reset', 'Reset View', [{
558
306
  commandName: 'resetViewport',
559
307
  commandOptions: {},
560
308
  context: 'CORNERSTONE'
561
- }], 'Reset'), src/* ToolbarService */.Ok._createActionButton('rotate-right', 'tool-rotate-right', 'Rotate Right', [{
309
+ }], 'Reset'), src/* ToolbarService */.hx._createActionButton('rotate-right', 'tool-rotate-right', 'Rotate Right', [{
562
310
  commandName: 'rotateViewportCW',
563
311
  commandOptions: {},
564
312
  context: 'CORNERSTONE'
565
- }], 'Rotate +90'), src/* ToolbarService */.Ok._createActionButton('flip-horizontal', 'tool-flip-horizontal', 'Flip Horizontally', [{
313
+ }], 'Rotate +90'), src/* ToolbarService */.hx._createActionButton('flip-horizontal', 'tool-flip-horizontal', 'Flip Horizontally', [{
566
314
  commandName: 'flipViewportHorizontal',
567
315
  commandOptions: {},
568
316
  context: 'CORNERSTONE'
569
- }], 'Flip Horizontal'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
570
- commandName: 'toggleStackImageSync'
317
+ }], 'Flip Horizontal'), src/* ToolbarService */.hx._createToggleButton('ImageSliceSync', 'link', 'Image Slice Sync', [{
318
+ commandName: 'toggleImageSliceSync'
571
319
  }], 'Enable position synchronization on stack viewports', {
572
320
  listeners: {
573
321
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
574
- commandName: 'toggleStackImageSync',
322
+ commandName: 'toggleImageSliceSync',
575
323
  commandOptions: {
576
324
  toggledState: true
577
325
  }
578
326
  }
579
327
  }
580
- }), src/* ToolbarService */.Ok._createToggleButton('ReferenceLines', 'tool-referenceLines',
328
+ }), src/* ToolbarService */.hx._createToggleButton('ReferenceLines', 'tool-referenceLines',
581
329
  // change this with the new icon
582
330
  'Reference Lines', ReferenceLinesCommands, 'Show Reference Lines', {
583
331
  listeners: {
584
332
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: ReferenceLinesCommands,
585
333
  [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesCommands
586
334
  }
587
- }), src/* ToolbarService */.Ok._createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
335
+ }), src/* ToolbarService */.hx._createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
588
336
  commandName: 'setToolActive',
589
337
  commandOptions: {
590
338
  toolName: 'ImageOverlayViewer'
@@ -592,26 +340,26 @@ const moreTools = [{
592
340
  context: 'CORNERSTONE'
593
341
  }], 'Image Overlay', {
594
342
  isActive: true
595
- }), src/* ToolbarService */.Ok._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
343
+ }), src/* ToolbarService */.hx._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
596
344
  commandName: 'setToolActive',
597
345
  commandOptions: {
598
346
  toolName: 'StackScroll'
599
347
  },
600
348
  context: 'CORNERSTONE'
601
- }], 'Stack Scroll'), src/* ToolbarService */.Ok._createActionButton('invert', 'tool-invert', 'Invert', [{
349
+ }], 'Stack Scroll'), src/* ToolbarService */.hx._createActionButton('invert', 'tool-invert', 'Invert', [{
602
350
  commandName: 'invertViewport',
603
351
  commandOptions: {},
604
352
  context: 'CORNERSTONE'
605
- }], 'Invert Colors'), src/* ToolbarService */.Ok._createToolButton('Probe', 'tool-probe', 'Probe', [{
353
+ }], 'Invert Colors'), src/* ToolbarService */.hx._createToolButton('Probe', 'tool-probe', 'Probe', [{
606
354
  commandName: 'setToolActive',
607
355
  commandOptions: {
608
356
  toolName: 'DragProbe'
609
357
  },
610
358
  context: 'CORNERSTONE'
611
- }], 'Probe'), src/* ToolbarService */.Ok._createToggleButton('cine', 'tool-cine', 'Cine', [{
359
+ }], 'Probe'), src/* ToolbarService */.hx._createToggleButton('cine', 'tool-cine', 'Cine', [{
612
360
  commandName: 'toggleCine',
613
361
  context: 'CORNERSTONE'
614
- }], 'Cine'), src/* ToolbarService */.Ok._createToolButton('Angle', 'tool-angle', 'Angle', [{
362
+ }], 'Cine'), src/* ToolbarService */.hx._createToolButton('Angle', 'tool-angle', 'Angle', [{
615
363
  commandName: 'setToolActive',
616
364
  commandOptions: {
617
365
  toolName: 'Angle'
@@ -649,25 +397,25 @@ const moreTools = [{
649
397
  // ],
650
398
  // 'Planar Freehand ROI'
651
399
  // ),
652
- src/* ToolbarService */.Ok._createToolButton('Magnify', 'tool-magnify', 'Magnify', [{
400
+ src/* ToolbarService */.hx._createToolButton('Magnify', 'tool-magnify', 'Magnify', [{
653
401
  commandName: 'setToolActive',
654
402
  commandOptions: {
655
403
  toolName: 'Magnify'
656
404
  },
657
405
  context: 'CORNERSTONE'
658
- }], 'Magnify'), src/* ToolbarService */.Ok._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
406
+ }], 'Magnify'), src/* ToolbarService */.hx._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
659
407
  commandName: 'setToolActive',
660
408
  commandOptions: {
661
409
  toolName: 'RectangleROI'
662
410
  },
663
411
  context: 'CORNERSTONE'
664
- }], 'Rectangle'), src/* ToolbarService */.Ok._createToolButton('CalibrationLine', 'tool-calibration', 'Calibration', [{
412
+ }], 'Rectangle'), src/* ToolbarService */.hx._createToolButton('CalibrationLine', 'tool-calibration', 'Calibration', [{
665
413
  commandName: 'setToolActive',
666
414
  commandOptions: {
667
415
  toolName: 'CalibrationLine'
668
416
  },
669
417
  context: 'CORNERSTONE'
670
- }], 'Calibration Line'), src/* ToolbarService */.Ok._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
418
+ }], 'Calibration Line'), src/* ToolbarService */.hx._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
671
419
  commandName: 'openDICOMTagViewer',
672
420
  commandOptions: {},
673
421
  context: 'DEFAULT'
@@ -695,7 +443,7 @@ const moreToolsMpr = [{
695
443
  isRadio: true,
696
444
  // ?
697
445
  groupId: 'MoreTools',
698
- primary: src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
446
+ primary: src/* ToolbarService */.hx._createActionButton('Reset', 'tool-reset', 'Reset View', [{
699
447
  commandName: 'resetViewport',
700
448
  commandOptions: {},
701
449
  context: 'CORNERSTONE'
@@ -706,29 +454,29 @@ const moreToolsMpr = [{
706
454
  isActive: true,
707
455
  tooltip: 'More Tools'
708
456
  },
709
- items: [src/* ToolbarService */.Ok._createActionButton('Reset', 'tool-reset', 'Reset View', [{
457
+ items: [src/* ToolbarService */.hx._createActionButton('Reset', 'tool-reset', 'Reset View', [{
710
458
  commandName: 'resetViewport',
711
459
  commandOptions: {},
712
460
  context: 'CORNERSTONE'
713
- }], 'Reset'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
714
- commandName: 'toggleStackImageSync'
461
+ }], 'Reset'), src/* ToolbarService */.hx._createToggleButton('ImageSliceSync', 'link', 'Image Slice Sync', [{
462
+ commandName: 'toggleImageSliceSync'
715
463
  }], 'Enable position synchronization on stack viewports', {
716
464
  listeners: {
717
465
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
718
- commandName: 'toggleStackImageSync',
466
+ commandName: 'toggleImageSliceSync',
719
467
  commandOptions: {
720
468
  toggledState: true
721
469
  }
722
470
  }
723
471
  }
724
- }), src/* ToolbarService */.Ok._createToggleButton('ReferenceLines', 'tool-referenceLines',
472
+ }), src/* ToolbarService */.hx._createToggleButton('ReferenceLines', 'tool-referenceLines',
725
473
  // change this with the new icon
726
474
  'Reference Lines', moreToolsMpr_ReferenceLinesCommands, 'Show Reference Lines', {
727
475
  listeners: {
728
476
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: moreToolsMpr_ReferenceLinesCommands,
729
477
  [esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: moreToolsMpr_ReferenceLinesCommands
730
478
  }
731
- }), src/* ToolbarService */.Ok._createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
479
+ }), src/* ToolbarService */.hx._createToggleButton('ImageOverlayViewer', 'toggle-dicom-overlay', 'Image Overlay', [{
732
480
  commandName: 'setToolActive',
733
481
  commandOptions: {
734
482
  toolName: 'ImageOverlayViewer'
@@ -736,26 +484,26 @@ const moreToolsMpr = [{
736
484
  context: 'CORNERSTONE'
737
485
  }], 'Image Overlay', {
738
486
  isActive: true
739
- }), src/* ToolbarService */.Ok._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
487
+ }), src/* ToolbarService */.hx._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
740
488
  commandName: 'setToolActive',
741
489
  commandOptions: {
742
490
  toolName: 'StackScroll'
743
491
  },
744
492
  context: 'CORNERSTONE'
745
- }], 'Stack Scroll'), src/* ToolbarService */.Ok._createActionButton('invert', 'tool-invert', 'Invert', [{
493
+ }], 'Stack Scroll'), src/* ToolbarService */.hx._createActionButton('invert', 'tool-invert', 'Invert', [{
746
494
  commandName: 'invertViewport',
747
495
  commandOptions: {},
748
496
  context: 'CORNERSTONE'
749
- }], 'Invert Colors'), src/* ToolbarService */.Ok._createToolButton('Probe', 'tool-probe', 'Probe', [{
497
+ }], 'Invert Colors'), src/* ToolbarService */.hx._createToolButton('Probe', 'tool-probe', 'Probe', [{
750
498
  commandName: 'setToolActive',
751
499
  commandOptions: {
752
500
  toolName: 'DragProbe'
753
501
  },
754
502
  context: 'CORNERSTONE'
755
- }], 'Probe'), src/* ToolbarService */.Ok._createToggleButton('cine', 'tool-cine', 'Cine', [{
503
+ }], 'Probe'), src/* ToolbarService */.hx._createToggleButton('cine', 'tool-cine', 'Cine', [{
756
504
  commandName: 'toggleCine',
757
505
  context: 'CORNERSTONE'
758
- }], 'Cine'), src/* ToolbarService */.Ok._createToolButton('Angle', 'tool-angle', 'Angle', [{
506
+ }], 'Cine'), src/* ToolbarService */.hx._createToolButton('Angle', 'tool-angle', 'Angle', [{
759
507
  commandName: 'setToolActive',
760
508
  commandOptions: {
761
509
  toolName: 'Angle'
@@ -793,13 +541,13 @@ const moreToolsMpr = [{
793
541
  // ],
794
542
  // 'Planar Freehand ROI'
795
543
  // ),
796
- src/* ToolbarService */.Ok._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
544
+ src/* ToolbarService */.hx._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
797
545
  commandName: 'setToolActive',
798
546
  commandOptions: {
799
547
  toolName: 'RectangleROI'
800
548
  },
801
549
  context: 'CORNERSTONE'
802
- }], 'Rectangle'), src/* ToolbarService */.Ok._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
550
+ }], 'Rectangle'), src/* ToolbarService */.hx._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
803
551
  commandName: 'openDICOMTagViewer',
804
552
  commandOptions: {},
805
553
  context: 'DEFAULT'
@@ -807,6 +555,258 @@ const moreToolsMpr = [{
807
555
  }
808
556
  }];
809
557
  /* harmony default export */ const src_moreToolsMpr = (moreToolsMpr);
558
+ // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
559
+ var ui_src = __webpack_require__(55395);
560
+ ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.ts
561
+ // TODO: torn, can either bake this here; or have to create a whole new button type
562
+ // Only ways that you can pass in a custom React component for render :l
563
+
564
+
565
+ const {
566
+ windowLevelPresets
567
+ } = src.defaults;
568
+
569
+ /**
570
+ *
571
+ * @param {*} preset - preset number (from above import)
572
+ * @param {*} title
573
+ * @param {*} subtitle
574
+ */
575
+ function _createWwwcPreset(preset, title, subtitle) {
576
+ return {
577
+ id: preset.toString(),
578
+ title,
579
+ subtitle,
580
+ type: 'action',
581
+ commands: [{
582
+ commandName: 'setWindowLevel',
583
+ commandOptions: {
584
+ ...windowLevelPresets[preset]
585
+ },
586
+ context: 'CORNERSTONE'
587
+ }]
588
+ };
589
+ }
590
+ const toolGroupIds = ['default', 'mpr', 'SRToolGroup'];
591
+
592
+ /**
593
+ * Creates an array of 'setToolActive' commands for the given toolName - one for
594
+ * each toolGroupId specified in toolGroupIds.
595
+ * @param {string} toolName
596
+ * @returns {Array} an array of 'setToolActive' commands
597
+ */
598
+ function _createSetToolActiveCommands(toolName) {
599
+ const temp = toolGroupIds.map(toolGroupId => ({
600
+ commandName: 'setToolActive',
601
+ commandOptions: {
602
+ toolGroupId,
603
+ toolName
604
+ },
605
+ context: 'CORNERSTONE'
606
+ }));
607
+ return temp;
608
+ }
609
+ const toolbarButtons = [
610
+ // Measurement
611
+ {
612
+ id: 'MeasurementTools',
613
+ type: 'ohif.splitButton',
614
+ props: {
615
+ groupId: 'MeasurementTools',
616
+ isRadio: true,
617
+ // ?
618
+ // Switch?
619
+ primary: src/* ToolbarService */.hx._createToolButton('Length', 'tool-length', 'Length', [{
620
+ commandName: 'setToolActive',
621
+ commandOptions: {
622
+ toolName: 'Length'
623
+ },
624
+ context: 'CORNERSTONE'
625
+ }, {
626
+ commandName: 'setToolActive',
627
+ commandOptions: {
628
+ toolName: 'SRLength',
629
+ toolGroupId: 'SRToolGroup'
630
+ },
631
+ // we can use the setToolActive command for this from Cornerstone commandsModule
632
+ context: 'CORNERSTONE'
633
+ }], 'Length'),
634
+ secondary: {
635
+ icon: 'chevron-down',
636
+ label: '',
637
+ isActive: true,
638
+ tooltip: 'More Measure Tools'
639
+ },
640
+ items: [src/* ToolbarService */.hx._createToolButton('Length', 'tool-length', 'Length', [{
641
+ commandName: 'setToolActive',
642
+ commandOptions: {
643
+ toolName: 'Length'
644
+ },
645
+ context: 'CORNERSTONE'
646
+ }, {
647
+ commandName: 'setToolActive',
648
+ commandOptions: {
649
+ toolName: 'SRLength',
650
+ toolGroupId: 'SRToolGroup'
651
+ },
652
+ // we can use the setToolActive command for this from Cornerstone commandsModule
653
+ context: 'CORNERSTONE'
654
+ }], 'Length Tool'), src/* ToolbarService */.hx._createToolButton('Bidirectional', 'tool-bidirectional', 'Bidirectional', [{
655
+ commandName: 'setToolActive',
656
+ commandOptions: {
657
+ toolName: 'Bidirectional'
658
+ },
659
+ context: 'CORNERSTONE'
660
+ }, {
661
+ commandName: 'setToolActive',
662
+ commandOptions: {
663
+ toolName: 'SRBidirectional',
664
+ toolGroupId: 'SRToolGroup'
665
+ },
666
+ context: 'CORNERSTONE'
667
+ }], 'Bidirectional Tool'), src/* ToolbarService */.hx._createToolButton('ArrowAnnotate', 'tool-annotate', 'Annotation', [{
668
+ commandName: 'setToolActive',
669
+ commandOptions: {
670
+ toolName: 'ArrowAnnotate'
671
+ },
672
+ context: 'CORNERSTONE'
673
+ }, {
674
+ commandName: 'setToolActive',
675
+ commandOptions: {
676
+ toolName: 'SRArrowAnnotate',
677
+ toolGroupId: 'SRToolGroup'
678
+ },
679
+ context: 'CORNERSTONE'
680
+ }], 'Arrow Annotate'), src/* ToolbarService */.hx._createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
681
+ commandName: 'setToolActive',
682
+ commandOptions: {
683
+ toolName: 'EllipticalROI'
684
+ },
685
+ context: 'CORNERSTONE'
686
+ }, {
687
+ commandName: 'setToolActive',
688
+ commandOptions: {
689
+ toolName: 'SREllipticalROI',
690
+ toolGroupId: 'SRToolGroup'
691
+ },
692
+ context: 'CORNERSTONE'
693
+ }], 'Ellipse Tool'), src/* ToolbarService */.hx._createToolButton('CircleROI', 'tool-circle', 'Circle', [{
694
+ commandName: 'setToolActive',
695
+ commandOptions: {
696
+ toolName: 'CircleROI'
697
+ },
698
+ context: 'CORNERSTONE'
699
+ }, {
700
+ commandName: 'setToolActive',
701
+ commandOptions: {
702
+ toolName: 'SRCircleROI',
703
+ toolGroupId: 'SRToolGroup'
704
+ },
705
+ context: 'CORNERSTONE'
706
+ }], 'Circle Tool')]
707
+ }
708
+ },
709
+ // Zoom..
710
+ {
711
+ id: 'Zoom',
712
+ type: 'ohif.radioGroup',
713
+ props: {
714
+ type: 'tool',
715
+ icon: 'tool-zoom',
716
+ label: 'Zoom',
717
+ commands: _createSetToolActiveCommands('Zoom')
718
+ }
719
+ },
720
+ // Window Level + Presets...
721
+ {
722
+ id: 'WindowLevel',
723
+ type: 'ohif.splitButton',
724
+ props: {
725
+ groupId: 'WindowLevel',
726
+ primary: src/* ToolbarService */.hx._createToolButton('WindowLevel', 'tool-window-level', 'Window Level', [{
727
+ commandName: 'setToolActive',
728
+ commandOptions: {
729
+ toolName: 'WindowLevel'
730
+ },
731
+ context: 'CORNERSTONE'
732
+ }], 'Window Level'),
733
+ secondary: {
734
+ icon: 'chevron-down',
735
+ label: 'W/L Manual',
736
+ isActive: true,
737
+ tooltip: 'W/L Presets'
738
+ },
739
+ isAction: true,
740
+ // ?
741
+ renderer: ui_src/* WindowLevelMenuItem */.d4,
742
+ items: [_createWwwcPreset(1, 'Soft tissue', '400 / 40'), _createWwwcPreset(2, 'Lung', '1500 / -600'), _createWwwcPreset(3, 'Liver', '150 / 90'), _createWwwcPreset(4, 'Bone', '2500 / 480'), _createWwwcPreset(5, 'Brain', '80 / 40')]
743
+ }
744
+ },
745
+ // Pan...
746
+ {
747
+ id: 'Pan',
748
+ type: 'ohif.radioGroup',
749
+ props: {
750
+ type: 'tool',
751
+ icon: 'tool-move',
752
+ label: 'Pan',
753
+ commands: _createSetToolActiveCommands('Pan')
754
+ }
755
+ }, {
756
+ id: 'Capture',
757
+ type: 'ohif.action',
758
+ props: {
759
+ icon: 'tool-capture',
760
+ label: 'Capture',
761
+ type: 'action',
762
+ commands: [{
763
+ commandName: 'showDownloadViewportModal',
764
+ commandOptions: {},
765
+ context: 'CORNERSTONE'
766
+ }]
767
+ }
768
+ }, {
769
+ id: 'Layout',
770
+ type: 'ohif.layoutSelector',
771
+ props: {
772
+ rows: 3,
773
+ columns: 3
774
+ }
775
+ }, {
776
+ id: 'MPR',
777
+ type: 'ohif.action',
778
+ props: {
779
+ type: 'toggle',
780
+ icon: 'icon-mpr',
781
+ label: 'MPR',
782
+ commands: [{
783
+ commandName: 'toggleHangingProtocol',
784
+ commandOptions: {
785
+ protocolId: 'mpr'
786
+ },
787
+ context: 'DEFAULT'
788
+ }]
789
+ }
790
+ }, {
791
+ id: 'Crosshairs',
792
+ type: 'ohif.radioGroup',
793
+ props: {
794
+ type: 'tool',
795
+ icon: 'tool-crosshair',
796
+ label: 'Crosshairs',
797
+ commands: [{
798
+ commandName: 'setToolActive',
799
+ commandOptions: {
800
+ toolName: 'Crosshairs',
801
+ toolGroupId: 'mpr'
802
+ },
803
+ context: 'CORNERSTONE'
804
+ }]
805
+ }
806
+ }
807
+ // More...
808
+ ];
809
+ /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
810
810
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/index.js
811
811
 
812
812
 
@@ -815,6 +815,7 @@ const moreToolsMpr = [{
815
815
 
816
816
 
817
817
 
818
+
818
819
  // Allow this mode by excluding non-imaging modalities such as SR, SEG
819
820
  // Also, SM is not a simple imaging modalities, so exclude it.
820
821
  const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG', 'RTSTRUCT'];
@@ -862,26 +863,24 @@ const extensionDependencies = {
862
863
  '@ohif/extension-dicom-pdf': '^3.0.1',
863
864
  '@ohif/extension-dicom-video': '^3.0.1'
864
865
  };
865
- function modeFactory(_ref) {
866
- let {
867
- modeConfiguration
868
- } = _ref;
866
+ function modeFactory({
867
+ modeConfiguration
868
+ }) {
869
869
  let _activatePanelTriggersSubscriptions = [];
870
870
  return {
871
871
  // TODO: We're using this as a route segment
872
872
  // We should not be.
873
873
  id: id,
874
874
  routeName: 'viewer',
875
- displayName: 'Basic Viewer',
875
+ displayName: i18next/* default */.A.t('Modes:Basic Viewer'),
876
876
  /**
877
877
  * Lifecycle hooks
878
878
  */
879
- onModeEnter: _ref2 => {
880
- let {
881
- servicesManager,
882
- extensionManager,
883
- commandsManager
884
- } = _ref2;
879
+ onModeEnter: ({
880
+ servicesManager,
881
+ extensionManager,
882
+ commandsManager
883
+ }) => {
885
884
  const {
886
885
  measurementService,
887
886
  toolbarService,
@@ -950,11 +949,9 @@ function modeFactory(_ref) {
950
949
  // ]),
951
950
  // ];
952
951
  },
953
-
954
- onModeExit: _ref3 => {
955
- let {
956
- servicesManager
957
- } = _ref3;
952
+ onModeExit: ({
953
+ servicesManager
954
+ }) => {
958
955
  const {
959
956
  toolGroupService,
960
957
  syncGroupService,
@@ -973,10 +970,9 @@ function modeFactory(_ref) {
973
970
  study: [],
974
971
  series: []
975
972
  },
976
- isValidMode: function (_ref4) {
977
- let {
978
- modalities
979
- } = _ref4;
973
+ isValidMode: function ({
974
+ modalities
975
+ }) {
980
976
  const modalities_list = modalities.split('\\');
981
977
 
982
978
  // Exclude non-image modalities
@@ -1025,7 +1021,7 @@ function modeFactory(_ref) {
1025
1021
  // general handler needs to come last. For this case, the dicomvideo must
1026
1022
  // come first to remove video transfer syntax before ohif uses images
1027
1023
  sopClassHandlers: [dicomvideo.sopClassHandler, dicomSeg.sopClassHandler, ohif.sopClassHandler, dicompdf.sopClassHandler, dicomsr.sopClassHandler, dicomRT.sopClassHandler],
1028
- hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings],
1024
+ hotkeys: [...src/* hotkeys */.ot.defaults.hotkeyBindings],
1029
1025
  ...modeConfiguration
1030
1026
  };
1031
1027
  }
@@ -1037,13 +1033,6 @@ const mode = {
1037
1033
  /* harmony default export */ const longitudinal_src = (mode);
1038
1034
 
1039
1035
 
1040
- /***/ }),
1041
-
1042
- /***/ 78753:
1043
- /***/ (() => {
1044
-
1045
- /* (ignored) */
1046
-
1047
1036
  /***/ })
1048
1037
 
1049
1038
  }]);