SheetXL - v1.0.2
    Preparing search index...

    Class Resource

    A resource is an item referenced elsewhere with the application. This will track when a resource is no longer being used and can be removed.

    Implements

    Index
    • get isIResource(): true

      For runtime type checking.

      Returns true

    • Add a reference to the resource.

      Parameters

      • ref: any

        The object to strongly hold the resource.

      Returns void

    • Delete a reference to the resource.

      Parameters

      • ref: any

        The object that held the resource.

      Returns void

    • Returns the resource as a uri if this is external.

      Returns Promise<string | null>

    • The URL the bytes were fetched from, when the resource is a picture the workbook keeps for it (an IMAGE source): a fetch of that URL answers from these bytes. null otherwise.

      Returns string | null

    • An optional name for the resource.

      Returns string | null

    • true if the resource if all references have been deleted.

      Returns boolean

    • Returns the resource as a Promise to array buffer.

      Returns Promise<ArrayBuffer>