Closed wumaolinmaoan closed 4 months ago
The recent updates to the effects-core
package introduce significant enhancements and refactoring across multiple files. Key changes include the addition of new methods for handling reusable components, the introduction of sub-composition tracks and playables, and the removal or modification of obsolete methods and interfaces. These updates aim to streamline the handling of compositions and tracks, improve the modularity of the code, and enhance the overall functionality of the package.
File(s) | Summary of Changes |
---|---|
.../comp-vfx-item.ts |
Removed masterTracks , added setReusable , getReusable , and new binding methods. |
.../fallback/migration.ts |
Enhanced convertTimelineAsset to handle ItemType.composition with new sub-composition and track structures. |
.../plugins/cal/calculate-item.ts |
Removed CalculateItemOptions interface, integrated properties directly into ObjectBindingTrack class. |
.../plugins/index.ts |
Added exports for sub-composition-track and sub-composition-playable-asset . |
.../plugins/sprite/sprite-item.ts |
Removed CalculateItemOptions import, modified SpriteItemOptions type. |
.../timeline/playables/sub-composition-clip-playable.ts |
Introduced SubCompositionClipPlayable class with processFrame method. |
.../timeline/playables/sub-composition-playable-asset.ts |
Introduced SubCompositionPlayableAsset class with createPlayable method. |
.../timeline/track.ts |
Refactored initializeBinding to resolveBinding , removed createTrackMixer method. |
.../timeline/tracks/activation-track.ts |
Removed initializeBinding method. |
.../timeline/tracks/sub-composition-track.ts |
Introduced SubCompositionTrack class with resolveBinding method. |
sequenceDiagram
participant User
participant CompositionComponent
participant SubCompositionTrack
participant SubCompositionClipPlayable
participant PlayableGraph
User->>CompositionComponent: Call setReusable(true)
CompositionComponent->>SubCompositionTrack: Initialize track bindings
SubCompositionTrack->>SubCompositionClipPlayable: Create playable
SubCompositionClipPlayable->>PlayableGraph: Add to graph
PlayableGraph->>CompositionComponent: Update time
CompositionComponent->>User: Return updated state
In the realm of code so bright,
New methods bring the light,
Tracks and playables now align,
Composition flows just fine.
A rabbit hops with glee,
For changes set us free,
To build with harmony. 🐇✨
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
SubCompositionClipPlayable
class to enhance sub-composition handling and time updates forCompositionComponent
.Refactor