Transition
Interface in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Interface
interface TransitionA transition submitted with ObjectStateManager.transition
Members#
| Member | Kind | Description |
|---|---|---|
| finished | Property | Settles once the transition has ended: "finished" when it played to its end (every viewer that animates has drawn its last frame), "stopped" when stop(), sto… |
| started | Property | Settles once its first step's changes are in the manager's sets (the picture then catches up), or once it ended without starting; never rejects |
| stop | Method | Stops it, running or still waiting; how: default its onStop. "end": as if it had played, the rest of its steps at once (a waiting one in its turn, after the … |
finished#
readonly finished: Promise<"stopped" | "finished">Settles once the transition has ended: "finished" when it played to its end (every viewer that animates has drawn its last frame), "stopped" when stop(), stopTransitions() or a replacing transition ended it. Rejects when one of its queries fails
started#
readonly started: Promise<void>Settles once its first step's changes are in the manager's sets (the picture then catches up), or once it ended without starting; never rejects
stop#
stop(how?: TransitionEnd): voidStops it, running or still waiting; how: default its onStop. "end": as if it had played, the rest of its steps at once (a waiting one in its turn, after the transitions ahead of it). "start": what it changed and nothing changed since goes back to how it was before it. "current": stays as it shows (camera, colours between two fixed colours or two transparencies exactly; a fade as a transparency; the rest at the nearer end); a waiting transition with "start" or "current" changes nothing
Parameters#
| Name | Type | Description |
|---|---|---|
how |
TransitionEnd |