-
Notifications
You must be signed in to change notification settings - Fork 30
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
3.0 #102
Conversation
This pull request introduces 2 alerts and fixes 8 when merging d811c2c into 020a22f - view on LGTM.com new alerts:
fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #102 +/- ##
=========================================
Coverage ? 90.35%
=========================================
Files ? 6
Lines ? 363
Branches ? 135
=========================================
Hits ? 328
Misses ? 35
Partials ? 0 Continue to review full report at Codecov.
|
This pull request introduces 1 alert and fixes 8 when merging 517eb45 into 020a22f - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 8 when merging 254e340 into 020a22f - view on LGTM.com new alerts:
fixed alerts:
|
This pull request fixes 8 alerts when merging d288c9a into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 6140034 into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 6f45c84 into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging af80998 into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 85aad99 into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 496d4ac into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 06c6a2b into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging ffd4de4 into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging b831c06 into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 137019c into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging 8e67f6e into 020a22f - view on LGTM.com fixed alerts:
|
This pull request fixes 8 alerts when merging edb8aa2 into 020a22f - view on LGTM.com fixed alerts:
|
3.0.0-beta.x
预览地址: https://tween-one-git-3x.react-component.vercel.app/
API 变更
currentRef
, hooks 如果 component 是组件,ref 返回为组件的 ref;delay
;reverseDelay
;repeatDelay
;attr
改为boolean
类型;onChange
和回调,cb: { moment, targets, index, mode, ratio, vars, index, repeat }onChangeTimeline
, cb: { mode, targets, vars, moment, totalTime, repeat }onStart
、onUpdate
、onComplete
等的 cb 的 target 全部更新为 targets;BezierPlugin
,合进 PathMotionPlugin;;PathMotionPlugin
更改用法,使用PathMotion: { path, center, x, y, rotate }
, 详细参考 pathMotion demo;SvgMorph
依赖更改为使用flubber
;import { Plugins } from 'rc-tween-one'; Plugins.push()
, 保留TweenOne.plugins.push()
;TweenOne.easing.path(path)
使用,直接用ease: 'M0,0L100,100'
;regionStartTime
,regionEndTime
;backgroundImage: 'linear-gradient(to left, #000fff 0%, red 20%, #fff000 100%)'
import TweenOneGroup from 'rc-tween-one/lib/TweenOneGroup';
ant-design/ant-motion#417