dino-ge
    Preparing search index...

    Class default

    Handles asynchronous loading of assets like images.

    Index

    Constructors

    Methods

    • Get a loaded asset by its tag.

      Parameters

      • tag: string

        The tag used when queuing the asset.

      Returns HTMLImageElement

      The loaded HTMLImageElement.

    • Returns all loaded assets.

      Returns { image: HTMLImageElement; tag: string }[]

      An array of { tag, image } objects.

    • Start loading all queued assets.

      Parameters

      • OptionalonProgress: (percent: number) => void

        Optional callback for loading progress updates.

      Returns Promise<void>

    • Queue an image for loading.

      Parameters

      • tag: string

        Unique tag to reference the image later.

      • src: string

        Path to the image file.

      Returns void