Blame view

天文台pc/tianwentai-ui/node_modules/d3-ease/src/circle.js 261 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
  export function circleIn(t) {
    return 1 - Math.sqrt(1 - t * t);
  }
  
  export function circleOut(t) {
    return Math.sqrt(1 - --t * t);
  }
  
  export function circleInOut(t) {
    return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
  }