@ohif/app 3.8.0-beta.7 → 3.8.0-beta.70
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/{220.bundle.f7e1c96c94245e70f2be.js → 109.bundle.b4fee2a22b622839baf5.js} +4466 -3715
- package/dist/{471.bundle.49c8d281adbae4a2c4df.js → 121.bundle.21827fec690c01ee9ab3.js} +85 -112
- package/dist/{19.bundle.e5579df6d7b74af50b1d.js → 155.bundle.0dabe8513b605b01ac3d.js} +334 -287
- package/dist/{687.bundle.9d0330ea5d61fe3117da.js → 164.bundle.0b1a2be351543c1433e8.js} +22 -38
- package/dist/17dd54813d5acc10bf8f.wasm +0 -0
- package/dist/{506.bundle.ab8226d3d81abe874544.js → 188.bundle.81e83b073b6fd4ae0058.js} +23 -28
- package/dist/191.bundle.7d89c921abefd1140d50.js +30360 -0
- package/dist/{221.bundle.c2dc03d8fa4235dc1285.js → 2.bundle.04dbbf67a52fe109749c.js} +351 -546
- package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
- package/dist/290.bundle.952de53057f98e2c5ef0.js +8883 -0
- package/dist/{451.bundle.57c21db5d003c75e9d61.js → 295.bundle.3a0d5062d65296c4bf5d.js} +102 -127
- package/dist/{125.bundle.253395f320b72180da63.js → 297.bundle.194d8985ab974839b5b6.js} +7 -8
- package/dist/{202.bundle.d3490836f71e001dd30f.js → 342.bundle.6e49f63ea7cea4645c0a.js} +544 -860
- package/dist/41.bundle.6ec0794a483e9a30eb94.js +831 -0
- package/dist/425.bundle.ffcdde2143a5757926b9.js +2957 -0
- package/dist/425.css +2 -0
- package/dist/{126.bundle.42df2dafc9c0310da188.js → 448.bundle.9177b9d909654efbc8d5.js} +316 -427
- package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 504.bundle.993d7e2dec36257d4ce4.js} +14338 -27291
- package/dist/{886.bundle.c8dd3ecc42a4253de278.js → 530.bundle.566bfd08dccb4cf6d98b.js} +75 -105
- package/dist/{250.bundle.aea3335667054bdefe36.js → 544.bundle.1110b24e96863d719a95.js} +39 -56
- package/dist/{663.bundle.9f359963019cd8ccf8f9.js → 559.bundle.4f111410af43324629ca.js} +151 -147
- package/dist/{181.bundle.a62b9f0ec692299acb35.js → 574.bundle.83afbc7922736fc6846d.js} +1246 -289
- package/dist/{181.css → 574.css} +1 -1
- package/dist/{410.bundle.38c9d3820e152e89288e.js → 594.bundle.ffeebda1bb9a81182a80.js} +183 -221
- package/dist/{776.bundle.004382036bdbd8ee2b95.js → 595.bundle.1c1a50c4ff87763b786a.js} +3128 -1028
- package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 644.bundle.1e77691d2eeb96a423b0.js} +1852 -8945
- package/dist/699.bundle.db05df7b8e2ad605e928.js +767 -0
- package/dist/{359.bundle.8abe0036a7bf6b5fd115.js → 724.bundle.eada9d6c23678a5a2947.js} +130 -254
- package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 726.bundle.c8de818cf1a3ff0cf7d2.js} +512 -879
- package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 835.bundle.15aff0b7433bb0dd6d6d.js} +37 -30
- package/dist/{822.bundle.82cdc418f8f56da6060b.js → 862.bundle.959ef65b18c1d3b5e2b4.js} +77 -96
- package/dist/{236.bundle.c9e70d55e7b2574c1ecd.js → 889.bundle.67c6e5f988c9b1d289ef.js} +198 -197
- package/dist/{342.bundle.d9668551811e3a88aaa4.js → 90.bundle.f41c8c4fc78cdfd4de30.js} +1430 -1055
- package/dist/{281.bundle.16a2933086a57e60c96c.js → 905.bundle.eb821474b36b96b897f9.js} +155 -122
- package/dist/{814.bundle.a1aba9c1e3d336008351.js → 907.bundle.ca904d9747480a0e4bf1.js} +16 -30
- package/dist/{417.bundle.af0a207c29b109f84159.js → 931.bundle.d270a1fda9a2836c3cc5.js} +26 -26
- package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 939.bundle.9d93b2e47c52338747a2.js} +7 -8
- package/dist/{12.bundle.37a8b47d2ae587cb9226.js → 961.bundle.65967b1a4af002af1d1d.js} +16 -31
- package/dist/987.bundle.6bdfb3cd8762b8889632.js +122950 -0
- package/dist/app-config.js +1 -0
- package/dist/app.bundle.css +15 -13
- package/dist/{app.bundle.437d085e13599d1e1ced.js → app.bundle.e21e5afd46fb064cb5de.js} +147713 -61638
- package/dist/assets/images/CT-AAA.png +0 -0
- package/dist/assets/images/CT-AAA2.png +0 -0
- package/dist/assets/images/CT-Air.png +0 -0
- package/dist/assets/images/CT-Bone.png +0 -0
- package/dist/assets/images/CT-Bones.png +0 -0
- package/dist/assets/images/CT-Cardiac.png +0 -0
- package/dist/assets/images/CT-Cardiac2.png +0 -0
- package/dist/assets/images/CT-Cardiac3.png +0 -0
- package/dist/assets/images/CT-Chest-Contrast-Enhanced.png +0 -0
- package/dist/assets/images/CT-Chest-Vessels.png +0 -0
- package/dist/assets/images/CT-Coronary-Arteries-2.png +0 -0
- package/dist/assets/images/CT-Coronary-Arteries-3.png +0 -0
- package/dist/assets/images/CT-Coronary-Arteries.png +0 -0
- package/dist/assets/images/CT-Cropped-Volume-Bone.png +0 -0
- package/dist/assets/images/CT-Fat.png +0 -0
- package/dist/assets/images/CT-Liver-Vasculature.png +0 -0
- package/dist/assets/images/CT-Lung.png +0 -0
- package/dist/assets/images/CT-MIP.png +0 -0
- package/dist/assets/images/CT-Muscle.png +0 -0
- package/dist/assets/images/CT-Pulmonary-Arteries.png +0 -0
- package/dist/assets/images/CT-Soft-Tissue.png +0 -0
- package/dist/assets/images/DTI-FA-Brain.png +0 -0
- package/dist/assets/images/MR-Angio.png +0 -0
- package/dist/assets/images/MR-Default.png +0 -0
- package/dist/assets/images/MR-MIP.png +0 -0
- package/dist/assets/images/MR-T2-Brain.png +0 -0
- package/dist/assets/images/VolumeRendering.png +0 -0
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
- package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
- package/dist/polySeg.bundle.e7b4c29fb9173e8567b8.js +252 -0
- package/dist/serve.json +12 -0
- package/dist/sw.js +1 -1
- package/package.json +25 -22
- package/dist/23.bundle.e008ad788170f2ed5569.js +0 -900
- package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
- package/dist/613.bundle.aed640a7900dbcb688f5.js +0 -532
- package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
- package/dist/75788f12450d4c5ed494.wasm +0 -0
- package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
- package/dist/788.bundle.dcd53828d1bb2ac64d04.js +0 -2682
- package/dist/82.bundle.5a94dd7645e5c5476f59.js +0 -1049
- package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
- /package/dist/{19.css → 155.css} +0 -0
- /package/dist/{221.css → 2.css} +0 -0
- /package/dist/{579.css → 481.css} +0 -0
- /package/dist/{250.css → 544.css} +0 -0
- /package/dist/{776.css → 595.css} +0 -0
|
@@ -1,1049 +0,0 @@
|
|
|
1
|
-
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82],{
|
|
2
|
-
|
|
3
|
-
/***/ 59185:
|
|
4
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
// ESM COMPAT FLAG
|
|
8
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9
|
-
|
|
10
|
-
// EXPORTS
|
|
11
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
"default": () => (/* binding */ longitudinal_src),
|
|
13
|
-
initToolGroups: () => (/* reexport */ src_initToolGroups),
|
|
14
|
-
toolbarButtons: () => (/* reexport */ src_toolbarButtons)
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
|
|
18
|
-
var src = __webpack_require__(71771);
|
|
19
|
-
// EXTERNAL MODULE: ../../ui/src/index.js + 486 modules
|
|
20
|
-
var ui_src = __webpack_require__(22582);
|
|
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);
|
|
272
|
-
;// CONCATENATED MODULE: ../../../modes/longitudinal/package.json
|
|
273
|
-
const package_namespaceObject = JSON.parse('{"u2":"@ohif/mode-longitudinal"}');
|
|
274
|
-
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/id.js
|
|
275
|
-
|
|
276
|
-
const id = package_namespaceObject.u2;
|
|
277
|
-
|
|
278
|
-
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/initToolGroups.js
|
|
279
|
-
function initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, toolGroupId) {
|
|
280
|
-
const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
|
|
281
|
-
const {
|
|
282
|
-
toolNames,
|
|
283
|
-
Enums
|
|
284
|
-
} = utilityModule.exports;
|
|
285
|
-
const tools = {
|
|
286
|
-
active: [{
|
|
287
|
-
toolName: toolNames.WindowLevel,
|
|
288
|
-
bindings: [{
|
|
289
|
-
mouseButton: Enums.MouseBindings.Primary
|
|
290
|
-
}]
|
|
291
|
-
}, {
|
|
292
|
-
toolName: toolNames.Pan,
|
|
293
|
-
bindings: [{
|
|
294
|
-
mouseButton: Enums.MouseBindings.Auxiliary
|
|
295
|
-
}]
|
|
296
|
-
}, {
|
|
297
|
-
toolName: toolNames.Zoom,
|
|
298
|
-
bindings: [{
|
|
299
|
-
mouseButton: Enums.MouseBindings.Secondary
|
|
300
|
-
}]
|
|
301
|
-
}, {
|
|
302
|
-
toolName: toolNames.StackScrollMouseWheel,
|
|
303
|
-
bindings: []
|
|
304
|
-
}],
|
|
305
|
-
passive: [{
|
|
306
|
-
toolName: toolNames.Length
|
|
307
|
-
}, {
|
|
308
|
-
toolName: toolNames.ArrowAnnotate,
|
|
309
|
-
configuration: {
|
|
310
|
-
getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
|
|
311
|
-
callback,
|
|
312
|
-
eventDetails
|
|
313
|
-
}),
|
|
314
|
-
changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
|
|
315
|
-
callback,
|
|
316
|
-
data,
|
|
317
|
-
eventDetails
|
|
318
|
-
})
|
|
319
|
-
}
|
|
320
|
-
}, {
|
|
321
|
-
toolName: toolNames.Bidirectional
|
|
322
|
-
}, {
|
|
323
|
-
toolName: toolNames.DragProbe
|
|
324
|
-
}, {
|
|
325
|
-
toolName: toolNames.EllipticalROI
|
|
326
|
-
}, {
|
|
327
|
-
toolName: toolNames.CircleROI
|
|
328
|
-
}, {
|
|
329
|
-
toolName: toolNames.RectangleROI
|
|
330
|
-
}, {
|
|
331
|
-
toolName: toolNames.StackScroll
|
|
332
|
-
}, {
|
|
333
|
-
toolName: toolNames.Angle
|
|
334
|
-
}, {
|
|
335
|
-
toolName: toolNames.CobbAngle
|
|
336
|
-
}, {
|
|
337
|
-
toolName: toolNames.PlanarFreehandROI
|
|
338
|
-
}, {
|
|
339
|
-
toolName: toolNames.Magnify
|
|
340
|
-
}, {
|
|
341
|
-
toolName: toolNames.SegmentationDisplay
|
|
342
|
-
}, {
|
|
343
|
-
toolName: toolNames.CalibrationLine
|
|
344
|
-
}],
|
|
345
|
-
// enabled
|
|
346
|
-
enabled: [{
|
|
347
|
-
toolName: toolNames.ImageOverlayViewer
|
|
348
|
-
}],
|
|
349
|
-
// disabled
|
|
350
|
-
disabled: [{
|
|
351
|
-
toolName: toolNames.ReferenceLines
|
|
352
|
-
}]
|
|
353
|
-
};
|
|
354
|
-
toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
|
|
355
|
-
}
|
|
356
|
-
function initSRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
357
|
-
const SRUtilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone-dicom-sr.utilityModule.tools');
|
|
358
|
-
if (!SRUtilityModule) {
|
|
359
|
-
return;
|
|
360
|
-
}
|
|
361
|
-
const CS3DUtilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
|
|
362
|
-
const {
|
|
363
|
-
toolNames: SRToolNames
|
|
364
|
-
} = SRUtilityModule.exports;
|
|
365
|
-
const {
|
|
366
|
-
toolNames,
|
|
367
|
-
Enums
|
|
368
|
-
} = CS3DUtilityModule.exports;
|
|
369
|
-
const tools = {
|
|
370
|
-
active: [{
|
|
371
|
-
toolName: toolNames.WindowLevel,
|
|
372
|
-
bindings: [{
|
|
373
|
-
mouseButton: Enums.MouseBindings.Primary
|
|
374
|
-
}]
|
|
375
|
-
}, {
|
|
376
|
-
toolName: toolNames.Pan,
|
|
377
|
-
bindings: [{
|
|
378
|
-
mouseButton: Enums.MouseBindings.Auxiliary
|
|
379
|
-
}]
|
|
380
|
-
}, {
|
|
381
|
-
toolName: toolNames.Zoom,
|
|
382
|
-
bindings: [{
|
|
383
|
-
mouseButton: Enums.MouseBindings.Secondary
|
|
384
|
-
}]
|
|
385
|
-
}, {
|
|
386
|
-
toolName: toolNames.StackScrollMouseWheel,
|
|
387
|
-
bindings: []
|
|
388
|
-
}],
|
|
389
|
-
passive: [{
|
|
390
|
-
toolName: SRToolNames.SRLength
|
|
391
|
-
}, {
|
|
392
|
-
toolName: SRToolNames.SRArrowAnnotate
|
|
393
|
-
}, {
|
|
394
|
-
toolName: SRToolNames.SRBidirectional
|
|
395
|
-
}, {
|
|
396
|
-
toolName: SRToolNames.SREllipticalROI
|
|
397
|
-
}, {
|
|
398
|
-
toolName: SRToolNames.SRCircleROI
|
|
399
|
-
}],
|
|
400
|
-
enabled: [{
|
|
401
|
-
toolName: SRToolNames.DICOMSRDisplay,
|
|
402
|
-
bindings: []
|
|
403
|
-
}]
|
|
404
|
-
// disabled
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
const toolGroupId = 'SRToolGroup';
|
|
408
|
-
toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
|
|
409
|
-
}
|
|
410
|
-
function initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {
|
|
411
|
-
const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
|
|
412
|
-
const {
|
|
413
|
-
toolNames,
|
|
414
|
-
Enums
|
|
415
|
-
} = utilityModule.exports;
|
|
416
|
-
const tools = {
|
|
417
|
-
active: [{
|
|
418
|
-
toolName: toolNames.WindowLevel,
|
|
419
|
-
bindings: [{
|
|
420
|
-
mouseButton: Enums.MouseBindings.Primary
|
|
421
|
-
}]
|
|
422
|
-
}, {
|
|
423
|
-
toolName: toolNames.Pan,
|
|
424
|
-
bindings: [{
|
|
425
|
-
mouseButton: Enums.MouseBindings.Auxiliary
|
|
426
|
-
}]
|
|
427
|
-
}, {
|
|
428
|
-
toolName: toolNames.Zoom,
|
|
429
|
-
bindings: [{
|
|
430
|
-
mouseButton: Enums.MouseBindings.Secondary
|
|
431
|
-
}]
|
|
432
|
-
}, {
|
|
433
|
-
toolName: toolNames.StackScrollMouseWheel,
|
|
434
|
-
bindings: []
|
|
435
|
-
}],
|
|
436
|
-
passive: [{
|
|
437
|
-
toolName: toolNames.Length
|
|
438
|
-
}, {
|
|
439
|
-
toolName: toolNames.ArrowAnnotate,
|
|
440
|
-
configuration: {
|
|
441
|
-
getTextCallback: (callback, eventDetails) => commandsManager.runCommand('arrowTextCallback', {
|
|
442
|
-
callback,
|
|
443
|
-
eventDetails
|
|
444
|
-
}),
|
|
445
|
-
changeTextCallback: (data, eventDetails, callback) => commandsManager.runCommand('arrowTextCallback', {
|
|
446
|
-
callback,
|
|
447
|
-
data,
|
|
448
|
-
eventDetails
|
|
449
|
-
})
|
|
450
|
-
}
|
|
451
|
-
}, {
|
|
452
|
-
toolName: toolNames.Bidirectional
|
|
453
|
-
}, {
|
|
454
|
-
toolName: toolNames.DragProbe
|
|
455
|
-
}, {
|
|
456
|
-
toolName: toolNames.EllipticalROI
|
|
457
|
-
}, {
|
|
458
|
-
toolName: toolNames.CircleROI
|
|
459
|
-
}, {
|
|
460
|
-
toolName: toolNames.RectangleROI
|
|
461
|
-
}, {
|
|
462
|
-
toolName: toolNames.StackScroll
|
|
463
|
-
}, {
|
|
464
|
-
toolName: toolNames.Angle
|
|
465
|
-
}, {
|
|
466
|
-
toolName: toolNames.CobbAngle
|
|
467
|
-
}, {
|
|
468
|
-
toolName: toolNames.PlanarFreehandROI
|
|
469
|
-
}, {
|
|
470
|
-
toolName: toolNames.SegmentationDisplay
|
|
471
|
-
}],
|
|
472
|
-
disabled: [{
|
|
473
|
-
toolName: toolNames.Crosshairs,
|
|
474
|
-
configuration: {
|
|
475
|
-
viewportIndicators: false,
|
|
476
|
-
autoPan: {
|
|
477
|
-
enabled: false,
|
|
478
|
-
panSize: 10
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}, {
|
|
482
|
-
toolName: toolNames.ReferenceLines
|
|
483
|
-
}]
|
|
484
|
-
|
|
485
|
-
// enabled
|
|
486
|
-
// disabled
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
toolGroupService.createToolGroupAndAddTools('mpr', tools);
|
|
490
|
-
}
|
|
491
|
-
function initVolume3DToolGroup(extensionManager, toolGroupService) {
|
|
492
|
-
const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
|
|
493
|
-
const {
|
|
494
|
-
toolNames,
|
|
495
|
-
Enums
|
|
496
|
-
} = utilityModule.exports;
|
|
497
|
-
const tools = {
|
|
498
|
-
active: [{
|
|
499
|
-
toolName: toolNames.TrackballRotateTool,
|
|
500
|
-
bindings: [{
|
|
501
|
-
mouseButton: Enums.MouseBindings.Primary
|
|
502
|
-
}]
|
|
503
|
-
}, {
|
|
504
|
-
toolName: toolNames.Zoom,
|
|
505
|
-
bindings: [{
|
|
506
|
-
mouseButton: Enums.MouseBindings.Secondary
|
|
507
|
-
}]
|
|
508
|
-
}, {
|
|
509
|
-
toolName: toolNames.Pan,
|
|
510
|
-
bindings: [{
|
|
511
|
-
mouseButton: Enums.MouseBindings.Auxiliary
|
|
512
|
-
}]
|
|
513
|
-
}]
|
|
514
|
-
};
|
|
515
|
-
toolGroupService.createToolGroupAndAddTools('volume3d', tools);
|
|
516
|
-
}
|
|
517
|
-
function initToolGroups(extensionManager, toolGroupService, commandsManager) {
|
|
518
|
-
initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, 'default');
|
|
519
|
-
initSRToolGroup(extensionManager, toolGroupService, commandsManager);
|
|
520
|
-
initMPRToolGroup(extensionManager, toolGroupService, commandsManager);
|
|
521
|
-
initVolume3DToolGroup(extensionManager, toolGroupService);
|
|
522
|
-
}
|
|
523
|
-
/* 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);
|
|
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);
|
|
810
|
-
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/index.js
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
// Allow this mode by excluding non-imaging modalities such as SR, SEG
|
|
819
|
-
// Also, SM is not a simple imaging modalities, so exclude it.
|
|
820
|
-
const NON_IMAGE_MODALITIES = ['SM', 'ECG', 'SR', 'SEG', 'RTSTRUCT'];
|
|
821
|
-
const DEFAULT_TOOL_GROUP_ID = 'default';
|
|
822
|
-
const MPR_TOOL_GROUP_ID = 'mpr';
|
|
823
|
-
const ohif = {
|
|
824
|
-
layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
|
|
825
|
-
sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
|
|
826
|
-
thumbnailList: '@ohif/extension-default.panelModule.seriesList'
|
|
827
|
-
};
|
|
828
|
-
const tracked = {
|
|
829
|
-
measurements: '@ohif/extension-measurement-tracking.panelModule.trackedMeasurements',
|
|
830
|
-
thumbnailList: '@ohif/extension-measurement-tracking.panelModule.seriesList',
|
|
831
|
-
viewport: '@ohif/extension-measurement-tracking.viewportModule.cornerstone-tracked'
|
|
832
|
-
};
|
|
833
|
-
const dicomsr = {
|
|
834
|
-
sopClassHandler: '@ohif/extension-cornerstone-dicom-sr.sopClassHandlerModule.dicom-sr',
|
|
835
|
-
viewport: '@ohif/extension-cornerstone-dicom-sr.viewportModule.dicom-sr'
|
|
836
|
-
};
|
|
837
|
-
const dicomvideo = {
|
|
838
|
-
sopClassHandler: '@ohif/extension-dicom-video.sopClassHandlerModule.dicom-video',
|
|
839
|
-
viewport: '@ohif/extension-dicom-video.viewportModule.dicom-video'
|
|
840
|
-
};
|
|
841
|
-
const dicompdf = {
|
|
842
|
-
sopClassHandler: '@ohif/extension-dicom-pdf.sopClassHandlerModule.dicom-pdf',
|
|
843
|
-
viewport: '@ohif/extension-dicom-pdf.viewportModule.dicom-pdf'
|
|
844
|
-
};
|
|
845
|
-
const dicomSeg = {
|
|
846
|
-
sopClassHandler: '@ohif/extension-cornerstone-dicom-seg.sopClassHandlerModule.dicom-seg',
|
|
847
|
-
viewport: '@ohif/extension-cornerstone-dicom-seg.viewportModule.dicom-seg',
|
|
848
|
-
panel: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentation'
|
|
849
|
-
};
|
|
850
|
-
const dicomRT = {
|
|
851
|
-
viewport: '@ohif/extension-cornerstone-dicom-rt.viewportModule.dicom-rt',
|
|
852
|
-
sopClassHandler: '@ohif/extension-cornerstone-dicom-rt.sopClassHandlerModule.dicom-rt'
|
|
853
|
-
};
|
|
854
|
-
const extensionDependencies = {
|
|
855
|
-
// Can derive the versions at least process.env.from npm_package_version
|
|
856
|
-
'@ohif/extension-default': '^3.0.0',
|
|
857
|
-
'@ohif/extension-cornerstone': '^3.0.0',
|
|
858
|
-
'@ohif/extension-measurement-tracking': '^3.0.0',
|
|
859
|
-
'@ohif/extension-cornerstone-dicom-sr': '^3.0.0',
|
|
860
|
-
'@ohif/extension-cornerstone-dicom-seg': '^3.0.0',
|
|
861
|
-
'@ohif/extension-cornerstone-dicom-rt': '^3.0.0',
|
|
862
|
-
'@ohif/extension-dicom-pdf': '^3.0.1',
|
|
863
|
-
'@ohif/extension-dicom-video': '^3.0.1'
|
|
864
|
-
};
|
|
865
|
-
function modeFactory(_ref) {
|
|
866
|
-
let {
|
|
867
|
-
modeConfiguration
|
|
868
|
-
} = _ref;
|
|
869
|
-
let _activatePanelTriggersSubscriptions = [];
|
|
870
|
-
return {
|
|
871
|
-
// TODO: We're using this as a route segment
|
|
872
|
-
// We should not be.
|
|
873
|
-
id: id,
|
|
874
|
-
routeName: 'viewer',
|
|
875
|
-
displayName: 'Basic Viewer',
|
|
876
|
-
/**
|
|
877
|
-
* Lifecycle hooks
|
|
878
|
-
*/
|
|
879
|
-
onModeEnter: _ref2 => {
|
|
880
|
-
let {
|
|
881
|
-
servicesManager,
|
|
882
|
-
extensionManager,
|
|
883
|
-
commandsManager
|
|
884
|
-
} = _ref2;
|
|
885
|
-
const {
|
|
886
|
-
measurementService,
|
|
887
|
-
toolbarService,
|
|
888
|
-
toolGroupService,
|
|
889
|
-
panelService,
|
|
890
|
-
customizationService
|
|
891
|
-
} = servicesManager.services;
|
|
892
|
-
measurementService.clearMeasurements();
|
|
893
|
-
|
|
894
|
-
// Init Default and SR ToolGroups
|
|
895
|
-
src_initToolGroups(extensionManager, toolGroupService, commandsManager);
|
|
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
|
-
});
|
|
909
|
-
const activateTool = () => {
|
|
910
|
-
toolbarService.recordInteraction(toolbarService.getDefaultTool());
|
|
911
|
-
|
|
912
|
-
// We don't need to reset the active tool whenever a viewport is getting
|
|
913
|
-
// added to the toolGroup.
|
|
914
|
-
unsubscribe();
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
// Since we only have one viewport for the basic cs3d mode and it has
|
|
918
|
-
// only one hanging protocol, we can just use the first viewport
|
|
919
|
-
({
|
|
920
|
-
unsubscribe
|
|
921
|
-
} = toolGroupService.subscribe(toolGroupService.EVENTS.VIEWPORT_ADDED, activateTool));
|
|
922
|
-
toolbarService.init(extensionManager);
|
|
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']);
|
|
926
|
-
customizationService.addModeCustomizations([{
|
|
927
|
-
id: 'segmentation.disableEditing',
|
|
928
|
-
value: true
|
|
929
|
-
}]);
|
|
930
|
-
|
|
931
|
-
// // ActivatePanel event trigger for when a segmentation or measurement is added.
|
|
932
|
-
// // Do not force activation so as to respect the state the user may have left the UI in.
|
|
933
|
-
// _activatePanelTriggersSubscriptions = [
|
|
934
|
-
// ...panelService.addActivatePanelTriggers(dicomSeg.panel, [
|
|
935
|
-
// {
|
|
936
|
-
// sourcePubSubService: segmentationService,
|
|
937
|
-
// sourceEvents: [
|
|
938
|
-
// segmentationService.EVENTS.SEGMENTATION_PIXEL_DATA_CREATED,
|
|
939
|
-
// ],
|
|
940
|
-
// },
|
|
941
|
-
// ]),
|
|
942
|
-
// ...panelService.addActivatePanelTriggers(tracked.measurements, [
|
|
943
|
-
// {
|
|
944
|
-
// sourcePubSubService: measurementService,
|
|
945
|
-
// sourceEvents: [
|
|
946
|
-
// measurementService.EVENTS.MEASUREMENT_ADDED,
|
|
947
|
-
// measurementService.EVENTS.RAW_MEASUREMENT_ADDED,
|
|
948
|
-
// ],
|
|
949
|
-
// },
|
|
950
|
-
// ]),
|
|
951
|
-
// ];
|
|
952
|
-
},
|
|
953
|
-
|
|
954
|
-
onModeExit: _ref3 => {
|
|
955
|
-
let {
|
|
956
|
-
servicesManager
|
|
957
|
-
} = _ref3;
|
|
958
|
-
const {
|
|
959
|
-
toolGroupService,
|
|
960
|
-
syncGroupService,
|
|
961
|
-
toolbarService,
|
|
962
|
-
segmentationService,
|
|
963
|
-
cornerstoneViewportService
|
|
964
|
-
} = servicesManager.services;
|
|
965
|
-
_activatePanelTriggersSubscriptions.forEach(sub => sub.unsubscribe());
|
|
966
|
-
_activatePanelTriggersSubscriptions = [];
|
|
967
|
-
toolGroupService.destroy();
|
|
968
|
-
syncGroupService.destroy();
|
|
969
|
-
segmentationService.destroy();
|
|
970
|
-
cornerstoneViewportService.destroy();
|
|
971
|
-
},
|
|
972
|
-
validationTags: {
|
|
973
|
-
study: [],
|
|
974
|
-
series: []
|
|
975
|
-
},
|
|
976
|
-
isValidMode: function (_ref4) {
|
|
977
|
-
let {
|
|
978
|
-
modalities
|
|
979
|
-
} = _ref4;
|
|
980
|
-
const modalities_list = modalities.split('\\');
|
|
981
|
-
|
|
982
|
-
// Exclude non-image modalities
|
|
983
|
-
return !!modalities_list.filter(modality => NON_IMAGE_MODALITIES.indexOf(modality) === -1).length;
|
|
984
|
-
},
|
|
985
|
-
routes: [{
|
|
986
|
-
path: 'longitudinal',
|
|
987
|
-
/*init: ({ servicesManager, extensionManager }) => {
|
|
988
|
-
//defaultViewerRouteInit
|
|
989
|
-
},*/
|
|
990
|
-
layoutTemplate: () => {
|
|
991
|
-
return {
|
|
992
|
-
id: ohif.layout,
|
|
993
|
-
props: {
|
|
994
|
-
leftPanels: [tracked.thumbnailList],
|
|
995
|
-
rightPanels: [dicomSeg.panel, tracked.measurements],
|
|
996
|
-
rightPanelDefaultClosed: true,
|
|
997
|
-
viewports: [{
|
|
998
|
-
namespace: tracked.viewport,
|
|
999
|
-
displaySetsToDisplay: [ohif.sopClassHandler]
|
|
1000
|
-
}, {
|
|
1001
|
-
namespace: dicomsr.viewport,
|
|
1002
|
-
displaySetsToDisplay: [dicomsr.sopClassHandler]
|
|
1003
|
-
}, {
|
|
1004
|
-
namespace: dicomvideo.viewport,
|
|
1005
|
-
displaySetsToDisplay: [dicomvideo.sopClassHandler]
|
|
1006
|
-
}, {
|
|
1007
|
-
namespace: dicompdf.viewport,
|
|
1008
|
-
displaySetsToDisplay: [dicompdf.sopClassHandler]
|
|
1009
|
-
}, {
|
|
1010
|
-
namespace: dicomSeg.viewport,
|
|
1011
|
-
displaySetsToDisplay: [dicomSeg.sopClassHandler]
|
|
1012
|
-
}, {
|
|
1013
|
-
namespace: dicomRT.viewport,
|
|
1014
|
-
displaySetsToDisplay: [dicomRT.sopClassHandler]
|
|
1015
|
-
}]
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
}
|
|
1019
|
-
}],
|
|
1020
|
-
extensions: extensionDependencies,
|
|
1021
|
-
// Default protocol gets self-registered by default in the init
|
|
1022
|
-
hangingProtocol: 'default',
|
|
1023
|
-
// Order is important in sop class handlers when two handlers both use
|
|
1024
|
-
// the same sop class under different situations. In that case, the more
|
|
1025
|
-
// general handler needs to come last. For this case, the dicomvideo must
|
|
1026
|
-
// come first to remove video transfer syntax before ohif uses images
|
|
1027
|
-
sopClassHandlers: [dicomvideo.sopClassHandler, dicomSeg.sopClassHandler, ohif.sopClassHandler, dicompdf.sopClassHandler, dicomsr.sopClassHandler, dicomRT.sopClassHandler],
|
|
1028
|
-
hotkeys: [...src/* hotkeys */.dD.defaults.hotkeyBindings],
|
|
1029
|
-
...modeConfiguration
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
const mode = {
|
|
1033
|
-
id: id,
|
|
1034
|
-
modeFactory,
|
|
1035
|
-
extensionDependencies
|
|
1036
|
-
};
|
|
1037
|
-
/* harmony default export */ const longitudinal_src = (mode);
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
/***/ }),
|
|
1041
|
-
|
|
1042
|
-
/***/ 78753:
|
|
1043
|
-
/***/ (() => {
|
|
1044
|
-
|
|
1045
|
-
/* (ignored) */
|
|
1046
|
-
|
|
1047
|
-
/***/ })
|
|
1048
|
-
|
|
1049
|
-
}]);
|