mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-11 18:00:59 +00:00
clarified getPointer function on jsdocs
This commit is contained in:
parent
f47835b37c
commit
6a30d81fdb
1 changed files with 10 additions and 0 deletions
|
|
@ -1197,6 +1197,16 @@
|
|||
|
||||
/**
|
||||
* Returns pointer coordinates relative to canvas.
|
||||
* Can return coordinates with or without viewportTransform.
|
||||
* ignoreZoom false gives back coordinates that represent
|
||||
* the point clicked on canvas element.
|
||||
* ignoreZoom true gives back coordinates after being processed
|
||||
* by the viewportTransform ( sort of coordinates of what is displayed
|
||||
* on the canvas where you are clicking.
|
||||
* To interact with your shapes top and left you want to use ignoreZoom true
|
||||
* most of the time, while ignoreZoom false will give you coordinates
|
||||
* compatible with the object.oCoords system.
|
||||
* of the time.
|
||||
* @param {Event} e
|
||||
* @param {Boolean} ignoreZoom
|
||||
* @return {Object} object with "x" and "y" number values
|
||||
|
|
|
|||
Loading…
Reference in a new issue