Describe the bug
When exporting the diagram to SVG or PNG the class names are being cut off at the end.
To Reproduce
Steps to reproduce the behavior:
Use this diagram:
---
config:
theme: default
layout: dagre
look: neo
---
classDiagram
direction TB
class main_py {
+appExec()
}
class Drive {
+operation_enabled()
+shut_down()
+homing_to_actual_position()
+get_actual_position()
}
class D1 {
+__init__(ip,port,axis)
+command(data)
+get_actual_position()
+shut_down()
}
class fsensor {
+get_force()
+close()
}
class WindowControl {
-hand_1
-hand_2
-arm_x
-arm_y
+change_back_to_main_win()
}
class MainWindow {
+create_menu_bar()
+create_button_actions()
}
class UserWidget {
+homing()
+move()
+trigger() \n(Flask EMG endpoint)
}
class HandWidget {
+homingHand()
+movementIteration()
+save()
}
class ArmWidget {
+create_buttons()
+move_sequence()
}
class Assist {
+force_to_angle(fx,fy)
+calculate_targetpos(...)
}
class HandThreads {
+HandHoming
+HandMovement
}
class UnityGame {
+UnityWebGLPlayer
+UpdateDaten
+StartAPI
}
class LocalServer {
+post()
+get()
}
main_py --> Drive : creates (hand_1, hand_2)
main_py --> D1 : creates (arm_x, arm_y)
main_py --> fsensor : imports/initializes
main_py --> WindowControl : creates stacked widget
WindowControl --> MainWindow : contains
MainWindow --> UserWidget : sets central widget
UserWidget --> HandWidget : composes
UserWidget --> ArmWidget : composes
UserWidget --> Assist : uses
UserWidget --> UnityGame : starts threads for game
UserWidget --> LocalServer : runs EMG Flask server (embedded)
UserWidget --> fsensor : reads forces
HandWidget --> Drive : calls homing/move (direct hardware calls)
ArmWidget --> D1 : sends binary commands (direct hardware calls)
Assist --> D1 : computes target positions and instructs arm
HandThreads --> HandWidget : used for homing/movement
UnityGame --> UserWidget : receives updates / pushes data
Loading
Expected behavior
Text should be displayed correctly in PNG and SVG, like in the online editor preview.
Screenshots
Desktop (please complete the following information):
OS: Windows 11
Browser Brave
Version Brave 1.86.148
Additional context
None
Describe the bug
When exporting the diagram to SVG or PNG the class names are being cut off at the end.
To Reproduce
Steps to reproduce the behavior:
Use this diagram:
--- config: theme: default layout: dagre look: neo --- classDiagram direction TB class main_py { +appExec() } class Drive { +operation_enabled() +shut_down() +homing_to_actual_position() +get_actual_position() } class D1 { +__init__(ip,port,axis) +command(data) +get_actual_position() +shut_down() } class fsensor { +get_force() +close() } class WindowControl { -hand_1 -hand_2 -arm_x -arm_y +change_back_to_main_win() } class MainWindow { +create_menu_bar() +create_button_actions() } class UserWidget { +homing() +move() +trigger() \n(Flask EMG endpoint) } class HandWidget { +homingHand() +movementIteration() +save() } class ArmWidget { +create_buttons() +move_sequence() } class Assist { +force_to_angle(fx,fy) +calculate_targetpos(...) } class HandThreads { +HandHoming +HandMovement } class UnityGame { +UnityWebGLPlayer +UpdateDaten +StartAPI } class LocalServer { +post() +get() } main_py --> Drive : creates (hand_1, hand_2) main_py --> D1 : creates (arm_x, arm_y) main_py --> fsensor : imports/initializes main_py --> WindowControl : creates stacked widget WindowControl --> MainWindow : contains MainWindow --> UserWidget : sets central widget UserWidget --> HandWidget : composes UserWidget --> ArmWidget : composes UserWidget --> Assist : uses UserWidget --> UnityGame : starts threads for game UserWidget --> LocalServer : runs EMG Flask server (embedded) UserWidget --> fsensor : reads forces HandWidget --> Drive : calls homing/move (direct hardware calls) ArmWidget --> D1 : sends binary commands (direct hardware calls) Assist --> D1 : computes target positions and instructs arm HandThreads --> HandWidget : used for homing/movement UnityGame --> UserWidget : receives updates / pushes dataExpected behavior
Text should be displayed correctly in PNG and SVG, like in the online editor preview.
Screenshots

Desktop (please complete the following information):
Additional context
None