One anchor of a viewport drawing, as a fraction of the plot area of the pane that holds the drawing. Pane-relative, not whole-chart-relative: the pane's layer paints, clips and hit-tests the drawing, so these are the coordinates that follow the pane when it moves, resizes or folds.

x is 0 at the plot's left edge and 1 at its right edge; the price axes are outside that span. y is 0 at the top of the pane and 1 at the bottom of its plot, which on the lowest pane is the top of the time axis. Sizes that a tool sets in pixels (a font size, a wrap width) stay in pixels: a resize moves a note in proportion without scaling its type.

interface ViewportPoint {
    x: number;
    y: number;
}

Properties

x y

Properties

x: number
y: number