Moveable
    Preparing search index...

    Interface OnDrag

    interface OnDrag {
        beforeDelta: number[];
        beforeDist: number[];
        beforeTranslate: number[];
        bottom: number;
        clientX: number;
        clientY: number;
        cssText: string;
        currentTarget: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        datas: IObject<any>;
        delta: number[];
        dist: number[];
        height: number;
        inputEvent: any;
        isFirstDrag: number;
        isPinch: boolean;
        isTrusted: boolean;
        left: number;
        moveable: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        right: number;
        style: Record<string, string>;
        target: SVGElement | HTMLElement;
        top: number;
        transform: string;
        translate: number[];
        width: number;
        stopAble(): void;
        stopDrag(): void;
    }

    Hierarchy (View Summary)

    Index
    beforeDelta: number[]

    The delta of [left, top]

    beforeDist: number[]

    The distance of [left, top]

    beforeTranslate: number[]

    The position of [left, top]

    bottom: number

    a target's bottom

    clientX: number

    The horizontal coordinate within the application's client area at which the event occurred.

    clientY: number

    The vertical coordinate within the application's client area at which the event occurred.

    cssText: string

    You can get it as a cssText that you can get from that event.

    currentTarget: MoveableManagerInterface<
        Record<string, any>,
        Record<string, any>,
    >

    The Moveable instance

    datas: IObject<any>

    Objects that can send information to the following events.

    delta: number[]

    The delta of [translateX, translateY]

    dist: number[]

    The distance of [translateX, translateY]

    height: number

    a target's offset height

    inputEvent: any

    The mouse or touch input event that is invoking the moveable event

    isFirstDrag: number

    Whether this is the first drag in the drag event

    isPinch: boolean

    Whether or not it is being pinched.

    isTrusted: boolean

    Whether the event did not occur externally

    left: number

    a target's left

    moveable: MoveableManagerInterface<Record<string, any>, Record<string, any>>

    The Moveable instance

    right: number

    a target's right

    style: Record<string, string>

    You can get the style you can get from the event.

    target: SVGElement | HTMLElement

    The Moveable's target

    top: number

    a target's top

    transform: string

    a target's transform

    translate: number[]

    The position of [translateX, translateY]

    width: number

    a target's offset width