Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
109 lines
3.1 KiB
TypeScript
109 lines
3.1 KiB
TypeScript
// Module ID: 9702
|
|
// Function ID: 9703
|
|
// Name: ZoomLayout
|
|
// Dependencies: [19, 17, 21, 558, 568, 9703, 2]
|
|
|
|
// Module 9702 (ZoomLayout)
|
|
import ZoomLayoutNativeComponentDefault from "ZoomLayoutNativeComponent" /* 9703 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const PixelRatio = fn(17).PixelRatio;
|
|
const jsx = fn(21).jsx;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/zoom_layout/ZoomLayout.android.tsx");
|
|
|
|
export default noop.forwardRef(ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, ref) => {
|
|
const cResult = ref(568).c(3);
|
|
ref = noop.useRef(null);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const fn = function c() {
|
|
return {
|
|
zoomTo(arg0) {
|
|
({ scale, animated } = arg0);
|
|
let num = 2;
|
|
({ x, y } = arg0);
|
|
if (undefined !== scale) {
|
|
num = scale;
|
|
}
|
|
if (null != ref.current) {
|
|
value = PixelRatio.get();
|
|
const result = x * value;
|
|
const result1 = y * value;
|
|
const Commands = ref(9703).Commands;
|
|
Commands.zoomTo(tmp2.current, result / num - result, result1 / num - result1, num, tmp);
|
|
}
|
|
},
|
|
unzoom(arg0) {
|
|
let obj = arg0;
|
|
if (undefined === arg0) {
|
|
obj = {};
|
|
}
|
|
const animated = obj.animated;
|
|
if (null != ref.current) {
|
|
const Commands = ref(9703).Commands;
|
|
Commands.unzoom(tmp2.current, tmp);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
cResult[0] = fn;
|
|
let first = fn;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
const imperativeHandle = noop.useImperativeHandle(ref, first);
|
|
if (cResult[1] !== arg0) {
|
|
const obj3 = {};
|
|
const merged = Object.assign(arg0);
|
|
obj3.ref = ref;
|
|
const tmp13 = jsx(ZoomLayoutNativeComponentDefault, {});
|
|
cResult[1] = arg0;
|
|
cResult[2] = tmp13;
|
|
let tmp6 = tmp13;
|
|
} else {
|
|
tmp6 = cResult[2];
|
|
}
|
|
return tmp6;
|
|
}) : ((arg0, ref) => {
|
|
ref = noop.useRef(null);
|
|
const imperativeHandle = noop.useImperativeHandle(ref, () => ({
|
|
zoomTo(scale) {
|
|
let num = scale.scale;
|
|
({ x, y } = scale);
|
|
if (num === undefined) {
|
|
num = 2;
|
|
}
|
|
let flag = scale.animated;
|
|
if (flag === undefined) {
|
|
flag = true;
|
|
}
|
|
if (null != ref.current) {
|
|
value = PixelRatio.get();
|
|
const result = x * value;
|
|
const result1 = y * value;
|
|
const Commands = ref(9703).Commands;
|
|
Commands.zoomTo(tmp.current, result / num - result, result1 / num - result1, num, flag);
|
|
}
|
|
},
|
|
unzoom() {
|
|
let obj = arg0;
|
|
if (arg0 === undefined) {
|
|
obj = {};
|
|
}
|
|
let flag = obj.animated;
|
|
if (flag === undefined) {
|
|
flag = true;
|
|
}
|
|
if (null != ref.current) {
|
|
const Commands = ref(9703).Commands;
|
|
Commands.unzoom(tmp.current, flag);
|
|
}
|
|
}
|
|
}));
|
|
let obj = {};
|
|
const merged = Object.assign(arg0);
|
|
obj.ref = ref;
|
|
return jsx(ZoomLayoutNativeComponentDefault, {});
|
|
}));
|