Closed wumaolinmaoan closed 4 months ago
The recent updates to the effects-core
package encompass various enhancements and refactorings. Key changes include modifications to import statements, handling of optional properties, and improvements in data processing methods. Notably, new properties and methods have been introduced to several classes, enhancing their functionality and flexibility. The Track
class's addClip
method's visibility has been changed for broader access, and new decorators and data handling mechanisms have been integrated into animation-related classes.
File Path | Change Summary |
---|---|
packages/effects-core/src/composition-source-manager.ts |
Modified import statement for TimelineAsset , handled absence of sceneBindings , and adjusted timelineAsset loading. |
packages/effects-core/src/composition.ts |
Added editorScaleRatio property to Composition class. |
packages/effects-core/src/engine.ts |
Added code to handle jsonScene.animations by iterating and calling this.addEffectsObjectData . |
packages/effects-core/src/fallback/migration.ts |
Updated handling of data types, introduced new PlayableAssetData structures, and adjusted timelineAsset and sceneBindings assignments. |
.../src/plugins/cal/calculate-item.ts |
Refactored clip handling within tracks, simplified logic, and updated imports. |
.../src/plugins/cal/calculate-vfx-item.ts |
Added private data property, onGraphStart method, and decorator to TransformAnimationPlayableAsset class. |
.../src/plugins/cal/track.ts |
Changed addClip method visibility from private to public in Track class. |
.../src/plugins/particle/particle-system.ts |
Added import for PLAYER_OPTIONS_ENV_EDITOR and adjusted calculations based on environment. |
.../src/plugins/sprite/sprite-item.ts |
Added PlayableAsset import, modified fromData method, introduced SpriteColorPlayableAsset class, and defined SpriteColorPlayableAssetData interface. |
🐇✨ In the code where changes bloom, Imports shift to make more room. New properties and methods gleam, Enhancing each developer's dream. Tracks now open, clips align, With playful assets, all refined. Let's celebrate with hops and cheer, For better code is finally here! 🐇✨
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
editorScaleRatio
property in theComposition
class for better scaling control.TransformAnimationPlayable
andTransformAnimationPlayableAsset
classes for enhanced animation handling.Improvements
Engine
class to better handle animations withinjsonScene
.calculate-item.ts
.ParticleSystem
class based on the environment.Refactor
TimelineClip
instances.addClip
method inTrack
class to allow external access.