The positioned wrapper holding the chart
The chart element the overlay covers
Returns the highlight color, read at every draw
OptionalonReader: () => voidCalled when a reader of the pixels arrives, so the copy it needs is taken then rather than at the next move
Keeps a copy of the whole chart on one canvas for readers of the pixels
-- the tactile display; see @util/overlayRegions.
Lightweight Charts gives every pane and every axis a canvas of its own, so on a chart of two panes no single canvas covers enough of it to be read as the chart. The copy is the chart as one picture, without the crosshair. It is taken only while something reads the pixels, so a chart nobody reads that way does not pay for a screenshot per move.
Draws the chart onto a new canvas
Draws one box per rect, replacing what was there.
Boxes in chart-element pixels
Records the focused pane's plot area for readers of the canvas's pixels;
see @util/overlayRegions.
The plot area in chart-element pixels, or null
Removes every box.
Detaches the overlay.
The boxes drawn over a Lightweight Charts chart to show the reader's position to anyone watching the screen.