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

57 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 9596
// Function ID: 9597
// Dependencies: [19, 17, 21, 9597, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 9596
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 9597 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
import { PixelRatio } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
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 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) {
2026-08-24 06:08:38 +00:00
const value = closure_1_4.get();
2026-07-20 16:05:17 +00:00
const result = x * value;
const result1 = y * value;
2026-08-24 06:08:38 +00:00
const Commands = closure_1_0(closure_1_2[3]).Commands;
2026-07-29 08:29:29 +00:00
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) {
2026-08-24 06:08:38 +00:00
const Commands = closure_1_0(closure_1_2[3]).Commands;
2026-07-29 08:29:29 +00:00
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-24 06:08:38 +00:00
return jsx(__INTERNAL_VIEW_CONFIGDefault, {});
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/zoom_layout/ZoomLayout.android.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;