🔧 Refactor RenderState scale calculation

This commit is contained in:
Elena Torro 2025-03-20 14:36:45 +01:00
parent 2d61644b05
commit e60e36a0e2
4 changed files with 29 additions and 28 deletions

View file

@ -51,4 +51,8 @@ impl Viewbox {
self.area
.set_wh(self.width / self.zoom, self.height / self.zoom);
}
pub fn zoom(&self) -> f32 {
self.zoom
}
}