fabricjs - How can i set a custom cursor for fabric object? -
this not drawing mode. want according condition able change cursor when on element.
$('#canvasid').css('cursor','pointer');
not working me. know property library? thanks.
after tests working me:
canvas.observe('mouse:over', function (e) { if (e.target.get('type') == 'line') { e.target.hovercursor = 'crosshair'; } });
Comments
Post a Comment