fix: 能量进度条满问题

This commit is contained in:
bietiaop 2024-07-08 13:55:06 +08:00
parent 1c65f10e24
commit ac96925c70
3 changed files with 6 additions and 3 deletions

View file

@ -20,7 +20,7 @@ function render(e, renderPath, renderData = {}, cfg = {}) {
// 获取渲染精度配置
const scaleCfg = setting.getConfig('config')?.render?.scale || 100;
// 计算配置缩放比例
const scaleCfgValue = Math.min(2, Math.max(0.5, scaleCfg / 100));
const scaleCfgValue = Math.min(2, Math.max(0.5, scaleCfg / 100)) * 2;
// 将函数参数中的缩放比例与配置缩放比例相乘
const scale = (cfg?.scale || 1) * scaleCfgValue;
// 将缩放比例转换为style属性