Skip to content

Commit

Permalink
v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
GreLI committed Aug 5, 2015
1 parent ece38e3 commit 4527f7f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)”.
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions plugins/transformsWithOnePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -296,6 +296,7 @@ exports.fn = function(data, params) {
}

if (transform) {
console.log(transform)

pathElem.addAttr({
name: 'transform',
Expand All @@ -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) {
Expand Down

0 comments on commit 4527f7f

Please sign in to comment.