Expand description
Canvas renderer for the browser. Uses plotters-canvas::CanvasBackend
and the shared draw_on dispatch in crate::draw, so a chart
rendered into a <canvas> looks identical to its SVG twin.
Only compiles under feature canvas, which is enabled by the
nomisync-frontend WASM crate.
Functionsยง
- render_
canvas - Render
specintocanvasviaplotters-canvas. Sizes the backing canvas todevice_pixel_ratioso the chart stays crisp onHiDPIscreens; the caller is expected to set the CSS width/height to the logical size before calling.