Skip to main content

Canvas

Function Canvas 

Source
pub fn Canvas(_: CanvasProps) -> Element
Expand description

The canvas, filling the diagram’s part of the page.

tabindex so it can hold the keyboard, which a press on the diagram hands it. touch-action: none and the rest of .bw-canvas are what stop the browser claiming a gesture the editor is the recognizer for.

§Props

For details, see the props struct definition.