Files
discord-decomp/_bundle/Module1665.js
T
2026-11-01 12:12:55 +02:00

26 lines
711 B
JavaScript

// Metro module 1665 (f1666).
let c1319_0 = {
linear: [0, 0, 1, 1],
ease: [0.42, 0, 1, 1],
quad: [0.11, 0, 0.5, 0],
cubic: [0.32, 0, 0.67, 0],
sin: [0.12, 0, 0.39, 0],
circle: [0.55, 0, 1, 0.45],
exp: [0.7, 0, 0.84, 0]
};
export { c1319_0 as WebEasings };
export function getEasingByName(a0) {
return `cubic-bezier(${c1319_0[a0].toString()})`;
}
export function maybeGetBezierEasing(a0) {
if ("factory" in a0) {
const factory = a0.factory;
if ("__closure" in factory) {
const __closure = factory.__closure;
return "Bezier" in __closure ? `cubic-bezier(${__closure.x1}, ${__closure.y1}, ${__closure.x2}, ${__closure.y2})` : null;
}
return null;
}
return null;
}