@@ -41,7 +41,6 @@ const render = (): void => {
t6: t6.toFixed(0)
})
}
- console.log(props.params)
// 修复:把滑块的值合并进参数再传给绘图函数
drawTopDiagram(board, { ...props.params, covAngle: covAngle.value }, labels, pal)
@@ -495,7 +495,7 @@ export function drawDiagram(
// 2. 覆盖角 V 的圆弧(外圈)
if (upperAngle > 0.01) {
- const vRadius = maxZ * 0.3
+ const vRadius = Math.min(maxZ * 0.15, z * 0.5)
// 右侧圆弧
addObj(
'curve',
@@ -505,7 +505,7 @@ export function drawDiagram(
lowerAngle,
upperAngle
],
- { strokeColor: '#eab308', strokeWidth: 2.5, layer: 4 }
+ { strokeColor: '#eab308', strokeWidth: 2, layer: 4 }
)
// 左侧镜像圆弧
@@ -518,7 +518,7 @@ export function drawDiagram(
Math.PI - upperAngle,
Math.PI - lowerAngle