File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
shadow . inset = true ;
27
27
return result ;
28
28
}
29
- var result = scope . consumeLengthOrPercent ( string ) ;
29
+ result = scope . consumeLengthOrPercent ( string ) ;
30
30
if ( result ) {
31
31
shadow . lengths . push ( result [ 0 ] ) ;
32
32
return result ;
33
33
}
34
- var result = scope . consumeColor ( string ) ;
34
+ result = scope . consumeColor ( string ) ;
35
35
if ( result ) {
36
36
shadow . color = result [ 0 ] ;
37
37
return result ;
Original file line number Diff line number Diff line change 81
81
} ,
82
82
set iterationStart ( value ) {
83
83
if ( ( isNaN ( value ) || value < 0 ) && isInvalidTimingDeprecated ( ) ) {
84
- throw new TypeError ( 'iterationStart must be a non-negative number, received: ' + timing . iterationStart ) ;
84
+ throw new TypeError ( 'iterationStart must be a non-negative number, received: ' + value ) ;
85
85
}
86
86
this . _setMember ( 'iterationStart' , value ) ;
87
87
} ,
192
192
}
193
193
194
194
var start = 0 , end = 1 ;
195
+ function f ( a , b , m ) { return 3 * a * ( 1 - m ) * ( 1 - m ) * m + 3 * b * ( 1 - m ) * m * m + m * m * m } ;
195
196
while ( start < end ) {
196
197
var mid = ( start + end ) / 2 ;
197
- function f ( a , b , m ) { return 3 * a * ( 1 - m ) * ( 1 - m ) * m + 3 * b * ( 1 - m ) * m * m + m * m * m } ;
198
198
var xEst = f ( a , c , mid ) ;
199
199
if ( Math . abs ( x - xEst ) < 0.00001 ) {
200
200
return f ( b , d , mid ) ;
You can’t perform that action at this time.
0 commit comments