Add svg, fix mirror plot
This commit is contained in:
parent
6dfbaea4e0
commit
57c320984a
|
|
@ -113,6 +113,32 @@ outputs:
|
|||
sketch_plot: true
|
||||
use_aux_axis_as_origin: false
|
||||
polygon_mode: true
|
||||
layers:
|
||||
- layer: F.Cu
|
||||
suffix: F_Cu
|
||||
- layer: F.Fab
|
||||
suffix: F_Fab
|
||||
|
||||
- name: SVG
|
||||
comment: "SVG files"
|
||||
type: svg
|
||||
dir: gerberdir
|
||||
options:
|
||||
exclude_edge_layer: false
|
||||
exclude_pads_from_silkscreen: false
|
||||
use_aux_axis_as_origin: false
|
||||
plot_sheet_reference: false
|
||||
plot_footprint_refs: true
|
||||
plot_footprint_values: true
|
||||
force_plot_invisible_refs_vals: false
|
||||
tent_vias: true
|
||||
check_zone_fills: true
|
||||
|
||||
# PS options
|
||||
line_width: 0.25
|
||||
drill_marks: full
|
||||
mirror_plot: true
|
||||
negative_plot: true
|
||||
layers:
|
||||
- layer: F.Cu
|
||||
suffix: F_Cu
|
||||
|
|
|
|||
|
|
@ -411,7 +411,7 @@ class CfgYamlReader(CfgReader):
|
|||
except KeyError:
|
||||
raise YamlError("Output needs a type")
|
||||
|
||||
if otype not in ['gerber', 'ps', 'hpgl', 'dxf', 'pdf',
|
||||
if otype not in ['gerber', 'ps', 'hpgl', 'dxf', 'pdf', 'svg',
|
||||
'gerb_drill', 'excellon']:
|
||||
raise YamlError("Unknown output type: {}".format(otype))
|
||||
|
||||
|
|
|
|||
|
|
@ -282,6 +282,7 @@ class Plotter(object):
|
|||
po.SetAutoScale(opts.auto_scale)
|
||||
po.SetScale(opts.scaling)
|
||||
|
||||
print opts.mirror_plot
|
||||
po.SetMirror(opts.mirror_plot)
|
||||
po.SetNegative(opts.negative_plot)
|
||||
|
||||
|
|
|
|||
|
|
@ -114,13 +114,13 @@ class LayerOptions(TypeOptions):
|
|||
|
||||
@property
|
||||
def negative_plot(self):
|
||||
return self._mirror_plot
|
||||
return self._negative_plot
|
||||
|
||||
@negative_plot.setter
|
||||
def negative_plot(self, val):
|
||||
|
||||
if self._supports_mirror:
|
||||
self._mirror_plot = val
|
||||
self._negative_plot = val
|
||||
else:
|
||||
raise KiPlotConfigurationError(
|
||||
"This Layer output does not support negative plotting")
|
||||
|
|
|
|||
Loading…
Reference in New Issue