File

src/monitor-base.ts

Description

The methods common to all monitor classes.

Index

Methods

Methods

getClientOffset
getClientOffset()

The current mouse x,y position relative to the viewport. Returns null if no item is being dragged.

Returns : Offset | null
getDifferenceFromInitialOffset
getDifferenceFromInitialOffset()

A vector x,y of the displacement of the dragged item from its initial position. Returns null if no item is being dragged.

Returns : Offset | null
getInitialClientOffset
getInitialClientOffset()

The initial mouse x,y position relative to the viewport, when the current drag operation started. Returns null if no item is being dragged.

Returns : Offset | null
getInitialSourceClientOffset
getInitialSourceClientOffset()

x,y relative to viewport of the item's DOM element before it was dragged. Returns null if no item is being dragged.

Returns : Offset | null
getItem
getItem()

The item in transit, if any. This is what you returned from DragSourceSpec. Returns null if no item is being dragged.

Returns : Item | null
getItemType
getItemType()

The type of the item in transit. Returns null if no item is being dragged.

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 null if no item is being dragged.

Returns : Offset | null

result-matching ""

    No results matching ""