Base class for implementing loaders.

Hierarchy (view full)

  • Loader<string | ArrayBuffer>
    • FileLoader

Constructors

Properties

crossOrigin: string
'anonymous'
mimeType: undefined | MimeType
path: string
''
requestHeader: {
    [header: string]: string;
}
{}
resourcePath: string
''
responseType: undefined | string
withCredentials: boolean
false
DEFAULT_MATERIAL_NAME: string

Methods

  • Parameters

    • url: string
    • OptionalonLoad: ((data: string | ArrayBuffer) => void)
        • (data): void
        • Parameters

          • data: string | ArrayBuffer

          Returns void

    • OptionalonProgress: ((event: ProgressEvent<EventTarget>) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    • OptionalonError: ((err: unknown) => void)
        • (err): void
        • Parameters

          • err: unknown

          Returns void

    Returns void

  • Parameters

    • url: string
    • OptionalonProgress: ((event: ProgressEvent<EventTarget>) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    Returns Promise<string | ArrayBuffer>

  • Parameters

    • crossOrigin: string

    Returns this

  • Parameters

    • mimeType: MimeType

    Returns FileLoader

  • Parameters

    • path: string

    Returns this

  • Parameters

    • requestHeader: {
          [header: string]: string;
      }
      • [header: string]: string

    Returns this

  • Parameters

    • resourcePath: string

    Returns this

  • Parameters

    • responseType: string

    Returns FileLoader

  • Parameters

    • value: boolean

    Returns this