@ohif/app 3.8.0-beta.63 → 3.8.0-beta.64
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.f6c25e845985d96c423c.js → 121.bundle.5399d807995157d368b7.js} +4 -4
- package/dist/{155.bundle.9e3dd18c9a3961232504.js → 155.bundle.55fa02bfc411cc91e261.js} +12 -7
- package/dist/{188.bundle.528e9ad81159c776affa.js → 188.bundle.ec979013d89d90831c58.js} +2 -2
- package/dist/{270.bundle.fd387adff5b064fca506.js → 270.bundle.58c74e58ad67b5069718.js} +51 -28
- package/dist/{295.bundle.c132f53e1397ef9d432a.js → 295.bundle.c0a29ff64d86f707fc20.js} +4 -4
- package/dist/{339.bundle.591a0a6075220b14c249.js → 339.bundle.e31c81c7179d3d24f3dd.js} +27 -69
- package/dist/{68.bundle.efc5ba2a44aa2b96ee1a.js → 41.bundle.0696b28613c7d47833c9.js} +276 -486
- package/dist/{250.bundle.d8b502b7ef6afc79a87e.js → 448.bundle.e856d2b2bd979c7d9ac0.js} +238 -382
- package/dist/{530.bundle.ef1ea9d98f7b377a9d3a.js → 530.bundle.f00fd953dcd9d0afd10b.js} +2 -2
- package/dist/{544.bundle.05b543f28d0c124950ef.js → 544.bundle.adfe5764f59b5fe0eba7.js} +5 -17
- package/dist/{559.bundle.fc08eab02848a451ed34.js → 559.bundle.4f55f5df04c418b2854e.js} +6 -10
- package/dist/{594.bundle.3a5fa2e7d5636ddccb32.js → 594.bundle.924cdc10e7435cf3e199.js} +147 -188
- package/dist/{50.bundle.55ad62f1f656f5fd5a36.js → 638.bundle.62f8f8ada74bd900abfc.js} +158 -394
- package/dist/{317.bundle.dd0879c5035c4b90fad3.js → 699.bundle.b3b25017819be681ef3d.js} +323 -186
- package/dist/{963.bundle.874395d7b2d80f9e5831.js → 701.bundle.b7ebc1629fc121e13c58.js} +520 -210
- package/dist/{724.bundle.294a41af83a5af33f3cc.js → 724.bundle.cd011bc1838a2bde1d66.js} +89 -152
- package/dist/{862.bundle.c8eba798644149650775.js → 862.bundle.d2e78b70286b59569e83.js} +2 -2
- package/dist/{889.bundle.a776c87be9e3580f3437.js → 889.bundle.2aefa0a3eb114db0de3f.js} +180 -207
- package/dist/{704.bundle.842ada45436f1fb029aa.js → 90.bundle.7a9258532111121b5ee3.js} +225 -337
- package/dist/{905.bundle.73a711d0255cb988fa6e.js → 905.bundle.d4bdcbd451de59b2191b.js} +119 -89
- package/dist/{907.bundle.6932f0458b9e0143c18a.js → 907.bundle.ca236b83967a8459b778.js} +2 -14
- package/dist/{961.bundle.6cf1599ed3a2871c040f.js → 961.bundle.a5541d8090cb8b22f7e6.js} +2 -15
- package/dist/{987.bundle.e7c041a6dfb4ddb41813.js → 987.bundle.91d4867efedd5b4d84cb.js} +5 -1
- package/dist/{app.bundle.22ffa6050ebef98b2066.js → app.bundle.039c4dc99821370f330d.js} +1845 -927
- package/dist/app.bundle.css +1 -1
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.99be036bab9b7f011b0c.js → polySeg.bundle.c1cec6312eb6c6dc3701.js} +1 -1
- package/dist/sw.js +1 -1
- package/package.json +17 -17
- /package/dist/{164.bundle.710b5db3fef4d536a59f.js → 164.bundle.0cfa2edabf8ef222f3ea.js} +0 -0
- /package/dist/{50.css → 638.css} +0 -0
- /package/dist/{963.css → 701.css} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[448],{
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 14448:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6
6
|
|
|
7
7
|
// ESM COMPAT FLAG
|
|
@@ -12,10 +12,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12
12
|
"default": () => (/* binding */ basic_test_mode_src)
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
16
|
-
var src = __webpack_require__(
|
|
17
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
18
|
-
var ui_src = __webpack_require__(
|
|
15
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 67 modules
|
|
16
|
+
var src = __webpack_require__(78198);
|
|
17
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 495 modules
|
|
18
|
+
var ui_src = __webpack_require__(65967);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/toolbarButtons.ts
|
|
20
20
|
// TODO: torn, can either bake this here; or have to create a whole new button type
|
|
21
21
|
// Only ways that you can pass in a custom React component for render :l
|
|
@@ -24,6 +24,9 @@ var ui_src = __webpack_require__(6804);
|
|
|
24
24
|
const {
|
|
25
25
|
windowLevelPresets
|
|
26
26
|
} = src.defaults;
|
|
27
|
+
const {
|
|
28
|
+
createButton
|
|
29
|
+
} = src.ToolbarService;
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
@@ -36,7 +39,6 @@ function _createWwwcPreset(preset, title, subtitle) {
|
|
|
36
39
|
id: preset.toString(),
|
|
37
40
|
title,
|
|
38
41
|
subtitle,
|
|
39
|
-
type: 'action',
|
|
40
42
|
commands: [{
|
|
41
43
|
commandName: 'setWindowLevel',
|
|
42
44
|
commandOptions: {
|
|
@@ -46,144 +48,97 @@ function _createWwwcPreset(preset, title, subtitle) {
|
|
|
46
48
|
}]
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
{
|
|
51
|
+
const setToolActiveToolbar = {
|
|
52
|
+
commandName: 'setToolActiveToolbar',
|
|
53
|
+
commandOptions: {
|
|
54
|
+
toolGroupIds: ['default', 'mpr', 'SRToolGroup']
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const toolbarButtons = [{
|
|
52
58
|
id: 'MeasurementTools',
|
|
53
|
-
|
|
59
|
+
uiType: 'ohif.splitButton',
|
|
54
60
|
props: {
|
|
55
61
|
groupId: 'MeasurementTools',
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
commandName: 'setToolActive',
|
|
67
|
-
commandOptions: {
|
|
68
|
-
toolName: 'SRLength',
|
|
69
|
-
toolGroupId: 'SRToolGroup'
|
|
70
|
-
},
|
|
71
|
-
// we can use the setToolActive command for this from Cornerstone commandsModule
|
|
72
|
-
context: 'CORNERSTONE'
|
|
73
|
-
}], 'Length'),
|
|
62
|
+
// group evaluate to determine which item should move to the top
|
|
63
|
+
evaluate: 'evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList',
|
|
64
|
+
primary: createButton({
|
|
65
|
+
id: 'Length',
|
|
66
|
+
icon: 'tool-length',
|
|
67
|
+
label: 'Length',
|
|
68
|
+
tooltip: 'Length Tool',
|
|
69
|
+
commands: setToolActiveToolbar,
|
|
70
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
71
|
+
}),
|
|
74
72
|
secondary: {
|
|
75
73
|
icon: 'chevron-down',
|
|
76
|
-
label: '',
|
|
77
|
-
isActive: true,
|
|
78
74
|
tooltip: 'More Measure Tools'
|
|
79
75
|
},
|
|
80
|
-
items: [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
toolName: 'SRArrowAnnotate',
|
|
117
|
-
toolGroupId: 'SRToolGroup'
|
|
118
|
-
},
|
|
119
|
-
context: 'CORNERSTONE'
|
|
120
|
-
}], 'Arrow Annotate'), src/* ToolbarService */.hx._createToolButton('EllipticalROI', 'tool-elipse', 'Ellipse', [{
|
|
121
|
-
commandName: 'setToolActive',
|
|
122
|
-
commandOptions: {
|
|
123
|
-
toolName: 'EllipticalROI'
|
|
124
|
-
},
|
|
125
|
-
context: 'CORNERSTONE'
|
|
126
|
-
}, {
|
|
127
|
-
commandName: 'setToolActive',
|
|
128
|
-
commandOptions: {
|
|
129
|
-
toolName: 'SREllipticalROI',
|
|
130
|
-
toolGroupId: 'SRToolGroup'
|
|
131
|
-
},
|
|
132
|
-
context: 'CORNERSTONE'
|
|
133
|
-
}], 'Ellipse Tool'), src/* ToolbarService */.hx._createToolButton('CircleROI', 'tool-circle', 'Circle', [{
|
|
134
|
-
commandName: 'setToolActive',
|
|
135
|
-
commandOptions: {
|
|
136
|
-
toolName: 'CircleROI'
|
|
137
|
-
},
|
|
138
|
-
context: 'CORNERSTONE'
|
|
139
|
-
}, {
|
|
140
|
-
commandName: 'setToolActive',
|
|
141
|
-
commandOptions: {
|
|
142
|
-
toolName: 'SRCircleROI',
|
|
143
|
-
toolGroupId: 'SRToolGroup'
|
|
144
|
-
},
|
|
145
|
-
context: 'CORNERSTONE'
|
|
146
|
-
}], 'Circle Tool')]
|
|
76
|
+
items: [createButton({
|
|
77
|
+
id: 'Length',
|
|
78
|
+
icon: 'tool-length',
|
|
79
|
+
label: 'Length',
|
|
80
|
+
tooltip: 'Length Tool',
|
|
81
|
+
commands: setToolActiveToolbar,
|
|
82
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
83
|
+
}), createButton({
|
|
84
|
+
id: 'Bidirectional',
|
|
85
|
+
icon: 'tool-bidirectional',
|
|
86
|
+
label: 'Bidirectional',
|
|
87
|
+
tooltip: 'Bidirectional Tool',
|
|
88
|
+
commands: setToolActiveToolbar,
|
|
89
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
90
|
+
}), createButton({
|
|
91
|
+
id: 'ArrowAnnotate',
|
|
92
|
+
icon: 'tool-annotate',
|
|
93
|
+
label: 'Annotation',
|
|
94
|
+
tooltip: 'Arrow Annotate',
|
|
95
|
+
commands: setToolActiveToolbar,
|
|
96
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
97
|
+
}), createButton({
|
|
98
|
+
id: 'EllipticalROI',
|
|
99
|
+
icon: 'tool-ellipse',
|
|
100
|
+
label: 'Ellipse',
|
|
101
|
+
tooltip: 'Ellipse ROI',
|
|
102
|
+
commands: setToolActiveToolbar,
|
|
103
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
104
|
+
}), createButton({
|
|
105
|
+
id: 'CircleROI',
|
|
106
|
+
icon: 'tool-circle',
|
|
107
|
+
label: 'Circle',
|
|
108
|
+
tooltip: 'Circle Tool',
|
|
109
|
+
commands: setToolActiveToolbar,
|
|
110
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
111
|
+
})]
|
|
147
112
|
}
|
|
148
|
-
},
|
|
149
|
-
// Zoom..
|
|
150
|
-
{
|
|
113
|
+
}, {
|
|
151
114
|
id: 'Zoom',
|
|
152
|
-
|
|
115
|
+
uiType: 'ohif.radioGroup',
|
|
153
116
|
props: {
|
|
154
|
-
type: 'tool',
|
|
155
117
|
icon: 'tool-zoom',
|
|
156
118
|
label: 'Zoom',
|
|
157
|
-
commands:
|
|
158
|
-
|
|
159
|
-
commandOptions: {
|
|
160
|
-
toolName: 'Zoom'
|
|
161
|
-
},
|
|
162
|
-
context: 'CORNERSTONE'
|
|
163
|
-
}]
|
|
119
|
+
commands: setToolActiveToolbar,
|
|
120
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
164
121
|
}
|
|
165
122
|
},
|
|
166
123
|
// Window Level + Presets...
|
|
167
124
|
{
|
|
168
125
|
id: 'WindowLevel',
|
|
169
|
-
|
|
126
|
+
uiType: 'ohif.splitButton',
|
|
170
127
|
props: {
|
|
171
128
|
groupId: 'WindowLevel',
|
|
172
|
-
primary:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
129
|
+
primary: createButton({
|
|
130
|
+
id: 'WindowLevel',
|
|
131
|
+
icon: 'tool-window-level',
|
|
132
|
+
label: 'Window Level',
|
|
133
|
+
tooltip: 'Window Level',
|
|
134
|
+
commands: setToolActiveToolbar,
|
|
135
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
136
|
+
}),
|
|
179
137
|
secondary: {
|
|
180
138
|
icon: 'chevron-down',
|
|
181
139
|
label: 'W/L Manual',
|
|
182
|
-
isActive: true,
|
|
183
140
|
tooltip: 'W/L Presets'
|
|
184
141
|
},
|
|
185
|
-
isAction: true,
|
|
186
|
-
// ?
|
|
187
142
|
renderer: ui_src/* WindowLevelMenuItem */.d4,
|
|
188
143
|
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')]
|
|
189
144
|
}
|
|
@@ -191,115 +146,40 @@ const toolbarButtons = [
|
|
|
191
146
|
// Pan...
|
|
192
147
|
{
|
|
193
148
|
id: 'Pan',
|
|
194
|
-
|
|
149
|
+
uiType: 'ohif.radioGroup',
|
|
195
150
|
props: {
|
|
196
151
|
type: 'tool',
|
|
197
152
|
icon: 'tool-move',
|
|
198
153
|
label: 'Pan',
|
|
199
|
-
commands:
|
|
200
|
-
|
|
201
|
-
commandOptions: {
|
|
202
|
-
toolName: 'Pan'
|
|
203
|
-
},
|
|
204
|
-
context: 'CORNERSTONE'
|
|
205
|
-
}]
|
|
154
|
+
commands: setToolActiveToolbar,
|
|
155
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
206
156
|
}
|
|
207
157
|
}, {
|
|
208
158
|
id: 'Capture',
|
|
209
|
-
|
|
159
|
+
uiType: 'ohif.radioGroup',
|
|
210
160
|
props: {
|
|
211
161
|
icon: 'tool-capture',
|
|
212
162
|
label: 'Capture',
|
|
213
|
-
type: 'action',
|
|
214
163
|
commands: [{
|
|
215
|
-
commandName: 'showDownloadViewportModal'
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}]
|
|
164
|
+
commandName: 'showDownloadViewportModal'
|
|
165
|
+
}],
|
|
166
|
+
evaluate: 'evaluate.action'
|
|
219
167
|
}
|
|
220
168
|
}, {
|
|
221
169
|
id: 'Layout',
|
|
222
|
-
|
|
170
|
+
uiType: 'ohif.layoutSelector',
|
|
223
171
|
props: {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
uiType: 'ohif.layoutSelector',
|
|
230
|
-
icon: 'tool-layout',
|
|
231
|
-
label: 'Grid Layout',
|
|
232
|
-
props: {
|
|
233
|
-
rows: 4,
|
|
234
|
-
columns: 4,
|
|
235
|
-
commands: [{
|
|
236
|
-
commandName: 'setLayout',
|
|
237
|
-
commandOptions: {},
|
|
238
|
-
context: 'CORNERSTONE'
|
|
239
|
-
}]
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
secondary: {
|
|
243
|
-
icon: 'chevron-down',
|
|
244
|
-
label: '',
|
|
245
|
-
isActive: true,
|
|
246
|
-
tooltip: 'Hanging Protocols'
|
|
247
|
-
},
|
|
248
|
-
items: [{
|
|
249
|
-
id: '2x2',
|
|
250
|
-
type: 'action',
|
|
251
|
-
label: '2x2',
|
|
252
|
-
commands: [{
|
|
253
|
-
commandName: 'setHangingProtocol',
|
|
254
|
-
commandOptions: {
|
|
255
|
-
protocolId: '@ohif/mnGrid',
|
|
256
|
-
stageId: '2x2'
|
|
257
|
-
},
|
|
258
|
-
context: 'DEFAULT'
|
|
259
|
-
}]
|
|
260
|
-
}, {
|
|
261
|
-
id: '3x1',
|
|
262
|
-
type: 'action',
|
|
263
|
-
label: '3x1',
|
|
264
|
-
commands: [{
|
|
265
|
-
commandName: 'setHangingProtocol',
|
|
266
|
-
commandOptions: {
|
|
267
|
-
protocolId: '@ohif/mnGrid',
|
|
268
|
-
stageId: '3x1'
|
|
269
|
-
},
|
|
270
|
-
context: 'DEFAULT'
|
|
271
|
-
}]
|
|
272
|
-
}, {
|
|
273
|
-
id: '2x1',
|
|
274
|
-
type: 'action',
|
|
275
|
-
label: '2x1',
|
|
276
|
-
commands: [{
|
|
277
|
-
commandName: 'setHangingProtocol',
|
|
278
|
-
commandOptions: {
|
|
279
|
-
protocolId: '@ohif/mnGrid',
|
|
280
|
-
stageId: '2x1'
|
|
281
|
-
},
|
|
282
|
-
context: 'DEFAULT'
|
|
283
|
-
}]
|
|
284
|
-
}, {
|
|
285
|
-
id: '1x1',
|
|
286
|
-
type: 'action',
|
|
287
|
-
label: '1x1',
|
|
288
|
-
commands: [{
|
|
289
|
-
commandName: 'setHangingProtocol',
|
|
290
|
-
commandOptions: {
|
|
291
|
-
protocolId: '@ohif/mnGrid',
|
|
292
|
-
stageId: '1x1'
|
|
293
|
-
},
|
|
294
|
-
context: 'DEFAULT'
|
|
295
|
-
}]
|
|
172
|
+
rows: 3,
|
|
173
|
+
columns: 3,
|
|
174
|
+
evaluate: 'evaluate.action',
|
|
175
|
+
commands: [{
|
|
176
|
+
commandName: 'setViewportGridLayout'
|
|
296
177
|
}]
|
|
297
178
|
}
|
|
298
179
|
}, {
|
|
299
180
|
id: 'MPR',
|
|
300
|
-
|
|
181
|
+
uiType: 'ohif.radioGroup',
|
|
301
182
|
props: {
|
|
302
|
-
type: 'toggle',
|
|
303
183
|
icon: 'icon-mpr',
|
|
304
184
|
label: 'MPR',
|
|
305
185
|
commands: [{
|
|
@@ -307,22 +187,23 @@ const toolbarButtons = [
|
|
|
307
187
|
commandOptions: {
|
|
308
188
|
protocolId: 'mpr'
|
|
309
189
|
}
|
|
310
|
-
}]
|
|
190
|
+
}],
|
|
191
|
+
evaluate: 'evaluate.mpr'
|
|
311
192
|
}
|
|
312
193
|
}, {
|
|
313
194
|
id: 'Crosshairs',
|
|
314
|
-
|
|
195
|
+
uiType: 'ohif.radioGroup',
|
|
315
196
|
props: {
|
|
316
197
|
type: 'tool',
|
|
317
198
|
icon: 'tool-crosshair',
|
|
318
199
|
label: 'Crosshairs',
|
|
319
|
-
commands:
|
|
320
|
-
commandName: '
|
|
200
|
+
commands: {
|
|
201
|
+
commandName: 'setToolActiveToolbar',
|
|
321
202
|
commandOptions: {
|
|
322
|
-
|
|
323
|
-
toolName: 'Crosshairs'
|
|
203
|
+
toolGroupIds: ['mpr']
|
|
324
204
|
}
|
|
325
|
-
}
|
|
205
|
+
},
|
|
206
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
326
207
|
}
|
|
327
208
|
}];
|
|
328
209
|
/* harmony default export */ const src_toolbarButtons = (toolbarButtons);
|
|
@@ -541,45 +422,65 @@ var esm = __webpack_require__(50719);
|
|
|
541
422
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/moreTools.ts
|
|
542
423
|
|
|
543
424
|
|
|
544
|
-
|
|
425
|
+
|
|
426
|
+
const {
|
|
427
|
+
createButton: moreTools_createButton
|
|
428
|
+
} = src.ToolbarService;
|
|
429
|
+
const ReferenceLinesListeners = [{
|
|
545
430
|
commandName: 'setSourceViewportForReferenceLinesTool',
|
|
546
431
|
context: 'CORNERSTONE'
|
|
547
|
-
}, {
|
|
548
|
-
commandName: 'setToolActive',
|
|
549
|
-
commandOptions: {
|
|
550
|
-
toolName: 'ReferenceLines'
|
|
551
|
-
},
|
|
552
|
-
context: 'CORNERSTONE'
|
|
553
432
|
}];
|
|
554
433
|
const moreTools = [{
|
|
555
434
|
id: 'MoreTools',
|
|
556
|
-
|
|
435
|
+
uiType: 'ohif.splitButton',
|
|
557
436
|
props: {
|
|
558
|
-
isRadio: true,
|
|
559
|
-
// ?
|
|
560
437
|
groupId: 'MoreTools',
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
438
|
+
evaluate: 'evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList',
|
|
439
|
+
primary: moreTools_createButton({
|
|
440
|
+
id: 'Reset',
|
|
441
|
+
icon: 'tool-reset',
|
|
442
|
+
tooltip: 'Reset View',
|
|
443
|
+
label: 'Reset',
|
|
444
|
+
commands: 'resetViewport',
|
|
445
|
+
evaluate: 'evaluate.action'
|
|
446
|
+
}),
|
|
564
447
|
secondary: {
|
|
565
448
|
icon: 'chevron-down',
|
|
566
449
|
label: '',
|
|
567
|
-
isActive: true,
|
|
568
450
|
tooltip: 'More Tools'
|
|
569
451
|
},
|
|
570
|
-
items: [
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
452
|
+
items: [moreTools_createButton({
|
|
453
|
+
id: 'Reset',
|
|
454
|
+
icon: 'tool-reset',
|
|
455
|
+
label: 'Reset View',
|
|
456
|
+
tooltip: 'Reset View',
|
|
457
|
+
commands: 'resetViewport',
|
|
458
|
+
evaluate: 'evaluate.action'
|
|
459
|
+
}), moreTools_createButton({
|
|
460
|
+
id: 'rotate-right',
|
|
461
|
+
icon: 'tool-rotate-right',
|
|
462
|
+
label: 'Rotate Right',
|
|
463
|
+
tooltip: 'Rotate +90',
|
|
464
|
+
commands: 'rotateViewportCW',
|
|
465
|
+
evaluate: 'evaluate.action'
|
|
466
|
+
}), moreTools_createButton({
|
|
467
|
+
id: 'flipHorizontal',
|
|
468
|
+
icon: 'tool-flip-horizontal',
|
|
469
|
+
label: 'Flip Horizontal',
|
|
470
|
+
tooltip: 'Flip Horizontally',
|
|
471
|
+
commands: 'flipViewportHorizontal',
|
|
472
|
+
evaluate: 'evaluate.viewportProperties.toggle'
|
|
473
|
+
}), moreTools_createButton({
|
|
474
|
+
id: 'ImageSliceSync',
|
|
475
|
+
icon: 'link',
|
|
476
|
+
label: 'Image Slice Sync',
|
|
477
|
+
tooltip: 'Enable position synchronization on stack viewports',
|
|
478
|
+
commands: {
|
|
479
|
+
commandName: 'toggleSynchronizer',
|
|
480
|
+
commandOptions: {
|
|
481
|
+
type: 'imageSlice'
|
|
482
|
+
}
|
|
483
|
+
},
|
|
583
484
|
listeners: {
|
|
584
485
|
[esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
|
|
585
486
|
commandName: 'toggleImageSliceSync',
|
|
@@ -587,118 +488,104 @@ const moreTools = [{
|
|
|
587
488
|
toggledState: true
|
|
588
489
|
}
|
|
589
490
|
}
|
|
590
|
-
}
|
|
591
|
-
}), src/* ToolbarService */.hx._createToggleButton('ReferenceLines', 'tool-referenceLines',
|
|
592
|
-
// change this with the new icon
|
|
593
|
-
'Reference Lines', ReferenceLinesCommands, 'Show Reference Lines', {
|
|
594
|
-
listeners: {
|
|
595
|
-
[esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: ReferenceLinesCommands,
|
|
596
|
-
[esm.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesCommands
|
|
597
|
-
}
|
|
598
|
-
}), src/* ToolbarService */.hx._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
|
|
599
|
-
commandName: 'setToolActive',
|
|
600
|
-
commandOptions: {
|
|
601
|
-
toolName: 'StackScroll'
|
|
602
491
|
},
|
|
603
|
-
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
commandName: 'toggleCine',
|
|
616
|
-
context: 'CORNERSTONE'
|
|
617
|
-
}], 'Cine'), src/* ToolbarService */.hx._createToolButton('Angle', 'tool-angle', 'Angle', [{
|
|
618
|
-
commandName: 'setToolActive',
|
|
619
|
-
commandOptions: {
|
|
620
|
-
toolName: 'Angle'
|
|
492
|
+
evaluate: 'evaluate.cornerstone.synchronizer'
|
|
493
|
+
}), moreTools_createButton({
|
|
494
|
+
id: 'ReferenceLines',
|
|
495
|
+
icon: 'tool-referenceLines',
|
|
496
|
+
label: 'Reference Lines',
|
|
497
|
+
tooltip: 'Show Reference Lines',
|
|
498
|
+
commands: {
|
|
499
|
+
commandName: 'setToolEnabled',
|
|
500
|
+
commandOptions: {
|
|
501
|
+
toolName: 'ReferenceLines',
|
|
502
|
+
toggle: true
|
|
503
|
+
}
|
|
621
504
|
},
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
commandOptions: {
|
|
626
|
-
toolName: 'Magnify'
|
|
505
|
+
listeners: {
|
|
506
|
+
[src/* ViewportGridService */.sI.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesListeners,
|
|
507
|
+
[src/* ViewportGridService */.sI.EVENTS.VIEWPORTS_READY]: ReferenceLinesListeners
|
|
627
508
|
},
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
509
|
+
evaluate: 'evaluate.cornerstoneTool.toggle'
|
|
510
|
+
}), moreTools_createButton({
|
|
511
|
+
id: 'ImageOverlay',
|
|
512
|
+
icon: 'toggle-dicom-overlay',
|
|
513
|
+
label: 'Image Overlay',
|
|
514
|
+
tooltip: 'Toggle Image Overlay',
|
|
515
|
+
commands: {
|
|
516
|
+
commandName: 'setToolEnabled',
|
|
517
|
+
commandOptions: {
|
|
518
|
+
toolName: 'ImageOverlayViewer',
|
|
519
|
+
toggle: true
|
|
520
|
+
}
|
|
633
521
|
},
|
|
634
|
-
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
522
|
+
evaluate: 'evaluate.cornerstoneTool.toggle'
|
|
523
|
+
}), moreTools_createButton({
|
|
524
|
+
id: 'StackScroll',
|
|
525
|
+
icon: 'tool-stack-scroll',
|
|
526
|
+
label: 'Stack Scroll',
|
|
527
|
+
tooltip: 'Stack Scroll',
|
|
528
|
+
commands: setToolActiveToolbar,
|
|
529
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
530
|
+
}), moreTools_createButton({
|
|
531
|
+
id: 'invert',
|
|
532
|
+
icon: 'tool-invert',
|
|
533
|
+
label: 'Invert',
|
|
534
|
+
tooltip: 'Invert Colors',
|
|
535
|
+
commands: 'invertViewport',
|
|
536
|
+
evaluate: 'evaluate.viewportProperties.toggle'
|
|
537
|
+
}), moreTools_createButton({
|
|
538
|
+
id: 'Probe',
|
|
539
|
+
icon: 'tool-probe',
|
|
540
|
+
label: 'Probe',
|
|
541
|
+
tooltip: 'Probe',
|
|
542
|
+
commands: setToolActiveToolbar,
|
|
543
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
544
|
+
}), moreTools_createButton({
|
|
545
|
+
id: 'Cine',
|
|
546
|
+
icon: 'tool-cine',
|
|
547
|
+
label: 'Cine',
|
|
548
|
+
tooltip: 'Cine',
|
|
549
|
+
commands: 'toggleCine',
|
|
550
|
+
evaluate: 'evaluate.cine'
|
|
551
|
+
}), moreTools_createButton({
|
|
552
|
+
id: 'Angle',
|
|
553
|
+
icon: 'tool-angle',
|
|
554
|
+
label: 'Angle',
|
|
555
|
+
tooltip: 'Angle',
|
|
556
|
+
commands: setToolActiveToolbar,
|
|
557
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
558
|
+
}), moreTools_createButton({
|
|
559
|
+
id: 'Magnify',
|
|
560
|
+
icon: 'tool-magnify',
|
|
561
|
+
label: 'Magnify',
|
|
562
|
+
tooltip: 'Magnify',
|
|
563
|
+
commands: setToolActiveToolbar,
|
|
564
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
565
|
+
}), moreTools_createButton({
|
|
566
|
+
id: 'RectangleROI',
|
|
567
|
+
icon: 'tool-rectangle',
|
|
568
|
+
label: 'Rectangle',
|
|
569
|
+
tooltip: 'Rectangle',
|
|
570
|
+
commands: setToolActiveToolbar,
|
|
571
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
572
|
+
}), moreTools_createButton({
|
|
573
|
+
id: 'CalibrationLine',
|
|
574
|
+
icon: 'tool-calibration',
|
|
575
|
+
label: 'Calibration',
|
|
576
|
+
tooltip: 'Calibration Line',
|
|
577
|
+
commands: setToolActiveToolbar,
|
|
578
|
+
evaluate: 'evaluate.cornerstoneTool'
|
|
579
|
+
}), moreTools_createButton({
|
|
580
|
+
id: 'TagBrowser',
|
|
581
|
+
icon: 'list-bullets',
|
|
582
|
+
label: 'Dicom Tag Browser',
|
|
583
|
+
tooltip: 'Dicom Tag Browser',
|
|
584
|
+
commands: 'openDICOMTagViewer'
|
|
585
|
+
})]
|
|
640
586
|
}
|
|
641
587
|
}];
|
|
642
588
|
/* harmony default export */ const src_moreTools = (moreTools);
|
|
643
|
-
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/moreToolsMpr.ts
|
|
644
|
-
|
|
645
|
-
const moreToolsMpr = [{
|
|
646
|
-
id: 'MoreToolsMpr',
|
|
647
|
-
type: 'ohif.splitButton',
|
|
648
|
-
props: {
|
|
649
|
-
isRadio: true,
|
|
650
|
-
// ?
|
|
651
|
-
groupId: 'MoreTools',
|
|
652
|
-
primary: src/* ToolbarService */.hx._createActionButton('Reset', 'tool-reset', 'Reset View', [{
|
|
653
|
-
commandName: 'resetViewport'
|
|
654
|
-
}], 'Reset'),
|
|
655
|
-
secondary: {
|
|
656
|
-
icon: 'chevron-down',
|
|
657
|
-
label: '',
|
|
658
|
-
isActive: true,
|
|
659
|
-
tooltip: 'More Tools'
|
|
660
|
-
},
|
|
661
|
-
items: [src/* ToolbarService */.hx._createActionButton('Reset', 'tool-reset', 'Reset View', [{
|
|
662
|
-
commandName: 'resetViewport'
|
|
663
|
-
}], 'Reset'), src/* ToolbarService */.hx._createToolButton('StackScroll', 'tool-stack-scroll', 'Stack Scroll', [{
|
|
664
|
-
commandName: 'setToolActive',
|
|
665
|
-
commandOptions: {
|
|
666
|
-
toolName: 'StackScroll'
|
|
667
|
-
},
|
|
668
|
-
context: 'CORNERSTONE'
|
|
669
|
-
}], 'Stack Scroll'), src/* ToolbarService */.hx._createActionButton('invert', 'tool-invert', 'Invert', [{
|
|
670
|
-
commandName: 'invertViewport',
|
|
671
|
-
commandOptions: {},
|
|
672
|
-
context: 'CORNERSTONE'
|
|
673
|
-
}], 'Invert Colors'), src/* ToolbarService */.hx._createToolButton('Probe', 'tool-probe', 'Probe', [{
|
|
674
|
-
commandName: 'setToolActive',
|
|
675
|
-
commandOptions: {
|
|
676
|
-
toolName: 'DragProbe'
|
|
677
|
-
},
|
|
678
|
-
context: 'CORNERSTONE'
|
|
679
|
-
}], 'Probe'), src/* ToolbarService */.hx._createToggleButton('cine', 'tool-cine', 'Cine', [{
|
|
680
|
-
commandName: 'toggleCine',
|
|
681
|
-
context: 'CORNERSTONE'
|
|
682
|
-
}], 'Cine'), src/* ToolbarService */.hx._createToolButton('Angle', 'tool-angle', 'Angle', [{
|
|
683
|
-
commandName: 'setToolActive',
|
|
684
|
-
commandOptions: {
|
|
685
|
-
toolName: 'Angle'
|
|
686
|
-
},
|
|
687
|
-
context: 'CORNERSTONE'
|
|
688
|
-
}], 'Angle'), src/* ToolbarService */.hx._createToolButton('Rectangle', 'tool-rectangle', 'Rectangle', [{
|
|
689
|
-
commandName: 'setToolActive',
|
|
690
|
-
commandOptions: {
|
|
691
|
-
toolName: 'RectangleROI'
|
|
692
|
-
},
|
|
693
|
-
context: 'CORNERSTONE'
|
|
694
|
-
}], 'Rectangle'), src/* ToolbarService */.hx._createActionButton('TagBrowser', 'list-bullets', 'Dicom Tag Browser', [{
|
|
695
|
-
commandName: 'openDICOMTagViewer',
|
|
696
|
-
commandOptions: {},
|
|
697
|
-
context: 'DEFAULT'
|
|
698
|
-
}], 'Dicom Tag Browser')]
|
|
699
|
-
}
|
|
700
|
-
}];
|
|
701
|
-
/* harmony default export */ const src_moreToolsMpr = (moreToolsMpr);
|
|
702
589
|
// EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
|
|
703
590
|
var i18next = __webpack_require__(92344);
|
|
704
591
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/index.ts
|
|
@@ -709,12 +596,9 @@ var i18next = __webpack_require__(92344);
|
|
|
709
596
|
|
|
710
597
|
|
|
711
598
|
|
|
712
|
-
|
|
713
599
|
// Allow this mode by excluding non-imaging modalities such as SR, SEG
|
|
714
600
|
// Also, SM is not a simple imaging modalities, so exclude it.
|
|
715
601
|
const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG'];
|
|
716
|
-
const DEFAULT_TOOL_GROUP_ID = 'default';
|
|
717
|
-
const MPR_TOOL_GROUP_ID = 'mpr';
|
|
718
602
|
const ohif = {
|
|
719
603
|
layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
|
|
720
604
|
sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
|
|
@@ -781,36 +665,8 @@ function modeFactory() {
|
|
|
781
665
|
|
|
782
666
|
// init customizations
|
|
783
667
|
customizationService.addModeCustomizations(['@ohif/extension-test.customizationModule.custom-context-menu']);
|
|
784
|
-
|
|
785
|
-
toolbarService.
|
|
786
|
-
groupId: 'WindowLevel',
|
|
787
|
-
itemId: 'WindowLevel',
|
|
788
|
-
interactionType: 'tool',
|
|
789
|
-
commands: [{
|
|
790
|
-
commandName: 'setToolActive',
|
|
791
|
-
commandOptions: {
|
|
792
|
-
toolName: 'WindowLevel'
|
|
793
|
-
},
|
|
794
|
-
context: 'CORNERSTONE'
|
|
795
|
-
}]
|
|
796
|
-
});
|
|
797
|
-
const activateTool = () => {
|
|
798
|
-
toolbarService.recordInteraction(toolbarService.getDefaultTool());
|
|
799
|
-
|
|
800
|
-
// We don't need to reset the active tool whenever a viewport is getting
|
|
801
|
-
// added to the toolGroup.
|
|
802
|
-
unsubscribe();
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
// Since we only have one viewport for the basic cs3d mode and it has
|
|
806
|
-
// only one hanging protocol, we can just use the first viewport
|
|
807
|
-
({
|
|
808
|
-
unsubscribe
|
|
809
|
-
} = toolGroupService.subscribe(toolGroupService.EVENTS.VIEWPORT_ADDED, activateTool));
|
|
810
|
-
toolbarService.init(extensionManager);
|
|
811
|
-
toolbarService.addButtons([...src_toolbarButtons, ...src_moreTools, ...src_moreToolsMpr]);
|
|
812
|
-
toolbarService.createButtonSection(DEFAULT_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'MoreTools']);
|
|
813
|
-
toolbarService.createButtonSection(MPR_TOOL_GROUP_ID, ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreToolsMpr']);
|
|
668
|
+
toolbarService.addButtons([...src_toolbarButtons, ...src_moreTools]);
|
|
669
|
+
toolbarService.createButtonSection('primary', ['MeasurementTools', 'Zoom', 'WindowLevel', 'Pan', 'Capture', 'Layout', 'MPR', 'Crosshairs', 'MoreTools']);
|
|
814
670
|
},
|
|
815
671
|
onModeExit: ({
|
|
816
672
|
servicesManager
|