@easyv/charts 1.3.16 → 1.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@ var _default = function _default(data, dataAnimation) {
55
55
  };
56
56
  var delta = current.y - y;
57
57
  return _objectSpread(_objectSpread({}, current), {}, {
58
- y: Math.floor(y + delta * v)
58
+ y: y + delta * v
59
59
  });
60
60
  });
61
61
  } else {
@@ -65,7 +65,7 @@ var _default = function _default(data, dataAnimation) {
65
65
  };
66
66
  var delta = oldCurrent.y - current.y;
67
67
  return _objectSpread(_objectSpread({}, current), {}, {
68
- y: Math.floor(oldCurrent.y + delta * v)
68
+ y: oldCurrent.y + delta * v
69
69
  });
70
70
  });
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from 'react';
2
- import { animate, linear } from 'popmotion';
2
+ import { animate, easeIn, easeOut, linear } from 'popmotion';
3
3
 
4
4
  /**
5
5
  * 图表数据动画
@@ -36,7 +36,7 @@ export default (data: DataType[], dataAnimation: DataAnimation) => {
36
36
  const delta: number = current.y - y;
37
37
  return {
38
38
  ...current,
39
- y: Math.floor(y + delta * v),
39
+ y: y + delta * v,
40
40
  };
41
41
  });
42
42
  } else {
@@ -45,7 +45,7 @@ export default (data: DataType[], dataAnimation: DataAnimation) => {
45
45
  const delta = oldCurrent.y - current.y;
46
46
  return {
47
47
  ...current,
48
- y: Math.floor(oldCurrent.y + delta * v),
48
+ y:oldCurrent.y + delta * v,
49
49
  };
50
50
  });
51
51
  }