Skip to content

ElementTrack

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  3822035774["models.ElementTrack"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 3822035774
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

Geometry of one animated element over all frames.

Source code in src/framesheet/models.py
class ElementTrack(BaseModel):
    """Geometry of one animated element over all frames."""

    element: str
    animated_by: list[str]
    """``smil``, ``css-animation``, ``web-animation`` and/or ``moved`` (geometry changed)."""
    units: Literal["viewBox", "px"]
    boxes: list[Rect | None]
    """One box per frame (``None`` if not rendered at that frame)."""

animated_by instance-attribute

animated_by: list[str]

smil, css-animation, web-animation and/or moved (geometry changed).

boxes instance-attribute

boxes: list[Rect | None]

One box per frame (None if not rendered at that frame).

:fa-brands-github: Show source on GitHub