Payload of the drag event: a draggable primitive being moved.

interface ChartDragEvent {
    fromPrice: number;
    fromTime: number;
    id: string;
    modifiers: PointerModifiers;
    paneIndex: number;
    point: { x: number; y: number };
    pointerType: PointerKind;
    pressure: number;
    price: number;
    samples: PointerSample[];
    time: number;
}

Hierarchy (View Summary)

Properties

fromPrice: number

Where the gesture was grabbed, so a delta starts at the press rather than the first move.

fromTime: number
id: string
modifiers: PointerModifiers
paneIndex: number
point: { x: number; y: number }

Current pointer position: container media x, pane-local media y.

pointerType: PointerKind
pressure: number
price: number
samples: PointerSample[]

Every position the pointer passed through since the previous drag, oldest first, the last one at point. Browsers deliver moves at frame rate and fold the positions between frames into the event; a freehand stroke drawn from point alone is a polyline of frame-rate corners.

time: number