Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Asset

Index

Constructors

constructor

  • Returns Asset

Properties

assetManager

assetManager: AssetManager

Methods

createObjectURL

  • createObjectURL(inputs: FileDto): string
  • Gets and creates the url string path to your file stored in your memory.

    group

    create

    shortname

    object url

    Parameters

    Returns string

    URL string of a file

createObjectURLs

  • createObjectURLs(inputs: FilesDto): string[]
  • Gets and creates the url string paths to your files stored in your memory.

    group

    create

    shortname

    object urls

    Parameters

    Returns string[]

    URL strings for given files

fetchBlob

  • fetchBlob(inputs: FetchDto): Promise<Blob>
  • Fetches the blob from the given url, must be CORS enabled accessible endpoint

    group

    fetch

    shortname

    fetch blob

    Parameters

    Returns Promise<Blob>

    Blob

fetchFile

  • fetchFile(inputs: FetchDto): Promise<File>
  • Fetches the file from the given url, must be CORS enabled accessible endpoint

    group

    fetch

    shortname

    fetch file

    Parameters

    Returns Promise<File>

    File

fetchJSON

  • fetchJSON(inputs: FetchDto): Promise<any>
  • Fetches the json from the given url, must be CORS enabled accessible endpoint

    group

    fetch

    shortname

    fetch json

    Parameters

    Returns Promise<any>

    JSON

fetchText

  • fetchText(inputs: FetchDto): Promise<string>
  • Fetches the json from the given url, must be CORS enabled accessible endpoint

    group

    fetch

    shortname

    fetch text

    Parameters

    Returns Promise<string>

    Text

getFile

  • Gets the asset file

    group

    get

    shortname

    cloud file

    Parameters

    • inputs: GetAssetDto

      file name to get from project assets

    Returns Promise<File>

    Blob of asset

getLocalFile

  • getLocalFile(inputs: GetAssetDto): Promise<File | File[]>
  • Gets the local asset file stored in your browser.

    group

    get

    shortname

    local file

    Parameters

    • inputs: GetAssetDto

      asset name to get from local assets

    Returns Promise<File | File[]>

    Blob of asset

Generated using TypeDoc