Mercurial > hg > orthanc-ohif
comparison Sources/app-config-user.js @ 0:39585ba26f20
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Jun 2023 09:48:46 +0200 |
parents | |
children | 36049c04ee27 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:39585ba26f20 |
---|---|
1 /** | |
2 * SPDX-FileCopyrightText: 2023 Sebastien Jodogne, UCLouvain, Belgium, | |
3 * and 2018-2023 Open Health Imaging Foundation | |
4 * SPDX-License-Identifier: MIT | |
5 */ | |
6 | |
7 window.config = { | |
8 extensions: [ | |
9 ], | |
10 modes: [], | |
11 customizationService: { | |
12 // Shows a custom route -access via http://localhost:3000/custom | |
13 // helloPage: '@ohif/extension-default.customizationModule.helloPage', | |
14 }, | |
15 showStudyList: true, | |
16 // some windows systems have issues with more than 3 web workers | |
17 maxNumberOfWebWorkers: 3, | |
18 // below flag is for performance reasons, but it might not work for all servers | |
19 omitQuotationForMultipartRequest: true, | |
20 showWarningMessageForCrossOrigin: true, | |
21 showCPUFallbackMessage: true, | |
22 showLoadingIndicator: true, | |
23 strictZSpacingForVolumeViewport: true, | |
24 maxNumRequests: { | |
25 interaction: 100, | |
26 thumbnail: 75, | |
27 // Prefetch number is dependent on the http protocol. For http 2 or | |
28 // above, the number of requests can be go a lot higher. | |
29 prefetch: 25, | |
30 }, | |
31 // filterQueryParam: false, | |
32 httpErrorHandler: error => { | |
33 // This is 429 when rejected from the public idc sandbox too often. | |
34 console.warn(error.status); | |
35 }, | |
36 hotkeys: [ | |
37 { | |
38 commandName: 'incrementActiveViewport', | |
39 label: 'Next Viewport', | |
40 keys: ['right'], | |
41 }, | |
42 { | |
43 commandName: 'decrementActiveViewport', | |
44 label: 'Previous Viewport', | |
45 keys: ['left'], | |
46 }, | |
47 { commandName: 'rotateViewportCW', label: 'Rotate Right', keys: ['r'] }, | |
48 { commandName: 'rotateViewportCCW', label: 'Rotate Left', keys: ['l'] }, | |
49 { commandName: 'invertViewport', label: 'Invert', keys: ['i'] }, | |
50 { | |
51 commandName: 'flipViewportHorizontal', | |
52 label: 'Flip Horizontally', | |
53 keys: ['h'], | |
54 }, | |
55 { | |
56 commandName: 'flipViewportVertical', | |
57 label: 'Flip Vertically', | |
58 keys: ['v'], | |
59 }, | |
60 { commandName: 'scaleUpViewport', label: 'Zoom In', keys: ['+'] }, | |
61 { commandName: 'scaleDownViewport', label: 'Zoom Out', keys: ['-'] }, | |
62 { commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='] }, | |
63 { commandName: 'resetViewport', label: 'Reset', keys: ['space'] }, | |
64 { commandName: 'nextImage', label: 'Next Image', keys: ['down'] }, | |
65 { commandName: 'previousImage', label: 'Previous Image', keys: ['up'] }, | |
66 // { | |
67 // commandName: 'previousViewportDisplaySet', | |
68 // label: 'Previous Series', | |
69 // keys: ['pagedown'], | |
70 // }, | |
71 // { | |
72 // commandName: 'nextViewportDisplaySet', | |
73 // label: 'Next Series', | |
74 // keys: ['pageup'], | |
75 // }, | |
76 { | |
77 commandName: 'setToolActive', | |
78 commandOptions: { toolName: 'Zoom' }, | |
79 label: 'Zoom', | |
80 keys: ['z'], | |
81 }, | |
82 // ~ Window level presets | |
83 { | |
84 commandName: 'windowLevelPreset1', | |
85 label: 'W/L Preset 1', | |
86 keys: ['1'], | |
87 }, | |
88 { | |
89 commandName: 'windowLevelPreset2', | |
90 label: 'W/L Preset 2', | |
91 keys: ['2'], | |
92 }, | |
93 { | |
94 commandName: 'windowLevelPreset3', | |
95 label: 'W/L Preset 3', | |
96 keys: ['3'], | |
97 }, | |
98 { | |
99 commandName: 'windowLevelPreset4', | |
100 label: 'W/L Preset 4', | |
101 keys: ['4'], | |
102 }, | |
103 { | |
104 commandName: 'windowLevelPreset5', | |
105 label: 'W/L Preset 5', | |
106 keys: ['5'], | |
107 }, | |
108 { | |
109 commandName: 'windowLevelPreset6', | |
110 label: 'W/L Preset 6', | |
111 keys: ['6'], | |
112 }, | |
113 { | |
114 commandName: 'windowLevelPreset7', | |
115 label: 'W/L Preset 7', | |
116 keys: ['7'], | |
117 }, | |
118 { | |
119 commandName: 'windowLevelPreset8', | |
120 label: 'W/L Preset 8', | |
121 keys: ['8'], | |
122 }, | |
123 { | |
124 commandName: 'windowLevelPreset9', | |
125 label: 'W/L Preset 9', | |
126 keys: ['9'], | |
127 }, | |
128 ], | |
129 }; |