Interface: ResolvedSrc
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:117
A fully resolved src specification after pattern resolution and format detection. Unlike raw asset sources, this type represents the final, concrete source path and format.
Example
// Basic resolved source
const src: ResolvedSrc = {
src: 'images/sprite.png',
format: 'png'
};
// With resolution and format preferences
const src: ResolvedSrc = {
src: 'images/sprite@2x.webp',
format: 'webp',
data: { resolution: 2 }
};
// With specific loader
const src: ResolvedSrc = {
src: 'data/config.txt',
format: 'txt',
parser: 'text',
};
Remarks
- Pattern strings like
{png,webp}are resolved to specific formats - Resolution and format are determined based on browser support
- Used internally by the Assets system after resolution
- Data property can contain format-specific options
See
- AssetSrc For unresolved source format
- ResolvedAsset For complete resolved asset specification
Advanced
Properties
data?
> optional data?: any
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:65
Optional data passed to the asset loader. Can include texture settings, parser options, or other asset-specific data.
format?
> optional format?: string
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:67
File format of the asset, usually the file extension. Used to determine which loader parser to use.
~~loadParser?~~
> optional loadParser?: LoadParserName
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:71
Deprecated
Use parser instead.
parser?
> optional parser?: AssetParser
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:73
Override to specify which parser should load this asset. Useful when file extensions don't match the content type.
src?
> optional src?: string
Defined in: node_modules/pixi.js/lib/assets/types.d.ts:60
The URL or relative path to the asset. This is the final, resolved path that will be used for loading.