sdfsdfs
This commit is contained in:
11
node_modules/pixi.js/lib/scene/text-html/utils/loadSVGImage.d.ts
generated
vendored
Normal file
11
node_modules/pixi.js/lib/scene/text-html/utils/loadSVGImage.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
export declare function loadSVGImage(image: HTMLImageElement, url: string, delay: boolean): Promise<void>;
|
Reference in New Issue
Block a user