Closed luzhuang closed 2 months ago
[!WARNING]
Rate limit exceeded
@luzhuang has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 37 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between a91acf633f99697e852e6710de6258cee075a8f4 and 5fe168556ba6ed95b1b62b4c468db79abe89ff49.
This pull request enhances the animation system by improving the management of animation trigger parameters within the Animator
class. Key updates include the introduction of methods for activating and deactivating trigger parameters, a new private property to track active triggers, and refined internal logic for managing animation states. Additionally, the AnimatorController
class has been updated to better handle parameter management, including a method for clearing parameters. Corresponding tests have been added to validate these functionalities, ensuring proper behavior during state transitions.
File | Change Summary |
---|---|
packages/core/src/animation/Animator.ts |
Added private property _tempTriggeredParametersName , added activateTriggerParameter and deactivateTriggerParameter methods, and introduced _resetTriggerParameters method. |
packages/core/src/animation/AnimatorController.ts |
Refactored addParameter method to include isTrigger parameter and added clearParameters method. |
packages/core/src/animation/AnimatorStateTransition.ts |
Modified addCondition method's parameter structure for improved clarity and flexibility. |
packages/loader/src/AnimatorControllerLoader.ts |
Enhanced parameter addition logic to distinguish between regular and trigger parameters. |
tests/src/core/Animator.test.ts |
Updated parameter order in addCondition calls and added new test case setTriggerParameter . |
Animator
class involve enhancements to state transitions, aligning with the main PR's focus on improving animation trigger parameters and state management.🐰 In the meadow where the bunnies play,
New triggers hop in a joyful sway.
With every leap, animations sing,
A dance of joy that changes bring.
So let us celebrate with a happy cheer,
For the Animator's magic is finally here! 🎉
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?
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
Summary by CodeRabbit
New Features
activateTriggerParameter
anddeactivateTriggerParameter
.clearParameters
functionality and refined parameter handling.Bug Fixes
Tests
setTriggerParameter
to validate animator transitions and parameter handling.