@ohif/app 3.8.0-beta.64 → 3.8.0-beta.65
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/{121.bundle.5399d807995157d368b7.js → 121.bundle.fda405f29003c308ce09.js} +2 -2
- package/dist/{155.bundle.55fa02bfc411cc91e261.js → 155.bundle.a57744809d0f46030ee0.js} +4 -4
- package/dist/{270.bundle.58c74e58ad67b5069718.js → 270.bundle.16ac8114c5c4ce006f4a.js} +2 -2
- package/dist/{295.bundle.c0a29ff64d86f707fc20.js → 295.bundle.57700cd41fd87e1521b4.js} +2 -2
- package/dist/{339.bundle.e31c81c7179d3d24f3dd.js → 339.bundle.57dac3644803cefe3e3d.js} +2 -2
- package/dist/{41.bundle.0696b28613c7d47833c9.js → 41.bundle.58b85dd990fb6fac615e.js} +18 -22
- package/dist/{448.bundle.e856d2b2bd979c7d9ac0.js → 448.bundle.d195aba3aef25ec286d1.js} +60 -20
- package/dist/{530.bundle.f00fd953dcd9d0afd10b.js → 530.bundle.72d9812f117036615a38.js} +1 -1
- package/dist/{544.bundle.adfe5764f59b5fe0eba7.js → 544.bundle.c3009e245ceb1554c70a.js} +2 -2
- package/dist/{594.bundle.924cdc10e7435cf3e199.js → 594.bundle.14b122ab995e4b13e652.js} +3 -3
- package/dist/{638.bundle.62f8f8ada74bd900abfc.js → 638.bundle.a63003e18bed65f227bb.js} +3 -3
- package/dist/{699.bundle.b3b25017819be681ef3d.js → 699.bundle.efc67171e6d212f25a24.js} +172 -97
- package/dist/{701.bundle.b7ebc1629fc121e13c58.js → 701.bundle.bc40f1a7d5d6b1a4dd38.js} +37 -8
- package/dist/{724.bundle.cd011bc1838a2bde1d66.js → 724.bundle.3945f8d2e9c8b0b23628.js} +2 -17
- package/dist/{862.bundle.d2e78b70286b59569e83.js → 862.bundle.d787dac01f4567560a42.js} +1 -1
- package/dist/{889.bundle.2aefa0a3eb114db0de3f.js → 889.bundle.ffc727aa6d1a74f2138d.js} +2 -2
- package/dist/{90.bundle.7a9258532111121b5ee3.js → 90.bundle.abde898ebd3c74f521f9.js} +130 -29
- package/dist/{app.bundle.039c4dc99821370f330d.js → app.bundle.0c24b249dc8b631916ef.js} +400 -64
- package/dist/app.bundle.css +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +17 -17
- /package/dist/{164.bundle.0cfa2edabf8ef222f3ea.js → 164.bundle.ff12d6019a627cda2a6c.js} +0 -0
- /package/dist/{188.bundle.ec979013d89d90831c58.js → 188.bundle.c448aed48915741e9f97.js} +0 -0
- /package/dist/{559.bundle.4f55f5df04c418b2854e.js → 559.bundle.05bd51e94422a2cab116.js} +0 -0
- /package/dist/{905.bundle.d4bdcbd451de59b2191b.js → 905.bundle.6b5b42b2403e4676bb3a.js} +0 -0
- /package/dist/{907.bundle.ca236b83967a8459b778.js → 907.bundle.fbd5768fa5b53f9d3f86.js} +0 -0
- /package/dist/{961.bundle.a5541d8090cb8b22f7e6.js → 961.bundle.8bb5a713fc5a3817c6a6.js} +0 -0
|
@@ -20,14 +20,21 @@ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/mode-segme
|
|
|
20
20
|
|
|
21
21
|
const id = package_namespaceObject.UU;
|
|
22
22
|
|
|
23
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
24
|
-
var ui_src = __webpack_require__(
|
|
23
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
24
|
+
var ui_src = __webpack_require__(58046);
|
|
25
25
|
;// CONCATENATED MODULE: ../../../modes/segmentation/src/toolbarButtons.ts
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
const {
|
|
29
29
|
windowLevelPresets
|
|
30
30
|
} = src.defaults;
|
|
31
|
+
const {
|
|
32
|
+
createButton
|
|
33
|
+
} = src.ToolbarService;
|
|
34
|
+
const ReferenceLinesListeners = [{
|
|
35
|
+
commandName: 'setSourceViewportForReferenceLinesTool',
|
|
36
|
+
context: 'CORNERSTONE'
|
|
37
|
+
}];
|
|
31
38
|
function _createWwwcPreset(preset, title, subtitle) {
|
|
32
39
|
return {
|
|
33
40
|
id: preset.toString(),
|
|
@@ -42,23 +49,19 @@ function _createWwwcPreset(preset, title, subtitle) {
|
|
|
42
49
|
}]
|
|
43
50
|
};
|
|
44
51
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
context: 'CORNERSTONE'
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
52
|
+
const setToolActiveToolbar = {
|
|
53
|
+
commandName: 'setToolActiveToolbar',
|
|
54
|
+
commandOptions: {
|
|
55
|
+
toolGroupIds: ['default', 'mpr', 'SRToolGroup']
|
|
56
|
+
}
|
|
57
|
+
};
|
|
55
58
|
const toolbarButtons = [{
|
|
56
59
|
id: 'Zoom',
|
|
57
60
|
uiType: 'ohif.radioGroup',
|
|
58
61
|
props: {
|
|
59
62
|
icon: 'tool-zoom',
|
|
60
63
|
label: 'Zoom',
|
|
61
|
-
commands:
|
|
64
|
+
commands: setToolActiveToolbar,
|
|
62
65
|
evaluate: 'evaluate.cornerstoneTool'
|
|
63
66
|
}
|
|
64
67
|
}, {
|
|
@@ -66,12 +69,12 @@ const toolbarButtons = [{
|
|
|
66
69
|
uiType: 'ohif.splitButton',
|
|
67
70
|
props: {
|
|
68
71
|
groupId: 'WindowLevel',
|
|
69
|
-
primary:
|
|
72
|
+
primary: createButton({
|
|
70
73
|
id: 'WindowLevel',
|
|
71
74
|
icon: 'tool-window-level',
|
|
72
75
|
label: 'Window Level',
|
|
73
76
|
tooltip: 'Window Level',
|
|
74
|
-
commands:
|
|
77
|
+
commands: setToolActiveToolbar,
|
|
75
78
|
evaluate: 'evaluate.cornerstoneTool'
|
|
76
79
|
}),
|
|
77
80
|
secondary: {
|
|
@@ -87,7 +90,17 @@ const toolbarButtons = [{
|
|
|
87
90
|
props: {
|
|
88
91
|
icon: 'tool-move',
|
|
89
92
|
label: 'Pan',
|
|
90
|
-
commands:
|
|
93
|
+
commands: setToolActiveToolbar,
|
|
94
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
95
|
+
}
|
|
96
|
+
}, {
|
|
97
|
+
id: 'TrackballRotate',
|
|
98
|
+
uiType: 'ohif.radioGroup',
|
|
99
|
+
props: {
|
|
100
|
+
type: 'tool',
|
|
101
|
+
icon: 'tool-3d-rotate',
|
|
102
|
+
label: '3D Rotate',
|
|
103
|
+
commands: setToolActiveToolbar,
|
|
91
104
|
evaluate: 'evaluate.cornerstoneTool'
|
|
92
105
|
}
|
|
93
106
|
}, {
|
|
@@ -96,10 +109,7 @@ const toolbarButtons = [{
|
|
|
96
109
|
props: {
|
|
97
110
|
icon: 'tool-capture',
|
|
98
111
|
label: 'Capture',
|
|
99
|
-
commands:
|
|
100
|
-
commandName: 'showDownloadViewportModal',
|
|
101
|
-
context: 'CORNERSTONE'
|
|
102
|
-
}],
|
|
112
|
+
commands: 'showDownloadViewportModal',
|
|
103
113
|
evaluate: 'evaluate.action'
|
|
104
114
|
}
|
|
105
115
|
}, {
|
|
@@ -107,26 +117,9 @@ const toolbarButtons = [{
|
|
|
107
117
|
uiType: 'ohif.layoutSelector',
|
|
108
118
|
props: {
|
|
109
119
|
rows: 3,
|
|
110
|
-
columns:
|
|
120
|
+
columns: 4,
|
|
111
121
|
evaluate: 'evaluate.action',
|
|
112
|
-
commands:
|
|
113
|
-
commandName: 'setViewportGridLayout'
|
|
114
|
-
}]
|
|
115
|
-
}
|
|
116
|
-
}, {
|
|
117
|
-
id: 'MPR',
|
|
118
|
-
uiType: 'ohif.radioGroup',
|
|
119
|
-
props: {
|
|
120
|
-
icon: 'icon-mpr',
|
|
121
|
-
label: 'MPR',
|
|
122
|
-
commands: [{
|
|
123
|
-
commandName: 'toggleHangingProtocol',
|
|
124
|
-
commandOptions: {
|
|
125
|
-
protocolId: 'mpr'
|
|
126
|
-
},
|
|
127
|
-
context: 'DEFAULT'
|
|
128
|
-
}],
|
|
129
|
-
evaluate: 'evaluate.mpr'
|
|
122
|
+
commands: 'setViewportGridLayout'
|
|
130
123
|
}
|
|
131
124
|
}, {
|
|
132
125
|
id: 'Crosshairs',
|
|
@@ -134,7 +127,12 @@ const toolbarButtons = [{
|
|
|
134
127
|
props: {
|
|
135
128
|
icon: 'tool-crosshair',
|
|
136
129
|
label: 'Crosshairs',
|
|
137
|
-
commands:
|
|
130
|
+
commands: {
|
|
131
|
+
commandName: 'setToolActiveToolbar',
|
|
132
|
+
commandOptions: {
|
|
133
|
+
toolGroupIds: ['mpr']
|
|
134
|
+
}
|
|
135
|
+
},
|
|
138
136
|
evaluate: 'evaluate.cornerstoneTool'
|
|
139
137
|
}
|
|
140
138
|
}, {
|
|
@@ -143,91 +141,138 @@ const toolbarButtons = [{
|
|
|
143
141
|
props: {
|
|
144
142
|
groupId: 'MoreTools',
|
|
145
143
|
evaluate: 'evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList',
|
|
146
|
-
primary:
|
|
144
|
+
primary: createButton({
|
|
147
145
|
id: 'Reset',
|
|
148
146
|
icon: 'tool-reset',
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
commands:
|
|
152
|
-
commandName: 'resetViewport',
|
|
153
|
-
context: 'CORNERSTONE'
|
|
154
|
-
}],
|
|
147
|
+
tooltip: 'Reset View',
|
|
148
|
+
label: 'Reset',
|
|
149
|
+
commands: 'resetViewport',
|
|
155
150
|
evaluate: 'evaluate.action'
|
|
156
151
|
}),
|
|
157
152
|
secondary: {
|
|
158
153
|
icon: 'chevron-down',
|
|
154
|
+
label: '',
|
|
159
155
|
tooltip: 'More Tools'
|
|
160
156
|
},
|
|
161
|
-
items: [
|
|
162
|
-
id: '
|
|
157
|
+
items: [createButton({
|
|
158
|
+
id: 'Reset',
|
|
159
|
+
icon: 'tool-reset',
|
|
160
|
+
label: 'Reset View',
|
|
161
|
+
tooltip: 'Reset View',
|
|
162
|
+
commands: 'resetViewport',
|
|
163
|
+
evaluate: 'evaluate.action'
|
|
164
|
+
}), createButton({
|
|
165
|
+
id: 'rotate-right',
|
|
163
166
|
icon: 'tool-rotate-right',
|
|
164
167
|
label: 'Rotate Right',
|
|
165
168
|
tooltip: 'Rotate +90',
|
|
166
|
-
commands:
|
|
167
|
-
commandName: 'rotateViewportCW',
|
|
168
|
-
context: 'CORNERSTONE'
|
|
169
|
-
}],
|
|
169
|
+
commands: 'rotateViewportCW',
|
|
170
170
|
evaluate: 'evaluate.action'
|
|
171
|
-
}),
|
|
172
|
-
id: '
|
|
171
|
+
}), createButton({
|
|
172
|
+
id: 'flipHorizontal',
|
|
173
173
|
icon: 'tool-flip-horizontal',
|
|
174
|
-
label: 'Flip
|
|
175
|
-
tooltip: 'Flip
|
|
176
|
-
commands:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
174
|
+
label: 'Flip Horizontal',
|
|
175
|
+
tooltip: 'Flip Horizontally',
|
|
176
|
+
commands: 'flipViewportHorizontal',
|
|
177
|
+
evaluate: ['evaluate.viewportProperties.toggle', 'evaluate.not3D']
|
|
178
|
+
}), createButton({
|
|
179
|
+
id: 'ReferenceLines',
|
|
180
|
+
icon: 'tool-referenceLines',
|
|
181
|
+
label: 'Reference Lines',
|
|
182
|
+
tooltip: 'Show Reference Lines',
|
|
183
|
+
commands: {
|
|
184
|
+
commandName: 'setToolEnabled',
|
|
185
|
+
commandOptions: {
|
|
186
|
+
toolName: 'ReferenceLines',
|
|
187
|
+
toggle: true // Toggle the tool on/off upon click
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
listeners: {
|
|
191
|
+
[src/* ViewportGridService */.sI.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesListeners,
|
|
192
|
+
[src/* ViewportGridService */.sI.EVENTS.VIEWPORTS_READY]: ReferenceLinesListeners
|
|
193
|
+
},
|
|
194
|
+
evaluate: 'evaluate.cornerstoneTool.toggle'
|
|
195
|
+
}), createButton({
|
|
196
|
+
id: 'ImageOverlay',
|
|
197
|
+
icon: 'toggle-dicom-overlay',
|
|
198
|
+
label: 'Image Overlay',
|
|
199
|
+
tooltip: 'Toggle Image Overlay',
|
|
200
|
+
commands: {
|
|
201
|
+
commandName: 'setToolEnabled',
|
|
202
|
+
commandOptions: {
|
|
203
|
+
toolName: 'ImageOverlayViewer',
|
|
204
|
+
toggle: true // Toggle the tool on/off upon click
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
evaluate: 'evaluate.cornerstoneTool.toggle'
|
|
208
|
+
}), createButton({
|
|
182
209
|
id: 'StackScroll',
|
|
183
210
|
icon: 'tool-stack-scroll',
|
|
184
211
|
label: 'Stack Scroll',
|
|
185
212
|
tooltip: 'Stack Scroll',
|
|
186
|
-
commands:
|
|
187
|
-
evaluate: 'evaluate.cornerstoneTool'
|
|
188
|
-
}), src.ToolbarService.createButton({
|
|
189
|
-
id: 'Magnify',
|
|
190
|
-
icon: 'tool-magnify',
|
|
191
|
-
label: 'Magnify',
|
|
192
|
-
tooltip: 'Magnify',
|
|
193
|
-
commands: _createSetToolActiveCommands('Magnify'),
|
|
213
|
+
commands: setToolActiveToolbar,
|
|
194
214
|
evaluate: 'evaluate.cornerstoneTool'
|
|
195
|
-
}),
|
|
196
|
-
id: '
|
|
215
|
+
}), createButton({
|
|
216
|
+
id: 'invert',
|
|
197
217
|
icon: 'tool-invert',
|
|
198
218
|
label: 'Invert',
|
|
199
219
|
tooltip: 'Invert Colors',
|
|
200
|
-
commands:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
220
|
+
commands: 'invertViewport',
|
|
221
|
+
evaluate: 'evaluate.viewportProperties.toggle'
|
|
222
|
+
}), createButton({
|
|
223
|
+
id: 'Probe',
|
|
224
|
+
icon: 'tool-probe',
|
|
225
|
+
label: 'Probe',
|
|
226
|
+
tooltip: 'Probe',
|
|
227
|
+
commands: setToolActiveToolbar,
|
|
228
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
229
|
+
}), createButton({
|
|
206
230
|
id: 'Cine',
|
|
207
231
|
icon: 'tool-cine',
|
|
208
232
|
label: 'Cine',
|
|
209
233
|
tooltip: 'Cine',
|
|
210
|
-
commands:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
234
|
+
commands: 'toggleCine',
|
|
235
|
+
evaluate: ['evaluate.cine', 'evaluate.not3D']
|
|
236
|
+
}), createButton({
|
|
237
|
+
id: 'Angle',
|
|
238
|
+
icon: 'tool-angle',
|
|
239
|
+
label: 'Angle',
|
|
240
|
+
tooltip: 'Angle',
|
|
241
|
+
commands: setToolActiveToolbar,
|
|
242
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
243
|
+
}), createButton({
|
|
244
|
+
id: 'Magnify',
|
|
245
|
+
icon: 'tool-magnify',
|
|
246
|
+
label: 'Magnify',
|
|
247
|
+
tooltip: 'Magnify',
|
|
248
|
+
commands: setToolActiveToolbar,
|
|
249
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
250
|
+
}), createButton({
|
|
251
|
+
id: 'RectangleROI',
|
|
252
|
+
icon: 'tool-rectangle',
|
|
253
|
+
label: 'Rectangle',
|
|
254
|
+
tooltip: 'Rectangle',
|
|
255
|
+
commands: setToolActiveToolbar,
|
|
256
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
257
|
+
}), createButton({
|
|
258
|
+
id: 'CalibrationLine',
|
|
259
|
+
icon: 'tool-calibration',
|
|
260
|
+
label: 'Calibration',
|
|
261
|
+
tooltip: 'Calibration Line',
|
|
262
|
+
commands: setToolActiveToolbar,
|
|
263
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
264
|
+
}), createButton({
|
|
265
|
+
id: 'TagBrowser',
|
|
217
266
|
icon: 'list-bullets',
|
|
218
267
|
label: 'Dicom Tag Browser',
|
|
219
268
|
tooltip: 'Dicom Tag Browser',
|
|
220
|
-
commands:
|
|
221
|
-
commandName: 'openDICOMTagViewer',
|
|
222
|
-
context: 'DEFAULT'
|
|
223
|
-
}],
|
|
224
|
-
evaluate: 'evaluate.action'
|
|
269
|
+
commands: 'openDICOMTagViewer'
|
|
225
270
|
})]
|
|
226
271
|
}
|
|
227
272
|
}];
|
|
228
273
|
/* harmony default export */ const src_toolbarButtons = (toolbarButtons);
|
|
229
274
|
;// CONCATENATED MODULE: ../../../modes/segmentation/src/segmentationButtons.ts
|
|
230
|
-
function
|
|
275
|
+
function _createSetToolActiveCommands(toolName) {
|
|
231
276
|
return [{
|
|
232
277
|
commandName: 'setToolActive',
|
|
233
278
|
commandOptions: {
|
|
@@ -250,7 +295,7 @@ const segmentationButtons_toolbarButtons = [{
|
|
|
250
295
|
toolNames: ['CircularBrush', 'SphereBrush']
|
|
251
296
|
}
|
|
252
297
|
},
|
|
253
|
-
commands:
|
|
298
|
+
commands: _createSetToolActiveCommands('CircularBrush'),
|
|
254
299
|
options: [{
|
|
255
300
|
name: 'Radius (mm)',
|
|
256
301
|
id: 'brush-radius',
|
|
@@ -289,7 +334,7 @@ const segmentationButtons_toolbarButtons = [{
|
|
|
289
334
|
toolNames: ['CircularEraser', 'SphereEraser']
|
|
290
335
|
}
|
|
291
336
|
},
|
|
292
|
-
commands:
|
|
337
|
+
commands: _createSetToolActiveCommands('CircularEraser'),
|
|
293
338
|
options: [{
|
|
294
339
|
name: 'Radius (mm)',
|
|
295
340
|
id: 'eraser-radius',
|
|
@@ -328,7 +373,7 @@ const segmentationButtons_toolbarButtons = [{
|
|
|
328
373
|
toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
|
|
329
374
|
}
|
|
330
375
|
},
|
|
331
|
-
commands:
|
|
376
|
+
commands: _createSetToolActiveCommands('ThresholdCircularBrush'),
|
|
332
377
|
options: [{
|
|
333
378
|
name: 'Radius (mm)',
|
|
334
379
|
id: 'threshold-radius',
|
|
@@ -403,7 +448,7 @@ const segmentationButtons_toolbarButtons = [{
|
|
|
403
448
|
}
|
|
404
449
|
},
|
|
405
450
|
icon: 'icon-tool-shape',
|
|
406
|
-
commands:
|
|
451
|
+
commands: _createSetToolActiveCommands('CircleScissor'),
|
|
407
452
|
options: [{
|
|
408
453
|
name: 'Shape',
|
|
409
454
|
type: 'radio',
|
|
@@ -518,6 +563,7 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
518
563
|
toolName: utilityModule.exports.toolNames.Crosshairs,
|
|
519
564
|
configuration: {
|
|
520
565
|
viewportIndicators: false,
|
|
566
|
+
disableOnPassive: true,
|
|
521
567
|
autoPan: {
|
|
522
568
|
enabled: false,
|
|
523
569
|
panSize: 10
|
|
@@ -528,9 +574,36 @@ function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
|
528
574
|
});
|
|
529
575
|
toolGroupService.createToolGroupAndAddTools('mpr', tools);
|
|
530
576
|
}
|
|
577
|
+
function initVolume3DToolGroup(extensionManager, toolGroupService) {
|
|
578
|
+
const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
|
|
579
|
+
const {
|
|
580
|
+
toolNames,
|
|
581
|
+
Enums
|
|
582
|
+
} = utilityModule.exports;
|
|
583
|
+
const tools = {
|
|
584
|
+
active: [{
|
|
585
|
+
toolName: toolNames.TrackballRotateTool,
|
|
586
|
+
bindings: [{
|
|
587
|
+
mouseButton: Enums.MouseBindings.Primary
|
|
588
|
+
}]
|
|
589
|
+
}, {
|
|
590
|
+
toolName: toolNames.Zoom,
|
|
591
|
+
bindings: [{
|
|
592
|
+
mouseButton: Enums.MouseBindings.Secondary
|
|
593
|
+
}]
|
|
594
|
+
}, {
|
|
595
|
+
toolName: toolNames.Pan,
|
|
596
|
+
bindings: [{
|
|
597
|
+
mouseButton: Enums.MouseBindings.Auxiliary
|
|
598
|
+
}]
|
|
599
|
+
}]
|
|
600
|
+
};
|
|
601
|
+
toolGroupService.createToolGroupAndAddTools('volume3d', tools);
|
|
602
|
+
}
|
|
531
603
|
function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
532
604
|
initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, 'default');
|
|
533
605
|
initMPRToolGroup(extensionManager, toolGroupService, commandsManager);
|
|
606
|
+
initVolume3DToolGroup(extensionManager, toolGroupService);
|
|
534
607
|
}
|
|
535
608
|
/* harmony default export */ const src_initToolGroups = (initToolGroups);
|
|
536
609
|
;// CONCATENATED MODULE: ../../../modes/segmentation/src/index.tsx
|
|
@@ -539,6 +612,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
|
539
612
|
|
|
540
613
|
|
|
541
614
|
|
|
615
|
+
const DEFAULT_TOOL_GROUP_ID = 'default';
|
|
616
|
+
const VOLUME3D_TOOL_GROUP_ID = 'volume3d';
|
|
542
617
|
const ohif = {
|
|
543
618
|
layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
|
|
544
619
|
sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
|
|
@@ -600,7 +675,7 @@ function modeFactory({
|
|
|
600
675
|
src_initToolGroups(extensionManager, toolGroupService, commandsManager);
|
|
601
676
|
toolbarService.addButtons(src_toolbarButtons);
|
|
602
677
|
toolbarService.addButtons(segmentationButtons);
|
|
603
|
-
toolbarService.createButtonSection('primary', ['Pan', '
|
|
678
|
+
toolbarService.createButtonSection('primary', ['WindowLevel', 'Pan', 'Zoom', 'TrackballRotate', 'Capture', 'Layout', 'Crosshairs', 'MoreTools']);
|
|
604
679
|
toolbarService.createButtonSection('segmentationToolbox', ['BrushTools', 'Shapes']);
|
|
605
680
|
},
|
|
606
681
|
onModeExit: ({
|
|
@@ -119,8 +119,8 @@ function destroy() {
|
|
|
119
119
|
}
|
|
120
120
|
webWorkers.length = 0;
|
|
121
121
|
}
|
|
122
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
123
|
-
var ui_src = __webpack_require__(
|
|
122
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
123
|
+
var ui_src = __webpack_require__(58046);
|
|
124
124
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/utils/callInputDialog.tsx
|
|
125
125
|
|
|
126
126
|
|
|
@@ -5189,6 +5189,9 @@ function commandsModule({
|
|
|
5189
5189
|
if (!toolGroup) {
|
|
5190
5190
|
return;
|
|
5191
5191
|
}
|
|
5192
|
+
if (!toolGroup.hasTool(toolName)) {
|
|
5193
|
+
return;
|
|
5194
|
+
}
|
|
5192
5195
|
const activeToolName = toolGroup.getActivePrimaryMouseButtonTool();
|
|
5193
5196
|
if (activeToolName) {
|
|
5194
5197
|
const activeToolOptions = toolGroup.getToolConfiguration(activeToolName);
|
|
@@ -5702,7 +5705,9 @@ function commandsModule({
|
|
|
5702
5705
|
const fourUp = {
|
|
5703
5706
|
id: 'fourUp',
|
|
5704
5707
|
locked: true,
|
|
5705
|
-
name: '
|
|
5708
|
+
name: '3D four up',
|
|
5709
|
+
icon: 'layout-advanced-3d-four-up',
|
|
5710
|
+
isPreset: true,
|
|
5706
5711
|
createdDate: '2023-03-15T10:29:44.894Z',
|
|
5707
5712
|
modifiedDate: '2023-03-15T10:29:44.894Z',
|
|
5708
5713
|
availableTo: {},
|
|
@@ -5810,7 +5815,9 @@ const fourUp = {
|
|
|
5810
5815
|
const main3D = {
|
|
5811
5816
|
id: 'main3D',
|
|
5812
5817
|
locked: true,
|
|
5813
|
-
name: '
|
|
5818
|
+
name: '3D main',
|
|
5819
|
+
icon: 'layout-advanced-3d-main',
|
|
5820
|
+
isPreset: true,
|
|
5814
5821
|
createdDate: '2023-03-15T10:29:44.894Z',
|
|
5815
5822
|
modifiedDate: '2023-03-15T10:29:44.894Z',
|
|
5816
5823
|
availableTo: {},
|
|
@@ -5938,8 +5945,10 @@ const main3D = {
|
|
|
5938
5945
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/hps/mpr.ts
|
|
5939
5946
|
const mpr = {
|
|
5940
5947
|
id: 'mpr',
|
|
5941
|
-
name: '
|
|
5948
|
+
name: 'MPR',
|
|
5942
5949
|
locked: true,
|
|
5950
|
+
icon: 'layout-advanced-mpr',
|
|
5951
|
+
isPreset: true,
|
|
5943
5952
|
createdDate: '2021-02-23',
|
|
5944
5953
|
modifiedDate: '2023-08-15',
|
|
5945
5954
|
availableTo: {},
|
|
@@ -6177,7 +6186,9 @@ const mprAnd3DVolumeViewport = {
|
|
|
6177
6186
|
const only3D = {
|
|
6178
6187
|
id: 'only3D',
|
|
6179
6188
|
locked: true,
|
|
6180
|
-
name: '
|
|
6189
|
+
name: '3D only',
|
|
6190
|
+
icon: 'layout-advanced-3d-only',
|
|
6191
|
+
isPreset: true,
|
|
6181
6192
|
createdDate: '2023-03-15T10:29:44.894Z',
|
|
6182
6193
|
modifiedDate: '2023-03-15T10:29:44.894Z',
|
|
6183
6194
|
availableTo: {},
|
|
@@ -6231,7 +6242,9 @@ const only3D = {
|
|
|
6231
6242
|
const primary3D = {
|
|
6232
6243
|
id: 'primary3D',
|
|
6233
6244
|
locked: true,
|
|
6234
|
-
name: '
|
|
6245
|
+
name: '3D primary',
|
|
6246
|
+
icon: 'layout-advanced-3d-primary',
|
|
6247
|
+
isPreset: true,
|
|
6235
6248
|
createdDate: '2023-03-15T10:29:44.894Z',
|
|
6236
6249
|
modifiedDate: '2023-03-15T10:29:44.894Z',
|
|
6237
6250
|
availableTo: {},
|
|
@@ -6360,7 +6373,9 @@ const primary3D = {
|
|
|
6360
6373
|
const primaryAxial = {
|
|
6361
6374
|
id: 'primaryAxial',
|
|
6362
6375
|
locked: true,
|
|
6363
|
-
name: '
|
|
6376
|
+
name: 'Axial Primary',
|
|
6377
|
+
icon: 'layout-advanced-axial-primary',
|
|
6378
|
+
isPreset: true,
|
|
6364
6379
|
createdDate: '2023-03-15T10:29:44.894Z',
|
|
6365
6380
|
modifiedDate: '2023-03-15T10:29:44.894Z',
|
|
6366
6381
|
availableTo: {},
|
|
@@ -6653,6 +6668,20 @@ function getToolbarModule({
|
|
|
6653
6668
|
className: getToggledClassName(isEnabled)
|
|
6654
6669
|
};
|
|
6655
6670
|
}
|
|
6671
|
+
}, {
|
|
6672
|
+
name: 'evaluate.not3D',
|
|
6673
|
+
evaluate: ({
|
|
6674
|
+
viewportId,
|
|
6675
|
+
button
|
|
6676
|
+
}) => {
|
|
6677
|
+
const viewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
|
|
6678
|
+
if (viewport?.type === 'volume3d') {
|
|
6679
|
+
return {
|
|
6680
|
+
disabled: true,
|
|
6681
|
+
className: '!text-common-bright ohif-disabled'
|
|
6682
|
+
};
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6656
6685
|
}, {
|
|
6657
6686
|
name: 'evaluate.viewportProperties.toggle',
|
|
6658
6687
|
evaluate: ({
|
|
@@ -14,8 +14,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
|
|
15
15
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
16
16
|
var src = __webpack_require__(78198);
|
|
17
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
18
|
-
var ui_src = __webpack_require__(
|
|
17
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
18
|
+
var ui_src = __webpack_require__(58046);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/tmtv/src/initToolGroups.js
|
|
20
20
|
const toolGroupIds = {
|
|
21
21
|
CT: 'ctToolGroup',
|
|
@@ -223,21 +223,6 @@ const toolbarButtons = [{
|
|
|
223
223
|
commands: setToolActiveToolbar,
|
|
224
224
|
evaluate: 'evaluate.cornerstoneTool'
|
|
225
225
|
}
|
|
226
|
-
}, {
|
|
227
|
-
id: 'MPR',
|
|
228
|
-
uiType: 'ohif.radioGroup',
|
|
229
|
-
props: {
|
|
230
|
-
icon: 'icon-mpr',
|
|
231
|
-
label: 'MPR',
|
|
232
|
-
commands: [{
|
|
233
|
-
commandName: 'toggleHangingProtocol',
|
|
234
|
-
commandOptions: {
|
|
235
|
-
protocolId: 'mpr'
|
|
236
|
-
},
|
|
237
|
-
context: 'DEFAULT'
|
|
238
|
-
}],
|
|
239
|
-
evaluate: 'evaluate.mpr'
|
|
240
|
-
}
|
|
241
226
|
},
|
|
242
227
|
// Window Level + Presets
|
|
243
228
|
{
|
|
@@ -12,7 +12,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12
12
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11374);
|
|
13
13
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
14
14
|
/* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(78198);
|
|
15
|
-
/* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
15
|
+
/* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58046);
|
|
16
16
|
/* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80619);
|
|
17
17
|
/* harmony import */ var _cornerstonejs_tools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20767);
|
|
18
18
|
/* harmony import */ var _getContextModule__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4573);
|
|
@@ -25,8 +25,8 @@ var esm = __webpack_require__(20767);
|
|
|
25
25
|
var dist_esm = __webpack_require__(50719);
|
|
26
26
|
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
27
27
|
var src = __webpack_require__(78198);
|
|
28
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
29
|
-
var ui_src = __webpack_require__(
|
|
28
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 497 modules
|
|
29
|
+
var ui_src = __webpack_require__(58046);
|
|
30
30
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/state.ts
|
|
31
31
|
var state = __webpack_require__(71353);
|
|
32
32
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/Viewport/OHIFCornerstoneViewport.css
|