decord/source/modules/zoom_layout/ZoomLayout.android.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

56 lines
1.7 KiB
TypeScript

// Module ID: 9614
// Function ID: 9615
// Dependencies: [19, 17, 21, 9615, 2]
// Module 9614
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 9615 */;
import importAllResult from "noop" /* 19 */;
import { PixelRatio } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
let c3 = importAllResult;
const forwardRefResult = importAllResult.forwardRef((arg0, ref) => {
ref = importAllResult.useRef(null);
const imperativeHandle = importAllResult.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) {
const value = closure_1_4.get();
const result = x * value;
const result1 = y * value;
const Commands = closure_1_0(closure_1_2[3]).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 = closure_1_0(closure_1_2[3]).Commands;
Commands.unzoom(tmp.current, flag);
}
}
}));
let obj = {};
const merged = Object.assign(arg0);
obj.ref = ref;
return jsx(__INTERNAL_VIEW_CONFIGDefault, {});
});
let result = require("set").fileFinishedImporting("modules/zoom_layout/ZoomLayout.android.tsx");
export default forwardRefResult;