SVG custom edits for legends