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 effect;
11mod leaf;
12mod special;
13
14pub use anchor::{Anchor, AnchorEdge, anchor_xy, parse_anchor, parse_anchor_edge};
15pub use common::{Node, ObjectPosition, Point, TextSpan, UnknownProperty, UnknownValue};
16pub use container::{
17    FrameNode, GroupNode, ProtectedRegion, TableCell, TableColumn, TableNode, TableRow,
18};
19pub use effect::{LightNode, MeshNode};
20pub use leaf::{
21    ChartNode, ChartSeries, CodeNode, EllipseNode, ImageNode, LineNode, PatternNode, PolygonNode,
22    PolylineNode, RectNode, TextNode,
23};
24pub use special::{
25    ConnectorNode, FieldNode, FootnoteNode, InstanceNode, Override, ShapeNode, TocNode, UnknownNode,
26};