computeZoomTowardPivot
computeZoomTowardPivot(
pivot,factor,current,limits):ViewportTransform
Defined in: src/components/primitives/viewport/viewportMath.ts:77
Compute the new transform for a “zoom toward pivot” gesture.
The world point currently under pivot (screen pixels) stays under
the pivot after the zoom change.
Parameters
Section titled “Parameters”Point2D
factor
Section titled “factor”number
current
Section titled “current”limits
Section titled “limits”ZoomLimits