1
0
mirror of https://github.com/svg/svgo.git synced 2025-04-19 10:22:15 +03:00
svgo/test/plugins/mergePaths.02.svg
2021-03-29 03:08:15 +03:00

36 lines
1.3 KiB
XML

Merge sequences of paths with the same attributes
===
<svg xmlns="http://www.w3.org/2000/svg">
<path d="M 0,0 z" fill="#fff" stroke="#333"/>
<path d="M 10,10 z" fill="#fff" stroke="#333"/>
<path d="M 20,20" fill="#fff" stroke="#333"/>
<path d="M 30,30 z" fill="#fff" stroke="#333"/>
<path d="M 30,30 z" fill="#f00"/>
<path d="M 40,40 z"/>
<path d="m 50,50 z"/>
<path d="M 40,40"/>
<path d="m 50,50"/>
<path d="M 40,40 z" fill="#fff" stroke="#333"/>
<path d="m 50,50 z" fill="#fff" stroke="#333"/>
<path d="M 40,40" fill="#fff" stroke="#333"/>
<path d="m 50,50" fill="#fff" stroke="#333"/>
<path d="m 50,50 z" fill="#fff" stroke="#333"/>
<path d="M0 0v100h100V0z" fill="red"/>
<path d="M200 0v100h100V0z" fill="red"/>
<path d="M0 0v100h100V0z" fill="blue"/>
<path d="M200 0v100h100V0zM0 200h100v100H0z" fill="blue"/>
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg">
<path d="M0 0zM10 10zM30 30z" fill="#fff" stroke="#333"/>
<path d="M 30,30 z" fill="#f00"/>
<path d="M40 40zM50 50zM50 50"/>
<path d="M40 40zM50 50zM50 50z" fill="#fff" stroke="#333"/>
<path d="M0 0v100h100V0zM200 0v100h100V0z" fill="red"/>
<path d="M0 0v100h100V0zM200 0v100h100V0zM0 200h100v100H0z" fill="blue"/>
</svg>