Moveable
    Preparing search index...

    Interface OnRotateStart

    interface OnRotateStart {
        clientX: number;
        clientY: number;
        currentTarget: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        datas: IObject<any>;
        dragStart: false | OnDragStart;
        inputEvent: any;
        isFirstDrag: number;
        isTrusted: boolean;
        moveable: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        resizeStart: false | OnResizeStart;
        set: (rotate: number) => void;
        setFixedDirection: (fixedDirection: number[]) => void;
        setFixedPosition: (fixedPosition: number[]) => void;
        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.

    dragStart: false | OnDragStart

    rotate causes a dragStart event.

    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

    resizeStart: false | OnResizeStart

    rotate causes a resizeStart event.

    set: (rotate: number) => void

    You can set the start rotate value.

    setFixedDirection: (fixedDirection: number[]) => void

    Set a fixed direction to rotate.

    target's transformOrigin
    
    setFixedPosition: (fixedPosition: number[]) => void

    Set a fixed position to rotate.

    target's transformOrigin
    
    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