1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-07 15:22:54 +03:00
Commit Graph

1243 Commits

Author SHA1 Message Date
David Konsumer
36213a8d08 inkscape-svgo 2018-02-07 22:07:35 +03:00
Lev Solntsev
981328e476 Merge pull request #902 from bnjmn-jns/patch-1
Added config example to node example file
2018-02-07 21:29:52 +03:00
bnjmn-jns
3ec6cef333 Added config example to node example file
There is (understandably) some confusion about how the config files works (see https://github.com/svg/svgo/issues/439) so I've added an example (the one given in that issue) in place of a fairly useless placeholder
2018-02-07 11:06:42 +01:00
GreLI
c47c71b923 v1.0.4 v1.0.4 2018-01-30 12:48:09 +03:00
GreLI
b6274f2496 Bump dependencies 2018-01-30 12:39:03 +03:00
GreLI
1a3c32bb43 Fix error due to invalid transform. Close #846 2017-11-22 22:30:02 +03:00
Alex Lockwood
b182569c5f Fixes #218 2017-11-22 21:42:49 +03:00
GreLI
54de6f7592 Correct check for switch 2017-11-21 22:37:03 +03:00
GreLI
eb3b4b8188 Prevent removing groups that are direct child of "<switch>". Fix #845 2017-11-21 21:58:17 +03:00
GreLI
a6d2c88f9c v1.0.3 v1.0.3 2017-11-08 22:13:53 +03:00
GreLI
f067ea996f Fix removeViewBox to check for zero start coordinates. Fixes #832 2017-11-08 22:04:42 +03:00
Dave Shifflett
efcb07ee65 Avoid extra trailing whitespace in stdout mode
Not only does `console.log()` already print a newline after its output,
but it prints a space between each of its arguments, so including `'\n'`
as a second argument results in a trailing space, then a newline, then
another newline. Excluding this extra `'\n'` results in just one newline
after the data.
2017-11-07 12:17:51 +03:00
Dave Shifflett
7797bbad47 Do not print statistics when using in stdout mode
When using the `stdout` output mode (e.g. using `svgo -` within a
pipeline), the time and optimization statistics shouldn't be printed in
the output stream.
2017-11-07 12:17:51 +03:00
Lev Solntsev
3ec0767ba0 v1.0.2 v1.0.2 2017-11-03 13:33:46 +03:00
Lev Solntsev
ceccf1ffdc Fix inlineStyles working on foreignObject content. Fixes #823 2017-11-03 13:27:02 +03:00
Lev Solntsev
f03d832838 Update readme to sync with actual state 2017-11-03 12:54:36 +03:00
strarsis
e25cf30fcb Add tests and fix for onlyMatchedOnce option cleaning classes/IDs that matched more than once.
Improve code.
2017-11-03 12:35:46 +03:00
Lev Solntsev
00ca73bff4 v1.0.1 v1.0.1 2017-10-31 13:54:16 +03:00
strarsis
471aec5e25 Fix #820 (#821)
* Add test for inlineStyles plugin/CSSStyleDeclaration API.

* Adjust test.

* Always initialize element attrs with empty object.
Improve code.
2017-10-31 13:50:20 +03:00
GreLI
80ed6842dd v1.0.0 v1.0.0 2017-10-30 22:30:23 +03:00
GreLI
1aa9e9a56a Remove 'recursvie' option as not implemented 2017-10-30 21:21:44 +03:00
Alex Lockwood
999cfbd97c Convert circles/ellipses to paths (#818) 2017-10-29 10:45:35 +03:00
GreLI
b51192cb7a Fixed addClassesToSVGElement and added test 2017-10-25 22:25:57 +03:00
Keegan Street
eceb95c310 Updated addElementsToSVGElement plugin to support attribute values, as well as attribute names. 2017-10-25 22:08:58 +03:00
Roman Dvornov
239f383f3b Pin css-tree version (fixes #813) 2017-10-25 22:04:58 +03:00
Mike Street
645908923b Allow element seperator to be changed in config
This resolves #557 as you can pass in a different character for element seperation (e.g. `^`
2017-10-23 22:54:02 +03:00
strarsis
91d98106d4 Add prefixIds plugin (#700)
Add prefixIds plugin
2017-10-23 22:14:43 +03:00
GreLI
d828a62100 Bump dependencies and minor fix for inlineStyles 2017-10-22 22:30:17 +03:00
strarsis
2523799a12 Add inlineStyles plugin (rewrite of localStyles plugin) (#592)
Add inlineStyles plugin
2017-10-22 21:57:47 +03:00
Christoph Päper
f2fa7a33be add support for tab indent 2017-10-22 21:19:30 +03:00
GreLI
055e303607 Tune plugins 2017-10-22 19:32:24 +03:00
GreLI
f8234fd3f8 Prevent removing IDs in SVGs only with defs 2017-10-22 18:41:35 +03:00
GreLI
3b6fa1ed31 Fix typo in test 2017-10-22 18:02:52 +03:00
GreLI
93f2760a02 Support "href" attribute from SVG 2, fixes #772 2017-10-22 17:56:47 +03:00
GreLI
f044d259e7 Fix error on empty file, fixes #810 2017-10-22 17:42:57 +03:00
GreLI
6f9fdb1e76 Sync russian README 2017-10-22 17:18:19 +03:00
Drew Noakes
7718a63b3a Indentation and syntax highlighting of shell code 2017-09-29 21:52:35 +03:00
Dave Houlbrooke
cbaefd8dcb Update removeDesc.js (#798)
Expand default config to remove <desc> tags that start with "Created using" (in addition to "Created with").

Change is due to Figma using "Created using Figma" as their default SVG description. Sketch and others use "Created with Sketch.".
2017-09-22 21:22:46 +03:00
David Leston
cd8a405aa2 Removed an assigned value that's never used. Also fixed typos. (#764) 2017-09-14 21:25:51 +03:00
Yehonatan Daniv
87796acbcb Updated colorNames according to CSS Color Module Level 4 (#755)
Update colorNames according to CSS Color Module Level 4
2017-09-14 21:24:00 +03:00
Lev Solntsev
11e72c85d1 Merge pull request #753 from craigmichaelmartin/patch-1
update readme to remove link to obsolete tool
2017-09-14 21:22:22 +03:00
Lev Solntsev
dc8042a030 Merge pull request #752 from JoshyPHP/ticket-708
Fix arcto sweep flag when a transformation matrix is applied
2017-09-14 21:20:32 +03:00
Lev Solntsev
a1c7210135 Merge pull request #760 from davidleston/#759-upper-case-hex-to-shortname
Closes svg/svgo#759. Upper case hex color now converts to shortname.
2017-09-14 21:18:52 +03:00
Lev Solntsev
dd0317c51f Merge branch 'master' into #759-upper-case-hex-to-shortname 2017-09-14 21:18:43 +03:00
Lev Solntsev
8c3f756cec Merge pull request #758 from davidleston/#757-shorthex-false-does-not-transform-f00
#757 shorthex false does not transform f00
2017-09-14 21:16:53 +03:00
GreLI
1eb39cd24a Fix optimized size comparision in tests 2017-09-10 21:56:47 +03:00
Lev Solntsev
6845090c6d Merge pull request #756 from davidleston/patch-1
Typo fixed: if yout plugin -> if your plugin
2017-09-10 21:12:54 +03:00
GreLI
e3ddf1d96a Process *.svg files 2017-09-09 23:56:07 +03:00
GreLI
bcd8035a40 Correct jshint 2017-09-05 16:36:17 +03:00
GreLI
645a83fa6a Cleanup coa tests 2017-09-05 15:52:38 +03:00