feynml.styled.Styled

class feynml.styled.Styled(style: cssutils.css.cssstyledeclaration.CSSStyleDeclaration = <factory>, clazz: Optional[str] = None)[source]

Bases: object

__init__(style: ~cssutils.css.cssstyledeclaration.CSSStyleDeclaration = <factory>, clazz: str | None = None) None

Methods

__init__([style, clazz])

get_style_property(key)

put_style(key, value)

Deprecated since version 0.0.0.

put_styles(**kwargs)

Deprecated since version 0.0.0.

raw_style()

with_class(clazz)

with_color(color)

with_style(style)

with_style_properties(**kwargs)

with_style_property(key, value)

Attributes

clazz

CSS class string.

style

CSS style string.

clazz: str | None = None

CSS class string.

put_style(key, value)[source]

Deprecated since version 0.0.0.

put_styles(**kwargs)[source]

Deprecated since version 0.0.0.

style: CSSStyleDeclaration

CSS style string.