Module style_attr

Module style_attr 

Source
Expand description

Style attributes for SVG elements in the plotting library

The StyleAttr struct and associated macros are used to manage SVG style attributes such as CSS classes, inline styles, and IDs. This allows for easy styling of SVG elements in plots.

Structs§

StyleAttr
Represents SVG style attributes, including optional class, style, and id fields.

Functions§

class
Creates a new StyleAttr with the specified class. This function is a convenience method to create a StyleAttr instance with the class field set.
id
Creates a new StyleAttr with the specified id. This function is a convenience method to create a StyleAttr instance with the id field set.
style
Creates a new StyleAttr with the specified style. This function is a convenience method to create a StyleAttr instance with the style field set.