docs(canvas): add documentation for x_bounds, y_bounds (#35)

Co-authored-by: girvel <widauka@ya.ru>
Co-authored-by: Leon Sautour <leon1.sautour@epitech.eu>
Co-authored-by: Arijit Basu <sayanarijit@users.noreply.github.com>
This commit is contained in:
Orhun Parmaksız 2023-03-19 18:30:23 +02:00 committed by GitHub
parent c20fb723ef
commit 33e67abbe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,11 +384,18 @@ where
self
}
/// Define the viewport of the canvas.
/// If you were to "zoom" to a certain part of the world you may want to choose different
/// bounds.
pub fn x_bounds(mut self, bounds: [f64; 2]) -> Canvas<'a, F> {
self.x_bounds = bounds;
self
}
/// Define the viewport of the canvas.
///
/// If you were to "zoom" to a certain part of the world you may want to choose different
/// bounds.
pub fn y_bounds(mut self, bounds: [f64; 2]) -> Canvas<'a, F> {
self.y_bounds = bounds;
self