🎉 Add internal TextContent layout data

This commit is contained in:
Aitor Moreno
2025-09-04 14:17:47 +02:00
parent e4d610d503
commit f505fcfa0d
13 changed files with 485 additions and 333 deletions

View File

@@ -769,7 +769,7 @@ impl Shape {
bounds_rect
};
if let Type::Text(ref text_content) = self.shape_type {
if let Type::Text(text_content) = &self.shape_type {
let (width, height) = text_content.visual_bounds();
rect.right = rect.left + width;
rect.bottom = rect.top + height;