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

58 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 10638
// Function ID: 10639
// Dependencies: [19, 17, 21, 10639, 2]
2026-07-20 16:05:17 +00:00
2026-08-06 08:05:19 +00:00
// Module 10638
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { PixelRatio } from "get ActivityIndicator";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
const forwardRefResult = importAllResult.forwardRef((arg0, ref) => {
ref = importAllResult.useRef(null);
const imperativeHandle = importAllResult.useImperativeHandle(ref, () => ({
2026-07-20 16:05:17 +00:00
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-29 08:29:29 +00:00
if (null != ref.current) {
const value = outer1_4.get();
2026-07-20 16:05:17 +00:00
const result = x * value;
const result1 = y * value;
2026-07-29 08:29:29 +00:00
const Commands = outer1_0(outer1_2[3]).Commands;
Commands.zoomTo(tmp.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-29 08:29:29 +00:00
if (null != ref.current) {
const Commands = outer1_0(outer1_2[3]).Commands;
Commands.unzoom(tmp.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);
2026-07-29 08:29:29 +00:00
obj.ref = ref;
2026-08-06 08:05:19 +00:00
return jsx(importDefault(10639), {});
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;