Skip to main content

Home > @jsplumbtoolkit/browser-ui > Drag

Drag class

Signature:

export declare class Drag extends Base 

Extends: Base

Constructors

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

Properties

PropertyModifiersTypeDescription
_activeSelectorParamsDragParams
_availableSelectorsArray<DragParams>
_canDragFunction
_classstring
_constrainRect{ w: number; h: number; }
_elementToDragjsPlumbDOMElement
_filtersRecord<string, [Function, boolean]>
_ghostProxyFunctionGhostProxyGenerator
_ghostProxyParentjsPlumbDOMElement
_isConstrainedboolean
_sizeSize
_useGhostProxyFunction
cloneboolean
cloneSizeSize
consumeStartEventboolean
downListener(e: MouseEvent) => void
listenersRecord<string, Array<Function>>
moveListener(e: MouseEvent) => void
rightButtonCanDragboolean
scrollboolean
scrollTracker(e: Event) => void
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)