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

19 lines
489 B
Plaintext

import { inertia } from '../generators/inertia.mjs';
import { keyframes } from '../generators/keyframes.mjs';
import { spring } from '../generators/spring/index.mjs';
const transitionTypeMap = {
decay: inertia,
inertia,
tween: keyframes,
keyframes: keyframes,
spring,
};
function replaceTransitionType(transition) {
if (typeof transition.type === "string") {
transition.type = transitionTypeMap[transition.type];
}
}
export { replaceTransitionType };