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
02c24c9ca8 Fixed crash on uppercase color name. Fixes #511 2016-03-08 16:34:41 +03:00
GreLI
9b84827382 Fixed sign losing in scale matrix. Fixes #513 2016-03-08 09:54:18 +03:00
GreLI
0b23ff63c2 Improvements on parsing error handling. 2016-02-29 01:03:16 +03:00
GreLI
748756e18d Capture parsing errors, but no further. (Don't break tests.) 2016-02-28 23:09:32 +03:00
GreLI
25fc738c03 Fixed transform moving around the mask as well 2016-02-15 14:09:04 +03:00
GreLI
9cdb046383 Improved parser error handling.
Show output error position. Resolves #482
2016-02-08 00:36:56 +03:00
GreLI
1335334cc7 Fixed crashing on invoking rounding several times. Closes #480 2016-01-13 17:17:26 +03:00
GreLI
1b0051ad1c Fixed angle calculation with zero length curve control point.
Fixes #477
2016-01-06 13:57:19 +03:00
GreLI
0d91a0455d Parse XML entities.
Fixes #225, fixes #272, fixes #314. Closes #476.
2016-01-04 20:22:11 +03:00
David Yan
91300f3d88 Fixed test that uses String.prototype.includes to use indexOf instead 2015-12-28 20:20:08 -08:00
David Yan
4800bf77ca Added tests for svg2js behavior if passed in malformed svg 2015-12-28 20:08:54 -08:00
GreLI
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
GreLI
fc174aa9f0 Fixed error on empty or CDATA styles. Fixed #455. Fixes #456 2015-11-21 13:00:31 +03:00
GreLI
ce4446550c Always close polygons. Resolves #441 2015-11-08 19:13:45 +03:00
GreLI
7af242b611 Fixed transform moving around the clip. Fixes #446 2015-11-08 19:10:46 +03:00
GreLI
3a7f4ea070 New optimization in paths: curves to arcs 2015-11-08 18:23:45 +03:00
strarsis
16ea8c8057 Add minifyStyles plugin, test and dependencies. 2015-11-02 00:32:23 +01:00
GreLI
46e1d7b893 Test for the new sodipodi namespace 2015-10-20 18:43:16 +03:00
Xander Victory
c1cd2e9eea Add some permitted and not permitted elements to the unknown element test 2015-10-08 21:45:13 +08:00
Xander Victory
724e21889d add test for pull request #435 2015-10-08 09:06:18 +08:00
GreLI
1bdee52393 Fixed config issues, better tests&docs. Closes #390 2015-09-21 14:23:55 +03:00
GreLI
40b57f3980 Fixed shortand curve distortion due to converted prev curve. Resolves #415 2015-09-18 18:50:17 +03:00
Bo Lopker
176d0329a4 Clean up cleanupID logic, use null prototype for maps
Reduce string creation

Add test for __proto__
2015-09-13 15:29:32 +03:00
Betsy Dupuis
1ede31e4f9 New plugin: Remove style elements - disable by default. 2015-09-07 17:55:40 -05:00
GreLI
614bc00d77 Fixed consecutive transforms precision handling. Fixes #421 2015-09-02 12:24:06 +03:00
GreLI
a90ba46caf Fixed paths removing. Fixes #413 2015-08-13 19:19:45 +03:00
GreLI
ece38e3758 Fixed correction of out-of-range radii. Resolves #407 2015-08-05 16:42:00 +03:00
GreLI
8ec45b7251 Don't remove path with exponent. Fixes #405 2015-07-18 20:37:48 +03:00
GreLI
1253a0cc16 Corrected test passing after empty transform fix 2015-07-08 16:13:54 +03:00
GreLI
739a296621 v0.5.3 2015-06-21 22:23:00 +03:00
GreLI
55fd495564 Merge branch 'removeAttrsPlugin' of git://github.com/bennyschudel/svgo into removeAttrsPlugin 2015-06-21 21:48:38 +03:00
GreLI
62a0547bfa Merge branch 'removeDimensionsPlugin' of git://github.com/bennyschudel/svgo into addClassesToSVGElement 2015-06-21 19:28:37 +03:00
GreLI
2c2f9e7e26 Use first item of few with same ID (as browsers do). Remove subsequent IDs. Resolves #378 2015-06-21 18:32:50 +03:00
GreLI
20e2a30773 Update ID in animateMotion ‘begin’ attribute. Fixes #373 2015-06-21 18:20:44 +03:00
Richard Livsey
1ec50c4a13 Allow providing custom plugins
Eg.

    new SVGO({
        plugins: [
            myCustomPugin: {
                type: ‘perItem’,
                fn:   function(item) {
                    /* do stuff */
                }
            }
        ]
    });
2015-06-02 11:41:34 +01:00
GreLI
c1bf5baf97 Proper arcs transforming with SVD 2015-05-24 20:50:49 +03:00
GreLI
ff5e89d5bf Reworked transform manipulation 2015-05-24 20:50:47 +03:00
GreLI
d0c3355056 Separate property for transformations precision with the increased value by default. Resolves #334 2015-04-12 22:38:29 +03:00
GreLI
d0a5d0e87d Don't remove empty patterns with inheritance 2015-04-12 21:08:34 +03:00
GreLI
f651fd8de1 Fixed issues with multiple moveto coordinates on output. Fixes #338 2015-04-06 16:39:28 +03:00
GreLI
97a260bbf3 Proper computations with optional rotate() parameters 2015-04-06 14:47:12 +03:00
GreLI
ae2981cdea Fixed support point function 2015-04-02 16:48:49 +03:00
GreLI
f68b310c1e Fix for transformations with arcs converted to curves 2015-03-30 20:32:24 +03:00
GreLI
b3ee51c7bc Fix path checking in removeHiddenElems. Fixes #333 2015-03-30 20:29:38 +03:00
GreLI
cf37722e29 Disable removeUselessStrokeAndFill if there is a <style> or <script> 2015-03-29 21:27:52 +03:00
GreLI
00df0b369e Updated tests for removing id in <svg> 2015-03-29 21:25:14 +03:00
GreLI
ec70b37666 Simplified inherited attrs checking in removeUnknownsAndDefaults 2015-03-29 20:11:58 +03:00
GreLI
1121582564 Remove non-rendering elements without ids as well 2015-03-29 14:56:38 +03:00
GreLI
c47fa38700 Plugin to remove elements in <defs> without id. Resolves #310 2015-03-29 00:30:51 +03:00
GreLI
f49005c68d Smarter transforms collapsing. Fixes #208 2015-03-22 22:33:22 +03:00