pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
13 lines (12 loc) • 612 B
TypeScript
/**
* This function loads an SVG image into an HTMLImageElement.
* The image can then be uploaded as texture to the GPU.
* iOS has a bug where embedded fonts are not available immediately after the image loads,
* so we wait an arbitrary amount of time before resolving the promise.
* @param image - The image to load the SVG into
* @param url - The url to load the SVG from
* @param delay - Whether to delay the load
* @returns - A promise that resolves when the image has loaded
* @internal
*/
export declare function loadSVGImage(image: HTMLImageElement, url: string, delay: boolean): Promise<void>;