File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rc-tween-one" ,
3
- "version" : " 2.4.0 " ,
3
+ "version" : " 2.4.1 " ,
4
4
"description" : " tween-one anim component for react" ,
5
5
"keywords" : [
6
6
" react" ,
Original file line number Diff line number Diff line change 1
1
/* eslint-disable func-names */
2
- import {
3
- toFixed ,
4
- } from 'style-utils' ;
5
2
6
3
const ChildrenPlugin = function ( target , vars ) {
7
4
this . target = target ;
@@ -41,7 +38,7 @@ ChildrenPlugin.prototype = {
41
38
let v = ( value - this . start . value ) * ratio + this . start . value ;
42
39
if ( typeof floatLength === 'number' ) {
43
40
if ( floatLength ) {
44
- v = toFixed ( v , floatLength ) ;
41
+ v = v . toFixed ( floatLength ) ;
45
42
const numberArray = v . toString ( ) . split ( '.' ) ;
46
43
let decimal = numberArray [ 1 ] || '' ;
47
44
decimal = decimal . length > floatLength ? decimal . substring ( 0 , floatLength ) : decimal ;
You can’t perform that action at this time.
0 commit comments