Pure zoom primitive. Returns a new View whose scale is multiplied
by factor (per-axis, clamped) and whose translation is adjusted so
that the world point currently under anchor (screen coords relative
to the canvas top-left) stays under the same screen pixel after the
zoom — independently on each axis.
factor: number means "apply uniformly to both axes". factor: {x, y}
applies per-axis factors. Likewise for opts.min / opts.max.
Pure zoom primitive. Returns a new
Viewwhosescaleis multiplied byfactor(per-axis, clamped) and whose translation is adjusted so that the world point currently underanchor(screen coords relative to the canvas top-left) stays under the same screen pixel after the zoom — independently on each axis.factor: numbermeans "apply uniformly to both axes".factor: {x, y}applies per-axis factors. Likewise foropts.min/opts.max.