FreeCAD: master 9633c945
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
Simon | Yorik van Havre | master | 2017-04-13 15:49:36 | master 2bda3a32 |
Changeset | ProjectionAlgos: Make the style of the lines in the SVG file configurable. * getSVG provides new style parameters for every kind of line: V, V0, V1, H, H0, H1. * Old line width parameters are removed. The style parameters can be used instead. * A style is a map container for svg attribute keys and values (string, string). * The Python interface is updated to offer the new style parameters accordingly as a dict. * Because there are many parameters on the function call now, the Python interface supports keyword parameters. * Update ArchSectionPlane to take advantage of the new style parameters. This simplifies the code. String replacements could be removed (done in a later commit). * FeatureViewPy.cpp is – to my knowledge – the only function that used the old line width parameters. I rewrote it to use the new style parameters. |
|||
mod - src/Mod/Arch/ArchSectionPlane.py | Diff File | |||
mod - src/Mod/Drawing/App/AppDrawingPy.cpp | Diff File | |||
mod - src/Mod/Drawing/App/FeatureViewPart.cpp | Diff File | |||
mod - src/Mod/Drawing/App/ProjectionAlgos.cpp | Diff File | |||
mod - src/Mod/Drawing/App/ProjectionAlgos.h | Diff File |