/** * Decode an embedded base64 image, cache it in imgList, and return * a generated filename (with extension) suitable for getImage(). * Works for both XML-parsed data (base64 string) and JSON data. * @ignore * @param {string} base64 - raw base64-encoded image data * @param {string} [format="png"] - image format * @param {number} [width] - image width hint * @param {number} [height] - image height hint * @returns {string} generated filename (e.g. "__embedded_0.png") */ export function cacheEmbeddedImage(base64: string, format?: string, width?: number, height?: number): string; /** * If the given data object has an embedded base64 image (JSON `imagedata` * property), decode it, cache it, and replace with a generated filename. * @ignore * @param {object} data - tileset, tile, or layer data */ export function resolveEmbeddedImage(data: object): void; /** * Convert a Tiled blend mode name to a canonical melonJS blend mode. * Tiled uses "add" for additive blending; melonJS renderers accept * "add", "additive", and "lighter" as equivalent. This helper normalizes * the Tiled "add" value to "lighter" for internal consistency. * Returns "normal" when the mode is undefined or explicitly "normal"; * all other values are passed through to the renderer (which will fall * back to "normal" for unsupported modes). * @param {string} [mode] - the Tiled blend mode * @returns {string} the melonJS blend mode name */ export function tiledBlendMode(mode?: string): string; /** * Apply an opacity multiplier to a renderable and its child renderable (if any). * @ignore * @param {Renderable} obj - the renderable to apply to * @param {number} opacity - the opacity multiplier */ export function applyObjectOpacity(obj: Renderable, opacity: number): void; /** * Propagate a blend mode to a renderable and its child renderable (if any). * Only applies when the object still has the default "normal" blend mode. * @ignore * @param {Renderable} obj - the renderable to apply to * @param {string} blendMode - the blend mode to propagate */ export function propagateBlendMode(obj: Renderable, blendMode: string): void; /** * Parse a Tiled tint color hex string into a melonJS Color object. * @ignore * @param {string} tintcolor - hex color string from Tiled (e.g. "#ff0000") * @returns {Color|undefined} parsed Color, or undefined if no tint */ export function parseTintColor(tintcolor: string): Color | undefined; /** * Parse a XML TMX object and returns the corresponding javascript object * @memberof TMXUtils * @param {Document} xml - XML TMX object * @returns {object} Javascript object */ export function parse(xml: Document): object; /** * Apply TMX Properties to the given object * @memberof TMXUtils * @param {object} obj - object to apply the properties to * @param {object} data - TMX data object */ export function applyTMXProperties(obj: object, data: object): void; export { decode, setInflateFunction } from "../../utils/decode.ts"; //# sourceMappingURL=TMXUtils.d.ts.map