({elapsed, duration})
| 270 | object.startTime = 0; |
| 271 | |
| 272 | const getProgress = ({elapsed, duration}) => |
| 273 | duration > 0 ? Math.min(elapsed / duration, 1) : 1; |
| 274 | |
| 275 | const setSpeed = (speed, value, index) => |
| 276 | speed > 0 ? computeValue(value, index) / speed : 0; |