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

    Interface DrawingSnapshot

    Serialized form of a drawing — JSON-safe representation for persistence (localStorage, remote API, etc.). kind discriminates the subclass; id is a stable random string assigned on creation.

    interface DrawingSnapshot {
        color?: string;
        data?: number[];
        id: string;
        kind: string;
        points: AnchorPoint[];
    }
    Index

    Properties

    color?: string
    data?: number[]

    Optional opaque numeric payload for drawings that derive geometry from sampled data rather than purely from anchors — currently the regression channel, which stores the close series of its index span so the least-squares fit round-trips exactly without needing the candle buffer at render time. Subclasses that don't use it leave it undefined, so existing snapshots stay byte-compatible.

    id: string
    kind: string
    points: AnchorPoint[]