Skip to content
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

Merged
merged 69 commits into from
Nov 2, 2021
Merged

3.0 #102

merged 69 commits into from
Nov 2, 2021

Conversation

jljsj33
Copy link
Member

@jljsj33 jljsj33 commented Nov 27, 2020

3.0.0-beta.x

预览地址: https://tween-one-git-3x.react-component.vercel.app/

API 变更

  • 删除 currentRef, hooks 如果 component 是组件,ref 返回为组件的 ref;
  • 增加对 hooks 下的 React.fragment 的支持。
  • 增加全局动画播放时的 delay;
  • 删除 reverseDelay;
  • 增加 repeatDelay;
  • attr 改为 boolean 类型;
  • 更新 onChange 和回调,cb: { moment, targets, index, mode, ratio, vars, index, repeat }
  • 新增 onChangeTimeline, cb: { mode, targets, vars, moment, totalTime, repeat }
  • 其它回调如 onStartonUpdateonComplete 等的 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%)'
  • TweenOneGroup 使用改成 import TweenOneGroup from 'rc-tween-one/lib/TweenOneGroup';

ant-design/ant-motion#417

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request introduces 2 alerts and fixes 8 when merging d811c2c into 020a22f - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class
  • 1 for Useless assignment to property

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@codecov
Copy link

codecov bot commented Nov 27, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@020a22f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 020a22f...edb8aa2. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request introduces 1 alert and fixes 8 when merging 517eb45 into 020a22f - view on LGTM.com

new alerts:

  • 1 for Useless assignment to property

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@jljsj33 jljsj33 changed the title update hooks 3.0 Nov 27, 2020
@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request introduces 1 alert and fixes 8 when merging 254e340 into 020a22f - view on LGTM.com

new alerts:

  • 1 for Useless assignment to property

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request fixes 8 alerts when merging d288c9a into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request fixes 8 alerts when merging 6140034 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request fixes 8 alerts when merging 6f45c84 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2020

This pull request fixes 8 alerts when merging af80998 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Dec 1, 2020

This pull request fixes 8 alerts when merging 85aad99 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Dec 1, 2020

This pull request fixes 8 alerts when merging 496d4ac into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jul 23, 2021

This pull request fixes 8 alerts when merging 06c6a2b into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Jul 23, 2021

This pull request fixes 8 alerts when merging ffd4de4 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 26, 2021

This pull request fixes 8 alerts when merging b831c06 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 26, 2021

This pull request fixes 8 alerts when merging 137019c into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 27, 2021

This pull request fixes 8 alerts when merging 8e67f6e into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Oct 18, 2021

This pull request fixes 8 alerts when merging edb8aa2 into 020a22f - view on LGTM.com

fixed alerts:

  • 4 for Duplicate character in character class
  • 2 for Useless assignment to local variable
  • 2 for Unused variable, import, function or class

@jljsj33 jljsj33 merged commit e2eba28 into master Nov 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the 3.x branch November 2, 2021 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant