securityos/node_modules/framer-motion/dist/es/frameloop/index-legacy.mjs

21 lines
392 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { stepsOrder } from './batcher.mjs';
import { frame, cancelFrame } from './frame.mjs';
/**
* @deprecated
*
* Import as `frame` instead.
*/
const sync = frame;
/**
* @deprecated
*
* Use cancelFrame(callback) instead.
*/
const cancelSync = stepsOrder.reduce((acc, key) => {
acc[key] = (process) => cancelFrame(process);
return acc;
}, {});
export { cancelSync, sync };