Interface DrawingsDocument

What toJSON returns and ChartState.drawings carries. Versioned so a 1.9.x save (a bare Drawing[]) is recognisable and upgraded rather than misread.

interface DrawingsDocument {
    drawings: Drawing[];
    groups?: DrawingGroup[];
    version: 2 | 3;
}

Properties

drawings: Drawing[]
groups?: DrawingGroup[]
version: 2 | 3

3 when a drawing carries an interval range, else 2: the lowest version that holds the content, so an earlier build reads a document without a range exactly as it wrote one.