- Pass
svg_width
andsvg_height
tosvg_to_rasterGrob()
when the svg is only rendered once (i.e.is_static_svg = TRUE
) - Fixed some minor issues to satisfy current
R CMD CHECK
- Fix issue with
css()
selectors in somescale_svg_*()
functions
- Absolute legend sizing when size is an aesthetic. Size in legend now matches size on plots
- Improved default SVG sizing (prior sizing was from ggplots point sizing which is too small to be legible)
- Add
hjust
andvjust
- Add absolute positioning with
x_abs
andy_abs
which override anyx
andy
- CSS and bespoke aesthetics both now support static assignment (in addition to the dynamic mapping).
- Initial support for formatting the value for CSS aesthetics e.g. if it needs a 'px' or '%' suffix, or some other bespoke formatting.
- Infer default values for parameterised aesthetics if they are given in the preferred format.
- Improved sizing of SVG in legends. Drastically reduced the number of
situations that need to use
guides()
to adjust the size of legend elements - Improved the override of
aes()
parsing withingeom_point_svg()
which means thatmy_aes()
is no longer dumped into the global environment. - Expanded the number of CSS properties that get a reasonable default scale
- Unify the preferred naming for glue-parameterised SVG with naming required for
CSS aesthetics. i.e.
[blah]_[type]
. This is so ggsvg can make better guesses on the default scale for any novel aesthetic.
- Wrapping CSS aesthetics a little with a
css()
helper - Added
scale_svg_default()
which will automatically determine default scales for CSS aesthetics and add them to the plot
- Use
rsvg
v2.3.0+ for all SVG conversion - Remove all C wrappers now that
rsvg
2.3.0 on CRAN has nativeraster support - Introduce CSS aesthetics
- call
rsvg::rsvg_nativeraster()
if user has version >= 2.3.0 ofrsvg
- include
css
argument insvg_to_nativeRaster()
- Dropping
{svgparser}
as a dependency - Use
{rsvg}
for parsing SVG and then massaging its output to a rasterGrob
- Adjust fastpath such that grob names are always unique
- Add fastpath when SVG is static i.e. reduce number of parsing attempts
- Initial release