@ohif/app 3.8.0-beta.2 → 3.8.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{99.bundle.162517ee32cfe72a492e.js → 126.bundle.ecc43640cdea0799d233.js} +199 -137
- package/dist/{181.bundle.2ddc6f90740895a3949c.js → 181.bundle.bce8ecb8af857b2513df.js} +6 -6
- package/dist/{19.bundle.b3e9246d53aa79ae7960.js → 19.bundle.83bb9e609a5341b2c539.js} +7 -7
- package/dist/{221.bundle.26e8c46147d22ac7db87.js → 221.bundle.85989130912bdd3e4786.js} +10 -10
- package/dist/{743.bundle.489f7df3a089d4d374e1.js → 231.bundle.8aad229e39e23731d6c1.js} +18205 -17189
- package/dist/{236.bundle.2a2baeb75c8d28cc00bb.js → 236.bundle.07aab629b6fae960fd8b.js} +3 -3
- package/dist/{250.bundle.8084960e3318cda37317.js → 250.bundle.3f9fbb8ea16d267d6405.js} +6 -6
- package/dist/{359.bundle.161e1d8b66e9040c25ed.js → 359.bundle.51a3b9589ec6df17ceb3.js} +2 -2
- package/dist/{410.bundle.18de66c1ed27406c254f.js → 410.bundle.02218cd4a0d6112a31c1.js} +2 -2
- package/dist/{342.bundle.c11bb4c95bfb7fb0cfda.js → 43.bundle.b4a1abbd1256e58007eb.js} +131 -53
- package/dist/{451.bundle.9fd36f52ff69594f0669.js → 451.bundle.57c21db5d003c75e9d61.js} +2 -2
- package/dist/{471.bundle.b3d77b83b1593c09a504.js → 471.bundle.49c8d281adbae4a2c4df.js} +2 -2
- package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 485.bundle.8667a696ac2eaf99e4fa.js} +9 -98
- package/dist/{370.bundle.e6179cf74d133ce903f9.js → 563.bundle.cd25976497ad15a91e75.js} +320 -179
- package/dist/{82.bundle.48e08e39193f3f74377d.js → 575.bundle.8933c681f870a88af641.js} +166 -59
- package/dist/{613.bundle.9b005bbf039de90b69ee.js → 613.bundle.3239437a99b4a8cb954c.js} +7 -3
- package/dist/{663.bundle.e23c4e894c0792804c6f.js → 663.bundle.12656b0d6714c8f86736.js} +13 -11
- package/dist/{788.bundle.c3eec6c3ceea01af04b0.js → 788.bundle.0f9ae3c58f0f147f1fb9.js} +6 -6
- package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 82.bundle.122d1b58bc3e22439dd9.js} +12007 -3800
- package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 822.bundle.4f0424bd1dc0308bb489.js} +3 -3
- package/dist/{886.bundle.4b3a7f2079d085fdbcb3.js → 886.bundle.c8dd3ecc42a4253de278.js} +2 -2
- package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 933.bundle.6184b84edf14c687b936.js} +29 -10
- package/dist/{app.bundle.e6a19e792f9e31bb385a.js → app.bundle.82dcae1eee3b35631dd0.js} +11801 -11307
- package/dist/app.bundle.css +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +19 -19
- /package/dist/{12.bundle.7d9eec7fe48bf64d27fc.js → 12.bundle.1b0367478839ed9be1a7.js} +0 -0
- /package/dist/{202.bundle.d3490836f71e001dd30f.js → 202.bundle.ec714227032b22d4fa24.js} +0 -0
- /package/dist/{281.bundle.7accd3c1ccfd8625d3b6.js → 281.bundle.94ff32614db4a86841b5.js} +0 -0
- /package/dist/{506.bundle.d47786b157f68022ef80.js → 506.bundle.738a7d987830d0e9a157.js} +0 -0
- /package/dist/{82.css → 575.css} +0 -0
- /package/dist/{687.bundle.7dadbdd458571591c220.js → 687.bundle.626b5a936b1111eaa753.js} +0 -0
- /package/dist/{814.bundle.52c2b553bac85767a145.js → 814.bundle.aa347b0ce9d2ab9a055d.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(self["webpackChunk"] = self["webpackChunk"] || []).push([[
|
|
1
|
+
(self["webpackChunk"] = self["webpackChunk"] || []).push([[563],{
|
|
2
2
|
|
|
3
|
-
/***/
|
|
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 +
|
|
20
|
-
var ui_src = __webpack_require__(
|
|
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
|
-
|
|
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(
|
|
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
|