feat: add ease and write default argument#705
Merged
MakinoharaShoko merged 2 commits intoOpenWebGAL:devfrom Jun 7, 2025
Merged
feat: add ease and write default argument#705MakinoharaShoko merged 2 commits intoOpenWebGAL:devfrom
MakinoharaShoko merged 2 commits intoOpenWebGAL:devfrom
Conversation
| timeline: Array<ITransform & { duration: number, ease: string }>, | ||
| targetKey: string, | ||
| duration: number, | ||
| ease: string, |
Member
There was a problem hiding this comment.
这里参数传入了 ease,timeline 里又有 ease,是否有一个多余?并且我看也只用到了传入参数的 ease,是否 timeline 的 ease 是无必要的,并且 AnimationFrame 中的 ease 也是无必要的?
Contributor
Author
There was a problem hiding this comment.
这里参数传入了 ease,timeline 里又有 ease,是否有一个多余?并且我看也只用到了传入参数的 ease,是否 timeline 的 ease 是无必要的,并且 AnimationFrame 中的 ease 也是无必要的?
已 force push
| export interface IUserAnimation { | ||
| name: string; | ||
| effects: Array<ITransform & { duration: number }>; | ||
| effects: Array<ITransform & { duration: number, ease: string }>; |
b564a2a to
3ff0ebd
Compare
feat: add ease arg feat: add write default arg
7803b22 to
2880ba4
Compare
Contributor
Author
|
在最新的提交中已修改 |
MakinoharaShoko
approved these changes
Jun 7, 2025
KonshinHaoshin
pushed a commit
to KonshinHaoshin/WebGAL_Eastmount
that referenced
this pull request
Nov 7, 2025
feat: add ease and write default argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
介绍
-ease缓动类型changeFigurechangeBgsetTransform添加 缓动 参数-ease=easeType其中easeType可为linearanticipateeaseIneaseOuteaseInOut(默认值)circIncircOutcircInOutbackInbackOutbackInOutbounceInbounceOutbounceInOutease: string属性, 例如:[ { "scale": { "x": 1, "y": 1 }, "duration": 0 }, { "scale": { "x": 1.15, "y": 1.15 }, "duration": 2000, "ease": "easeOut" }, { "scale": { "x": 1, "y": 1 }, "duration": 2000, "ease": "linear" } ]close #643
-writeDefault写入默认 transform为
setTransformsetAnimationsetTempAnimation添加 写入默认值 参数语法:
-writeDefault-writeDefault=true-writeDefault=false当值为
true时, 没有填写的 ITransform 属性会从 baseTransform 找值当值为
false时, 没有填写的 ITransform 属性会继承当前 ITransform 的终值注意:
setTransform现在和setAnimation一样, 默认是会继承数值的,如果需要适配旧工程, 则需要为所有setTransform加上-writeDefault, 其行为跟以前是一样的close #618