use geo::CoordFloat;
use geo_types::Coord;

use crate::projection::{ClipExtentAdjust, ScaleGet};

use super::Builder;

impl<BASE, T> ClipExtentAdjust for Builder<BASE, T>
where
    BASE: ClipExtentAdjust<T = T> + ScaleGet<T = T>,
    T: CoordFloat,
{
    /// f32 or f64
    type T = T;

    fn clip_extent_adjust(&mut self, extent: &[Coord<T>; 2]) -> &mut Self {
        self.base.clip_extent_adjust(extent);
        self
    }
}
