- small change in TclCommandExportSVG
This commit is contained in:
parent
8cb4b5abf8
commit
604f4b72d6
|
@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
|
||||||
|
|
||||||
- working on adding DPI setting for PNG export in the Film Tool
|
- working on adding DPI setting for PNG export in the Film Tool
|
||||||
- finished working in adding DPI settings for PNG export in Film Tool although there are some limitations due of Reportlab
|
- finished working in adding DPI settings for PNG export in Film Tool although there are some limitations due of Reportlab
|
||||||
|
- small change in TclCommandExportSVG
|
||||||
|
|
||||||
26.09.2020
|
26.09.2020
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,12 @@ class TclCommandExportSVG(TclCommand):
|
||||||
arg_names = collections.OrderedDict([
|
arg_names = collections.OrderedDict([
|
||||||
('name', str),
|
('name', str),
|
||||||
('filename', str),
|
('filename', str),
|
||||||
('scale_factor', float)
|
('scale_stroke_factor', float)
|
||||||
])
|
])
|
||||||
|
|
||||||
# Dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
|
# Dictionary of types from Tcl command, needs to be ordered , this is for options like -optionname value
|
||||||
option_types = collections.OrderedDict([
|
option_types = collections.OrderedDict([
|
||||||
('scale_factor', float)
|
('scale_stroke_factor', float)
|
||||||
])
|
])
|
||||||
|
|
||||||
# array of mandatory options for current Tcl command: required = {'name','outname'}
|
# array of mandatory options for current Tcl command: required = {'name','outname'}
|
||||||
|
@ -39,7 +39,7 @@ class TclCommandExportSVG(TclCommand):
|
||||||
('name', 'Name of the object export. Required.'),
|
('name', 'Name of the object export. Required.'),
|
||||||
('filename', 'Absolute path to file to export.\n'
|
('filename', 'Absolute path to file to export.\n'
|
||||||
'WARNING: no spaces are allowed. If unsure enclose the entire path with quotes.'),
|
'WARNING: no spaces are allowed. If unsure enclose the entire path with quotes.'),
|
||||||
('scale_factor', 'Multiplication factor used for scaling line widths during export.')
|
('scale_stroke_factor', 'Multiplication factor used for scaling line widths during export.')
|
||||||
]),
|
]),
|
||||||
'examples': ['export_svg my_geometry my_file.svg']
|
'examples': ['export_svg my_geometry my_file.svg']
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue