(
output: NodeJS.WritableStream,
response:
| EvaluateSuccess
| SchedulerTickSuccess
| WindowClosedSuccess
| StartCloseSuccess
| InvokeHandlerSuccess
| InvokeKeyBindingSuccess
| WindowResizeSuccess
| WindowMoveSuccess
| WindowStateRequestSuccess
| PointerMoveAsyncSuccess
| GetEffectConfigSuccess
| EvaluateLayerEffectsSuccess
| EvaluatePopupEffectsSuccess
| LifecycleEnableSuccess
| LifecycleDisableSuccess
| DrainPreloadSuccess
| RuntimeFailure,
)
| 3375 | const action = { |
| 3376 | windowId: latestSnapshot.id, |
| 3377 | action: "scheduleAnimation", |
| 3378 | animation: serializeManagedWindowAnimation(options), |
| 3379 | } satisfies RuntimeWindowAction; |
| 3380 | debugHotReload("queue-schedule-animation", { |
| 3381 | windowId: latestSnapshot.id, |
| 3382 | title: latestSnapshot.title, |
| 3383 | action: summarizeWindowAction(action), |
| 3384 | }); |
| 3385 | entry.pendingActions.push(action); |
| 3386 | }, |
| 3387 | cancelAnimation(channel) { |
| 3388 | const action = { |
| 3389 | windowId: latestSnapshot.id, |
| 3390 | action: "cancelAnimation", |
| 3391 | channel, |
| 3392 | } satisfies RuntimeWindowAction; |
| 3393 | debugHotReload("queue-cancel-animation", { |
| 3394 | windowId: latestSnapshot.id, |
| 3395 | title: latestSnapshot.title, |
| 3396 | action: summarizeWindowAction(action), |
| 3397 | }); |
| 3398 | entry.pendingActions.push(action); |
| 3399 | }, |
| 3400 | setCloseAnimationDuration(durationMs) { |
| 3401 | entry.closeAnimationDurationMs = Math.max(0, Math.floor(durationMs)); |
| 3402 | }, |
| 3403 | isXWayland() { |
| 3404 | return latestSnapshot.isXwayland; |
| 3405 | }, |
| 3406 | }; |
| 3407 | |
| 3408 | const animationEntries = |
| 3409 | animationEntriesByWindowId.get(snapshot.id) ?? new Map(); |
| 3410 | animationEntriesByWindowId.set(snapshot.id, animationEntries); |
| 3411 | const animation = createWindowAnimationControllerWithStore( |
| 3412 | snapshot.id, |
| 3413 | animationEntries as Map<symbol, never>, |
| 3414 | ); |
| 3415 | const cache = createCompositionEvaluationCache( |
| 3416 | snapshot, |
| 3417 | actions, |
| 3418 | composition, |
| 3419 | animation, |
| 3420 | context, |
| 3421 | ); |
| 3422 | const entry: RuntimeCacheEntry = { |
| 3423 | latestSnapshot, |
| 3424 | cache, |
| 3425 | animationEntries, |
| 3426 | pendingActions: [], |
| 3427 | closeAnimationDurationMs: 0, |
| 3428 | closeStarted: false, |
| 3429 | preconfigured: false, |
| 3430 | }; |
no test coverage detected