vpype 1.10.0
New features and improvements
-
Added the
alpha
command to set layer opacity without changing the base color (#447, #451) -
Improved support for layer pen width and opacity in the viewer (#448)
- The "Pen Width" and "Pen Opacity" menus are now named "Default Pen Width" and "Default Pen Opacity".
- The layer opacity is now used for display by default. It can be overridden by the default pen opacity by checking the "Override" item from the "Default Pen Opacity" menu.
- The layer pen width is now used for display by default as well. Likewise, it can be overridden by checking the "Override" item from the "Default Pen Width" menu.
-
Added HPGL configuration for the Calcomp Artisan plotter (thanks to Andee Collard and @ithinkido) (#418)
-
Added the
--dont-set-date
option to thewrite
command (#442) -
The
read
command now better handles SVGs with missingwidth
orheight
attributes (#446)When the
width
orheight
attribute is missing or expressed as percent, theread
command now attempts to use theviewBox
attribute to set the page size, defaulting to 1000x1000px if missing. This behavior can be overridden with the--display-size
and the--display-landscape
parameters.
Bug fixes
- Fixed an issue with
forlayer
where the_n
variable was improperly set (#443) - Fixed an issue with
write
where layer opacity was included in thestroke
attribute instead of usingstroke-opacity
, which, although compliant, was not compatible with Inkscape (#429) - Fixed an issue with
vpype --help
where commands from plug-ins would not be listed (#444) - Fixed a minor issue where plug-ins would be reloaded each time
vpype_cli.execute()
is called (#444) - Fixed a rendering inconsistency in the viewer where the ruler width could vary by one pixel depending on the OpenGL driver/GPU/OS combination (#448)
API changes
- Changed the parameter name of both
vpype_viewer.Engine()
andvpype_viewer.render_image()
frompen_width
andpen_opacity
todefault_pen_width
anddefault_pen_opacity
(breaking change) (#448) - Added
override_pen_width
andoverride_pen_opacity
boolean parameters to bothvpype_viewer.Engine()
andvpype_viewer.render_image()
(#448) - Added
vpype_cli.FloatType()
,vpype_cli.IntRangeType()
,vpype_cli.FloatRangeType()
, andvpype_cli.ChoiceType()
(#430, #447) - Changed
vpype.Document.add_to_sources()
to also modify thevp_source
property (#431) - Added a
set_date:bool = True
argument tovpype.write_svg()
(#442) - Changed the default value of
default_width
anddefault_height
arguments ofvpype.read_svg()
(and friends) toNone
to allowsvgelement
better handle missingwidth
/height
attributes (#446)