1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-06 04:22:39 +03:00
Commit Graph

388 Commits

Author SHA1 Message Date
Nathan Muir
633c981304 Fix issue with convertPathData when sequential h or l movements are in the opposite direction. 2013-11-18 22:37:49 +02:00
Nathan Muir
cd0793a9f2 Updated applyTransforms to optionally apply path transforms & convert the stroke-width when a line is scaled uniformly (ie, no skew). 2013-11-18 22:37:06 +02:00
Nathan Muir
ad375c8d9c Updated mergePaths to join paths with the same attributes & values. 2013-11-18 22:34:44 +02:00
Nathan Muir
600f37cb2d Possible solution to issue #132 with test cases.
collapse group would merge transforms without respect for clipPath.
2013-11-18 22:33:29 +02:00
deepsweet
ce14bee851 plugins/cleanupAttrs: replace newline with space when needed (fix #119) 2013-06-24 18:47:17 +03:00
deepsweet
a47ed63361 plugins/removeNonInheritableGroupAttrs: more attrs groups to exclude (fix #118 fix #116) 2013-05-30 12:13:21 +03:00
deepsweet
04dccd16ca plugins/mergePaths: add space delimiter between z and m 2013-05-06 19:09:17 +03:00
deepsweet
a55b0ddaf9 plugins/convertPathData: update tests 2013-05-05 15:29:50 +03:00
Nikolay S. Frantsev
cd58880477 new plugins/sortAttrs 2013-04-23 18:44:34 +03:00
deepsweet
1dd57cabe1 Istanbul + coveralls.io 2013-04-15 20:35:55 +03:00
deepsweet
9124bf809e plugins/mergePaths: new plugin 2013-04-11 21:15:41 +03:00
deepsweet
3b3275d4b6 test/plugins repair and refactoring 2013-04-11 20:53:00 +03:00
deepsweet
2dea171f8e replace default config with full: true 2013-04-11 19:51:29 +03:00
deepsweet
270347e84c test/svg2js repair 2013-04-11 19:32:02 +03:00
deepsweet
a2da6fe894 CONFIG.extend() + CONFIG.replace() + tests 2013-04-10 18:12:14 +03:00
deepsweet
f47220cff6 plugins/removeNonInheritableGroupAttrs: new plugin to fix #101 2013-02-22 17:07:41 +02:00
deepsweet
f50b4f8ca8 plugins/convertTransform: bug with trailing spaces in transform value string (fix #103) 2013-02-22 16:43:18 +02:00
deepsweet
f944a2af57 plugins/removeRasterImages: add gif format 2013-02-13 17:24:25 +02:00
deepsweet
7ddc8ebbc0 plugins/removeRasterImages: remove raster images references in <image> (disabled by default) (close #98) 2013-02-13 17:22:15 +02:00
deepsweet
a0d409389f yaml.js -> js-yaml; update outdated deps 2013-02-09 13:03:29 +02:00
deepsweet
3faa6d1de5 plugins/convertTransforms: wrong translate() shorthand (fix #94) 2013-02-06 17:45:04 +02:00
deepsweet
5e5cb1aecc plugins/removeViewBox doesn't catch floating-point numbers (fix #88) 2013-01-18 15:35:20 +02:00
deepsweet
d120b1f0b7 plugins/cleanupEnableBackground doesn't catch floating-point numbers (fix #89) 2013-01-18 15:34:19 +02:00
deepsweet
30a3397a27 move or just leave transform attr from Group to the inner Path Elems (close #86) 2013-01-18 14:16:27 +02:00
deepsweet
2cc829663d plugins/convertTransform: translate(10, 0) eq translate(10), but not translate(10, 10) eq translate(10) (fix #83) 2012-12-23 14:55:36 +02:00
deepsweet
c29a3f9259 plugins/convertPathData: apply transforms to Path pata (close #33) 2012-12-23 14:44:52 +02:00
deepsweet
ea7173b0df plugins/convertPathData: -1.816-9.278.682-13.604 parsing error (fix #85) 2012-12-21 16:59:48 +02:00
deepsweet
40ab77680a plugins/cleanupIDs: renamed from removeUnusedIDs; minify used IDs (fix #7) 2012-12-17 22:32:00 +02:00
deepsweet
45952089d3 restore HTML entities back (fix #80 + #81) 2012-12-17 22:31:54 +02:00
deepsweet
db66e897f8 plugins/removeDoctype: do not remove if custom XML entities presents (fix #77) 2012-12-17 22:31:06 +02:00
deepsweet
c99c4b284c new plugin: remove unused IDs (close #76) 2012-12-11 17:27:05 +02:00
deepsweet
db9188562f new plugin: remove useless 'stroke' and 'fill' attrs (close #75) 2012-12-11 17:26:47 +02:00
deepsweet
a0e798d328 plugins/convertPathData: incorrect interpretation of z + m (fix #69) 2012-12-08 13:18:11 +02:00
deepsweet
5610f719f2 plugins/convertTransform: do more accurate floating numbers rounding in matrixToTransform() (fix #68) 2012-12-07 18:15:16 +02:00
deepsweet
bab164e4ca E-notated numbers in paths not recognised (fix #63) 2012-12-06 22:20:25 +02:00
deepsweet
ab5610a197 fix mocha-as-promised plug in node 0.6 2012-12-06 00:25:00 +02:00
deepsweet
354b2ed46a mocha + mocha-as-promised + chai + chai-as-promised + should + istanbul = <3 2012-12-05 23:53:13 +02:00
deepsweet
9155e8a9b4 more code coverage with Istanbul 2012-12-01 23:03:31 +02:00
deepsweet
f804f13471 plugins/convertTransform: error in matrices multiplication (fix #58) 2012-11-29 21:55:56 +02:00
deepsweet
140daaeaef merge plugins/roundNumericValues and plugins/removeDefaultPx into one plugins/cleanupNumericValues 2012-11-29 18:42:41 +02:00
deepsweet
67daff27b1 new plugin: decrease accuracy of floating-point numbers (close #8) 2012-11-29 18:24:06 +02:00
deepsweet
5485010269 'use strict' motherfucker! do you use it?! 2012-11-27 22:51:31 +02:00
deepsweet
8570a24128 plugins/convertTransform: mark translate() and scale() as useless only with one param (fix #57) 2012-11-26 19:43:18 +02:00
deepsweet
d3e9476073 plugins/convertPathData: fix the very first Mm with multiple points (fix #56) 2012-11-26 19:30:07 +02:00
deepsweet
3d37017c16 plugins/convertPathData: convert very first 'm' to 'M' (fix #55) 2012-11-24 09:33:18 +04:00
deepsweet
088548db28 plugins/removeUnknownsAndDefaults: remove SVG id attr (close #54) 2012-11-24 00:28:09 +04:00
deepsweet
8ba22b7295 plugins/removeUnknownsAndDefaults: merge multiple groupDefaults attrs (close #50) 2012-11-23 18:56:36 +04:00
deepsweet
3ce7b787b3 plugins/removeDefaultPx: should also understand a floating-numbers too (fix #49) 2012-11-23 18:28:48 +04:00
deepsweet
87cdc92b37 plugins/moveElemsAttrsToGroup: fix inheitable only attrs array (fix #47) 2012-11-23 18:11:21 +04:00
deepsweet
15e4b1a217 plugins/removeUnknownsAndDefaults: remove unknown elements content, attrs and attrs with default values (close #6) 2012-11-22 18:57:43 +02:00