@internal
(event: FrameValue.Event)
| 308 | |
| 309 | /** @internal */ |
| 310 | eventObserved(event: FrameValue.Event) { |
| 311 | if (event.type == 'change') { |
| 312 | this._changed.add(event.parent) |
| 313 | if (!event.idle) { |
| 314 | this._active.add(event.parent) |
| 315 | } |
| 316 | } else if (event.type == 'idle') { |
| 317 | this._active.delete(event.parent) |
| 318 | } |
| 319 | // The `onFrame` handler runs when a parent is changed or idle. |
| 320 | else return |
| 321 | raf.onFrame(this._onFrame) |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | /** |
no test coverage detected