decord/source/modules/zoom_layout/ZoomLayout.android.tsx

57 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10500
// Function ID: 81411
// Dependencies: [31, 27, 33, 10501, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 10500
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import { PixelRatio } from "get ActivityIndicator";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
const forwardRefResult = importAllResult.forwardRef((arg0, arg1) => {
const ref = importAllResult.useRef(null);
const imperativeHandle = importAllResult.useImperativeHandle(arg1, () => ({
zoomTo(scale) {
let x;
let y;
let num = scale.scale;
({ x, y } = scale);
if (num === undefined) {
num = 2;
}
let flag = scale.animated;
if (flag === undefined) {
flag = true;
}
2026-07-23 10:11:24 +00:00
if (null != outer1_0.current) {
const value = outer2_4.get();
2026-07-20 16:05:17 +00:00
const result = x * value;
const result1 = y * value;
2026-07-23 10:11:24 +00:00
const Commands = ref(outer2_2[3]).Commands;
Commands.zoomTo(outer1_0.current, result / num - result, result1 / num - result1, num, flag);
2026-07-20 16:05:17 +00:00
}
},
unzoom() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
let flag = obj.animated;
if (flag === undefined) {
flag = true;
}
2026-07-23 10:11:24 +00:00
if (null != outer1_0.current) {
const Commands = ref(outer2_2[3]).Commands;
Commands.unzoom(outer1_0.current, flag);
2026-07-20 16:05:17 +00:00
}
}
}));
2026-07-23 10:11:24 +00:00
let obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(arg0);
obj["ref"] = ref;
2026-07-25 08:10:48 +00:00
return jsx(importDefault(10501), {});
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
let result = require("jsxProd").fileFinishedImporting("modules/zoom_layout/ZoomLayout.android.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;