Do you want to work on this issue?
You can request for a bounty in order to promote it!
[Bug]: Edge Label Rotation Issue #6856
dtg2018 posted onGitHub
Describe the bug / 问题描述
Description When setting autoRotate: false for edge labels, the labels should remain horizontal instead of following the edge path. However, the labels still follow the edge direction instead of staying upright.
Expected Behavior
The label should always remain horizontal, regardless of the edge's angle. Current Behavior
Even when autoRotate: false, the label follows the edge path's orientation.
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
edge: {
type: 'line',
style: {
badgeText: (edge: any) => edge.edgeBadgeText,
lineWidth: (edge: any) => edge.edgeWidth,
badgeWordWrap: true,
autoRotate: false,
stroke: '#7c7c7c',
border: '1px solid #bdbdbd',
badgeTextBaseline: 'middle',
badgeFontSize: 10,
badgeFill: '#727272',
badgeBackground: true,
badgeBackgroundFill: '#fdfdfd',
badgeBackgroundFillOpacity: 1,
badgeBackgroundRadius: 5,
},
},
Observe that the label still follows the edge's direction instead of staying horizontal.
Version / 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他