Keegan Street
eceb95c310
Updated addElementsToSVGElement plugin to support attribute values, as well as attribute names.
2017-10-25 22:08: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
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
93f2760a02
Support "href" attribute from SVG 2, fixes #772
2017-10-22 17:56:47 +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
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
Cyril Auburtin
661e6d1570
Update cleanupIDs.js
...
begin an be `"0s;third.end"`
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/begin
2017-08-10 16:16:30 +02:00
davidleston
898f0a2ca5
Closes svg/svgo#759 . Upper case hex color now converts to shortname.
2017-07-12 17:15:13 -07:00
davidleston
c4727ee742
Closes svg/svgo#757 . ff0000 now converts to red when shorthex is false.
2017-07-12 17:05:31 -07:00
JoshyPHP
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
caub
8592d2080b
fix viewBox round
2017-06-14 12:16:31 +02:00
Lev Solntsev
19e2c9ac15
Merge pull request #704 from caub/round_viewBox
...
round viewBox too
2017-06-14 10:14:51 +03:00
David Clark
5c1aab8ad8
Add keepAriaAttrs to removeUnknownsAndDefaults
...
Closes #684 .
2017-06-13 13:22:56 -07:00
caub
5828949c21
round viewBox too
2017-06-10 12:33:59 +02:00
Lev Solntsev
98369def3a
Merge pull request #696 from caub/switch
...
remove useless switch groups
2017-04-02 22:40:40 +04:00
caub
4cf413908e
remove useless switch groups
2017-04-02 19:07:42 +02:00
caub
5c2a9160fc
clean .reduce with side-effects
2017-04-02 17:00:34 +02:00
Lev Solntsev
e4be4bbc10
Merge pull request #688 from pklingem/removeScriptElement
...
add removeScriptElement plugin
2017-03-25 23:17:23 +04:00
GreLI
faabeff4f4
Parse commas in viewBox
2017-03-25 22:06:15 +03:00
Patrick Klingemann
9f05ac814b
add removeScriptElement plugin
2017-03-23 12:45:21 -04:00
Vasiliy Loginevskiy
194187ce16
Fix typo
2017-03-23 16:21:53 +03:00
Vasiliy Loginevskiy
4495a34f55
Remove unnecessary dependency
2017-03-22 09:03:51 +03:00
caub
bcd908691f
fix for hasStyleOrScript, it must be initialized with SVGO constructor, not global, else it'll keep previous run value
2017-02-25 21:38:50 +01:00
caub
5a1693bd5e
additional option for removeUselessFillStroke, to actually remove invisible shapes
2017-02-17 01:29:19 +01:00
GreLI
2608ae1467
Use Map/Set in cleanupIDs
2017-02-05 22:59:19 +03:00
Lev Solntsev
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
Lev Solntsev
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
Roman Dvornov
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
Roman Dvornov
da6a40da7f
merge removeUnusedStyles plugin with minifyStyles
2017-01-12 14:32:47 +03:00
Roman Dvornov
6741be9c95
initial implementation of removeUnusedStyles plugin
2017-01-09 13:49:15 +03:00
GreLI
13e09e4642
Don't collapse groups with same non-inheritable attribue. Fix #550
2016-12-25 18:17:39 +03:00
GreLI
8b290bf976
Don't remove same transform in inner element (removeUnknownsAndDefaults). Fix #549
2016-12-25 18:17:39 +03:00
GreLI
d0a511fc37
Fix removing <animate> in <stop>. Fixes #544
2016-12-25 18:17:39 +03:00
Sergey Alimov
dc259059fa
Extend currentColor
match conditions (string, rx, bool)
2016-12-19 14:55:43 +04:00
Velenir
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
Lev Solntsev
8abdef7742
Revert changes in cleanupIDs requiring 0.12. Fixes #602
2016-09-27 11:25:14 +03:00
Lev Solntsev
0a9870ad7a
Merge pull request #530 from ricardobeat/master
...
add removeXMLNS plugin
2016-08-25 23:53:36 +04:00
Lev Solntsev
517449fc52
Merge pull request #529 from ricardobeat/addClassesNoRepeat
...
addClassesToSVGElement: avoid repeating classnames
2016-08-25 23:52:55 +04:00
Lev Solntsev
1d6c055a81
Merge pull request #546 from gjjones/master
...
adds addAttributes plugin
2016-08-25 23:34:09 +04:00
Lev Solntsev
f5a1ecf341
Merge pull request #579 from darktrojan/sortAttrs
...
Improve sortAttrs plugin
2016-08-25 23:31:03 +04:00
GreLI
c6f77d99ec
Linter fixes
2016-08-25 22:20:14 +03:00
GreLI
cf20f5c6ca
Loosed fixes
2016-08-25 22:18:04 +03:00