Closed yiiqii closed 3 weeks ago
This update brings numerous enhancements across various packages. Notably, it introduces new build commands and reorganizes scripts in package.json
, enhances the AssetManager
and Composition
classes with new functionalities, refines interaction and event systems, and upgrades text handling and layout methods. Additionally, several classes now feature improved animation handling and timing information. The collective changes improve the build process, performance, interactivity, and animation capabilities of the codebase.
File/Path | Change Summary |
---|---|
docs/developing.md |
Added new build command pnpm build:main to documentation. |
package.json |
Reorganized build scripts, added publish:alpha and publish:beta scripts. Updated dependencies. |
packages/effects-core/src/.../asset-manager.ts |
Changed timeInfos structure, renamed to timeInfoMessages , added detailed operation timing information. |
packages/effects-core/src/.../composition.ts |
Updated imports, added precompileTime , CompItemClickedData , and interactivity properties. Enhanced hitTest method. |
packages/effects-core/src/.../click-handler.ts |
Updated Region type to require hitPositions . |
packages/effects-core/src/.../event-system.ts |
Added error logging and handling in getTouchEventValue , reordered imports. |
packages/effects-core/src/.../interact-vfx-item.ts |
Added properties and refined event handling and interactivity logic. |
packages/effects-core/src/.../text-item.ts |
Added and updated methods related to line counting and text layout. |
packages/effects-core/src/.../text-layout.ts |
Refined getOffsetY method to use additional parameters, improved calculation logic, and updated methods for determining X/Y-axis offsets. |
packages/effects-core/src/scene.ts |
Added timeInfos property to Scene interface. |
packages/effects/src/player.ts |
Modified ItemClickedData and updated item click handling logic in Player class. |
plugin-packages/.../camera.ts |
Updated scene loading parameters and added console log for camera position. |
plugin-packages/.../loader-ext.ts |
Updated version number in loadGLTFScene function initialization. |
plugin-packages/.../mesh.ts |
Set worldMatrix property in PMesh class. |
plugin-packages/.../scene.ts |
Updated mesh priority logic in PSceneManager class. |
plugin-packages/.../plugin-unit.spec.ts |
Added argument to updateDefaultCamera function call in unit tests. |
plugin-packages/.../spine-vfx-item.ts |
Added new methods setAnimationListLoopEnd and getAnimationState , refined existing methods for better error handling and animation control. |
web-packages/.../single.ts |
Imported '@galacean/effects-plugin-spine' , removed commented line, and adjusted env property in the demo file. |
In the realm of code, so bright and new,
Scripts are organized, with tasks to do.
Text now flows with line counts clear,
Animations dance without fear.
Timing's right, interactivity spry,
Building and publishing reaching the sky.
The rabbit hops with joy, oh my! 🐇✨
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
TextItem
class with line count calculations for improved text handling.SpineVFXItem
for better animation control.Improvements
PSceneManager
.Bug Fixes
EventSystem
class.InteractVFXItem
for smoother interactions.Documentation