mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Render text properly while dragging and resizing the text Shape
This commit is contained in:
@@ -575,6 +575,10 @@ impl Shape {
|
||||
self.hidden
|
||||
}
|
||||
|
||||
pub fn width(&self) -> f32 {
|
||||
self.selrect.width()
|
||||
}
|
||||
|
||||
pub fn visually_insignificant(&self, scale: f32) -> bool {
|
||||
self.selrect.width() * scale < MIN_VISIBLE_SIZE
|
||||
|| self.selrect.height() * scale < MIN_VISIBLE_SIZE
|
||||
|
||||
Reference in New Issue
Block a user