Skip to main content

Home > @jsplumb/browser-ui > Drag

Drag class#

Signature:

export declare class Drag extends Base 

Extends: Base

Constructors#

ConstructorModifiersDescription
(constructor)(el, params, k)Constructs a new instance of the Drag class

Properties#

PropertyModifiersTypeDescription
_activeSelectorParamsDragParams
_availableSelectorsArray<DragParams>
_canDragFunction
_classstring
_constrainRect{ w: number; h: number; }
_elementToDragjsPlumbDOMElement
_filtersDictionary<[Function, boolean]>
_ghostProxyFunctionGhostProxyGenerator
_ghostProxyParentjsPlumbDOMElement
_isConstrainedboolean
_sizeSize
_useGhostProxyFunction
cloneboolean
consumeStartEventboolean
downListener(e: MouseEvent) => void
listenersDictionary<Array<Function>>
moveListener(e: MouseEvent) => void
rightButtonCanDragboolean
scrollboolean
trackScrollboolean
upListener(e?: MouseEvent) => void

Methods#

MethodModifiersDescription
_testFilter(e)
abort()
addFilter(f, _exclude)
addSelector(params, atStart)
clearAllFilters()
destroy()
getDragElement(retrieveOriginalElement)
moveBy(dx, dy, e)
off(evt, fn)
on(evt, fn)
removeFilter(f)
setUseGhostProxy(val)
stop(e, force)