ViewerMagnifierAPI# webVis API Reference ViewerMagnifierAPI Interface ViewerMagnifierAPI The ViewerMagnifierAPI allows to magnify a specified region of the current view. Example // Get an instance of the ContextAPIconst myContext : ContextAPI = webvis.getContext( "example" )// Get default viewerconst viewer = 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}) Hierarchy ViewerMagnifierAPI ViewerAPI Index Methods changeMagnifier getMagnifierProperties Methods changeMagnifier changeMagnifier(properties): ViewerMagnifierProperties Changes the properties of the viewers magnifier. Parameters properties: ViewerMagnifierProperties Object of Properties which should be changed. Returns ViewerMagnifierPropertiesAn Object with the changed Properties. getMagnifierProperties getMagnifierProperties(): ViewerMagnifierProperties Returns the current properties of the magnifier. Returns ViewerMagnifierPropertiesThe current properties of the magnifier.
The ViewerMagnifierAPI allows to magnify a specified region of the current view.
Example