The ViewerMagnifierAPI allows to magnify a specified region of the current view in a viewer.
Quick Start
// Get an instance of the webvis contextconstmyContext = webvis.getContext();// Get default viewerconstviewer = myContext.getViewer();// Enable magnifier for viewerviewer.changeMagnifier({enabled:true}); // Change magnifier propertiesviewer.changeMagnifier({roundness:50, position: [1000,720], size: [500,300], zoomLevel:2}) ;// Alternatively, enable magnifier and set all properties in one callviewer.changeMagnifier({roundness:50, enabled:true, position: [1000,720], size: [500,300], zoomLevel:2});
Events
The following events are associated with the ViewerMagnifierAPI:
ViewerMagnifierAPI
Overview
The
ViewerMagnifierAPIallows to magnify a specified region of the current view in a viewer.Quick Start
Events
The following events are associated with the ViewerMagnifierAPI: