Render text properly while dragging and resizing the text Shape

This commit is contained in:
Elena Torro 2025-03-27 12:46:04 +01:00
parent ebf3730454
commit 33c3611345
4 changed files with 16 additions and 7 deletions

View file

@ -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