Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

2.4 KB
Raw Blame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
export {
    TIMELINE_FORMAT_VERSION,
    WrapMode,
    TrackType,
    InterpType,
    type Keyframe,
    type PropertyChannel,
    type PropertyTrack,
    type SpineClip,
    type SpineTrack,
    type SpriteAnimTrack,
    type AudioEvent,
    type AudioTrack,
    type ActivationRange,
    type ActivationTrack,
    type Marker,
    type MarkerTrack,
    type CustomEvent,
    type CustomEventTrack,
    type CameraClip,
    type CameraTrack,
    type SequenceClip,
    type SequenceTrack,
    type AnimFrame,
    type AnimFramesTrack,
    type Track,
    type TimelineAsset,
} from './TimelineTypes';

export {
    parseTimelineAsset,
    extractTimelineAssetPaths,
    type TimelineAssetPaths,
} from './TimelineLoader';

export {
    Timeline,
    TimelineAPI,
    type PlayerFlagChannel,
} from './TimelineControl';

export {
    resolveChildEntity,
    setNestedProperty,
    applyTimelineEvent,
    TimelineEventType,
} from './TimelineRuntime';

export {
    sampleTimeline,
    sampleTimelineInWorld,
    evaluateChannel,
    applyWrapMode,
    isRootPlacementChannel,
    sampleRootPlacement,
    createRootPlacement,
    type SampleWorld,
    type SampleDeps,
    type SampleOptions,
    type RootPlacement,
} from './TimelineEvaluator';

export {
    playheadRuns,
    runCrosses,
    collectCustomEvents,
    type PlayheadRun,
} from './timelineEvents';

export {
    MAX_SEQUENCE_DEPTH,
    sequenceLocalTime,
    collectSequenceLayers,
    wouldNestCycle,
    resolveShot,
    resolveActiveShot,
    type SequenceLayer,
    type SequenceLookup,
    type ShotState,
    type ActiveShot,
} from './timelineSequences';

export {
    serializeTimelineAsset,
    serializeTimelineToJson,
} from './TimelineSerializer';

export {
    parseAnimationClip,
} from './AnimationClip';

export {
    advanceTimelineTS,
    detectTimelineEvents,
    createTimelineState,
    applyPlayerFlags,
    latchPlayerFinish,
    type TimelinePlayerFlags,
    type TimelineState,
    type FiredEvent,
    type AdvanceContext,
} from './TimelineDrive';

export {
    TimelinePlugin,
    timelinePlugin,
} from './TimelinePlugin';

export {
    TimelinePlayer,
    resolveWrapMode,
    type TimelinePlayerData,
} from './TimelinePlayerComponent';


export {
    TIMELINE_MOTION,
    createTimelineMotionDriver,
    type TimelineMotionEffects,
} from './timelineMotion';