Merge pull request #187 from nthykier/fix-gh-186-shorten-id-recycle-used-ids
Enable shortenIDs to recycle existing IDs
This commit is contained in:
commit
4fe2655f86
3 changed files with 141 additions and 46 deletions
11
unittests/shorten-ids-stable-output.svg
Normal file
11
unittests/shorten-ids-stable-output.svg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<rect id="a" width="80" height="50" fill="red"/>
|
||||
<rect id="long_id" width="80" height="50" fill="blue"/>
|
||||
</defs>
|
||||
<use xlink:href="#a"/>
|
||||
<use xlink:href="#long_id"/>
|
||||
<use xlink:href="#long_id"/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 341 B |
Loading…
Add table
Add a link
Reference in a new issue