-
Hello all, The original question is right here. As I mentioned on the question, I added non-minified imports of fabricJS to be able to see exactly where in the source-code an error occurs. But ideally, I'd like to understand what am I doing wrong without having to play with source code. Any help, even pointing me to someone who could help me with this, is highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your code has an issue, is not following the polyline structure.
And so the fromObject for the polyline specifically is:
Try to have the correct initialize function and a fromObject function that refer to points on the last argument, i assume it could fix your issues |
Beta Was this translation helpful? Give feedback.
Your code has an issue, is not following the polyline structure.
A polyline starts like this:
new fabric.Polyline(points, options)
And so the fromObject for the polyline specifically is:
Try to have the correct initialize function and a fromObject function that refer to points on the last argument, i assume it could fix your issues