interface PrimitiveHit {
    cursor?: string;
    distance: number;
    draggable?: boolean;
    externalId: string;
    zOrder: ZOrder;
}

Properties

cursor?: string
distance: number

Pixel distance from the cursor (smaller wins ties before z-order).

draggable?: boolean

Arm a drag on press. Price lines set cursor: 'ns-resize' and move on one axis; anything that moves on both (a drawing anchor, a whole shape) declares it here, and the drag callbacks receive time as well as price.

externalId: string
zOrder: ZOrder