Plushie.Canvas.Shape.ShapeStyle (Plushie v0.6.0)

Copy Markdown View Source

Style overrides for interactive canvas shape states (hover, pressed).

Summary

Functions

Constructs a shape style from a keyword list.

Types

t()

@type t() :: %Plushie.Canvas.Shape.ShapeStyle{
  fill: String.t() | map() | nil,
  opacity: number() | nil,
  stroke: String.t() | map() | nil
}

Functions

from_opts(opts)

@spec from_opts(keyword()) :: t()

Constructs a shape style from a keyword list.