29 lines
1.9 KiB
JavaScript
29 lines
1.9 KiB
JavaScript
// Module ID: 1641
|
|
// Function ID: 18330
|
|
// Name: getEasingByName
|
|
// Dependencies: []
|
|
|
|
// Module 1641 (getEasingByName)
|
|
const obj = { linear: [false, false, false, false], ease: [null, null, null, null], quad: [], cubic: [false, false, false, false], sin: [], circle: [0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005824209311754441, 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007890184006188563, 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000001700540678040282, -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001289305088294504], exp: [] };
|
|
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;
|
|
}
|
|
};
|