diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fa2dbda8..d801effa1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +### [ [>](https://github.com/svg/svgo/tree/v0.5.4) ] 0.5.4 / 05.08.2015 +* New parameter `useShortTags` by @bradbarrow. Now svgo can produce correct non-selfclosing tags (useful in HTML in old browsers). +* Fixed failing on empty transformation (which could be produced by two opposite). +* Fixed removing paths which have numbers with exponent notation. +* Fixed a bug with arc transformation. +* Some typo fixes. + ### [ [>](https://github.com/svg/svgo/tree/v0.5.3) ] 0.5.3 / 21.06.2015 * Fixed breaking related to rounding functions in “[convertTransform](https://github.com/svg/svgo/blob/master/plugins/convertTransform.js)”. * Fixed a bug with ID in animations not being worked on by “[cleanupIDs](https://github.com/svg/svgo/blob/master/plugins/cleanupIDs.js)”. diff --git a/package.json b/package.json index 177e6142b..8fb7307ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svgo", - "version": "0.5.3", + "version": "0.5.4", "description": "Nodejs-based tool for optimizing SVG vector graphics files", "keywords": [ "svgo", "svg", "optimize", "minify" ], "homepage": "https://github.com/svg/svgo", @@ -48,10 +48,10 @@ }, "devDependencies": { "mocha": "~2.2.5", - "should": "7.0.1", - "istanbul": "~0.3.15", + "should": "7.0.2", + "istanbul": "~0.3.17", "mocha-istanbul": "~0.2.0", - "coveralls": "~2.11.2" + "coveralls": "~2.11.3" }, "engines": { "node": ">=0.10.0" diff --git a/plugins/transformsWithOnePath.js b/plugins/transformsWithOnePath.js index 41b3636fb..6c878660a 100644 --- a/plugins/transformsWithOnePath.js +++ b/plugins/transformsWithOnePath.js @@ -6,14 +6,14 @@ exports.type = 'full'; -exports.active = false; +exports.active = !false; exports.description = 'performs a set of operations on SVG with one path inside (disabled by default)'; exports.params = { // width and height to resize SVG and rescale inner Path - width: false, - height: false, + width: 32, + height: 32, // scale inner Path without resizing SVG scale: false, @@ -296,6 +296,7 @@ exports.fn = function(data, params) { } if (transform) { + console.log(transform) pathElem.addAttr({ name: 'transform', @@ -306,6 +307,7 @@ exports.fn = function(data, params) { path = applyTransforms(pathElem, pathElem.pathJS, true, params.floatPrecision); + console.log(path) // transformed data rounding path.forEach(function(pathItem) { if (pathItem.data) {