Skip to main content

Module node

Module node 

Source
Expand description

Node types for the renderable layer of a .zen document.

Wiring-only root: the node-layer types are grouped into cohesion-based submodules and re-exported flat here so the crate’s public surface (zenith_core::RectNode, ast::node::Anchor, …) is unchanged.

Structs§

ChartNode
A chart node — a compact data-visualization primitive.
ChartSeries
One data series within a ChartNode.
CodeNode
A code node — a multi-line MONOSPACE text block.
ConnectorNode
A connector node — a semantic arrow that declares from/to target node ids and, at COMPILE time, resolves those targets’ bounding boxes to draw a straight line between anchor points on their edges.
EllipseNode
An ellipse node (fill + centered stroke; bounded by x/y/w/h bounding box).
FieldNode
A field node — an auto-resolved text placeholder for book interiors.
FootnoteNode
A footnote node — page-level book-interior furniture that auto-numbers and renders in a reserved zone at the bottom of the page.
FrameNode
A frame node — a container that CLIPS its children to its rectangular bounds and renders them in source order (first child = bottom of z-order).
GroupNode
A group node — a container that holds child nodes and renders them in source order (first child = bottom of z-order).
ImageNode
An image node — a LEAF that draws a raster (PNG) asset into a declared [x, y, w, h] box with a fit mode, ALWAYS clipped to that box (normative image box-clip).
InstanceNode
An instance node — a placement of a declared ComponentDef at an origin (x, y), with an optional opacity/visible cascade and instance-local overrides.
LineNode
A line node (stroke-only; defined by two endpoints x1/y1/x2/y2).
Override
An instance-local override applied to a single descendant of the referenced component when an InstanceNode is expanded at compile time.
PatternNode
A pattern node — a compact procedural primitive.
Point
A single vertex in a polygon or polyline point list.
PolygonNode
A polygon node — a CLOSED filled shape defined by an ordered list of point child nodes.
PolylineNode
A polyline node — an OPEN stroked path defined by an ordered list of point child nodes.
ProtectedRegion
A named text-safe rectangle declared on a GroupNode as a protected-region child.
RectNode
A rect node.
ShapeNode
A shape node — a COMPOUND node: a background box that OWNS a centered text label (like a flowchart process box).
TableCell
A single cell in a TableRow (a cell child).
TableColumn
A single column declaration in a TableNode (a column child).
TableNode
A table node — a grid container of column/row/cell children.
TableRow
A single row in a TableNode (a row child), holding cells left→right.
TextNode
A text node.
TextSpan
A text content span — a run of text with optional inline style overrides.
TocNode
A toc node — a compile-time table-of-contents placeholder.
UnknownNode
An unrecognized node kind, preserved for forward-compat.
UnknownProperty
A typed KDL value retained for an unrecognized property (forward-compat).

Enums§

Anchor
One of the nine named page-relative placement anchors.
AnchorEdge
One of the four adjacent-edge directions for anchor-edge placement.
Node
A renderable content node within a page.
ObjectPosition
How an image node aligns its content within the declared box when the fit mode leaves slack on an axis (contain, cover, none).
UnknownValue
The typed value of an unrecognized KDL property, preserved for forward-compat.

Functions§

anchor_xy
Derive the (x, y) for the given anchor given the page and node dimensions.
parse_anchor
Parse a string into an Anchor variant.
parse_anchor_edge
Parse a string into an AnchorEdge variant.