Merge pull request #10658 from dataease/pr@dev-v2@chart-flow-map-style-fix

fix(图表-流向地图): 修复流向地图,同样流向线的宽度,在不同线类型时,看起来宽度不一样的问题
This commit is contained in:
jianneng-fit2cloud 2024-07-01 16:54:42 +08:00 committed by GitHub
commit 37ae10328b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ export class FlowMap extends L7ChartView<Scene, L7Config> {
}
const flowLineStyle = {
type: miscStyle.mapLineType,
size: miscStyle.mapLineWidth,
size: miscStyle.mapLineType === 'line' ? miscStyle.mapLineWidth / 2 : miscStyle.mapLineWidth,
animate: miscStyle.mapLineAnimate,
animateDuration: miscStyle.mapLineAnimateDuration,
gradient: miscStyle.mapLineGradient,