mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 00:47:57 +02:00
✨ Render text properly while dragging and resizing the text Shape
This commit is contained in:
parent
ebf3730454
commit
33c3611345
4 changed files with 16 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue