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#318 - Text of dimensions label in SVG PG export
Attached to Project:
QCAD
Opened by Peter (hungerburg) - Saturday, 15 October 2011, 19:02 GMT+2
Last edited by Andrew (andrew) - Monday, 17 October 2011, 20:37 GMT+2
Opened by Peter (hungerburg) - Saturday, 15 October 2011, 19:02 GMT+2
Last edited by Andrew (andrew) - Monday, 17 October 2011, 20:37 GMT+2
|
DetailsThe labels of dimensions in PG exporter are moved half text-height. Thats a bit much, and actually, no such movement looks more true to the display of same in QCAD itself. --- SvgExporterPG.js.orig 2011-10-15 18:57:29.994666881 +0200
+++ SvgExporterPG.js 2011-10-15 18:57:39.284666834 +0200
@@ -434,7 +434,7 @@
//debugger;
var angle = this.text.getAngle();
//this.text.setAngle(entity.getAngle());
- var offset = RVector.createPolar(this.text.getHeight()/2, angle + Math.PI/2);
+ var offset = RVector.createPolar(0, angle + Math.PI/2);
this.text.move(offset);
this.textColor = entity.getColor();
this.exportText();
|
This task depends upon
Thanks, you're right.