plushie/widget/canvas
Canvas widget builder. Layers are managed via extension commands.
Types
Values
pub fn arrow_mode(c: Canvas, mode: String) -> Canvas
Set the arrow key navigation mode (“wrap”, “clamp”, “linear”, “none”).
pub fn layer(
c: Canvas,
name: String,
s: List(node.PropValue),
) -> Canvas
Add a single named layer to the canvas. Merges with existing layers.
pub fn layers(
c: Canvas,
l: dict.Dict(String, List(node.PropValue)),
) -> Canvas
Set all canvas layers as a dict of named shape lists.
pub fn new(
id: String,
width: length.Length,
height: length.Length,
) -> Canvas
Create a new canvas builder.
pub fn shapes(c: Canvas, s: List(node.PropValue)) -> Canvas
Set the shape list for the default layer.