Is it possible to enable some kind of flag to give outline of all fabric js objects to be able to debug visually where items are placed.
I have tried:
this.canvas?.getObjects().forEach(obj => {
obj.set({
strokeWidth: 2,
stroke: 'red',
});
});
But this doesn't seem to work on my groups. I am hoping that fabric has some integrated feature for this.
See http://fabricjs.com/docs/fabric.Group.html#forEachObject
here is how i would use this :