You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just noticed that when initializing the points are not an "option" but come before the options: "..initialize(points, options)..", so something like this will work:
I've been trying draw Polygons but am getting the error: "array[i] is undefined fabric.js/all.js Line 1647".
Example of tries:
canvas.add(new fabric.Polygon({
points: [obj1, obj2, obj3, obj4] //obj has .x and .y
}));
Any ideas? (There don't seam to be any example on how to create a Polygon in fabric.js, I guess my best bet apart from asking here is understanding http://kangax.github.com/fabric.js/docs/symbols/src/src_polygon.class.js.html ).
The text was updated successfully, but these errors were encountered: