Closed wumaolinmaoan closed 3 months ago
The RuntimeClip
class in packages/effects-core/src/plugins/timeline/track.ts
has been refactored to rename the variable boundItem
to boundObject
. This refactor includes changes to type checking and handling the end behavior of boundObject
, as well as removing the private method onClipEnd
and simplifying the end behavior logic.
File Path | Change Summary |
---|---|
packages/effects-core/src/plugins/timeline/track.ts |
Renamed boundItem to boundObject ; adjusted type checking and end behavior logic; removed onClipEnd method. |
sequenceDiagram
participant RuntimeClip
participant Track
participant VFXItem
participant ParticleSystem
RuntimeClip->>Track: Get binding as boundObject
alt boundObject is instance of VFXItem
RuntimeClip->>VFXItem: Check if particle
alt isParticle and particleSystem exists and not destroyed
RuntimeClip->>ParticleSystem: Interact with particle system
end
end
RuntimeClip->>Track: Check if ended
alt ended
alt boundObject is instance of VFXItem and not ended
RuntimeClip->>VFXItem: Mark as ended and call onEnd
end
alt not reusable
RuntimeClip->>VFXItem: Dispose boundObject
RuntimeClip->>self: Dispose playable
end
end
In the world of code, changes dance, Bound objects now take their chance. Items renamed, behavior refined, Logic and flow now better aligned. Dispose with care, end with grace, Our runtime clip finds its place.
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
Refactor
Bug Fixes