mod auto;
mod blip;
mod effect;
mod options;
mod output;
mod playback;
mod render;
mod state;
#[cfg(test)]
mod tests;
mod timeline;
pub use options::{AutoWait, Blip, Motion, RevealOptions};
pub use output::{Cursor, DecorationInstance, GlyphInstance, Step, StepKind, WaitKind};
pub use state::{ParseStateError, RevealState};
#[derive(Debug, Clone)]
pub struct Reveal {
timelines: Vec<Vec<Step>>,
appear: Vec<Vec<f32>>,
page: usize,
time: f32,
next: usize,
shown: usize,
waiting: bool,
finished: bool,
skipped: bool,
motion: Motion,
auto: AutoWait,
chars: Vec<Vec<usize>>,
clicks: Vec<Vec<Click>>,
resumed: Vec<f32>,
}
#[derive(Debug, Clone, Copy)]
struct Click {
step: usize,
at: f32,
glyph: usize,
}
const CLICK_EPS: f32 = 1e-3;