mirror of
https://github.com/penpot/penpot.git
synced 2025-07-17 07:37:12 +02:00
🔧 Refactor RenderState scale calculation
This commit is contained in:
parent
2d61644b05
commit
e60e36a0e2
4 changed files with 29 additions and 28 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue