SheetXL - v1.0.2
    Preparing search index...

    Interface MovableControlProps

    interface MovableControlProps {
        children?: ReactNode;
        context?: boolean;
        directions: readonly ResizeDirectionName[];
        isDragging?: boolean;
        onMoveStart?: (e: PointerEvent) => void;
        onResize: (
            direction: ResizeDirection,
            delta: readonly [number, number],
            keepAspect: boolean,
        ) => void;
        onResizeCancel: () => void;
        onResizeEnd: () => void;
        onResizeStart: () => boolean;
        rotation: number;
    }

    Hierarchy (View Summary)

    Index
    children?: ReactNode

    Drawn first in the control, so it hides with the handles and paints under them: the rotate handle.

    context?: boolean

    Draw the control as context: the frame of a group a selected member is inside, as Excel draws it (a dotted outline and hollow neutral handles). Its handles still resize that group.

    directions: readonly ResizeDirectionName[]

    Compass names of the handles to draw (nw, n, … se).

    isDragging?: boolean

    Fade the control, as during a gesture. It stays mounted: the handle being dragged holds the pointer capture.

    onMoveStart?: (e: PointerEvent) => void

    A press on the move grip a frame too small for its handles shows in their place. Omit when the frame cannot be moved.

    onResize: (
        direction: ResizeDirection,
        delta: readonly [number, number],
        keepAspect: boolean,
    ) => void

    The pointer moved. delta is how far it is from the press, in screen pixels; keepAspect is whether Shift is held.

    onResizeCancel: () => void

    The gesture was lost (pointercancel).

    onResizeEnd: () => void

    The pointer was released.

    onResizeStart: () => boolean

    A press on a handle. Return false to refuse the gesture.

    rotation: number

    Degrees clockwise the frame is turned; only the cursors use it, the box turns itself.