1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Commit Graph

61 Commits

Author SHA1 Message Date
Seth Falco
747cc722d9 chore: revamp how we export types (#2118) 2025-05-04 17:39:44 +01:00
Seth Falco
8c593fab06 chore: bulk update all jsdoc and jsdoctypes (#2114) 2025-05-01 22:16:52 +01:00
Seth Falco
9c8768f64d ci: add spellcheck (#2101) 2025-04-12 16:47:32 +01:00
Seth Falco
97d7d00add add: centralize exports to svgo (#2071) 2024-09-07 19:26:05 +01:00
johnkenny54
e2575988cc fix: <a> element not parsed as text (#1959) 2024-02-11 22:14:25 +00:00
Jon Dufresne
59796a829b feat(removeDeprecatedAttrs): new removeDeprecatedAttrs plugin (#1869) 2024-01-15 21:48:14 +00:00
Jon Dufresne
2442f74239 chore: convert project to us ECMAScript modules (preserving CJS compatibility) (#1905) 2024-01-03 16:17:37 +00:00
Seth Falco
a3da8b3a76 refactor: use set in _collections (#1899) 2023-12-24 01:54:17 +00:00
Seth Falco
39e855be9e fix(inlineStyles): refactor how styles are collected (#1865) 2023-12-01 16:45:09 +00:00
Seth Falco
a9df915d1d fix: dont trim pre elements (#1796)
Includes pre in the array of text elements in _collections.js so that we don't trim whitespace on them, which effects rendering.
2023-11-12 11:56:39 +00:00
Seth Falco
e21e56060b feat(removeScriptElement): add all known event types (#1819)
Update the list of event attributes to include everything listed on MDN.
2023-11-04 14:07:29 +00:00
Bogdan Chadkin
a0bf4f7ebf Add missing filter primitives to collections (#1571)
Ref https://github.com/svg/svgo/issues/1045#issuecomment-510208768

This should prevent feDropShadow from removing.
2021-09-14 18:03:50 +03:00
Bogdan Chadkin
680e143daf Add transform-origin to presentation attributes
Ref https://github.com/svg/svgo/issues/1475
2021-08-27 23:39:51 +03:00
Bogdan Chadkin
bc95263885 Refactor removeUnknownsAndDefaults (#1548)
- got rid from two computeAttr usages
- got rid from node.parentNode usages
- avoided mutating global _collections objects
- refactored with visitor api
- covered with types
- skip whole foreignObject subtree not only its children
2021-08-27 23:02:28 +03:00
Bogdan Chadkin
cce036f285 Refactor convertColors (#1543)
- refactored with visitor plugin api
- covered with types
2021-08-25 20:52:21 +03:00
Bogdan Chadkin
555a9619db Remove incorrect filter region assumption
Ref https://www.w3.org/TR/SVG11/filters.html

Spec says filter region is not always 100% 100% by default
2021-03-05 21:31:41 +03:00
Bogdan Chadkin
a896d5de13 Format plugins utilities with prettier (#1394)
Note: review with hidden whitespaces
2021-03-03 01:33:44 +03:00
XhmikosR
1310210d4e Use https when possible and fix an inactive domain (#1374) 2021-02-25 13:48:18 +03:00
Bogdan Chadkin
091172a392 Fix <tspan> inside of <a> 2021-02-24 14:10:33 +03:00
Bogdan Chadkin
776ec1e71b Fix incorrect xml:space default 2021-02-23 18:43:28 +03:00
Max Goodhart
9f084cc086 Preserve whitespace in elements containing text (#1220) 2021-02-23 18:25:30 +03:00
Bogdan Chadkin
4490d62ee9 Add mask-type to the list of <mask> attributes
Ref https://github.com/svg/svgo/issues/1254
2021-02-20 13:59:21 +03:00
bbqaaq
5d97108687 update namespace list (#1064) 2019-02-24 21:04:24 +03:00
GreLI
a165206632 Update presentation attribute collection for removeNonInheritableGroupAttrs plugin 2018-09-16 11:07:43 +03:00
GreLI
36db31adcf Fix removeNonInheritableGroupAttrs not working as intended 2018-09-15 22:48:09 +03:00
Adam Demasi
102a7210a7 Add Microsoft Visio XMLNS to removeEditorsNSData. (#974) 2018-06-02 14:10:26 +03:00
GreLI
93f2760a02 Support "href" attribute from SVG 2, fixes #772 2017-10-22 17:56:47 +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
davidleston
c4727ee742 Closes svg/svgo#757. ff0000 now converts to red when shorthex is false. 2017-07-12 17:05:31 -07:00
GreLI
d0a511fc37 Fix removing <animate> in <stop>. Fixes #544 2016-12-25 18:17:39 +03:00
GreLI
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
GreLI
2f88a38730 Use presentation attibures instead of all styling properties.
Fixes #528
2016-04-05 17:29:05 +03:00
GreLI
619aaf8481 Check ‘style’ attr for id reference. Fixes #515 2016-03-12 15:27:34 +03:00
GreLI
6e712f1618 Added inkscape sodipodi namespace to remove. Fixes #442 2015-10-20 18:41:35 +03:00
GreLI
9e203f0a10 A little more from SVG 2 2015-03-29 16:08:42 +03:00
GreLI
f6e87a0543 More properties from SVG 2 2015-03-29 14:56:06 +03:00
GreLI
36003b11f6 New properties from SVG versions 2 and Tiny 1.2. Resolves #323 2015-03-28 23:28:20 +03:00
GreLI
0219d33c3e Don't remove default type of animateTranform since it doesn't work. Fixes #297 2015-03-22 21:20:34 +03:00
Anton Khlynovskiy
8c4c197534 Fix typo in yellow color hex code 2015-02-18 13:35:27 +03:00
GreLI
6fecd95f22 Added prentational attributes to known for 'mask' element. Fixes #217 2015-02-08 19:21:20 +03:00
GreLI
eae7238415 Don't pretty print text elements because it affects text content. Fixes #241 2015-01-31 15:14:46 +03:00
Lev Solntsev
71b010db08 Merge pull request #282 from YetiOr/yeti-or.pre-optimize-colors
Optimize colors names collection in advance.
2014-12-06 13:34:45 +03:00
Vasiliy Loginevskiy
ccd0541712 Add shortNames colors optimization. 2014-12-05 23:50:37 +03:00
Vasiliy Loginevskiy
4d83c31420 Optimize colors collections in advance. 2014-12-04 22:45:22 +03:00
Vasiliy Loginevskiy
d1ef377f17 Remove unnecessary element from array. 2014-12-03 04:51:47 +03:00
Dave Houlbrooke
36caca2fbe Add Sketch namespace to _collections for removeEditorsNSData plug 2014-01-31 05:11:23 +00:00
deepsweet
4ae9cc1c33 do not remove result attribute from filter primitives (fix #122) 2013-06-24 18:35:29 +03:00
deepsweet
f47220cff6 plugins/removeNonInheritableGroupAttrs: new plugin to fix #101 2013-02-22 17:07:41 +02:00
deepsweet
6592d9bdb4 SVG file generated by http://fontcustom.com not properly compressed (fix #90) 2013-01-18 15:47:30 +02:00
deepsweet
30a3397a27 move or just leave transform attr from Group to the inner Path Elems (close #86) 2013-01-18 14:16:27 +02:00