Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/frameloop/index-legacy.mjs 432 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  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 };
  //# sourceMappingURL=index-legacy.mjs.map