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
GreLI
258fecfa6b Remove spaces after ‘arcto’ path command flags 2019-07-13 16:18:08 +03:00
GreLI
95f7603983 Fix removeUnusedNS not counting usage in <svg> tag
Close #1107
2019-05-19 20:44:36 +03:00
davidleston
c7058eb7ac Fixes svg/svgo#761. Sorting defs to improve compression. 2019-05-04 20:23:30 +03:00
GreLI
d23355e91a removeAttrs: add optional value filter (#977) 2019-02-24 22:01:01 +03:00
Brad Kotsopoulos
7eeb5d064d Add config to preserve IDs based on prefix matching (#1060)
add parameter to preserve IDs based on prefix matching
2019-02-24 21:02:03 +03:00
Jacob Howcroft
416fcdfa9f SVGO: Add plugin "reusePaths". (#1005) 2019-02-24 20:28:56 +03:00
Rob Levin
0fe5368e0e Add the preserveCurrentColor option to the removeAttrs plugin. (#1000)
Add the preserveCurrentColor option to the removeAttrs plugin.
2019-02-24 20:20:36 +03:00
JoshyPHP
32558b891f add removeOffCanvasPaths plugin (#979) 2019-02-24 20:13:12 +03:00
Bradley Mease
b4bd5d52e3 Add removeAttributesBySelector plugin (#929)
* Add removeAttributesBySelector plugin

Removes attributes of elements that match a css selector.
2019-02-24 20:07:38 +03:00
Kozlov Sergey
d911f0f4c7 Option recursive (#837)
Add -recursive (-r) option
2019-02-24 19:54:59 +03:00
GreLI
ed75e56bde Fix and update cleanupListOfValues tests 2018-09-16 20:58:12 +03:00
GreLI
eeeb67d5a8 Fix convertTransform wrong rotate sign
Fix #986
2018-09-16 19:47:51 +03:00
GreLI
7a07b8436d Fix collapseGroups plugin affecting switch and subgroups
Fix #1020
2018-09-16 17:38:34 +03:00
GreLI
5800635226 Fix converting to large arcs from nearly straight lines curves
Fix #842
2018-09-16 17:12:06 +03:00
GreLI
a4fb3a4a7e Prevent removeUnknownsAndDefaults removing attributes from elements with id
Fix #959
2018-09-16 16:24:53 +03:00
GreLI
831f95fccc Fix empty path segments removing with stroke-linecap
Fix #1017
2018-09-16 15:36:41 +03:00
GreLI
36db31adcf Fix removeNonInheritableGroupAttrs not working as intended 2018-09-15 22:48:09 +03:00
GreLI
f3bcbcc6a6 Fix viewBox value parsing
Fix #1024
2018-09-15 18:52:35 +03:00
GreLI
3c82fd7287 Correct parsing of arc flags without following comma/spaces
Fix #822
2018-09-15 16:38:34 +03:00
GreLI
86ecd372e7 Handle !important keyword in convertStyleToAttrs
Fix #749
2018-09-15 15:15:11 +03:00
Mike Morici
f92629fc54 Add keepRoleAttr option for removeUnknownsAndDefaults (#1002) 2018-09-15 14:48:15 +03:00
Sasha Joseph
b2b9acb23e tweak: do not collapse group properties to children if they contain filters. 2018-09-15 14:45:46 +03:00
Bradley Ayers
3e2fd44a17 feat: offer ES module interop default export (#934) 2018-09-15 14:44:17 +03:00
Stephanie Miller
e7b8a6ce7d Upgrade css-tree from alpha25 to alpha.28
API changed walkFoo(ast, fun) to walk(ast,{visit: 'Rule',enter: fun)
csstree.translate renamed to csstree.generate
csstree.generate throws an error on invalid style where translate silently ignored it - update style processing to catch and ignore instead
Updated tests - csstree now omits more whitespace
2018-09-15 14:43:28 +03:00
Alex Lockwood
50f4fed02b dont transform stroke width for non-scaling-strokes (#857) 2018-09-15 14:39:36 +03:00
Alex Lockwood
828a72a896 fix broken jsapi clone method (#854) 2018-09-15 13:57:47 +03:00
dale tan
54f92ce2de [plugin] sortAttrs: add xmlns order option (#984) 2018-06-15 11:28:59 +03:00
Vitali Zaidman
9dd1802a0d fixed #948 - adds prefixes to each class individually (#950) 2018-04-24 15:39:59 +03:00
Dan Burzo
d968d45a25 Fixes #915 for collapseGroups (#916)
Fix #915 for collapseGroups: overwrite  value with parent value
When the inner element has the value, don't remove the parent groups that defines what that value is
2018-03-02 21:34:21 +03:00
Harris P Jose
2ce1066671 Add failing test case for prefixIDs plugin
When using the prefixIDs plugin  on an svg with multiple linearGradients, url() values are not replaced correctly
2018-02-19 10:54:43 +05:30
GreLI
1a3c32bb43 Fix error due to invalid transform. Close #846 2017-11-22 22:30:02 +03:00
GreLI
f067ea996f Fix removeViewBox to check for zero start coordinates. Fixes #832 2017-11-08 22:04:42 +03:00
Lev Solntsev
ceccf1ffdc Fix inlineStyles working on foreignObject content. Fixes #823 2017-11-03 13:27:02 +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
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
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
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
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
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
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
GreLI
e3ddf1d96a Process *.svg files 2017-09-09 23:56:07 +03:00
GreLI
645a83fa6a Cleanup coa tests 2017-09-05 15:52:38 +03:00