Closed wumaolinmaoan closed 4 months ago
The recent updates to the effects-core
package involve significant improvements and refinements across various components. Key changes include enhancing visibility checks, refining camera item handling, and improving translation calculations. Additionally, variable names have been standardized for clarity, and camera properties have been consolidated into an options interface. These modifications collectively aim to enhance code readability, maintainability, and functionality.
Files/Modules | Change Summaries |
---|---|
comp-vfx-item.ts |
Replaced item.lifetime >= 0 with item.getVisible() in the CompositionComponent class. |
migration.ts |
Added a block to set asMovement for camera items in version30Migration ; added comments for clarity. |
translate.ts |
Refactored to handle linearVelocityOverLifetime curves; updated imports and TranslateTarget interface. |
calculate-vfx-item.ts |
Renamed bindingItem to boundItem in the TransformAnimationPlayable class for consistency. |
camera-controller-node.ts |
Consolidated camera properties into a CameraControllerOptions interface; updated methods to use this interface. |
sprite-item.ts |
Renamed bindingItem to boundItem in the SpriteColorPlayable class; adjusted duration calculation accordingly. |
vfx-item.ts |
Removed lifetime and _contentVisible properties from the VFXItem class, affecting animation time and visibility logic. |
In the code where pixels dance and play,
A rabbit hops to clear the way.
With names refined and options neat,
The visuals now are quite the treat.
A camera's eye, a sprite's hue,
All polished up for a clearer view.
🎨✨
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
Bug Fixes
Refactor
New Features
Chores