build: Update 'svgo' to latest v3.2.0 and re-minify SVGs

The latest update of 'svgo' dependency includes three optimizations on
converting path commands, which
- improves closing paths and how we determine if to use absolute or
  relative commands.
- round arc or convert to lines based on the geometric sagitta
- convert cubic Bézier curves to quadratic Bézier curves where possible
Also unifiying npm command to qua standard notation `minify:svg`.

Bug: T354875
Change-Id: I0c712a4cec011ddda3a55caf4ecf493e1e00f3c8
This commit is contained in:
Volker E
2024-01-16 14:54:33 +01:00
parent 0b7ae1dce6
commit e094773671
13 changed files with 34 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
<path fill="#202122" d="M10 0a10 10 0 1 0 10 10A10 10 0 0 0 10 0zm1 16H9v-2h2zm2.71-7.6a2.63 2.63 0 0 1-.34.74 3.06 3.06 0 0 1-.48.55l-.54.48c-.21.18-.41.35-.59.52a3 3 0 0 0-.47.56A2.49 2.49 0 0 0 11 12a4.12 4.12 0 0 0-.11 1H9.08a8.68 8.68 0 0 1 .08-1.25 3.54 3.54 0 0 1 .24-.9 2.81 2.81 0 0 1 .41-.68 4.63 4.63 0 0 1 .58-.58l.51-.44a3 3 0 0 0 .44-.45 1.92 1.92 0 0 0 .3-.54 2.13 2.13 0 0 0 .11-.72 1.94 1.94 0 0 0-.18-.86 1.79 1.79 0 0 0-.43-.58 1.69 1.69 0 0 0-.54-.32 1.55 1.55 0 0 0-.5-.1 1.77 1.77 0 0 0-1.53.68 3 3 0 0 0-.49 1.82H6.16a4.84 4.84 0 0 1 .28-1.68 3.57 3.57 0 0 1 .8-1.29 3.62 3.62 0 0 1 1.27-.83A4.52 4.52 0 0 1 10.18 4a4.42 4.42 0 0 1 1.43.23 3.48 3.48 0 0 1 1.16.65 3 3 0 0 1 .78 1.06 3.49 3.49 0 0 1 .28 1.44 3.63 3.63 0 0 1-.12 1.02z"/>
<path fill="#202122" d="M10 0a10 10 0 1 0 10 10A10 10 0 0 0 10 0m1 16H9v-2h2zm2.71-7.6a2.6 2.6 0 0 1-.34.74 3 3 0 0 1-.48.55l-.54.48c-.21.18-.41.35-.59.52a3 3 0 0 0-.47.56A2.5 2.5 0 0 0 11 12a4 4 0 0 0-.11 1H9.08a9 9 0 0 1 .08-1.25 3.5 3.5 0 0 1 .24-.9 2.8 2.8 0 0 1 .41-.68 4.6 4.6 0 0 1 .58-.58l.51-.44a3 3 0 0 0 .44-.45 1.9 1.9 0 0 0 .3-.54 2.1 2.1 0 0 0 .11-.72 1.94 1.94 0 0 0-.18-.86 1.8 1.8 0 0 0-.43-.58 1.7 1.7 0 0 0-.54-.32 1.6 1.6 0 0 0-.5-.1 1.77 1.77 0 0 0-1.53.68 3 3 0 0 0-.49 1.82H6.16a4.8 4.8 0 0 1 .28-1.68 3.6 3.6 0 0 1 .8-1.29 3.6 3.6 0 0 1 1.27-.83A4.5 4.5 0 0 1 10.18 4a4.4 4.4 0 0 1 1.43.23 3.5 3.5 0 0 1 1.16.65 3 3 0 0 1 .78 1.06 3.5 3.5 0 0 1 .28 1.44 3.6 3.6 0 0 1-.12 1.02"/>
</svg>

Before

Width:  |  Height:  |  Size: 891 B

After

Width:  |  Height:  |  Size: 835 B