module documentation

Style parser.

Class Options Undocumented
Function parse_dict Undocumented
Function parse_text Undocumented
Class _ParseFunctions Undocumented
Function _make_list Undocumented
Function _parse_color Undocumented
Function _parse_enum_fn Undocumented
Function _parse_icon Undocumented
Function _parse_int Undocumented
Function _parse_intlist Undocumented
Function _parse_str Undocumented
Function _parse_unitint Undocumented
Function _parse_unitintquad Undocumented
Function _unitint Undocumented
Constant _COLOR_PATTERNS Undocumented
Constant _DEFAULTS Undocumented
Constant _ENUMS Undocumented
def parse_dict(d: dict, opts: Options) -> dict: (source)

Undocumented

def parse_text(text: str, opts: Options) -> dict: (source)

Undocumented

def _make_list(val): (source)

Undocumented

def _parse_color(val, opts): (source)

Undocumented

def _parse_enum_fn(cls): (source)

Undocumented

def _parse_icon(val, opts): (source)

Undocumented

def _parse_int(val, opts): (source)

Undocumented

def _parse_intlist(val, opts): (source)

Undocumented

def _parse_str(val, opts): (source)

Undocumented

def _parse_unitint(val, opts): (source)

Undocumented

def _parse_unitintquad(val, opts): (source)

Undocumented

def _unitint(val): (source)

Undocumented

_COLOR_PATTERNS: tuple[str, ...] = (source)

Undocumented

Value
('^#[0-9a-fA-F]{3}$',
 '^#[0-9a-fA-F]{6}$',
 '^#[0-9a-fA-F]{8}$',
 '^rgb\\(\\d{1,3},\\d{1,3},\\d{1,3}\\)$',
 '^rgba\\(\\d{1,3},\\d{1,3},\\d{1,3},\\d?(\\.\\d{1,3})?\\)$',
 '^[a-z]{3,50}$')
_DEFAULTS: dict = (source)

Undocumented

Value
dict(fill=None,
     stroke=None,
     stroke_dasharray=[],
     stroke_dashoffset=0,
     stroke_linecap='butt',
     stroke_linejoin='miter',
     stroke_miterlimit=0,
...

Undocumented

Value
dict(stroke_linecap=['butt', 'round', 'square'],
     stroke_linejoin=['bevel', 'round', 'miter'],
     marker=['circle', 'square', 'arrow', 'cross'],
     with_geometry=['all', 'none'],
     with_label=['all', 'none'],
     label_align=['left', 'right', 'center'],
     label_font_style=['normal', 'italic'],
...