Transition interface
Thenable.
import type { Transition } from '@dioramajs/diorama/transitions'Resolves with the result and never rejects.
interface Transition extends PromiseLike<TransitionResult>Members
| Name | Type | Description |
|---|---|---|
readonly auto | boolean | Created by auto mode or a late partner rather than by app.transition. |
readonly entering | readonly Presence[] | New copies in view. Only with |
readonly finished | Promise<TransitionResult> | Never rejects. |
readonly flights | readonly Flight[] | Filled when flying starts. |
readonly leaving | readonly Presence[] | Unpaired copies of removed elements. Only with |
readonly phase | ReadonlySignal<TransitionPhase> | Current phase. |
readonly swapped | Promise<void> | Settles with the swap, or rejects with its error. If this transition is still current it also waits for the new page's reconcile. Supersede, abort and timeout don't settle it early. |
abort | | Lands everything now and ends with |
finish | | Lands everything now. Copies jump to their targets and fades end. |
then | | Attaches callbacks for the resolution and/or rejection of the Promise. |
Also exported from @dioramajs/transitions.
Defined in packages/transitions/src/types.ts.