PIXI.IResourceMetadata

interface IResourceMetadata

Metadata for loader resource. It is very messy way to pass options for loader middlewares

Can be extended in GlobalMixins.IResourceMetadata

Summary


Properties from IResourceMetadata

PIXI.IResourceMetadata
imageMetadata
HTMLImageElement | HTMLAudioElement | HTMLVideoElement
loadElement

The element to use for loading, instead of creating one.

string | string[]
mimeType
boolean
skipSource

Public Properties


imageMetadata LoaderResource.ts:76
imageMetadata: PIXI.IResourceMetadata

Used by BitmapFonts, Spritesheet and CompressedTextures as the options to used for metadata when loading the child image.

loadElement LoaderResource.ts:62
loadElement: HTMLImageElement | HTMLAudioElement | HTMLVideoElement

The element to use for loading, instead of creating one.

mimeType LoaderResource.ts:69
mimeType: string | string[]

The mime type to use for the source element of a video/audio elment. If the urls are an array, you can pass this as an array as well where each index is the mime type to use for the corresponding url index.

skipSource LoaderResource.ts:64
skipSource: boolean

Skips adding source(s) to the load element. This is useful if you want to pass in a loadElement that you already added load sources to.


Powered by webdoc!