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§
- Chart
Node - A
chartnode — a compact data-visualization primitive. - Chart
Series - One data series within a
ChartNode. - Code
Node - A
codenode — a multi-line MONOSPACE text block. - Connector
Node - A
connectornode — a semantic arrow that declaresfrom/totarget node ids and, at COMPILE time, resolves those targets’ bounding boxes to draw a straight line between anchor points on their edges. - Ellipse
Node - An
ellipsenode (fill + centered stroke; bounded by x/y/w/h bounding box). - Field
Node - A
fieldnode — an auto-resolved text placeholder for book interiors. - Footnote
Node - A
footnotenode — page-level book-interior furniture that auto-numbers and renders in a reserved zone at the bottom of the page. - Frame
Node - A
framenode — a container that CLIPS its children to its rectangular bounds and renders them in source order (first child = bottom of z-order). - Group
Node - A
groupnode — a container that holds child nodes and renders them in source order (first child = bottom of z-order). - Image
Node - An
imagenode — a LEAF that draws a raster (PNG) asset into a declared[x, y, w, h]box with afitmode, ALWAYS clipped to that box (normative image box-clip). - Instance
Node - An
instancenode — a placement of a declaredComponentDefat an origin(x, y), with an optional opacity/visible cascade and instance-local overrides. - Light
Node - A soft light source rendered as ambient scene ink.
- Line
Node - A
linenode (stroke-only; defined by two endpoints x1/y1/x2/y2). - Mesh
Node - A procedural grid/perspective mesh rendered as generated stroke ink.
- Override
- An instance-local override applied to a single descendant of the referenced
component when an
InstanceNodeis expanded at compile time. - Pattern
Node - A
patternnode — a compact procedural primitive. - Point
- A single vertex in a polygon or polyline point list.
- Polygon
Node - A
polygonnode — a CLOSED filled shape defined by an ordered list ofpointchild nodes. - Polyline
Node - A
polylinenode — an OPEN stroked path defined by an ordered list ofpointchild nodes. - Protected
Region - A named text-safe rectangle declared on a
GroupNodeas aprotected-regionchild. - Rect
Node - A
rectnode. - Shape
Node - A
shapenode — a COMPOUND node: a background box that OWNS a centered text label (like a flowchart process box). - Table
Cell - A single cell in a
TableRow(acellchild). - Table
Column - A single column declaration in a
TableNode(acolumnchild). - Table
Node - A
tablenode — a grid container ofcolumn/row/cellchildren. - Table
Row - A single row in a
TableNode(arowchild), holding cells left→right. - Text
Node - A
textnode. - Text
Span - A text content span — a run of text with optional inline style overrides.
- TocNode
- A
tocnode — a compile-time table-of-contents placeholder. - Unknown
Node - An unrecognized node kind, preserved for forward-compat.
- Unknown
Property - A typed KDL value retained for an unrecognized property (forward-compat).
Enums§
- Anchor
- One of the nine named page-relative placement anchors.
- Anchor
Edge - One of the four adjacent-edge directions for
anchor-edgeplacement. - Node
- A renderable content node within a page.
- Object
Position - How an
imagenode aligns its content within the declared box when thefitmode leaves slack on an axis (contain,cover,none). - Unknown
Value - 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
Anchorvariant. - parse_
anchor_ edge - Parse a string into an
AnchorEdgevariant.