-
I'm using
The alignment works like a charm only then the zoom is in 100%, if I change the zoom or pan the canvas everything goes in the wrong way. Bellow is the methods I use for zooming In/Out
After I read multiple questions and the fabricJS Documentation I changed the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Did you try using getBoundingRect with the first argument used as true? |
Beta Was this translation helpful? Give feedback.
-
You need to user
for
|
Beta Was this translation helpful? Give feedback.
You need to user
ViewPortCoordinates
(see fabricJS Docs) to gettop left
,top right
,bottom left
,bottom right
coordinates of thecanvas
according the the view port.for
alignLeft()
method you can update it to the following: