Skip to content

@vtj


@vtj / ui / Draggable

Class: Draggable

Constructors

new Draggable()

new Draggable(el, options?): Draggable

Parameters

el

HTMLElement

options?

DraggableOptions

Returns

Draggable

Defined in

packages/ui/types/directives/vDraggable.d.ts:35

Properties

dragging

dragging: boolean

Defined in

packages/ui/types/directives/vDraggable.d.ts:34


el

el: HTMLElement

Defined in

packages/ui/types/directives/vDraggable.d.ts:31


options

options: DraggableOptions

Defined in

packages/ui/types/directives/vDraggable.d.ts:32

Methods

destory()

destory(): void

Returns

void

Defined in

packages/ui/types/directives/vDraggable.d.ts:43


getPosition()

getPosition(targetRect, rect, x, y): object

Parameters

targetRect

DOMRect

rect

DOMRect

x

number

y

number

Returns

object

x

x: number

y

y: number

Defined in

packages/ui/types/directives/vDraggable.d.ts:39


init()

init(): void

Returns

void

Defined in

packages/ui/types/directives/vDraggable.d.ts:38

Released under the MIT License.