NGL@0.10.4 Home Manual Reference Source GalleryRepository
import Loader from 'ngl/src/loader/loader.js'
public class | source

Loader

Loader base class

Constructor Summary

Public Constructor
public

constructor(src: String | File | Blob, params: LoaderParameters)

Construct a loader object

Method Summary

Public Methods
public abstract

Load data

Public Constructors

public constructor(src: String | File | Blob, params: LoaderParameters) source

Construct a loader object

Params:

NameTypeAttributeDescription
src String | File | Blob

data source, string is interpreted as an URL

params LoaderParameters

parameters object

Public Methods

public abstract load(): Promise source

Load data

Return:

Promise

resolves to the loaded data Object