View Source GGity.Element.Line (GGity v0.5.0)

Defines the data and functions used to style non-geom line elements.

CSS presentation attributes:

  • :color sets value of CSS stroke
  • :size sets value of CSS stroke-width

Link to this section Summary

Functions

Constructor for a Line element.

Link to this section Types

@type t() :: %GGity.Element.Line{color: term(), size: term()}

Link to this section Functions

Link to this function

element_line(attributes)

View Source
@spec element_line(keyword()) :: t()

Constructor for a Line element.

Setting the value of an attributed to nil will remove that property from the generated stylesheet altogether.

Calling element_line(attributes) is equivalent to struct(GGity.Element.Line, attributes).