decord/source/6483_useGestureRelationsUpdater.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6483
// Function ID: 6484
2026-08-08 06:10:11 +00:00
// Name: useGestureRelationsUpdater
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 6482, 6452]
2026-08-08 06:10:11 +00:00
// Exports: useGestureRelationsUpdater
2026-08-24 06:08:38 +00:00
// Module 6483 (useGestureRelationsUpdater)
import noop from "noop" /* 19 */;
2026-08-08 06:10:11 +00:00
({ useEffect: obj1, useMemo: c3 } = noop);
export const useGestureRelationsUpdater = function useGestureRelationsUpdater(gesture) {
2026-08-24 06:08:38 +00:00
closure_0 = gesture;
2026-08-08 06:10:11 +00:00
const items = [gesture];
const tmp = callback2(() => {
let configureRelationsResult = null;
if (gesture) {
2026-08-24 06:08:38 +00:00
configureRelationsResult = gesture(table[1]).configureRelations(tmp);
const obj = gesture(table[1]);
2026-08-08 06:10:11 +00:00
}
return configureRelationsResult;
}, items);
2026-08-24 06:08:38 +00:00
closure_1 = tmp;
2026-08-08 06:10:11 +00:00
const items1 = [tmp];
callback(() => {
if (closure_1) {
const _requestAnimationFrame = requestAnimationFrame;
2026-08-24 06:08:38 +00:00
closure_0 = requestAnimationFrame(() => {
2026-08-08 06:10:11 +00:00
const item = closure_1.forEach((arg0, arg1) => {
const NativeProxy = callback(table[2]).NativeProxy;
NativeProxy.configureRelations(arg1, arg0);
});
});
return () => cancelAnimationFrame(closure_0);
}
}, items1);
};