b96982ffac
add tests for coa
2017-08-24 01:31:57 +03:00
898f0a2ca5
Closes svg/svgo#759 . Upper case hex color now converts to shortname.
2017-07-12 17:15:13 -07:00
da2e4487b5
Closes svg/svgo#757 . ff0000 now converts to red when shorthex is false.
2017-07-12 17:03:25 -07:00
40bcb7f996
Fix arcto sweep flag when a transformation matrix is applied
...
When a transformation matrix flips the coordinates horizontally or vertically (but not both) clockwise arcs need to become counterclockwise and vice-versa.
Fixes #708
2017-06-30 14:35:02 +02:00
8592d2080b
fix viewBox round
2017-06-14 12:16:31 +02:00
5c1aab8ad8
Add keepAriaAttrs to removeUnknownsAndDefaults
...
Closes #684 .
2017-06-13 13:22:56 -07:00
4cf413908e
remove useless switch groups
2017-04-02 19:07:42 +02:00
d74f6a0e2f
Promisify SVGO
2017-03-25 23:46:43 +03:00
e4be4bbc10
Merge pull request #688 from pklingem/removeScriptElement
...
add removeScriptElement plugin
2017-03-25 23:17:23 +04:00
faabeff4f4
Parse commas in viewBox
2017-03-25 22:06:15 +03:00
9f05ac814b
add removeScriptElement plugin
2017-03-23 12:45:21 -04:00
5a1693bd5e
additional option for removeUselessFillStroke, to actually remove invisible shapes
2017-02-17 01:29:19 +01:00
2608ae1467
Use Map/Set in cleanupIDs
2017-02-05 22:59:19 +03:00
282c193c67
Merge pull request #640 from lahmatiy/remove-unused-styles
...
Remove unused styles based on usage data
2017-02-01 00:59:43 +04:00
d4ff31d9db
Merge pull request #610 from Velenir/feature/cleanupIDs--force-and-except
...
Allow to force clean svg with style or script, excepting custom ids (in cleanupIDs)
2017-02-01 00:58:25 +04:00
340da36bc7
make unused styles removal safe
...
- avoid using usage data when document contains <script> or on*
attributes
- implemented usage.force option to force usage data using
2017-01-12 14:56:33 +03:00
da6a40da7f
merge removeUnusedStyles plugin with minifyStyles
2017-01-12 14:32:47 +03:00
fd5a8ca799
one more test for removeUnsusedStyles
2017-01-09 14:04:17 +03:00
6741be9c95
initial implementation of removeUnusedStyles plugin
2017-01-09 13:49:15 +03:00
b6e92f4bb2
Correct leading zero removing in case of exponential notation. Fix #551
2016-12-25 18:17:39 +03:00
11a6068279
Collapse groups with non-inherited attr test improvement
2016-12-25 18:17:39 +03:00
13e09e4642
Don't collapse groups with same non-inheritable attribue. Fix #550
2016-12-25 18:17:39 +03:00
8b290bf976
Don't remove same transform in inner element (removeUnknownsAndDefaults). Fix #549
2016-12-25 18:17:39 +03:00
f3bff1fd32
Add tests for force=true in cleanupIDs
...
Add parameter force to ignore style and script in cleanupIDs
Add tests for except=[ids] in cleanupIDs
Add parameter except in cleanupIDs to skip cleaning up specific ids
2016-10-08 22:00:21 +03:00
1d6c055a81
Merge pull request #546 from gjjones/master
...
adds addAttributes plugin
2016-08-25 23:34:09 +04:00
f5a1ecf341
Merge pull request #579 from darktrojan/sortAttrs
...
Improve sortAttrs plugin
2016-08-25 23:31:03 +04:00
cf20f5c6ca
Loosed fixes
2016-08-25 22:18:04 +03:00
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
1162dac878
Prettify code
2016-08-20 22:14:01 +03:00
60d5175883
Normalize line endings of files in test for crossplatform work
2016-08-20 20:59:55 +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
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
7bd3d1edc7
Removed obsolete test
2016-04-24 21:31:05 +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
3d8496033c
Add option to indent when pretty printing svg
2016-03-26 22:14:29 -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
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