WLJS LogoWLJS Notebook

ZoomAt

Frontend symbol
ZoomAt[k_, position_:{width/2,height/2}]

a graphics primitive, that zooms k times at the given position position (in the coordinate system of the plot). position defines the center of view.

ZoomAt[]

returns current zoom and panning values.

This has to be called inside the instance of Graphics using FrontSubmit. Or it can be placed to Epilog of Graphics object to take immediate action

All transition effects are applied here as well

Example

Let us make a simple plot and reference it using FrontInstanceReference

ref = FrontInstanceReference[];
Plot[x, {x,0,1}, Epilog->{ref}]

now we can zoom it

FrontSubmit[ZoomAt[1.2, {0.5,0.5}], ref] 

Or one places it to Epilog, this zooms immediately:

Plot[x, {x,0,1}, Epilog->{ZoomAt[1.2, {0.5,0.5}]}]

On this page