@rekurt/openkline - v0.2.0
    Preparing search index...

    Interface AnchorPoint

    A single anchor of a drawing, expressed in BUFFER SPACE:

    • index is a (possibly fractional) buffer index — so the drawing sticks to the underlying candle regardless of pan/zoom
    • price is a raw price value that maps to Y via the viewport's current price range

    Screen-space coordinates are intentionally avoided: they would drift whenever the user zooms or the price axis re-scales.

    interface AnchorPoint {
        index: number;
        price: number;
    }
    Index

    Properties

    Properties

    index: number
    price: number