Skip to main content

Crate tdsl_render

Crate tdsl_render 

Source
Expand description

Timeline DSL renderer: TimelineIr → standalone HTML with inline SVG.

The public entry point is render_html. Internally it:

  1. Computes a layout::LayoutModel from the IR.
  2. Serializes it to an SVG string.
  3. Wraps the SVG in an HTML document with embedded CSS (hover tooltips only, no JS).

Re-exports§

pub use layout::GridStyle;
pub use layout::LayoutModel;
pub use layout::Orientation;
pub use layout::RenderOptions;
pub use layout::Theme;

Modules§

html
layout
svg

Functions§

render_html
Render the given IR as a standalone HTML document string.
render_svg_only
Render the given IR as a standalone SVG string.