Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/animation/utils/active-animations.mjs 396 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
  const animationMaps = new WeakMap();
  const animationMapKey = (name, pseudoElement = "") => `${name}:${pseudoElement}`;
  function getAnimationMap(element) {
      let map = animationMaps.get(element);
      if (!map) {
          map = new Map();
          animationMaps.set(element, map);
      }
      return map;
  }
  
  export { animationMapKey, getAnimationMap };
  //# sourceMappingURL=active-animations.mjs.map