-
From doing a bit of research on the Path object I realized that when the Path transforms/moves on the canvas by using default controls of fabric.js, the Path values within the Path.path prop does not update. So that gives me a bit of a headache when I am trying to display the control point of a Quadratic curve (with 1 control point), and the control point doesn't move with the path when I move the path using the Path values (since the Path values are not updated), and it seems like I have to move the control point manually programmatically. Can anyone walk me through how would you transform the points from existing to new? I've tried this below as the event handler of 'object:moving', where the path argument is the event.target. It got me close in the sense that it follows the movement of the path, but there is a certain weird offset that it gave me that led my control point to be relocated further to the bottom-right of the canvas. // event handler function
}; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I realized there is now a createPathControls that will achieve the same results, so this is resolved. |
Beta Was this translation helpful? Give feedback.
-
For who is looking forward a way to transform the path instead there is an utility called |
Beta Was this translation helpful? Give feedback.
I realized there is now a createPathControls that will achieve the same results, so this is resolved.