Closed yiiqii closed 3 months ago
This update primarily involves refactoring types and method signatures across several files in the effects-core
package. It includes replacing specific constructor signatures with a generic Constructor
type, importing utility functions and types, and updating method parameters and return types to enhance flexibility and maintainability. Additionally, the ParticleMesh
class buffer logic was refined, and mixins were applied to the TextComponent
class. Minor changes in a demo file improve text component manipulation.
Files | Change Summaries |
---|---|
packages/effects-core/src/asset-loader.ts , .../decorators.ts , .../plugins/cal/timeline-asset.ts , .../plugins/timeline/track.ts , .../serialization-helper.ts , .../vfx-item.ts |
Updated method signatures and imports to use a Constructor type instead of specific constructors, enhancing code flexibility. |
packages/effects-core/src/plugins/particle/particle-mesh.ts , .../utils/array.ts |
Changed parameter order for enlargeBuffer function calls and definition to correct the buffer enlargement logic. |
packages/effects-core/src/plugins/text/text-item.ts |
Added new imports, interface, mixins, and updated the TextComponent class methods for better functionality. |
packages/effects-core/src/utils/index.ts |
Added Constructor interface and applyMixins function to enhance utility capabilities. |
web-packages/demo/src/dynamic-video.ts |
Updated the demo to import TextComponent , load a scene with additional options, and set text color for a component. |
Poem
🐇 Upon the code, the changes flow,
Typing neat and fixing slow.
Constructors flex, in perfect form,
Functions new, a buffer's norm.
Mixins blend, components bright,
Effects and text, now set aright.
In code's garden, delight does bloom,
A rabbit’s joy in every room. 🌸
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
Constructor
type for various methods across the application.Bug Fixes
Chores