Skip to main content

zenith_core/ast/node/
mod.rs

1//! Node types for the renderable layer of a `.zen` document.
2//!
3//! Wiring-only root: the node-layer types are grouped into cohesion-based
4//! submodules and re-exported flat here so the crate's public surface
5//! (`zenith_core::RectNode`, `ast::node::Anchor`, …) is unchanged.
6
7mod anchor;
8mod common;
9mod container;
10mod leaf;
11mod special;
12
13pub use anchor::{Anchor, AnchorEdge, anchor_xy, parse_anchor, parse_anchor_edge};
14pub use common::{Node, ObjectPosition, Point, TextSpan, UnknownProperty, UnknownValue};
15pub use container::{
16    FrameNode, GroupNode, ProtectedRegion, TableCell, TableColumn, TableNode, TableRow,
17};
18pub use leaf::{
19    ChartNode, ChartSeries, CodeNode, EllipseNode, ImageNode, LineNode, PatternNode, PolygonNode,
20    PolylineNode, RectNode, TextNode,
21};
22pub use special::{
23    ConnectorNode, FieldNode, FootnoteNode, InstanceNode, Override, ShapeNode, TocNode, UnknownNode,
24};