Skip to main content

export_timeline

Macro export_timeline 

Source
macro_rules! export_timeline {
    (@__emit root = $root:expr, title = $title:expr, id = $id:expr) => { ... };
    (
        @__emit
        root = $root:expr,
        title = $title:expr,
        id = $id:expr,
        canvas = ($w:expr, $h:expr)
    ) => { ... };
    (root = $root:expr, title = $title:expr $(,)?) => { ... };
    (root = $root:expr, title = $title:expr, canvas = ($w:expr, $h:expr) $(,)?) => { ... };
    (root = $root:expr, title = $title:expr, id = $id:expr $(,)?) => { ... };
    (
        root = $root:expr,
        title = $title:expr,
        id = $id:expr,
        canvas = ($w:expr, $h:expr) $(,)?
    ) => { ... };
    ($id:expr, $title:expr, $builder:path $(,)?) => { ... };
    ($id:expr, $title:expr, $builder:path, canvas = ($w:expr, $h:expr) $(,)?) => { ... };
}
Expand description

Exports a single TimelineComponent root from a cdylib.

#[tellur_core::component(timeline)]
fn Main() -> impl tellur_core::timeline_component::TimelineComponent { ... }

tellur_plugin::export_timeline!(
    root = Main::builder().build(),
    title = "Main",
);

title is the human-readable label surfaced by TimelineInfo. The machine-facing timeline id defaults to "main"; set id = "..." after title when a different stable lookup key is required. Set canvas = (width, height) last to resolve the root against an explicit logical canvas.