FreeCAD: master 94b0fe15

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2020-06-20 19:19:18 master 22e9cf89
Changeset Draft: clean up ViewProviderLabel class

Various improvements in style, PEP8, spacing, docstrings.

Improve the methods to update the text, the arrow, and the frame
of the label.

Options to handle `Justification` and `LineSpacing` are added.
These can be handled just like with the `ViewProviderText` object,
as the internal text node is the same, a `SoAsciiText`.

Nevertheless, currently the leader line and the frame that are
drawn for the label don't consider the correction in position
for the `Justification` or `Linespacing` so the graphics
may be overlapped in certain situations.
mod - src/Mod/Draft/draftutils/gui_utils.py Diff File
mod - src/Mod/Draft/draftviewproviders/view_label.py Diff File