@internal
(arg?: boolean | OneOrMore<string>, keys?: OneOrMore<string>)
| 217 | stop(cancel: boolean, keys?: OneOrMore<string>): this |
| 218 | /** @internal */ |
| 219 | stop(arg?: boolean | OneOrMore<string>, keys?: OneOrMore<string>) { |
| 220 | if (arg !== !!arg) { |
| 221 | keys = arg as OneOrMore<string> |
| 222 | } |
| 223 | if (keys) { |
| 224 | const springs = this.springs as Lookup<SpringValue> |
| 225 | each(toArray(keys) as string[], key => springs[key].stop(!!arg)) |
| 226 | } else { |
| 227 | stopAsync(this._state, this._lastAsyncId) |
| 228 | this.each(spring => spring.stop(!!arg)) |
| 229 | } |
| 230 | return this |
| 231 | } |
| 232 | |
| 233 | /** Freeze the active animation in time */ |
| 234 | pause(keys?: OneOrMore<string>) { |