analysis
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| Element framesheet.analysis Element(index: int, tag: str, label: str, svg: bool, parent: int) |
||
| Geometry framesheet.analysis Inputs shared by all render checks. |
🛈 DocStrings¶
Render checks: geometry of every element across all sampled frames.
Each check is a function (Geometry) -> list[Finding] registered in :data:CHECKS.
CHECKS
module-attribute
¶
CHECKS: list[Callable[[Geometry], list[Finding]]] = [
check_parked,
check_outside,
check_text_overflow,
check_transform_box,
]
Render checks run on every inspection, in order. Append to add a check.
TOLERANCE
module-attribute
¶
Pixels an element may poke out of its container/canvas before it is reported.
Geometry
dataclass
¶
Inputs shared by all render checks.
Source code in src/framesheet/analysis.py
check_outside
¶
Elements extending past the viewBox (SVG) or viewport (HTML).
Source code in src/framesheet/analysis.py
check_parked
¶
Small SVG elements sitting on the user-space origin (0,0), e.g. before begin.
Source code in src/framesheet/analysis.py
check_text_overflow
¶
SVG <text> poking out of the <rect> painted under it; HTML text overflow.
Source code in src/framesheet/analysis.py
check_transform_box
¶
CSS transform animations on SVG elements without transform-box: fill-box.
Source code in src/framesheet/analysis.py
tracks
¶
tracks(geo: Geometry) -> list[ElementTrack]
Per-frame boxes of animated elements (declared targets or anything that moved).