how can change default bluish selectioncolor on fabric.js? i've tried change these lines in fabric.js got no effect:
selectioncolor: 'rgba(17,119,255,0.3)', selectionbordercolor: 'rgba(255, 255, 255, 0.3)', editingbordercolor: 'rgba(102,153,255,0.25)', is there other way?

ok, see need exactly, want change border of selected grouped object , maybe squares on border too.
i tested on kitchensink, , works, have catch selection event , , inside event change bordercolor , cornercolor properties of activegroup.
your object:selected event:
canvas.on('object:selected', function(o){ var activeobj = o.target; if(activeobj.get('type') == 'group') { activeobj.set({'bordercolor':'#fbb802','cornercolor':'#fbb802'}); } }); hope helps, luck.
Comments
Post a Comment