pub mod plotters_backend;
pub mod progress;
pub use progress::{ProgressCallback, ProgressInfo};
#[derive(Default)]
pub struct RenderConfig {
pub progress: Option<ProgressCallback>,
}
impl RenderConfig {
pub fn new() -> Self {
Self::default()
}
pub fn report_progress(&mut self, info: ProgressInfo) {
if let Some(ref mut callback) = self.progress {
if let Err(e) = callback(info) {
eprintln!("⚠️ Failed to report progress: {}", e);
}
}
}
}