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

Use "angle" instead of "direction" for text #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GravisZro
Copy link
Contributor

This replaces all instances of direction/setDirection with angle/setAngle for the DrawText type. Internally a QTransform is also stored so that the transform matrix doesn't have to be continually recalculated on every paint event. This also more closely matches the KiCAD file format which also uses a numerical value for the angle.

Testing is needed before merging.

This replaces all instances of direction/setDirection with angle/setAngle
for the DrawText type. Internally a QTransform is also stored so that the
transform matrix doesn't have to be continually recalculated on every paint
event.
@sebcaux
Copy link
Member

sebcaux commented Sep 17, 2023

I agree with angle instead of direction (direction was the term used in kicad 4 model), but the transform should not be place into model.
Tranform should be moved internally in DrawTextItem.

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

Successfully merging this pull request may close these issues.

None yet

2 participants