Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label text is not close to edges, any clue? #1070

Open
a-panda-rar opened this issue Nov 23, 2024 · 1 comment
Open

label text is not close to edges, any clue? #1070

a-panda-rar opened this issue Nov 23, 2024 · 1 comment

Comments

@a-panda-rar
Copy link

label text is not close to edges, any clue? some of my label textlines are far from it's edge lines, any parameter to set or any trick can fix this issue? thank you, i'm very new to diagrams. below is my first chart generated by diagrams.
image

@a-panda-rar
Copy link
Author

a-panda-rar commented Nov 23, 2024

minlen parameter can get label closer to edge line, but it makes my blocks not aligned. my code for reference.
charge >> Relationship("提供车辆充电枪和放电枪连接状态", style='solid') >> gear
drive >> Relationship("提供车辆充电枪和放电枪连接状态", style='solid') >> gear
gear >> Relationship("提供车辆充电枪和放电枪连接状态", style='solid') >> tow
towmode >> Relationship("提供车辆充电枪和放电枪连接状态", style='solid') >> gear
gear >> Relationship("提供车辆档位状态", style='solid') >> torque
gear >> Relationship("请求EPB拉起释放", style='solid', minlen='2') >> park
gear >> Relationship("提供车辆档位状态", style='solid', minlen='3') >> console
gear >> Relationship("档位控制信息", style='solid', minlen='4') >> battery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant