zoom_to_point()

Zoom to the given point at the given scale factor

Paremeters:

  • point: {x: number, y: number}: the point on canvas to zoom into.
  • scale: number the scaling factor of the zoom.

This function resets any of the existing scales and zooms into the given point.