# HG changeset patch # User Sebastien Jodogne # Date 1667251197 -3600 # Node ID 317a53d4fdc62895e995ede76aaffe71187a0b5a # Parent 237e0eb40f3862975c482a5bb77b929e270f5ffa added magnifying glass diff -r 237e0eb40f38 -r 317a53d4fdc6 Applications/StoneWebViewer/NEWS --- a/Applications/StoneWebViewer/NEWS Mon Oct 31 21:07:36 2022 +0100 +++ b/Applications/StoneWebViewer/NEWS Mon Oct 31 22:19:57 2022 +0100 @@ -6,6 +6,7 @@ - Rectangle probe - Ellipse probe * Added left/right rotation buttons +* Added magnifying glass * Added vertical slider showing position of the current frame inside the series * Display of orientation markers * The text field with the instance number is editable to go to a specific instance diff -r 237e0eb40f38 -r 317a53d4fdc6 Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Mon Oct 31 21:07:36 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Mon Oct 31 22:19:57 2022 +0100 @@ -50,6 +50,7 @@ var MOUSE_TOOL_CREATE_ELLIPSE_PROBE = 10; // New in 2.4 var MOUSE_TOOL_CREATE_RECTANGLE_PROBE = 11; // New in 2.4 var MOUSE_TOOL_CREATE_TEXT_ANNOTATION = 12; // New in 2.4 +var MOUSE_TOOL_MAGNIFYING_GLASS = 13; // New in 2.4 function getParameterFromUrl(key) { @@ -113,6 +114,9 @@ else if (config == "Crosshair") { return stone.WebViewerAction.CROSSHAIR; } + else if (config == "MagnifyingGlass") { + return stone.WebViewerAction.MAGNIFYING_GLASS; + } else { alert('Unsupported mouse action in the configuration file: ' + config); return stone.WebViewerAction.PAN; diff -r 237e0eb40f38 -r 317a53d4fdc6 Applications/StoneWebViewer/WebApplication/configuration.json --- a/Applications/StoneWebViewer/WebApplication/configuration.json Mon Oct 31 21:07:36 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/configuration.json Mon Oct 31 22:19:57 2022 +0100 @@ -37,7 +37,8 @@ * 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". + * "Crosshair", "Windowing", "Pan", "Rotate", "Zoom" and + * "MagnifyingGlass". **/ "CombinedToolEnabled" : true, "CombinedToolBehaviour" : { diff -r 237e0eb40f38 -r 317a53d4fdc6 Applications/StoneWebViewer/WebApplication/index.html --- a/Applications/StoneWebViewer/WebApplication/index.html Mon Oct 31 21:07:36 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/index.html Mon Oct 31 22:19:57 2022 +0100 @@ -485,6 +485,15 @@
+
+ +
+