Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/configuration.json @ 1701:b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Nov 2020 12:21:26 +0100 |
parents | f1bd464dc3e1 |
children | 2931f5e15320 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/configuration.json Fri Nov 27 10:55:21 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/configuration.json Fri Nov 27 12:21:26 2020 +0100 @@ -2,11 +2,6 @@ "StoneWebViewer" : { /** - * Enables/disables the print button. - **/ - "PrintEnabled" : true, - - /** * Defines how dates are displayed in the UI. If this option is not * set, the DICOM tags will be displayed as such. "DD" will be * replaced by the day, "MM" by the month, and "YYYY" by the year. @@ -19,15 +14,41 @@ * and window center. **/ "WindowingPresets" : [ - {"Name": "CT Lung", "WindowCenter": -400, "WindowWidth": 1600}, - {"Name": "CT Abdomen", "WindowCenter": 60, "WindowWidth": 400}, - {"Name": "CT Bone", "WindowCenter": 300, "WindowWidth": 1500}, - {"Name": "CT Brain", "WindowCenter": 40, "WindowWidth": 80}, - {"Name": "CT Chest", "WindowCenter": 40, "WindowWidth": 400}, - {"Name": "CT Angio", "WindowCenter": 300, "WindowWidth": 600} + {"Name" : "CT Lung", "WindowCenter" : -400, "WindowWidth" : 1600}, + {"Name" : "CT Abdomen", "WindowCenter" : 60, "WindowWidth" : 400}, + {"Name" : "CT Bone", "WindowCenter" : 300, "WindowWidth" : 1500}, + {"Name" : "CT Brain", "WindowCenter" : 40, "WindowWidth" : 80}, + {"Name" : "CT Chest", "WindowCenter" : 40, "WindowWidth" : 400}, + {"Name" : "CT Angio", "WindowCenter" : 300, "WindowWidth" : 600} ], /** + * Enables/disables the combined tool. This is the default mode + * for mouse interactions. The combined tool allows to access the + * windowing, zoom and pan from a single mouse configuration. The + * behaviour of the combined tool is defined in + * CombinedToolBehaviour. The available mouse actions are + * "Crosshair", "Windowing", "Pan", "Rotate" and "Zoom". + **/ + "CombinedToolEnabled" : true, + "CombinedToolBehaviour" : { + "LeftMouseButton" : "Windowing", + "MiddleMouseButton" : "Pan", + "RightMouseButton" : "Zoom" + }, + + /** + * Enables/disables the print button. + **/ + "PrintEnabled" : true, + + /** + * Enables/disables the button to download a screenshot of the + * active viewport as a JPEG file. + **/ + "DownloadAsJpegEnabled" : true, + + /** * The allowed origin for messages corresponding to dynamic actions * triggered by another Web page using "window.postMessage()". The * special value "*" will allow any origin, which is an insecure