-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7784abd
commit 6064aef
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# cleanupTextElements | ||
|
||
Simplifies and merges `<text>` and `<tspan>` elements. | ||
|
||
## Details | ||
|
||
The plugin has no effect if: | ||
|
||
- The document has scripts. | ||
- The document has `<style>` elements. | ||
|
||
This plugin makes the following transformations: | ||
|
||
- Removes `xml:space="preserve"` if the element does not contain significant whitespace. | ||
- Removes unused `x` and `y` attributes from `<text>` elements. | ||
- Merges `<text>` and `<tspan>` elements where possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# minifyGradients | ||
|
||
Simplifies and merges gradients. | ||
|
||
## Details | ||
|
||
The plugin has no effect if: | ||
|
||
- The document has scripts. | ||
- The document has `<style>` elements with CSS which **svgo-ll** is not able to process. | ||
|
||
This plugin makes the following transformations: | ||
|
||
- `stop` attributes are written in the shortest format (for example, `"90%"` becomes `".9"`). | ||
- If a gradient consists of a single solid color, any references to the gradient are changed to use the color itself. | ||
- If a gradient is used as a [template](https://svgwg.org/svg2-draft/pservers.html#PaintServerTemplates) and is only referenced once, the template is merged with the referencing gradient. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters