NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
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

Member Summary

Public Members
public
public
public

dir

public

ext

public
public
public
public
public

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 Members

public binary source

public compressed source

public dir source

public ext source

public name source

public params source

public path source

public protocol source

public streamer source

Public Methods

public abstract load(): Promise source

Load data

Return:

Promise

resolves to the loaded data Object