Fix:修复默认主题配置中关联线样式值类型为数组的问题,应为字符串

This commit is contained in:
街角小林
2025-03-03 16:37:22 +08:00
parent 3cb035e365
commit f1a97e4ced
2 changed files with 4 additions and 4 deletions

View File

@@ -282,7 +282,7 @@ class AssociativeLine {
.stroke({ .stroke({
width: associativeLineWidth, width: associativeLineWidth,
color: associativeLineColor, color: associativeLineColor,
dasharray: associativeLineDasharray || [6, 4] dasharray: associativeLineDasharray || '6,4'
}) })
.fill({ color: 'none' }) .fill({ color: 'none' })
path.plot(pathStr) path.plot(pathStr)
@@ -350,7 +350,7 @@ class AssociativeLine {
.stroke({ .stroke({
width: associativeLineWidth, width: associativeLineWidth,
color: associativeLineColor, color: associativeLineColor,
dasharray: associativeLineDasharray || [6, 4] dasharray: associativeLineDasharray || '6,4'
}) })
.fill({ color: 'none' }) .fill({ color: 'none' })
clickPath clickPath
@@ -463,7 +463,7 @@ class AssociativeLine {
.stroke({ .stroke({
width: associativeLineWidth, width: associativeLineWidth,
color: associativeLineColor, color: associativeLineColor,
dasharray: associativeLineDasharray || [6, 4] dasharray: associativeLineDasharray || '6,4'
}) })
.fill({ color: 'none' }) .fill({ color: 'none' })
// 箭头 // 箭头

View File

@@ -48,7 +48,7 @@ export default {
// 关联线激活状态的颜色 // 关联线激活状态的颜色
associativeLineActiveColor: 'rgba(2, 167, 240, 1)', associativeLineActiveColor: 'rgba(2, 167, 240, 1)',
// 关联线样式 // 关联线样式
associativeLineDasharray: [6, 4], associativeLineDasharray: '6,4',
// 关联线文字颜色 // 关联线文字颜色
associativeLineTextColor: 'rgb(51, 51, 51)', associativeLineTextColor: 'rgb(51, 51, 51)',
// 关联线文字大小 // 关联线文字大小