Disable group selection in Fabric.js

Timo Kähkönen picture Timo Kähkönen · Feb 7, 2014 · Viewed 12.1k times · Source

How to disable group selection in Fabric.js and leave single objects selectable one at a time? With group selection I mean selecting multiple objects using eg. SHIFT+Click.

Answer

Dakshika picture Dakshika · Feb 26, 2014

you can easily achieve this with

  canvas.selection = false; // disable group selection

if you want it on individual object

  rect.set('selectable', false); // make object unselectable