use std::time::Duration;
use crate::unitbezier::UnitBezier;
pub const TILE_SIZE_D: f64 = 512.0;
pub const TILE_SIZE_I: u16 = 512;
pub const TILE_SIZE: f64 = TILE_SIZE_D;
pub const EXTENT: i32 = 8192;
pub const M2PI: f64 = std::f64::consts::PI * 2.0;
pub const EARTH_RADIUS_M: f64 = 6_378_137.0;
pub const LATITUDE_MAX: f64 = 85.051_128_779_806_6;
pub const LONGITUDE_MAX: f64 = 180.0;
pub const DEGREES_MAX: f64 = 360.0;
pub const PITCH_MIN: f64 = 0.0;
pub const DEFAULT_PITCH_MAX: f64 = std::f64::consts::PI / 3.0;
pub const PITCH_MAX: f64 = std::f64::consts::PI;
pub const DEFAULT_FOV: f64 = 0.643_501_108_793_284_4;
pub const MIN_ZOOM: f64 = 0.0;
pub const MAX_ZOOM: f64 = 25.5;
pub const DEFAULT_MAX_ZOOM: u8 = 22;
pub const ONE_EM: f32 = 24.0;
pub const DEFAULT_PREFETCH_ZOOM_DELTA: u8 = 4;
pub const DEFAULT_MAX_CACHE_SIZE: u64 = 50 * 1024 * 1024;
pub const DEFAULT_ON_DEMAND_IMAGES_CACHE_SIZE: usize = 100 * 8192;
pub const DEFAULT_TRANSITION_DURATION: Duration = Duration::from_millis(300);
pub const CLOCK_SKEW_RETRY_TIMEOUT: Duration = Duration::from_secs(30);
pub const DEFAULT_TRANSITION_EASE: UnitBezier = UnitBezier::new(0.0, 0.0, 0.25, 1.0);
pub const DEFAULT_RATE_LIMIT_TIMEOUT: Duration = Duration::from_secs(5);
pub const ASSET_PROTOCOL: &str = "asset://";
pub const FILE_PROTOCOL: &str = "file://";
pub const MBTILES_PROTOCOL: &str = "mbtiles://";
pub const PMTILES_PROTOCOL: &str = "pmtiles://";
pub const DEFAULT_MAXIMUM_CONCURRENT_REQUESTS: u32 = 20;
pub const TERRAIN_RGB_MAXZOOM: u8 = 15;
pub const LAST_RESORT_ALPHABETIC_FONT: &str = "Open Sans Regular";
pub const LAST_RESORT_PAN_UNICODE_FONT: &str = "Arial Unicode MS Regular";
pub(crate) mod debug {}