sdfsdfs
This commit is contained in:
18
node_modules/pixi.js/lib/utils/data/uid.mjs
generated
vendored
Normal file
18
node_modules/pixi.js/lib/utils/data/uid.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
const uidCache = {
|
||||
default: -1
|
||||
};
|
||||
function uid(name = "default") {
|
||||
if (uidCache[name] === void 0) {
|
||||
uidCache[name] = -1;
|
||||
}
|
||||
return ++uidCache[name];
|
||||
}
|
||||
function resetUids() {
|
||||
for (const key in uidCache) {
|
||||
delete uidCache[key];
|
||||
}
|
||||
}
|
||||
|
||||
export { resetUids, uid };
|
||||
//# sourceMappingURL=uid.mjs.map
|
Reference in New Issue
Block a user