Add fabric.Canvas.prototype.freeDrawingCursor

This commit is contained in:
kangax 2013-01-10 14:22:02 +01:00
parent 157ff19d47
commit 082bee8279

View file

@ -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;
}