Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #228 from dcowden/svgexport
Browse files Browse the repository at this point in the history
Removed origin indicator from SVG export
  • Loading branch information
jmwright committed Feb 23, 2018
2 parents 8e20d7d + f0ec8c6 commit d4765b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
16 changes: 1 addition & 15 deletions cadquery/freecad_impl/exporters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import unicode_literals
from __future__ import unicode_literals

import cadquery

Expand Down Expand Up @@ -378,20 +378,6 @@ def exportSVG(shape, fileName):
%(visibleContent)s
</g>
</g>
<g transform="translate(20,%(textboxY)s)" stroke="rgb(0,0,255)">
<line x1="30" y1="-30" x2="75" y2="-33" stroke-width="3" stroke="#000000" />
<text x="80" y="-30" style="stroke:#000000">X </text>
<line x1="30" y1="-30" x2="30" y2="-75" stroke-width="3" stroke="#000000" />
<text x="25" y="-85" style="stroke:#000000">Y </text>
<line x1="30" y1="-30" x2="58" y2="-15" stroke-width="3" stroke="#000000" />
<text x="65" y="-5" style="stroke:#000000">Z </text>
<!--
<line x1="0" y1="0" x2="%(unitScale)s" y2="0" stroke-width="3" />
<text x="0" y="20" style="stroke:#000000">1 %(uom)s </text>
-->
</g>
</svg>
"""

Expand Down
1 change: 0 additions & 1 deletion tests/TestCadQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def testToSVG(self):

# Make sure that a couple of sections from the SVG output make sense
self.assertTrue(r_str.index('path d=" M 2.35965 -2.27987 L 4.0114 -3.23936 "') > 0)
self.assertTrue(r_str.index('line x1="30" y1="-30" x2="58" y2="-15" stroke-width="3"') > 0)

def testCubePlugin(self):
"""
Expand Down

0 comments on commit d4765b6

Please sign in to comment.