@awayjs/stage
Version:
Stage for AwayJS
44 lines • 1.62 kB
TypeScript
import { ParserBase, ResourceDependency } from '@awayjs/core';
/**
* TextureAtlasParser provides a "parser" for natively supported image types (jpg, png). While it simply loads bytes into
* a loader object, it wraps it in a BitmapImage2DResource so resource management can happen consistently without
* exception cases.
*/
export declare class TextureAtlasParser extends ParserBase {
private _doc;
private _imagePath;
private _imageData;
private _subTextureNodes;
private _parseState;
/**
* Creates a new TextureAtlasParser object.
* @param uri The url or id of the data or file to be parsed.
* @param extra The holder for extra contextual data that the parser might need.
*/
constructor();
/**
* Indicates whether or not a given file extension is supported by the parser.
* @param extension The file extension of a potential file to be parsed.
* @return Whether or not the given file type is supported.
*/
static supportsType(extension: string): boolean;
/**
* Tests whether a data block can be parsed by the parser.
* @param data The data block to potentially be parsed.
* @return Whether or not the given data is supported.
*/
static supportsData(data: any): boolean;
/**
* @inheritDoc
*/
resolveDependency(resourceDependency: ResourceDependency): void;
/**
* @inheritDoc
*/
resolveDependencyFailure(resourceDependency: ResourceDependency): void;
/**
* @inheritDoc
*/
protected proceedParsing(): void;
}
//# sourceMappingURL=TextureAtlasParser.d.ts.map