QCAD - 2D CAD System.
Click here for a documentation of the DokuWiki formatting syntax that can be used in reports
Please search for existing tasks (also closed ones) before opening a new task.
Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)
FS#193 - SVG PG export scale hatches
Attached to Project:
QCAD
Opened by Peter (hungerburg) - Friday, 26 August 2011, 14:50 GMT+2
Last edited by Andrew (andrew) - Tuesday, 13 September 2011, 14:48 GMT+2
Opened by Peter (hungerburg) - Friday, 26 August 2011, 14:50 GMT+2
Last edited by Andrew (andrew) - Tuesday, 13 September 2011, 14:48 GMT+2
|
Details
The SVG PG exporter does not scale hatches. |
This task depends upon
Closed by Andrew (andrew)
Tuesday, 13 September 2011, 14:48 GMT+2
Reason for closing: Fixed
Additional comments about closing: r18997
Tuesday, 13 September 2011, 14:48 GMT+2
Reason for closing: Fixed
Additional comments about closing: r18997
A very simple hatch: M0,0 L10,0 L10,10 L0,10 L0,0
scaled/10 becomes: M 0,0 1,0 1,1 0,1 0,0
Above simple hatch is a solid fill. Translating patterns might be more involved.
Patch to scale hatches in SVG export. To apply in scripts/ImportExport/SvgExporter against SvgExporter.js. Seems to not have any negative side effects here, as of now.
In the latest development version, scaling has been implemented by adjusting the width / height attributes of the SVG root tag.