ml_switcheroo.core.html¶
HTML/SVG DSL Core Package.
This package defines the intermediate representation for the HTML Visual DSL. This allows converting ASTs into a visual Grid-based explanation format.
Submodules¶
Classes¶
Abstract base class for all HTML DSL elements. |
|
Represents a content box positioned within the CSS Grid. |
|
Represents an SVG connection line between grid cells. |
|
Root container for the generated HTML. |
Package Contents¶
- class ml_switcheroo.core.html.GridBox[source]¶
Bases:
HtmlNodeRepresents a content box positioned within the CSS Grid.
- row: int¶
- col: int¶
- css_class: str¶
- header_text: str¶
- code_text: str | None = None¶
- body_text: str | None = None¶
- z_index: int | None = None¶
- class ml_switcheroo.core.html.SvgArrow[source]¶
Bases:
HtmlNodeRepresents an SVG connection line between grid cells.
- x1: int¶
- y1: int¶
- x2: int¶
- y2: int¶
- style_class: str¶
- marker_end: str¶
- parent_style: str¶