60 lines
3.1 KiB
TypeScript
60 lines
3.1 KiB
TypeScript
/* Metro module 9944; source: modules/zoom_layout/ZoomLayout.android.tsx; dependencies: [31, 27, 33, 9945, 2] */
|
|
function _fun77837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:6, offset: 0x01e0dd68, size: 175 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(27) /* metro dependency 27 */).PixelRatio;
|
|
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
|
value = value.forwardRef(_fun77838);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/zoom_layout/ZoomLayout.android.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _fun77838(a0, a1) { // fn#77838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:157, offset: 0x01e0de17, size: 102 bytes, params: 3, frame: 15
|
|
const binding = env0_3;
|
|
const value2 = binding.useRef(null);
|
|
binding.useImperativeHandle(a1, function() {
|
|
return {zoomTo: _fun77840, unzoom: _fun77841};
|
|
});
|
|
return ((Component) => <Component {...a0} {...{['ref']: value2}} />)(importDefault(9945) /* metro dependency 9945: ZoomLayoutNativeComponent */);
|
|
}
|
|
|
|
function _fun77839() { // fn#77839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:224, offset: 0x01e0de7d, size: 30 bytes, params: 1, frame: 3
|
|
return {zoomTo: zoomTo_77840, unzoom: unzoom_77841};
|
|
}
|
|
|
|
function zoomTo_77840({x, y, scale, animated}) { // fn#77840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:237, offset: 0x01e0de9b, size: 154 bytes, params: 2, frame: 21
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var Commands;
|
|
scale = scale === undefined ? 2 : scale;
|
|
animated = animated === undefined || animated;
|
|
const value = environment.__proto__;
|
|
if (env1_0.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
value3 = PixelRatio.get();
|
|
value4 = x * value3;
|
|
value5 = y * value3;
|
|
Commands = (require(9945) /* metro dependency 9945: ZoomLayoutNativeComponent */).Commands;
|
|
Commands.zoomTo(env1_0.current, value4 / scale - value4, value5 / scale - value5, scale, animated);
|
|
}
|
|
}
|
|
|
|
function unzoom_77841() { // fn#77841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:381, offset: 0x01e0df35, size: 93 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var Commands;
|
|
let value = a0;
|
|
let animated = (value !== undefined ? value : {}).animated;
|
|
animated = animated === undefined || animated;
|
|
value = environment.__proto__;
|
|
if (env1_0.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
Commands = (require(9945) /* metro dependency 9945: ZoomLayoutNativeComponent */).Commands;
|
|
Commands.unzoom(env1_0.current, animated);
|
|
}
|
|
}
|
|
|