メインコンテンツまでスキップ

Function: createDragValue()

function createDragValue(element, options): DragValueInstance;

Defined in: dom/src/pointer/drag-value.ts:277

Drive a value with a pointer drag.

Combines createDrag with the scaling of @tremolo-ui/functions: the mapping decides where the pointer sits on the 0-1 travel of each axis, and the axis options turn that into a value.

Parameters​

ParameterType
elementElement
optionsDragValueOptions

Returns​

DragValueInstance