API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSlideSceneTransition
Directional slide transition - covers menu/inventory/page-style navigation. Three modes: - `'push'` (default): the outgoing scene exits toward `direction` while the incoming scene enters from the opposite edge. Phase-split at the commit boundary (not a full `SceneTransition`), so there is a brief single-frame gap at the exact commit instant where neither scene is on-screen. - `'reveal'`: only the outgoing scene animates, sliding away toward `direction` to reveal the (already-committed) incoming scene underneath. - `'cover'`: only the incoming scene animates, sliding in from the opposite edge over a frozen snapshot of the (already-gone) outgoing scene.
import { SlideSceneTransition } from '@codexo/exojs'Directional slide transition - covers menu/inventory/page-style navigation. Three modes: - `'push'` (default): the outgoing scene exits toward `direction` while the incoming scene enters from the opposite edge. Phase-split at the commit boundary (not a full `SceneTransition`), so there is a brief single-frame gap at the exact commit instant where neither scene is on-screen. - `'reveal'`: only the outgoing scene animates, sliding away toward `direction` to reveal the (already-committed) incoming scene underneath. - `'cover'`: only the incoming scene animates, sliding in from the opposite edge over a frozen snapshot of the (already-gone) outgoing scene.
new(options: SlideSceneTransitionOptionsOptions for SlideSceneTransition.): SlideSceneTransitionbeginSession(environment: SceneTransitionEnvironmentHanded to SceneTransition.beginSession. `commitRequested`/`committed` are live views - they reflect state at read time, not a snapshot taken when this object w…): SceneTransitionSessionOne navigation's worth of mutable transition state - created fresh per navigation by SceneTransition.beginSession, driven by the Director until SceneTransition…createPhaseState(): SlidePhaseStatecreateSession(environment: SceneTransitionEnvironmentHanded to SceneTransition.beginSession. `commitRequested`/`committed` are live views - they reflect state at read time, not a snapshot taken when this object w…): SceneTransitionSessionOne navigation's worth of mutable transition state - created fresh per navigation by SceneTransition.beginSession, driven by the Director until SceneTransition…destroyPhaseState(_state: SlidePhaseState): voidenter(context: SceneTransitionPhaseContextPer-frame context handed to PhasedSceneTransition.enter/ PhasedSceneTransition.exit., state: SlidePhaseState): voidexit(context: SceneTransitionPhaseContextPer-frame context handed to PhasedSceneTransition.enter/ PhasedSceneTransition.exit., state: SlidePhaseState): voidgetPhaseRequirements(phase: "enter" | "exit", _context: SceneTransitionContextImmutable, read-only description of the navigation a SceneTransition is being asked to run for - passed to SceneTransition.getRequirements and into the SceneTr…): SceneTransitionPhaseRequirementsPer-phase render-resource requirements for one phase (`enter` or `exit`) of a PhasedSceneTransition. Same shape as SceneTransitionRequirements - kept as a dist…getRequirements(context: SceneTransitionContextImmutable, read-only description of the navigation a SceneTransition is being asked to run for - passed to SceneTransition.getRequirements and into the SceneTr…): SceneTransitionRequirementsRender resources a SceneTransitionSession needs, declared once up front via SceneTransition.getRequirements so the Director can provision them before the sessi…getRequirementsForPhase(phase: "enter" | "exit", context: SceneTransitionContextImmutable, read-only description of the navigation a SceneTransition is being asked to run for - passed to SceneTransition.getRequirements and into the SceneTr…): SceneTransitionPhaseRequirementsPer-phase render-resource requirements for one phase (`enter` or `exit`) of a PhasedSceneTransition. Same shape as SceneTransitionRequirements - kept as a dist…runPhase(phase: "enter" | "exit", context: SceneTransitionPhaseContextPer-frame context handed to PhasedSceneTransition.enter/ PhasedSceneTransition.exit., state: SlidePhaseState): voideasing: EasingFunctionplacement: "scene" | "screen"