Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/d3-ease/src/circle.js
T

11 lines
261 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
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;
}