I\'ve created a kind of \'polygon selector\' or \'polygon maker\' using fabric.js. Each click creates a corner of the polygon, which can be selected, moved, etc... double clicki
if (!canvas.getActiveObject()) { return; } if (canvas.getActiveObject().type !== 'group') { return; } canvas.getActiveObject().toActiveSelection(); canvas.requestRenderAll();
From : http://fabricjs.com/manage-selection