(animatingRect, fromRect, toRect, options)
| 168 | |
| 169 | |
| 170 | function calculateRealTime(animatingRect, fromRect, toRect, options) { |
| 171 | return ( |
| 172 | Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / |
| 173 | Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) |
| 174 | ) * options.animation; |
| 175 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…