37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
// Module ID: 6483
|
|
// Function ID: 6484
|
|
// Name: useGestureRelationsUpdater
|
|
// Dependencies: [19, 6482, 6452]
|
|
// Exports: useGestureRelationsUpdater
|
|
|
|
// Module 6483 (useGestureRelationsUpdater)
|
|
import noop from "noop" /* 19 */;
|
|
|
|
({ useEffect: obj1, useMemo: c3 } = noop);
|
|
|
|
export const useGestureRelationsUpdater = function useGestureRelationsUpdater(gesture) {
|
|
closure_0 = gesture;
|
|
const items = [gesture];
|
|
const tmp = callback2(() => {
|
|
let configureRelationsResult = null;
|
|
if (gesture) {
|
|
configureRelationsResult = gesture(table[1]).configureRelations(tmp);
|
|
const obj = gesture(table[1]);
|
|
}
|
|
return configureRelationsResult;
|
|
}, items);
|
|
closure_1 = tmp;
|
|
const items1 = [tmp];
|
|
callback(() => {
|
|
if (closure_1) {
|
|
const _requestAnimationFrame = requestAnimationFrame;
|
|
closure_0 = requestAnimationFrame(() => {
|
|
const item = closure_1.forEach((arg0, arg1) => {
|
|
const NativeProxy = callback(table[2]).NativeProxy;
|
|
NativeProxy.configureRelations(arg1, arg0);
|
|
});
|
|
});
|
|
return () => cancelAnimationFrame(closure_0);
|
|
}
|
|
}, items1);
|
|
};
|