ICT30016-Assignment-3/node_modules/motion-dom/dist/es/frameloop/index-legacy.mjs
dlawler489 a79a6afd34 intial
intial
2025-09-16 12:09:52 +10:00

20 lines
390 B
JavaScript

import { stepsOrder } from './order.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 };