Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GreLI committed Jun 21, 2015
1 parent 336b089 commit a7f62d8
Show file tree
Hide file tree
Showing 34 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion plugins/addClassesToSVGElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'full';

exports.active = false;

exports.description = 'Add classnames to an outer <svg> element.';
exports.description = 'adds classnames to an outer <svg> element';

/**
* Add classnames to an outer <svg> element.
Expand Down
2 changes: 1 addition & 1 deletion plugins/cleanupAttrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'cleanup attributes from newlines, trailing and repeating spaces';
exports.description = 'cleanups attributes from newlines, trailing and repeating spaces';

exports.params = {
newlines: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/cleanupIDs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'full';

exports.active = true;

exports.description = 'remove unused and minify used IDs';
exports.description = 'removes unused IDs and minifies used';

exports.params = {
remove: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/cleanupListOfValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = false;

exports.description = 'Round list of values to the fixed precision';
exports.description = 'rounds list of values to the fixed precision';

exports.params = {
floatPrecision: 3,
Expand Down
2 changes: 1 addition & 1 deletion plugins/cleanupNumericValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'round numeric values to the fixed precision, remove default \'px\' units';
exports.description = 'rounds numeric values to the fixed precision, removes default ‘px’ units';

exports.params = {
floatPrecision: 3,
Expand Down
2 changes: 1 addition & 1 deletion plugins/collapseGroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItemReverse';

exports.active = true;

exports.description = 'collapse useless groups';
exports.description = 'collapses useless groups';

var animationElems = require('./_collections').elemsGroups.animation;

Expand Down
2 changes: 1 addition & 1 deletion plugins/convertColors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'convert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)';
exports.description = 'converts colors: rgb() to #rrggbb and #rrggbb to #rgb';

exports.params = {
names2hex: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/convertPathData.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'convert Path data to relative or absolute whichever is shorter, convert one segment to another, trim useless delimiters, smart rounding and much more';
exports.description = 'optimizes path data: writes in shorter form, applies transformations';

exports.params = {
applyTransforms: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/convertShapeToPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'convert some basic shapes to path';
exports.description = 'converts basic shapes to more compact path form';

var none = { value: 0 },
regNumber = /[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;
Expand Down
5 changes: 3 additions & 2 deletions plugins/convertStyleToAttrs.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
/* jshint quotmark: false */
'use strict';

exports.type = 'perItem';

exports.active = true;

exports.description = 'Convert style in attributes. Cleanups comments and illegal declarations (without colon) as a side effect';
exports.description = 'converts style to attributes';

var EXTEND = require('whet.extend'),
stylingProps = require('./_collections').stylingProps,
rEscape = '\\\\(?:[0-9a-f]{1,6}\\s?|\\r\\n|.)', // Like \" or \2051. Code points consume one space.
rAttr = '\\s*(' + g('[^:;\\\\]', rEscape) + '*?)\\s*', // attribute name like ‘fill’
rSingleQuotes = '\'(?:[^\'\\n\\r\\\\]|' + rEscape + ')*?(?:\'|$)', // string in single quotes: 'smth'
rSingleQuotes = "'(?:[^'\\n\\r\\\\]|" + rEscape + ")*?(?:'|$)", // string in single quotes: 'smth'
rQuotes = '"(?:[^"\\n\\r\\\\]|' + rEscape + ')*?(?:"|$)', // string in double quotes: "smth"
rQuotedString = new RegExp('^' + g(rSingleQuotes, rQuotes) + '$'),

Expand Down
2 changes: 1 addition & 1 deletion plugins/convertTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'collapse multiple transforms into one, convert matrices to the short aliases and much more';
exports.description = 'collapses multiple transformations and optimizes it';

exports.params = {
convertToShorts: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/mergePaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'merge multiple Paths into one';
exports.description = 'merges multiple paths in one if possible';

exports.params = {
collapseRepeated: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/moveElemsAttrsToGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItemReverse';

exports.active = true;

exports.description = 'move elements attributes to the existing group wrapper';
exports.description = 'moves elements attributes to the existing group wrapper';

var inheritableAttrs = require('./_collections').inheritableAttrs,
pathElems = require('./_collections.js').pathElems;
Expand Down
2 changes: 1 addition & 1 deletion plugins/moveGroupAttrsToElems.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'move some group attributes to the content elements';
exports.description = 'moves some group attributes to the content elements';

var collections = require('./_collections.js'),
pathElems = collections.pathElems.concat(['g', 'text']),
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove comments';
exports.description = 'removes comments';

/**
* Remove comments.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeDesc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.params = {
removeAny: false
};

exports.description = 'remove <desc> (only non-meaningful by default)';
exports.description = 'removes <desc> (only non-meaningful by default)';

var standardDescs = /^Created with/;

Expand Down
2 changes: 1 addition & 1 deletion plugins/removeDoctype.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove doctype declaration';
exports.description = 'removes doctype declaration';

/**
* Remove DOCTYPE declaration.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeEditorsNSData.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove editors namespaces, elements and attributes';
exports.description = 'removes editors namespaces, elements and attributes';

var editorNamespaces = require('./_collections').editorNamespaces,
prefixes = [];
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeEmptyAttrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove empty attributes';
exports.description = 'removes empty attributes';

/**
* Remove attributes with empty values.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeEmptyContainers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItemReverse';

exports.active = true;

exports.description = 'remove empty Container elements';
exports.description = 'removes empty container elements';

var container = require('./_collections').elemsGroups.container;

Expand Down
2 changes: 1 addition & 1 deletion plugins/removeEmptyText.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove empty Text elements';
exports.description = 'removes empty <text> elements';

exports.params = {
text: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeHiddenElems.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove hidden elements';
exports.description = 'removes hidden elements (zero sized, with absent attributes)';

exports.params = {
displayNone: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove <metadata>';
exports.description = 'removes <metadata>';

/**
* Remove <metadata>.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeNonInheritableGroupAttrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove non-inheritable group\'s "presentation" attributes';
exports.description = 'removes non-inheritable group’s presentational attributes';

var inheritableAttrs = require('./_collections').inheritableAttrs,
attrsGroups = require('./_collections').attrsGroups,
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeRasterImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = false;

exports.description = 'remove raster images (disabled by default)';
exports.description = 'removes raster images (disabled by default)';

/**
* Remove raster images references in <image>.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = false;

exports.description = 'remove <title> (disabled by default)';
exports.description = 'removes <title> (disabled by default)';

/**
* Remove <title>.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeUnknownsAndDefaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove unknown elements content and attributes, remove attrs with default values';
exports.description = 'removes unknown elements content and attributes, removes attrs with default values';

exports.params = {
unknownContent: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeUnusedNS.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'full';

exports.active = true;

exports.description = 'remove unused namespaces declaration';
exports.description = 'removes unused namespaces declaration';

/**
* Remove unused namespaces declaration.
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeUselessDefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove elements of <defs> without id';
exports.description = 'removes elements in <defs> without id';

var nonRendering = require('./_collections').elemsGroups.nonRendering,
defs;
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeUselessStrokeAndFill.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove useless stroke and fill attrs';
exports.description = 'removes useless stroke and fill attributes';

exports.params = {
stroke: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeViewBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = false;

exports.description = 'remove viewBox attribute when possible (disabled by default)';
exports.description = 'removes viewBox attribute when possible (disabled by default)';

var regViewBox = /^0\s0\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)\s([\-+]?\d*\.?\d+([eE][\-+]?\d+)?)$/,
viewBoxElems = ['svg', 'pattern'];
Expand Down
2 changes: 1 addition & 1 deletion plugins/removeXMLProcInst.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = true;

exports.description = 'remove XML processing instructions';
exports.description = 'removes XML processing instructions';

/**
* Remove XML Processing Instruction.
Expand Down
2 changes: 1 addition & 1 deletion plugins/sortAttrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.type = 'perItem';

exports.active = false;

exports.description = 'sort element attributes for epic readability (disabled by default)';
exports.description = 'sorts element attributes (disabled by default)';

exports.params = {
order: [
Expand Down
2 changes: 1 addition & 1 deletion plugins/transformsWithOnePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.type = 'full';

exports.active = false;

exports.description = 'apply transforms, crop by real width, center vertical alignment and resize SVG with one Path inside (disabled by default)';
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
Expand Down

0 comments on commit a7f62d8

Please sign in to comment.