Class EligiusEngine

This is where the magic happens. The engine is responsible for starting and stopping the given timeline provider and triggering the actions associated with the positions along the timeline.

Hierarchy

  • EligiusEngine

Implements

Constructors

Properties

_activeTimelineProvider: undefined | ITimelineProvider = undefined
_currentTimelineUri: string = ''
_eventbusRemovers: TEventbusRemover[] = []
_lastPosition: number = -1
_timeLineActionsLookup: Record<string, Record<number, ActionMethod[]>> = {}
eventbus: IEventbus
languageManager: LanguageManager
timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>

Methods

  • Parameters

    • eventName: string
    • eventHandler: TEventHandler
    • Optional eventTopic: string

    Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    • position: number

    Returns void

  • Parameters

    • position: number

    Returns Promise<void>

  • Parameters

    • uri: string
    • position: number = 0

    Returns Promise<void>

  • Parameters

    • lookup: Record<number, ActionMethod[]>
    • position: number

    Returns ActionMethod[]

  • Parameters

    • lookup: Record<string, Record<number, ActionMethod[]>>
    • uri: string

    Returns Record<number, any>

  • Parameters

    • floor: ((x) => number)
        • (x): number
        • Parameters

          • x: number

          Returns number

    • position: number

    Returns void

  • Cleans up all the necessary parts that the engine initialized.

    • It ends the currently active operations and the init actions.
    • It removes all its eventbus listeners, handlers and interceptors.
    • It destroys all of its timeline providers
    • It empties the HTML element indicated by the containerSelector configuration property.

    Returns Promise<void>

  • Parameters

    • position: number

    Returns Promise<void>

  • Parameters

    • actions: ActionMethod[]

    Returns ActionMethod[]

  • Parameters

    • timelines: Record<number, ActionMethod[]>[]

    Returns void

Generated using TypeDoc