Blame view

天文台pc/tianwentai-ui/node_modules/motion-utils/dist/es/wrap.mjs 190 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
  const wrap = (min, max, v) => {
      const rangeSize = max - min;
      return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;
  };
  
  export { wrap };
  //# sourceMappingURL=wrap.mjs.map