Module dom_tree

Module dom_tree 

Source
Expand description

DOM tree node definitions for HTML rendering

These objects store the data about the DOM nodes we create, as well as some extra data. They can then be transformed into real DOM nodes with the to_node function or HTML markup using to_markup.

Structs§

Anchor
Anchor element with hyperlink
AnchorBuilder
Use builder syntax to set the inputs and finish with build().
Img
Image embed element
LineNode
SVG line node
PathNode
SVG path node
Span
Span wrapping other DOM nodes with generic child type
SpanBuilder
Use builder syntax to set the inputs and finish with build().
SvgNode
SVG node for rendering stretchy wide elements
SvgNodeBuilder
Use builder syntax to set the inputs and finish with build().
SymbolNode
Symbol node containing information about a single symbol
SymbolNodeBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

HtmlDomNode
Recursive HTML DOM node enum with tuple variants
SvgChildNode
SVG child node types

Functions§

create_class
Create an HTML className based on a list of classes. In addition to joining with spaces, we also remove empty classes.
to_markup
Convert into an HTML markup string

Type Aliases§

DomSpan
Span wrapping other DOM nodes
HtmlDomFragment
Document fragment containing HTML DOM nodes