The boot loader of the Katex Input Helper. It serves as entry point of the application.

Implements

Constructors

Properties

easyuiLoader: IEasyuiLoader = null
factory: Factory<IKatexInputHelper> = null
localizer: ILocalizer = null
vme: IKatexInputHelper = null

Methods

  • Initializes the app. This is the true application logic. Performs the following steps:

    • start document and easyui initial load
    • English language and progress dialog
    • easyui final load
    • KIH loading including prefetch
    • KIH initialization

    Returns Promise<void>

    implements the Promise contract

  • Converts a method with given signature and callback to a Promise returning method.

    A special case is the use of setTimeout, where the order of arguments is swapped.

    Parameters

    • fnc: any

      a function object to be invoked

    • Rest...args: any[]

      args of the function. The function has one additional callback parameter

    Returns Promise<unknown>

    the Promise, will be fulfilled if the callback is invoked

    implements the Promise contract

  • The promise is fulfilled if the document becomes ready.

    Returns Promise<unknown>

    implements the Promise contract

  • The promise is fulfilled after a timeout is elapsed.

    Parameters

    • delay: number

      the time in ms to wait for

    Returns Promise<unknown>

    implements the Promise contract