mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Loosed fixes
This commit is contained in:
@ -132,7 +132,6 @@ exports.fn = function(data, params) {
|
||||
IDs.get(key).attr('id').value = currentIDstring;
|
||||
|
||||
references.forEach(function(attr) {
|
||||
// console.log(key)
|
||||
attr.value = attr.value
|
||||
.replace('#' + key, '#' + currentIDstring)
|
||||
.replace(key + '.', currentIDstring + '.');
|
||||
|
@ -8,13 +8,12 @@
|
||||
<g id="plus"/>
|
||||
<g id="line-circle">
|
||||
<use x:href="#mid-line"/>
|
||||
<use x:href="#circle"/>
|
||||
</g>
|
||||
<g id="circle"/>
|
||||
</defs>
|
||||
<path d="M0 0" id="a"/>
|
||||
<use x:href="#a" x="50" y="50"/>
|
||||
<use x:href="#line-plus"/>
|
||||
<use x:href="#line-circle"/>
|
||||
</svg>
|
||||
|
||||
@@@
|
||||
@ -22,18 +21,17 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:x="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<g id="a"/>
|
||||
<g id="e">
|
||||
<g id="d">
|
||||
<use x:href="#a"/>
|
||||
<use x:href="#b"/>
|
||||
</g>
|
||||
<g id="b"/>
|
||||
<g>
|
||||
<g id="e">
|
||||
<use x:href="#a"/>
|
||||
<use x:href="#c"/>
|
||||
</g>
|
||||
<g id="c"/>
|
||||
</defs>
|
||||
<path d="M0 0" id="d"/>
|
||||
<use x:href="#d" x="50" y="50"/>
|
||||
<path d="M0 0" id="c"/>
|
||||
<use x:href="#c" x="50" y="50"/>
|
||||
<use x:href="#d"/>
|
||||
<use x:href="#e"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 905 B |
Reference in New Issue
Block a user