Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapViewTaskScheduler

Hierarchy

  • EventDispatcher
    • MapViewTaskScheduler

Index

Constructors

constructor

Accessors

maxFps

  • get maxFps(): number
  • set maxFps(fps: number): void

taskQueue

throttlingEnabled

  • get throttlingEnabled(): boolean
  • set throttlingEnabled(enabled: boolean): void

Methods

addEventListener

  • addEventListener(type: string, listener: (event: Event) => void): void
  • Adds a listener to an event type.

    Parameters

    • type: string

      The type of event to listen to.

    • listener: (event: Event) => void

      The function that gets called when the event is fired.

        • (event: Event): void
        • Parameters

          • event: Event

          Returns void

    Returns void

clearQueuedTasks

  • clearQueuedTasks(): void

dispatchEvent

  • dispatchEvent(event: { type: string }): void
  • Fire an event type.

    Parameters

    • event: { type: string }
      • [attachment: string]: any
      • type: string

    Returns void

hasEventListener

  • hasEventListener(type: string, listener: (event: Event) => void): boolean
  • Checks if listener is added to an event type.

    Parameters

    • type: string

      The type of event to listen to.

    • listener: (event: Event) => void

      The function that gets called when the event is fired.

        • (event: Event): void
        • Parameters

          • event: Event

          Returns void

    Returns boolean

processPending

  • processPending(frameStartTime: number): void
  • Processes the pending Tasks of the underlying TaskQueue !! This should run at the end of the renderLoop, so the calculations of the available frame time are better estimated

    Parameters

    • frameStartTime: number

      the start time of the current frame, is used to calculate the still available time in the frame to process Tasks

    Returns void

removeEventListener

  • removeEventListener(type: string, listener: (event: Event) => void): void
  • Removes a listener from an event type.

    Parameters

    • type: string

      The type of the listener that gets removed.

    • listener: (event: Event) => void

      The listener function that gets removed.

        • (event: Event): void
        • Parameters

          • event: Event

          Returns void

    Returns void

requestUpdate

  • requestUpdate(): void

Generated using TypeDoc