Closed wumaolinmaoan closed 4 months ago
[!WARNING]
Review failed
The pull request is closed.
The latest update introduces a new BinaryAsset
class for handling binary data, refines the rendering process in the Composition
class, and adjusts the import order in the Engine
class. It also enhances the PlayableGraph
, TimelinePlayable
, and ParticleBehaviourPlayable
classes with improved state handling and processing logic. Additionally, it updates the TrackAsset
, TimelineClip
, and RuntimeClip
classes for better clip management and serialization helper functions to support ArrayBuffer
.
File Path | Change Summary |
---|---|
packages/effects-core/src/binary-asset.ts |
Introduced BinaryAsset class for handling binary data, extending EffectsObject with a buffer property and a fromData method for deserialization. |
packages/effects-core/src/composition.ts |
Refactored gatherRendererComponent method in Composition class for improved recursive traversal and rendering of VFXItem children. |
packages/effects-core/src/engine.ts |
Swapped import order of generateWhiteTexture and generateTransparentTexture , and added code to handle jsonScene.bins data in the Engine class. |
packages/effects-core/src/index.ts |
Added export statement for 'binary-asset' module. |
packages/effects-core/src/plugins/cal/playable-graph.ts |
Enhanced PlayableGraph and Playable classes with output node state initialization, improved play and pause methods, and updated frame processing methods. |
packages/effects-core/src/plugins/cal/timeline-asset.ts |
Simplified evaluate method in TimelinePlayable class, removed commented-out code in createPlayableGraph , and made sortTracks method private. |
packages/effects-core/src/plugins/particle/particle-vfx-item.ts |
Added a conditional check before calling this.start(context) in processFrame method of ParticleBehaviourPlayable class. |
packages/effects-core/src/plugins/timeline/track.ts |
Updated TrackAsset , TimelineClip , and RuntimeClip classes for better clip management, including changes to enable setter logic, renaming bindingItem to boundItem , and updating clip end behavior. |
packages/effects-core/src/serialization-helper.ts |
Updated SerializationHelper class to include ArrayBuffer in checkDataArray method. |
web-packages/test/unit/src/effects-core/plugins/sprite/sprite-base.spec.ts |
Replaced references to track.bindingItem with track.boundItem in sprite-base.spec.ts test file. |
In the code where magic flows,
ABinaryAsset
now bestows,
Playable graphs with states anew,
Rendering paths more clear and true.
Clips now dance and frames align,
Serialization checks refine.
Oh, the joy in each commit,
A rabbit's heart, forever lit! 🐇✨
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
Bug Fixes
Tests