(to?: any, arg2?: any)
| 464 | start(to: T, props?: SpringProps<T>): AsyncResult<this> |
| 465 | |
| 466 | start(to?: any, arg2?: any) { |
| 467 | let queue: SpringUpdate<T>[] |
| 468 | if (!is.und(to)) { |
| 469 | queue = [is.obj(to) ? to : { ...arg2, to }] |
| 470 | } else { |
| 471 | queue = this.queue || [] |
| 472 | this.queue = [] |
| 473 | } |
| 474 | |
| 475 | return Promise.all( |
| 476 | queue.map(props => { |
| 477 | const up = this._update(props) |
| 478 | return up |
| 479 | }) |
| 480 | ).then(results => getCombinedResult(this, results)) |
| 481 | } |
| 482 | |
| 483 | /** |
| 484 | * Stop the current animation, and cancel any delayed updates. |