use super::cms::CMS;
use super::Render;
use super::Target;
use femtovg::{renderer::OpenGl, Canvas};

pub trait DataRenderer {
    type Data;
    fn render(
        &self,
        canvas: &mut Canvas<OpenGl>,
        cms: &CMS,
        data: &Self::Data,
        size: (f32, f32),
    ) -> Target;
}
