[Shapes] TextLayer: Enable wrapping for large texts#2930
[Shapes] TextLayer: Enable wrapping for large texts#2930
TextLayer: Enable wrapping for large texts#2930Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2930 +/- ##
========================================
Coverage 80.86% 80.86%
========================================
Files 57 57
Lines 7792 7792
========================================
Hits 6301 6301
Misses 1491 1491 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I have two minor comments, up for discussion:
|
Description
This PR updates the layout for
Textshapes to improve the display of large texts (e.g. image captions) by enabling the text wrapping. Additionally, the text is not centered anymore on the obervation'sx- andy-coordinates, which now represent its top-left corner.Features list
xandyso that text is now positioned directly at the observation's coordinates, rather than being centered using the implicit width and height.widthandheightof theTextelement to the remaining space from the observation center to the edge of the container, allowing for better text wrapping and layout.wrapModefromText.NoWraptoText.Wrapto allow text to wrap within the specified width, improving readability.