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">
20 lines (19 loc) • 947 B
TypeScript
/**
* The names of the unique identifiers. These are used to create unique identifiers for different types of objects.
* @category utils
* @internal
*/
export type UIDNames = 'default' | 'resource' | 'texture' | 'textureSource' | 'textureResource' | 'batcher' | 'graphicsContext' | 'graphicsView' | 'graphicsPath' | 'fillGradient' | 'fillPattern' | 'meshView' | 'renderable' | 'buffer' | 'bufferResource' | 'geometry' | 'instructionSet' | 'renderTarget' | 'uniform' | 'spriteView' | 'textView' | 'tilingSpriteView' | 'shader' | 'renderer';
/**
* Gets the next unique identifier
* @param name - The name of the identifier.
* @returns {number} The next unique identifier to use.
* @category utils
* @internal
*/
export declare function uid(name?: UIDNames): number;
/**
* Resets the next unique identifier to 0. This is used for some tests, dont touch or things WILL explode :)
* @internal
*/
export declare function resetUids(): void;