comparison Applications/StoneWebViewer/WebApplication/app.js @ 1993:317a53d4fdc6

added magnifying glass
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Oct 2022 22:19:57 +0100
parents e8b9a2ba1df1
children 6e4ef6e3b2bf
comparison
equal deleted inserted replaced
1992:237e0eb40f38 1993:317a53d4fdc6
48 var MOUSE_TOOL_REMOVE_MEASURE = 8; 48 var MOUSE_TOOL_REMOVE_MEASURE = 8;
49 var MOUSE_TOOL_CREATE_PIXEL_PROBE = 9; // New in 2.4 49 var MOUSE_TOOL_CREATE_PIXEL_PROBE = 9; // New in 2.4
50 var MOUSE_TOOL_CREATE_ELLIPSE_PROBE = 10; // New in 2.4 50 var MOUSE_TOOL_CREATE_ELLIPSE_PROBE = 10; // New in 2.4
51 var MOUSE_TOOL_CREATE_RECTANGLE_PROBE = 11; // New in 2.4 51 var MOUSE_TOOL_CREATE_RECTANGLE_PROBE = 11; // New in 2.4
52 var MOUSE_TOOL_CREATE_TEXT_ANNOTATION = 12; // New in 2.4 52 var MOUSE_TOOL_CREATE_TEXT_ANNOTATION = 12; // New in 2.4
53 var MOUSE_TOOL_MAGNIFYING_GLASS = 13; // New in 2.4
53 54
54 55
55 function getParameterFromUrl(key) { 56 function getParameterFromUrl(key) {
56 var url = window.location.search.substring(1); 57 var url = window.location.search.substring(1);
57 var args = url.split('&'); 58 var args = url.split('&');
110 else if (config == "Rotate") { 111 else if (config == "Rotate") {
111 return stone.WebViewerAction.ROTATE; 112 return stone.WebViewerAction.ROTATE;
112 } 113 }
113 else if (config == "Crosshair") { 114 else if (config == "Crosshair") {
114 return stone.WebViewerAction.CROSSHAIR; 115 return stone.WebViewerAction.CROSSHAIR;
116 }
117 else if (config == "MagnifyingGlass") {
118 return stone.WebViewerAction.MAGNIFYING_GLASS;
115 } 119 }
116 else { 120 else {
117 alert('Unsupported mouse action in the configuration file: ' + config); 121 alert('Unsupported mouse action in the configuration file: ' + config);
118 return stone.WebViewerAction.PAN; 122 return stone.WebViewerAction.PAN;
119 } 123 }