Files
NapCatQQ/.pnpm-store/v3/files/bd/66fef370d402cf1b3a0d56fe9db718c15fec1bdafdfda3a19b999ab5d5f4f71d8ae44d1cca5ac24c309d55a920ec15dfb46813121c03cf91086d952c45d88a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

9 lines
274 B
Plaintext

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 };