diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-12-22 06:17:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-22 06:17:53 +0100 |
| commit | 7e6f16172034d6cc1f6fabddeeb153527cc5276c (patch) | |
| tree | 0246a62a57e046333cd39dcf1d97798607647898 /lib | |
| parent | fe96b00968d1c81aed5c3f8b1eefdbcd591cf361 (diff) | |
improve troubleshoot warnings visiblity (#3357)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/extensions/troubleshoot.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/extensions/troubleshoot.py b/lib/extensions/troubleshoot.py index 51a33abf..d0e550c7 100644 --- a/lib/extensions/troubleshoot.py +++ b/lib/extensions/troubleshoot.py @@ -209,6 +209,15 @@ class Troubleshoot(InkstitchExtension): tspan.text = text_line[0] text_container.append(tspan) + # we cannot really detect the text boudning_box. So we have to make a bad guesses + self.troubleshoot_layer.insert( + 0, + inkex.PathElement( + d=f"M {float(text_x) - 5} {-5}, {float(text_x) + 160} {-5}, {float(text_x) + 160} {600}, {float(text_x) - 5} {600} Z", + style="fill: #51a888; stroke: red;" + ) + ) + def split_text(self, text): splitted_text = [] for text_part, style in text: |
