The ViewerMagnifierAPI allows to magnify a specified region of the current view.
Example
// Get an instance of the ContextAPIconstmyContext : ContextAPI = webvis.getContext( "example" )// 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})
The ViewerMagnifierAPI allows to magnify a specified region of the current view.
Example