Robotips / uConfig

Datasheet pinout extractor from PDF and library Stylizer for Kicad.
GNU General Public License v3.0
516 stars 58 forks source link

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

Open GravisZro opened 1 year ago

GravisZro commented 1 year ago

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.

sebcaux commented 1 year ago

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.