Provides functionality for asynchronously opening sources and tracking progress. Includes event emitters for progress updates and completion notifications.

Hierarchy

  • ComponentLoader

Constructors

Properties

Accessors

Methods

Constructors

Properties

loadCount: number

Accessors

  • get onProgress(): ISimpleEvent<IProgressLogs>
  • Event emitter for progress updates.

    Returns ISimpleEvent<IProgressLogs>

Methods

  • Removes the vim from the viewer and disposes it.

    Parameters

    • vim: Vim

      Vim to remove from the viewer.

    Returns void

  • Asynchronously opens a vim at source, applying the provided settings.

    Parameters

    • source: string | ArrayBuffer

      The source to open, either as a string or ArrayBuffer.

    • settings: LoadSettings

      Partial settings to apply to the opened source.

    • Optional onProgress: ((p: IProgressLogs) => void)

      Optional callback function to track progress during opening. Receives progress logs as input.

        • (p: IProgressLogs): void
        • Parameters

          • p: IProgressLogs

          Returns void

    Returns Promise<Vim>

Generated using TypeDoc