Skip to main content

ZoomAt

WLJS
Execution environment
ZoomAt[k_, position_:{width/2,height/2}]

zooms k times at the given position position (in the coordinate system of the plot). position defines the center of view.

info

This has to be called inside the instance of Graphics using FrontSubmit

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]