Skip to content

pencil.js / draggable / DraggableAPI

Interface: DraggableAPI ​

Defined in: draggable.ts:22

Control over a draggable component

Properties ​

PropertyTypeDescriptionDefined in
constrain| VectorDefinition | nullChange the "constrain" value in the draggable's optionsdraggable.ts:28
stop() => voidStop the component from being draggabledraggable.ts:30
xbooleanChange the "x" value in the draggable's optionsdraggable.ts:24
ybooleanChange the "y" value in the draggable's optionsdraggable.ts:26

Released under the MIT License.