29 lines
2.2 KiB
JavaScript
29 lines
2.2 KiB
JavaScript
// Module ID: 1641
|
|
// Function ID: 18330
|
|
// Name: getEasingByName
|
|
// Dependencies: []
|
|
|
|
// Module 1641 (getEasingByName)
|
|
const obj = { linear: [null, null, null, null], ease: ["r", "iconSource", "VOICE_INVITE_SUGGESTIONS_POPOVER", "DISPLAY_NAME_STYLES_ROUTE"], quad: ["light", "dark", "highContrastLight", "highContrastDark"], cubic: [21006405097.079258, 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000343037595653195, 53322399.5127398, -14971117398514040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000], sin: [null, null, null, null], circle: [16211880840698641000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005176261303944426, -558427114513636300000000000000000000000000000000000000000000000000000000000000000000000000000000000, -0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008144215322199141], exp: ["swipeUp", "swipeDown", "verticalSwipe", "\u00E1llat"] };
|
|
arg5.WebEasings = obj;
|
|
arg5.getEasingByName = function getEasingByName(linear) {
|
|
return "cubic-bezier(" + obj[linear].toString() + ")";
|
|
};
|
|
arg5.maybeGetBezierEasing = function maybeGetBezierEasing(easingV) {
|
|
if ("factory" in easingV) {
|
|
const factory = easingV.factory;
|
|
if ("__closure" in factory) {
|
|
const __closure = factory.__closure;
|
|
let combined = null;
|
|
if ("Bezier" in __closure) {
|
|
const _HermesInternal = HermesInternal;
|
|
combined = "cubic-bezier(" + __closure.x1 + ", " + __closure.y1 + ", " + __closure.x2 + ", " + __closure.y2 + ")";
|
|
}
|
|
return combined;
|
|
} else {
|
|
return null;
|
|
}
|
|
} else {
|
|
return null;
|
|
}
|
|
};
|