Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/view/utils/get-layer-info.mjs 318 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
  function getViewAnimationLayerInfo(pseudoElement) {
      const match = pseudoElement.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);
      if (!match)
          return null;
      return { layer: match[2], type: match[1] };
  }
  
  export { getViewAnimationLayerInfo };
  //# sourceMappingURL=get-layer-info.mjs.map