Skip to content

IconifyOptional

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  470243018["iconify_types.IconifyOptional"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 470243018
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Optional properties that contain icon dimensions and transformations.

Source code in src/pycons/iconify/iconify_types.py
class IconifyOptional(TypedDict, total=False):
    """Optional properties that contain icon dimensions and transformations."""

    left: int
    """Left position of the ViewBox, default = 0."""
    top: int
    """Top position of the ViewBox, default = 0."""
    width: int
    """Width of the ViewBox, default = 16."""
    height: int
    """Height of the ViewBox, default = 16."""
    rotate: int
    """Number of 90-degree rotations (1=90deg, etc...), default = 0."""
    hFlip: bool
    """Horizontal flip, default = false."""
    vFlip: bool
    """Vertical flip, default = false."""

hFlip instance-attribute

hFlip: bool

Horizontal flip, default = false.

height instance-attribute

height: int

Height of the ViewBox, default = 16.

left instance-attribute

left: int

Left position of the ViewBox, default = 0.

rotate instance-attribute

rotate: int

Number of 90-degree rotations (1=90deg, etc...), default = 0.

top instance-attribute

top: int

Top position of the ViewBox, default = 0.

vFlip instance-attribute

vFlip: bool

Vertical flip, default = false.

width instance-attribute

width: int

Width of the ViewBox, default = 16.

:fa-brands-github: Show source on GitHub