Img
Renders an image
Constructor
constructor(
src: string,
caption: string = '',
resizeType: ResizeType = 'fill',
// Background color is only useful when the resizeType is fit,
// so it fills the gaps of VueFlux size, and does not look odd when a transitions runs
backgroundColor: null | string = null
)
Methods
// Called to load the resource returning a promise
load(): Promise<void>
// Called when the resource is loaded successfully
onLoad(img: HTMLImageElement, resolve: Function): void
// Called when an error occurs when loading the resource
onError(reject: Function): void