mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 03:11:40 +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
|
@ -26,14 +26,17 @@ impl TextContent {
|
|||
self.bounds = Rect::from_xywh(x, y, w, h);
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn width(&self) -> f32 {
|
||||
self.bounds.width()
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn x(&self) -> f32 {
|
||||
self.bounds.x()
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn y(&self) -> f32 {
|
||||
self.bounds.y()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue