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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -