fabricjs - While using Fabric lib, how to set a cursor during isDrawingMode to a custom cursor file -
I use Fabric Lib and I want to change the cursor to an external cursor file. I usually use the canvas CSS by changing the cursor for the URL of the cursor file. Any way to do this in clothes? I tried: canvas.free drawing cards = 'url ()'; But does it work any thoughts?
To add a cursor file as a resource, you have to use the following syntax:
canvas.freeDrawingCursor = 'url (http://ani.cursors-4u.net/movie/mov-2/mov130.cur), default';
By default, the freight drawing cursor has two arguments when you deal with external resources: 1. The URL of the resource or file 2. The type of cursor in that file
Comments
Post a Comment