One anchor, in data space.

interface DrawingPoint {
    pressure?: number;
    price: number;
    time: number;
}

Properties

Properties

pressure?: number

Pen pressure at this sample, 0..1, on a freehand stroke only. Absent means the pointer events stand-in of 0.5, which is what a mouse reports and what a stroke's width is calibrated to, so a mouse stroke stores nothing here.

price: number
time: number

UTC seconds. May fall between bars, or past the last one.