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
d9e670c210 Use maps in cleanupIDs. Fixes #562 2016-08-25 22:14:34 +03:00
24f7b5908b Sort attributes by namespace and conceptual prefix, otherwise alphabetically 2016-08-25 11:20:04 +12:00
6e9854a046 Don't collapse a group with element when both have classes.
Fixes #572 (comment)
2016-08-24 22:01:19 +03:00
44d6958db2 Don't pass mask around transform in collapseGroups.
Fixes #572
2016-08-24 22:01:18 +03:00
e4003b4dd2 Crossplatform work. Fixes #538 2016-08-20 20:39:55 +03:00
4865892f6e When minify:false cleanupIds deletes too many ids
when running cleanupIds with minify:false option it does not save a reference to all ids and removes ids that shouldn't be removed.
This fix adds a var that keeps a ref to the original id even if minify is not defined
2016-08-19 18:38:23 +03:00
d60c5c18da Add ability to remove elements by className 2016-07-20 22:42:41 -06:00
7fd48e9d20 Rename plugin to removeElementsByAttr 2016-07-16 11:16:38 -07:00
f4b455a65d Add removeElements plugin 2016-07-06 13:52:36 -06:00
34d9500844 Adds plugin for adding attributes to svg element. 2016-05-12 08:11:29 -04:00
e0ca3f09ef Merge pull request #537 from keithclark/moveGroupAttrsToElems-ref-bug
moveGroupAttrsToElems: new transform attribute shouldn't be a reference
2016-04-27 15:58:11 +03:00
6bd922258d Fix hinting issue 2016-04-27 15:56:41 +03:00
abffd7db09 moveGroupAttrsToElems: new transform attribute shouldn't be a reference 2016-04-26 20:14:18 +01:00
df6f48210e Corrected CSSO API usage 2016-04-25 14:28:15 +03:00
2bbabeedb0 Prevented collapsing group with passing animated attribute
Fixes #534
2016-04-25 14:03:28 +03:00
7d556d06b9 Don't move transforms into referenced group items
Fixes #532
2016-04-25 13:36:02 +03:00
9b92561422 Corrected condition in removeDoctype 2016-04-24 21:32:36 +03:00
65efced355 Process “foreignObject”: cleanup editors content and remove itself if is empty.
Remove doctype with entities.
Fixes #533
2016-04-24 21:29:01 +03:00
dd8e385695 addClassesToSVGElement: avoid repeated classnames 2016-04-05 19:23:49 +02:00
768107b33d removeXMLNS plugin: remove xmlns attribute for inline svg usage 2016-04-05 18:06:57 +02:00
b35d828d49 0.6.4 2016-04-05 18:12:30 +03:00
2f88a38730 Use presentation attibures instead of all styling properties.
Fixes #528
2016-04-05 17:29:05 +03:00
7daab7343a Merge pull request #521 from scurker/master
Add currentColor param to convertColors plugin
2016-03-27 10:26:00 +03:00
df9cd399c0 bump csso to 1.8.0 and use minifyBlock for style attribute content compression 2016-03-24 21:57:43 +03:00
8e5706485e Add boundries to none regex 2016-03-22 08:33:24 -05:00
97ab6c2a6e Add currentColor param to convertColors plugin 2016-03-21 11:58:33 -05:00
4e320d9d56 Apply smart rounding only if need to round.
Fixes #508. Resolves #284.
2016-03-20 20:52:37 +03:00
0f599b670d Fixed regression due to angle calculation changes. Fixes #517 2016-03-20 12:30:06 +03:00
619aaf8481 Check ‘style’ attr for id reference. Fixes #515 2016-03-12 15:27:34 +03:00
c3e0eb6b00 Check for "href’ by local name 2016-03-11 13:31:30 +03:00
215cd39c22 minifyStyles: preserve CDATA if needed 2016-03-08 20:35:00 +03:00
1966bb60a5 Don't pass style attributes is present of class. Fixes #489 2016-03-08 19:50:54 +03:00
a55dc255c2 Don't transform paths with id without stroke-width since it can be overrided.
Fixes #483
2016-03-08 19:14:24 +03:00
a62176e762 Clarify need of parameters in addClassesToSVGElement. Resolves #479 2016-03-08 18:29:27 +03:00
02c24c9ca8 Fixed crash on uppercase color name. Fixes #511 2016-03-08 16:34:41 +03:00
9b84827382 Fixed sign losing in scale matrix. Fixes #513 2016-03-08 09:54:18 +03:00
81e1ebe475 removeAttrs doc addition. Resolves #469 2016-02-28 23:53:02 +03:00
25fc738c03 Fixed transform moving around the mask as well 2016-02-15 14:09:04 +03:00
1335334cc7 Fixed crashing on invoking rounding several times. Closes #480 2016-01-13 17:17:26 +03:00
044fc3b168 Correct all angle calculations to use circle radii instead of curves control points 2016-01-09 19:35:18 +03:00
1b0051ad1c Fixed angle calculation with zero length curve control point.
Fixes #477
2016-01-06 13:57:19 +03:00
cdd44ce557 Fixed typo in the JSDoc block of plugins/convertStyleToAttrs.js 2015-12-27 17:31:30 -08:00
1d6343fdf8 Кemoved unused variable and jshint error fix 2015-11-21 13:50:17 +03:00
da442cbb8d Amend transform parsing to parse numbers. Prevents producing NaNs in paths in case of absent numbers separator. 2015-11-21 13:46:13 +03:00
fc174aa9f0 Fixed error on empty or CDATA styles. Fixed #455. Fixes #456 2015-11-21 13:00:31 +03:00
da5107abd8 MinifyStyles: unix line-endings 2015-11-21 12:58:15 +03:00
ce4446550c Always close polygons. Resolves #441 2015-11-08 19:13:45 +03:00
7af242b611 Fixed transform moving around the clip. Fixes #446 2015-11-08 19:10:46 +03:00
3a7f4ea070 New optimization in paths: curves to arcs 2015-11-08 18:23:45 +03:00
01d003b024 Fix regression. 2015-11-02 16:10:45 +01:00