Moveable
    Preparing search index...

    Interface OnScaleGroupStart

    interface OnScaleGroupStart {
        clientX: number;
        clientY: number;
        currentTarget: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        datas: IObject<any>;
        direction: number[];
        dragStart: false | OnDragStart;
        events: OnScaleStart[];
        inputEvent: any;
        isFirstDrag: number;
        isTrusted: boolean;
        moveable: MoveableManagerInterface<
            Record<string, any>,
            Record<string, any>,
        >;
        set: (scale: number[]) => void;
        setFixedDirection: (startDirecition: number[]) => void;
        setMaxScaleSize: (max: number[]) => void;
        setMinScaleSize: (min: number[]) => void;
        setRatio: (ratio: number) => void;
        target: SVGElement | HTMLElement;
        targets: (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.

    direction: number[]

    The direction of scale.

    dragStart: false | OnDragStart

    scale causes a dragStart event.

    events: OnScaleStart[]

    Each scaleStart & dragStart event on the targets

    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: (scale: number[]) => void

    You can set the start scale value.

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

    Set a fixed direction to scale.

    Opposite direction
    
    setMaxScaleSize: (max: number[]) => void

    You can set the max scale width, height value. scale size = scale value * offset size

    [Infinity, Infinity]
    
    setMinScaleSize: (min: number[]) => void

    You can set the min scale width, height value. scale size = scale value * offset size

    [-Infinity, -Infinity]
    
    setRatio: (ratio: number) => void

    Set the ratio of width and height.

    offsetWidth / offsetHeight
    
    target: SVGElement | HTMLElement

    The Moveable's target

    targets: (SVGElement | HTMLElement)[]

    targets to scale

    • 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