Canvas SVG element with position and size.
Summary
Functions
Converts this widget struct to a ui_node() map.
Height in pixels.
Creates a new element without an explicit ID (auto-assigned by parent container).
Creates a new element with the given ID, positional args, and keyword options.
Path to the SVG file.
Returns the element type string for the wire protocol.
Width in pixels.
Applies keyword options to an existing widget struct.
X position in pixels.
Y position in pixels.
Types
@type t() :: %Plushie.Canvas.Svg{ h: number() | Plushie.Animation.Transition.t() | Plushie.Animation.Spring.t() | Plushie.Animation.Sequence.t() | nil, id: String.t() | nil, source: (String.t() | atom()) | Plushie.Animation.Transition.t() | Plushie.Animation.Spring.t() | Plushie.Animation.Sequence.t() | nil, w: number() | Plushie.Animation.Transition.t() | Plushie.Animation.Spring.t() | Plushie.Animation.Sequence.t() | nil, x: number() | Plushie.Animation.Transition.t() | Plushie.Animation.Spring.t() | Plushie.Animation.Sequence.t() | nil, y: number() | Plushie.Animation.Transition.t() | Plushie.Animation.Spring.t() | Plushie.Animation.Sequence.t() | nil }
Functions
@spec build(widget :: t()) :: Plushie.Widget.ui_node()
Converts this widget struct to a ui_node() map.
Height in pixels.
Accepts number().
Creates a new element without an explicit ID (auto-assigned by parent container).
Creates a new element with the given ID, positional args, and keyword options.
Path to the SVG file.
Accepts String.t() | atom().
@spec type_name() :: String.t()
Returns the element type string for the wire protocol.
Width in pixels.
Accepts number().
Applies keyword options to an existing widget struct.
X position in pixels.
Accepts number().
Y position in pixels.
Accepts number().