-
Notifications
You must be signed in to change notification settings - Fork 17
feat: Spine 升级和缩放规则修改 #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Merge origin/main into origin/dev
Important Review SkippedReview was skipped due to path filters Files ignored due to path filters (1)
You can disable this status message by setting the WalkthroughThe updates include dependency version changes for Changes
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!pnpm-lock.yaml
Files selected for processing (6)
- packages/effects-core/package.json (1 hunks)
- plugin-packages/spine/demo/src/api-test.ts (2 hunks)
- plugin-packages/spine/demo/src/files.ts (2 hunks)
- plugin-packages/spine/demo/src/multi-comp.ts (1 hunks)
- plugin-packages/spine/package.json (1 hunks)
- plugin-packages/spine/src/spine-vfx-item.ts (3 hunks)
Files skipped from review due to trivial changes (3)
- packages/effects-core/package.json
- plugin-packages/spine/demo/src/multi-comp.ts
- plugin-packages/spine/package.json
Additional comments not posted (5)
plugin-packages/spine/demo/src/api-test.ts (2)
257-257
: Reduction in initial animation size approved.
47-47
: Change in texture handling approved.Verification successful
The change from
direct
topremultiply
for thefiles
variable appears to be correctly integrated in bothapi-test.ts
andsimple.ts
. The logic checks for thefiles
variable being eitherpremultiply
ordirect
and updates thefiletype
text accordingly. Additionally, thefiles
variable is used to load and handle file data properly.
plugin-packages/spine/demo/src/api-test.ts
- The
files
variable is set topremultiply
.- Conditional checks and file handling logic are in place to manage the
premultiply
setting.
plugin-packages/spine/demo/src/simple.ts
- The
files
variable is initially set todirect
.- Conditional checks and file handling logic are in place to manage both
premultiply
anddirect
settings.No issues were found with the integration of the
premultiply
setting.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the change from `direct` to `premultiply` integrates well with other parts of the system. # Test: Search for usage of `files` variable. Expect: Proper handling of the `premultiply` setting. rg --type python $'files'Length of output: 55
Script:
#!/bin/bash # Description: Verify that the change from `direct` to `premultiply` integrates well with other parts of the system. # Test: Search for usage of `files` variable. Expect: Proper handling of the `premultiply` setting. rg --type typescript 'files'Length of output: 63
Script:
#!/bin/bash # Description: Verify that the change from `direct` to `premultiply` integrates well with other parts of the system. # Test: Search for usage of `files` variable. Expect: Proper handling of the `premultiply` setting. rg --type ts 'files'Length of output: 1730
Script:
#!/bin/bash # Extract relevant code segments for detailed review. # Extract code segments from api-test.ts rg --type ts --context 5 'files' plugin-packages/spine/demo/src/api-test.ts # Extract code segments from simple.ts rg --type ts --context 5 'files' plugin-packages/spine/demo/src/simple.tsLength of output: 2385
plugin-packages/spine/src/spine-vfx-item.ts (1)
Line range hint
35-426
: Addition of conditional scaling logic approved.Verification successful
The
resizeRule
property is correctly set fromspineOptions.resizeRule
, and theresize
method applies the scaling logic based on this property. The implementation appears to be correct.
resizeRule
is assigned inplugin-packages/spine/src/spine-vfx-item.ts
.- The
resize
method is called within the same file, ensuring the scaling logic is applied.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify that the new scaling logic correctly applies in different scenarios. # Test: Check the scaling behavior under different `resizeRule` conditions. echo "Please manually verify the scaling behavior under different conditions specified by `resizeRule`."Length of output: 272
Script:
#!/bin/bash # Search for assignments to the `resizeRule` property rg --pcre2 '\bresizeRule\s*=\s*' # Search for calls to the `resize` method rg --pcre2 '\bresize\s*\('Length of output: 2656
plugin-packages/spine/demo/src/files.ts (2)
110-117
: Update tocelestial
entity URLs approved.
196-213
: Addition of new entitiescloudPot
andsnowglobe
approved.
Summary by CodeRabbit
New Features
cloudPot
,snowglobe
) with their corresponding URLs.Improvements
celestial
entity.SpineVFXItem
with a new resize rule for better control over size calculations.Bug Fixes
api-test
demo.Dependencies
@galacean/effects-specification
to version1.3.0-alpha.0
.@esotericsoftware/spine-core
to version4.2.43
.