NEWS file for the grImport2 package (original) (raw)
Changes in version 0.3-3
Respond to hjust and vjust (previously ignored).
Allow width and height to be NULL(in fact those are now the defaults) and fill them in based on image aspect ratio.
Changes in version 0.3-2
Bug fix for SVG with decimal place in width or height.
Changes in version 0.3-1
Additional support for parsing newer Cairo SVG output:
feColorMatrix filter effect.
feImage filter effect.
feComposite filter effect.
filters with more than one filter effect.
more general transform attributes.
Changes in version 0.3-0
Expand SVG parser to support newer Cairo SVG output (Cairo >= 1.18.0). Root <svg> element has no units on width andheight. Many other elements use SVG presentation attributes rather than a single style attribute (with CSS attributes).
Changes in version 0.2-1
Restore current graphics device after readPicture()call. Thanks to Trevor Davis for report and patch.
Add Picture method for applyTransform(). Thanks to Trevor Davis for report.
Changes in version 0.2-0
pictureGrob() has a new argument delayContent. If that is TRUE, the function returns a "PictureGrob"gTree that has a makeContent() method, so thatgrobify() 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 where <defs> refer to each other and include nested transformations; to handle transformations more consistently in general; to fix calculation of bounding box for transformed clipping path.
readPicture() has a new argument initDefs, 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 FALSEwhen importing and drawing more than one picture in the same R image.
Changes in version 0.1-6
fix for importing SVG containing <use> elements that refer to complex content (including nested <use> elements,<use> use elements with transform attributes,<use> elements with mask attributes, and usecontent with clip-path attributes.
fix for feColorMatrix filter (matrix value was being transposed).
fix for ext="gridSVG" when exporting definitions (like masks) that contain references to other definitions (like filters).
Changes in version 0.1-5
Added 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.
Changes in version 0.1-4
Fix for importing radial gradient with gradientTransform (radius of gradient was not being transformed correctly).
Changes in version 0.1-3
Fix for 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 line-width
Relax import requirement that SVG file be generated bygrConvert; now accept SVG file that is generated bygrConvert 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.
Changes in version 0.1-2
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.
Changes in version 0.1-1
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 unit arithmetic).
Fix to parseSVGUse() to handle direct 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 formd="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$fill withgp$gradientFill and could end up with neither).
Bug fix for with 'transform' and 'fill' that is url() reference. The transform was not being applied to the referenced gradient fill.
Changes in version 0.1-0
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.