Closed yiiqii closed 1 month ago
The recent changes across multiple packages primarily focus on refactoring and enhancements. Key updates include optimizing the Rollup configuration for the effects-core
package, refining the TextComponent
class for better readability and robustness, restructuring player options in the inspire
module, and tidying up the utilities.ts
file in the 2d
test cases. Additionally, a new version logging feature is introduced in the effects-core
package.
File Path | Change Summary |
---|---|
packages/effects-core/rollup.config.js |
Removed the target: 'ES6' parameter from the getPlugins function call. |
packages/effects-core/src/plugins/text/text-item.ts |
Refactored methods in the TextComponent class for code clarity and added context existence checks in setupOutline and setupShadow methods. |
web-packages/demo/src/inspire/index.ts |
Refactored playerOptions object to nest willCaptureImage under a new renderOptions object. |
web-packages/test/case/2d/src/common/utilities.ts |
Removed the import of getDefaultTemplateCanvasPool and the willCaptureImage: true property from playerOptions . |
packages/effects-core/src/index.ts |
Introduced the import of logger , exported a constant version , and logged the core version using logger.info() . |
A rabbit's code hops to and fro,
Refactors here, enhancements grow.
ES6 fades, context checks in line,
playerOptions
nested fine.
With logging now, the version shows,
In every byte, efficiency glows!
🐇✨
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
New Features
Refactor
TextComponent
class methods.willCaptureImage
under a newrenderOptions
object in player configurations for better structure.Chores