mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-06 15:30:59 +00:00
Add fabric.Canvas.prototype.freeDrawingCursor
This commit is contained in:
parent
157ff19d47
commit
082bee8279
1 changed files with 8 additions and 0 deletions
|
|
@ -141,6 +141,13 @@
|
|||
*/
|
||||
defaultCursor: 'default',
|
||||
|
||||
/**
|
||||
* Cursor value used during free drawing
|
||||
* @property
|
||||
* @type String
|
||||
*/
|
||||
freeDrawingCursor: 'crosshair',
|
||||
|
||||
/**
|
||||
* Cursor value used for rotation point
|
||||
* @property
|
||||
|
|
@ -435,6 +442,7 @@
|
|||
this.clearContext(this.contextTop);
|
||||
this.freeDrawing._render(this.contextTop);
|
||||
}
|
||||
this.upperCanvasEl.style.cursor = this.freeDrawingCursor;
|
||||
this.fire('mouse:move', { e: e });
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue