30 lines
1.8 KiB
JavaScript
30 lines
1.8 KiB
JavaScript
/* Metro module 1702; source: unknown; dependencies: [1662] */
|
|
import * as EasingModule from './module-01662-Easing.js'; /* Metro dependency 1662 */
|
|
|
|
function _fun18570(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1829:6, offset: 0x00e906a0, size: 66 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.JumpingTransition = JumpingTransition;
|
|
function JumpingTransition(a0, {translateX, translateY, scaleX, scaleY}) { // fn#18571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1829:113, offset: 0x00e906e2, size: 381 bytes, params: 3, frame: 25
|
|
const Math = global.Math;
|
|
const max = Math.max;
|
|
const Math2 = global.Math;
|
|
let value = Math2.abs(translateX);
|
|
const Math3 = global.Math;
|
|
value = Reflect.apply(max, Math, [value, Math3.abs(translateY)]);
|
|
value /= 2;
|
|
const r11 = translateY <= 0 ? translateY - value : -translateY + value;
|
|
const object2 = {};
|
|
object2.transform = [{translateX: '' + translateX + 'px', translateY: '' + translateY + 'px',
|
|
scale: '' + scaleX + ',' + scaleY}];
|
|
const Easing = (EasingModule).Easing;
|
|
object2.easing = Easing.exp;
|
|
return {name: a0, style: {[0]: object2,
|
|
[50]: {transform: [{translateX: translateX / 2 + 'px', translateY: '' + r11 + 'px', scale: '' + scaleX + ',' + scaleY}]}, [100]: {transform: [{'translateX': '0px', 'translateY': '0px', 'scale': '1,1'}]}}, duration: 300};
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun18570, 1702, [1662]) /* metro module 1702, dependencies: [1662] */;
|