mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-15 09:13:11 +00:00
Add fabric.Object#hoverCursor; just like fabric.Canvas#hoverCursor but on object level
This commit is contained in:
parent
e1df87c64c
commit
28fa7a8b3f
2 changed files with 8 additions and 1 deletions
|
|
@ -410,7 +410,7 @@
|
||||||
&& target._findTargetCorner(e, this._offset);
|
&& target._findTargetCorner(e, this._offset);
|
||||||
|
|
||||||
if (!corner) {
|
if (!corner) {
|
||||||
s.cursor = this.hoverCursor;
|
s.cursor = target.hoverCursor || this.hoverCursor;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (corner in cursorOffset) {
|
if (corner in cursorOffset) {
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,13 @@
|
||||||
*/
|
*/
|
||||||
transparentCorners: true,
|
transparentCorners: true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default cursor value used when hovering over this object on canvas
|
||||||
|
* @type String
|
||||||
|
* @default
|
||||||
|
*/
|
||||||
|
hoverCursor: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Padding between object and its controlling borders (in pixels)
|
* Padding between object and its controlling borders (in pixels)
|
||||||
* @type Number
|
* @type Number
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue