Closed Sruimeng closed 2 months ago
The updates primarily involve the TextComponentBase
and TextLayout
classes within the effects-core plugin. A new method, setAutoWidth
, has been added to the TextComponentBase
class to enable toggling of the auto width feature, which influences canvas height calculations and rendering logic. Corresponding changes in the TextLayout
class simplify width and height settings by removing conditionals based on autoWidth
and directly setting width
and height
to textWidth
and textHeight
.
File | Change Summary |
---|---|
.../text/text-item.ts |
Added setAutoWidth to TextComponentBase to toggle auto width and adjusted canvas height calculations accordingly. |
.../text/text-layout.ts |
Simplified the TextLayout class by removing conditionals for width and height settings; now directly sets width to textWidth and height to textHeight . |
In the realm of code, a change does bloom,
setAutoWidth
added, lifting the gloom. 🌸
Text now adjusts with a simple tweak,
For layouts both strong and sleek.
No more conditions deep in the night,
Just set your width, and all’s set right.
🐇✨📜
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit