Skip to content

Commit

Permalink
docs(fabric.StaticCanvas): change zoomToPoint doc
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Oct 11, 2020
1 parent d4f672a commit 4f48cc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/static_canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@
},

/**
* Sets zoom level of this canvas instance, zoom centered around point
* Sets zoom level of this canvas instance, the zoom centered around point
* meaning that following zoom to point with the same point will have the visual
* effect of the zoom originating from that point. The point won't move.
* It has nothing to do with canvas center or visual center of the viewport.
* @param {fabric.Point} point to zoom with respect to
* @param {Number} value to set zoom to, less than 1 zooms out
* @return {fabric.Canvas} instance
Expand Down

0 comments on commit 4f48cc5

Please sign in to comment.