Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
// Module ID: 6831
|
|
// Function ID: 6832
|
|
// Dependencies: [19, 6830, 6800]
|
|
// Exports: useGestureRelationsUpdater
|
|
|
|
// Module 6831
|
|
import traverseAndConfigureRelations from "traverseAndConfigureRelations" /* 6830 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
({ useEffect: c2, useMemo: c3 } = noop);
|
|
|
|
export const useGestureRelationsUpdater = function useGestureRelationsUpdater(gesture) {
|
|
closure_0 = gesture;
|
|
const items = [gesture];
|
|
const tmp = closure_3(() => {
|
|
let configureRelationsResult = null;
|
|
if (closure_0) {
|
|
configureRelationsResult = traverseAndConfigureRelations.configureRelations(tmp);
|
|
}
|
|
return configureRelationsResult;
|
|
}, items);
|
|
closure_1 = tmp;
|
|
const items1 = [tmp];
|
|
closure_2(() => {
|
|
if (closure_1) {
|
|
const _requestAnimationFrame = requestAnimationFrame;
|
|
closure_0 = requestAnimationFrame(() => {
|
|
const item = closure_1_1.forEach((item, index) => {
|
|
const NativeProxy = closure_1_0(closure_1_1[2]).NativeProxy;
|
|
NativeProxy.configureRelations(index, item);
|
|
});
|
|
});
|
|
return () => cancelAnimationFrame(closure_0);
|
|
}
|
|
}, items1);
|
|
};
|