测试 用electron + springboot 构建桌面应用
he wei
2022-03-22 5d912947c883b162026939a367bfe81cc35d2bbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function getYMax(data) {
  let max = data.max;
  if (max == -Infinity) {
    return 1;
  }
 
  if (max > 0) {
    Math.ceil(max * 1.01);
  } else {
    return Math.floor(max * 0.9);
  }
}
 
export default getYMax;