ml_switcheroo.core.html.nodes¶
HTML DSL Semantic Nodes.
Defines the structure for the visual elements used in the HTML/SVG DSL: - GridBox: Represents a layer (Red), operation (Blue), or data shape (Green). - SvgArrow: Represents data flow connections. - HtmlDocument: The root container holding CSS and body content.
Classes¶
Abstract base class for all HTML DSL elements. |
|
Represents an SVG connection line between grid cells. |
|
Represents a content box positioned within the CSS Grid. |
|
Root container for the generated HTML. |
Module Contents¶
- class ml_switcheroo.core.html.nodes.HtmlNode[source]¶
Abstract base class for all HTML DSL elements.
- class ml_switcheroo.core.html.nodes.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¶
- class ml_switcheroo.core.html.nodes.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¶