use web_sys::{CanvasRenderingContext2d, HtmlCanvasElement, HtmlInputElement};
use nexrad2::Nexrad2Chunk;
use crate::mode::Mode;

pub struct ScopeState {
    pub ar2: Option<Nexrad2Chunk>,
    pub scope_mode: Mode,
    pub render_state: RenderState,
    pub file_input: HtmlInputElement,
    pub lat: f64,
    pub long: f64,
    pub prefs: Preferences,
    pub command_buf: String,
    pub command_buf_response_mode: bool,
    pub new_data_available: bool
}

pub struct RenderState {
    pub canvas: HtmlCanvasElement,
    pub context: CanvasRenderingContext2d
}

pub struct Preferences {
    pub fcs: usize
}