Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
10 lines
313 B
Plaintext
10 lines
313 B
Plaintext
const animationMaps = new WeakMap();
|
|
const animationMapKey = (name, pseudoElement = "") => `${name}:${pseudoElement}`;
|
|
function getAnimationMap(element) {
|
|
const map = animationMaps.get(element) || new Map();
|
|
animationMaps.set(element, map);
|
|
return map;
|
|
}
|
|
|
|
export { animationMapKey, getAnimationMap };
|