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

530 Commits

Author SHA1 Message Date
ec70b37666 Simplified inherited attrs checking in removeUnknownsAndDefaults 2015-03-29 20:11:58 +03:00
4c1aad9889 Check for all animation properties collapseGroups 2015-03-29 18:35:18 +03:00
9e203f0a10 A little more from SVG 2 2015-03-29 16:08:42 +03:00
1121582564 Remove non-rendering elements without ids as well 2015-03-29 14:56:38 +03:00
f6e87a0543 More properties from SVG 2 2015-03-29 14:56:06 +03:00
c47fa38700 Plugin to remove elements in <defs> without id. Resolves #310 2015-03-29 00:30:51 +03:00
36003b11f6 New properties from SVG versions 2 and Tiny 1.2. Resolves #323 2015-03-28 23:28:20 +03:00
f49005c68d Smarter transforms collapsing. Fixes #208 2015-03-22 22:33:22 +03:00
0219d33c3e Don't remove default type of animateTranform since it doesn't work. Fixes #297 2015-03-22 21:20:34 +03:00
e94cb994dd Remove incorrect <path> elems, not just empty 2015-03-22 21:20:20 +03:00
15e303bbf0 Convert colors now takes fractional percentages and minor improvements.
Fixes #175 and resolves #178.
2015-03-22 18:45:46 +03:00
5f892ee7dd Don't remove empty elements which could be animated.
Resolves #213.
2015-03-22 18:12:09 +03:00
86ab59ceb5 Take in account optional ‘rotate()’ parameters.
Fixes #243, fixes #294.
2015-03-22 18:12:09 +03:00
9b8250d6c4 Remove standard descriptions. Resolves #302 2015-03-22 18:12:09 +03:00
d935bd0dd3 Avoid manipulations with paths that have animations. Fixes #321 2015-03-22 18:12:09 +03:00
4d966b7ceb Don't collapse groups which have animations. Fixes #214 2015-03-22 18:12:09 +03:00
e1060df7dc Check path intersection while merging.
Fixes #253, resolves #260, fixes #298.
2015-03-22 18:06:40 +03:00
e220b6cad0 Path data processing improvements.
Improved path data saving.
Collapse repeated now works at writing path data and doesn't affect pathJS to make further processing easier.
Resolves #204.
2015-03-17 22:03:17 +03:00
15ded2773e Simplified mergePaths plugin even more 2015-03-15 13:17:06 +03:00
62cfb364c4 Slightly improved convertShapeToPath 2015-03-15 13:17:06 +03:00
73ca6b2cb7 Fix cleanupIDs not working for style references 2015-03-15 13:01:11 +03:00
84220ce1dc Add classes instead if rewriting when collapsing groups. Fixes #288 2015-03-15 13:01:10 +03:00
91262b7c30 Don't collapse ‘g’ inside ‘switch’. Fixes #324 2015-03-15 01:15:12 +03:00
20af96a6b5 Corrected path merging 2015-02-26 01:34:20 +03:00
85def41186 Collapse groups with one command. Correctly update parent references. 2015-02-24 23:53:47 +03:00
eecfabd5a9 Code styled and logic improvement in convertShapeToPath 2015-02-23 23:06:18 +03:00
d3e4f63ae5 removeUselessStrokeAndFill is back. Checks for inherited attrs and references. 2015-02-23 23:06:18 +03:00
02dcf78d74 Convert abolute lengths to pixel values 2015-02-23 23:06:09 +03:00
1e81329982 Non greedy comments regexp 2015-02-23 17:52:53 +03:00
84fd2720ca Get rid of strut 2015-02-23 17:36:10 +03:00
73f7f3c183 Improved code for parsing CSS in attributes values 2015-02-23 17:29:23 +03:00
8c4c197534 Fix typo in yellow color hex code 2015-02-18 13:35:27 +03:00
de1629faf9 Don't remove data-* attributes. Resolves #301 2015-02-15 15:11:42 +03:00
b868538fe3 Fixed breaking references. Resolves #274 2015-02-15 14:48:22 +03:00
5a51022b25 Don't pass 'clip-path' attr to shape elements at all. Fixes #231 2015-02-08 23:39:35 +03:00
942d2f74fa Better css parsing in style attr. Fixes #227 2015-02-08 22:33:24 +03:00
5e7caa49dc Code styling 2015-02-08 19:31:55 +03:00
6fecd95f22 Added prentational attributes to known for 'mask' element. Fixes #217 2015-02-08 19:21:20 +03:00
54f4b33e26 Fix for id prefixing 2015-02-01 22:58:43 +03:00
ad538aac46 Prefix IDs in a dictionary to avoid breaking on some reserved keywords. Fixes #309 2015-02-01 15:39:57 +03:00
eae7238415 Don't pretty print text elements because it affects text content. Fixes #241 2015-01-31 15:14:46 +03:00
66ca37c366 Typo fix and updated tests 2015-01-27 14:12:29 +03:00
80398580ab Corrected inherited stroke-width adjustment 2015-01-27 14:07:23 +03:00
bada6b2a8c Transformations now accounting inherited stroke attributes. Finally fixes #162 2015-01-25 23:27:30 +03:00
290d610f27 Limited linking checks to referencing props 2015-01-25 20:00:40 +03:00
35d351a15e numeric regular expression fix 2015-01-25 19:49:32 +03:00
1ccdc0d76b Adding a sanity check before proceeding 2014-12-18 10:53:33 +05:30
8222f41cd4 add tests of cleanupListOfValues 2014-12-07 21:48:10 +09:00
385d6534d2 add cleanupListOfValues 2014-12-07 19:31:43 +09:00
71b010db08 Merge pull request #282 from YetiOr/yeti-or.pre-optimize-colors
Optimize colors names collection in advance.
2014-12-06 13:34:45 +03:00