src/monitor-base.ts
The methods common to all monitor classes.
Methods |
getClientOffset |
getClientOffset()
|
The current mouse x,y position relative to the viewport. Returns
Returns :
Offset | null
|
getDifferenceFromInitialOffset |
getDifferenceFromInitialOffset()
|
A vector x,y of the displacement of the dragged item from its initial
position. Returns
Returns :
Offset | null
|
getInitialClientOffset |
getInitialClientOffset()
|
The initial mouse x,y position relative to the viewport, when the current
drag operation started. Returns
Returns :
Offset | null
|
getInitialSourceClientOffset |
getInitialSourceClientOffset()
|
x,y relative to viewport of the item's DOM element before it was dragged.
Returns
Returns :
Offset | null
|
getItem |
getItem()
|
The item in transit, if any. This is what you returned from
DragSourceSpec. Returns
Returns :
Item | null
|
getItemType |
getItemType()
|
The type of the item in transit. Returns
Returns :
string | symbol | null
|
getSourceClientOffset |
getSourceClientOffset()
|
The projected x,y position relative to viewport of the root DOM element of the drag source
= its initial position + displacement. Returns
Returns :
Offset | null
|