Moveable
    Preparing search index...

    Interface OnWarpStart

    interface OnWarpStart {
        clientX: number;
        clientY: number;
        currentTarget: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        datas: IObject<any>;
        inputEvent: any;
        isFirstDrag: number;
        isTrusted: boolean;
        moveable: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        set: (matrix: number[]) => any;
        target: SVGElement | HTMLElement;
        setTransform(transform: string | string[], transformIndex?: number): void;
        setTransformIndex(transformIndex: number): void;
        stopAble(): void;
        stopDrag(): void;
    }

    Hierarchy (View Summary)

    Index
    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.

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

    The Moveable instance

    datas: IObject<any>

    Objects that can send information to the following events.

    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

    isTrusted: boolean

    Whether the event did not occur externally

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

    The Moveable instance

    set: (matrix: number[]) => any

    You can set the start matrix value.

    target: SVGElement | HTMLElement

    The Moveable's target

    • Set your original transform. transformIndex is the sequence of functions used in the event. If you use setTransform, you don't need to use set function.

      Parameters

      • transform: string | string[]
      • OptionaltransformIndex: number

      Returns void

      transform of target's inline style