Circle V2 API Docs
    Preparing search index...

    Type Alias TransformPointerEvent

    The subset of a React pointer event the hook reads, so tests need no synthetic event.

    type TransformPointerEvent = {
        button: number;
        clientX: number;
        clientY: number;
        currentTarget: {
            focus?: () => void;
            releasePointerCapture?: (pointerId: number) => void;
            setPointerCapture?: (pointerId: number) => void;
        };
        pointerId: number;
        stopPropagation: () => void;
    }
    Index

    Properties

    button: number

    0 is the primary button. A right- or middle-drag must not move a field.

    clientX: number
    clientY: number
    currentTarget: {
        focus?: () => void;
        releasePointerCapture?: (pointerId: number) => void;
        setPointerCapture?: (pointerId: number) => void;
    }

    Type Declaration

    • Optionalfocus?: () => void
    • OptionalreleasePointerCapture?: (pointerId: number) => void
    • OptionalsetPointerCapture?: (pointerId: number) => void

      Absent in jsdom and on old Safari; the origin-page guard covers what capture would.

    pointerId: number
    stopPropagation: () => void