pictureGrob() has a new argument
If that is
TRUE, the function returns a
gTree that has a
makeContent() method, so that
grobify() only happens at drawing time, so that,
IF we are using gridSVG for output,
registration of SVG definitions happens within the current
viewport. The default value is
ext == "gridSVG".
Internal restructuring: to fix more complex SVG input
<defs> refer to each other and include nested
transformations; to handle transformations more consistently
in general; to fix calculation of bounding box for transformed
readPicture() has a new argument
which controls whether the list of definitions (things like
masks, filters, gradient fills, ...) is initialized when
reading a new picture. This should be set to
when importing and drawing more than one picture in the same
fix for importing SVG containing
<use> elements that
refer to complex content (including nested
<use> use elements with
<use> elements with
mask attributes, and
fix for feColorMatrix filter (matrix value was being transposed).
ext="gridSVG" when exporting definitions
(like masks) that contain references to other definitions
clip argument to
grid.picture() so that
we can inherit clipping region when drawing an imported image
(default remains that the picture sets its own clipping viewport).
Thanks to Silas Dean.
Fix for importing radial gradient with gradientTransform (radius of gradient was not being transformed correctly).
makeContent() methods for picRect, picPath,
and picPolyline, so that the forced grob has the same name
as the original grob.
Fix for parsing
<symbol> element with no children or
with empty image.
Fix for import of
lwd from SVG
Relax import requirement that SVG file be generated by
grConvert; now accept SVG file that is generated by
grConvert OR SVG file that can be identified as being
generated by Cairo graphics. This allows us to accept, for example,
files generated by
rsvg_svg() from the rsvg package.
Fix for importing rotated rectangles.
Fix for importing rotated raster images.
Improved import of line widths.
Enhancement of importing patterns to allow general pattern content, rather than just a single image as pattern content.
Fix for 'default.units' argument in grid.picture(), which was being ignored.
Fix to grobify() method for
"PictureImage" to correct
location calculation for raster element (was doing incorrect
Fix to parseSVGUse() to handle direct <use> of image (not for a pattern or mask, but for an actual image); problem was that image was not positioned correctly.
Fix to pictureVP() to handle inverted x-scale or y-scale; problem was evident in incorrect overall clipping (because pictureVP() was incorrect shape).
Fix to path parsing to handle path data of the form
d="M x y" (by ignoring such paths).
Bug fix for converting SVG style to gpar settings
when style is a url() reference (it was doing the wrong thing
to replace, for example,
gp$gradientFill and could end up with neither).
Bug fix for <path> with 'transform' and 'fill' that is url() reference. The transform was not being applied to the referenced gradient fill.
Initial release. Intended to import SVG images generated by the 'grConvert' package.
Now using SVG instead of PostScript, allowing us to support many more graphical features.