Closed Sruimeng closed 2 weeks ago
The recent changes involve updating the TextItem
and TextLayout
classes to include a new fontSize
parameter. Specifically, the getOffsetY
method in TextLayout
has been modified to accept fontSize
and adjust its computations accordingly. This requires corresponding changes in text-item.ts
to pass the fontSize
when calling getOffsetY
.
Files | Change Summary |
---|---|
packages/effects-core/src/plugins/text/text-item.ts |
Updated TextItem class to pass fontSize parameter to getOffsetY . |
packages/effects-core/src/plugins/text/text-layout.ts |
Modified TextLayout class's getOffsetY method to include and utilize the fontSize parameter. |
In the land where code does lie,
A new fontSize doth fly,
The y offset finds its port,
With calculations to import.
Text aligns in sumptuous grace,
Thanks to changes in this place.
🌟🐇✨
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
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