Backend-neutral scene IR and scene compilation for Zenith.
Owns the display-list primitives (FillRect, DrawGlyphRun, PushClip,
etc.), scene compilation from a validated AST into a z-ordered display list,
opacity/visibility/clip resolution, and exclusion of non-printing nodes.
This crate is the stable contract boundary that every future backend — GPU, PDF, SVG export — will consume.
Module layout
ir— scene IR types (Scene,SceneCommand,Color,SceneGlyph).color— sRGB hex parsing →Color.compile—compile(&Document, &dyn FontProvider) -> CompileResult.
Quick start
use ;
let mut scene = new;
scene.commands.push;
let json = scene.to_json.expect;
assert!;
Compile a parsed document into a scene with
compile.