Circle V2 API Docs
    Preparing search index...

    Type Alias DrawPointerEvent

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

    type DrawPointerEvent = {
        button: number;
        clientX: number;
        clientY: number;
        currentTarget: {
            getBoundingClientRect: () => { left: number; top: number };
            setPointerCapture?: (pointerId: number) => void;
        };
        pointerId: number;
    }
    Index

    Properties

    button: number

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

    clientX: number
    clientY: number
    currentTarget: {
        getBoundingClientRect: () => { left: number; top: number };
        setPointerCapture?: (pointerId: number) => void;
    }

    Type Declaration

    • getBoundingClientRect: () => { left: number; top: number }
    • OptionalsetPointerCapture?: (pointerId: number) => void

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

    pointerId: number