1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-09 02:22:08 +03:00
Commit Graph

530 Commits

Author SHA1 Message Date
strarsis
e5c6cd42c5 Improve indentation. 2015-11-02 15:35:12 +01:00
strarsis
dbf30dd59f Add missing option argument to csso minify. 2015-11-02 00:40:36 +01:00
strarsis
16ea8c8057 Add minifyStyles plugin, test and dependencies. 2015-11-02 00:32:23 +01:00
GreLI
6e712f1618 Added inkscape sodipodi namespace to remove. Fixes #442 2015-10-20 18:41:35 +03:00
Xander Victory
948cf1bf59 Move defined guard to inside the element check, refactor slice conditional to allow removing elements which we have no idea about (an Unknown) inside the current element. 2015-10-08 21:50:20 +08:00
Xander Victory
bbf2028de8 fix TypeError("Can't get property contents of undefined") when element name is not in the collection. 2015-10-06 15:16:45 +08:00
GreLI
97bbd21553 Simplified straight curve checking function 2015-09-18 19:16:44 +03:00
GreLI
40b57f3980 Fixed shortand curve distortion due to converted prev curve. Resolves #415 2015-09-18 18:50:17 +03:00
GreLI
c19511ef7a stop cleanupIDs if there is style or script 2015-09-13 15:29:32 +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
db78402c8c Corrected mm/px ratio. Fixes #420 2015-09-02 15:53:08 +03: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
cy6erskunk
492f12c02f Add description for removeAttrs plugin
Add description to eliminate ugly `undefined` in `--show-plugins` output
2015-08-07 15:39:26 +03:00
GreLI
23c2631c10 v0.5.5 2015-08-05 17:13:20 +03:00
GreLI
a6fe310177 Removed debugging commands 2015-08-05 17:10:29 +03:00
GreLI
4527f7fddc v0.5.4 2015-08-05 17:00:38 +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
a0616b0b82 Don't fail on empty transform. Fixes #394 2015-07-05 13:11:31 +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
a7f62d8984 Formatting 2015-06-21 19:13:41 +03:00
Lev Solntsev
336b08998d Merge pull request #382 from kt3k/feature/fix-lint
Linter inspired formatting
2015-06-21 18:41:43 +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
GreLI
b5d4166fa9 Fixed removing id with quoted reference. Fixes #372 2015-06-21 17:17:04 +03:00
Yoshiya Hinosawa
73c5a73900 Modify jshint rules 2015-06-13 18:32:19 +09:00
Yoshiya Hinosawa
3f8e6fd15c Fix lint 2015-06-12 00:25:32 +09:00
Yoshiya Hinosawa
8e6b365c40 Add --show-plugins option 2015-06-07 19:35:49 +09:00
GreLI
e9d00c5c57 Reworked rounding functions in convertTransform. Resolves #371 2015-06-05 17:51:59 +03: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
Lev Solntsev
7435b3ef94 Merge pull request #350 from AprilArcus/master
new plugin: add classes to SVG element
2015-05-24 11:53:37 +03:00
Lev Solntsev
af3611f897 Merge pull request #351 from dennari/master
Don't remove `styles` in removeUselessDefs.js
2015-05-24 11:52:12 +03:00
Aidan Steele
dcab8e0c73 Small spelling typo in mergePaths 2015-05-18 11:59:54 +10:00
April Arcus
8fa362270b disable add css classes plugin by default 2015-04-30 18:10:47 -07:00
April Arcus
41abc27396 new plugin: add classes to SVG element 2015-04-29 09:44:37 -07:00
Ville Väänänen
efe447a117 Don't remove styles in removeUselessDefs.js 2015-04-29 14:26:42 +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
9041175c52 Don't remove id in <svg> tag in removeUnknownsAndDefaults since it's zone of responsibility of cleanupIDs.
Resolves #318.
2015-03-29 20:41:45 +03:00