fix: fix circle in svg (#1621)

fixes #1616
This commit is contained in:
Nolan Lawson 2019-10-31 23:01:44 -07:00 committed by GitHub
parent 4ecb04588c
commit da42c8b4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ async function readSvg (svg) {
const content = await readFile(filepath, 'utf8') const content = await readFile(filepath, 'utf8')
const optimized = (await svgo.optimize(content)) const optimized = (await svgo.optimize(content))
const $optimized = $(optimized.data) const $optimized = $(optimized.data)
const $path = $optimized.find('path').removeAttr('fill') const $path = $optimized.find('path, circle').removeAttr('fill')
const $symbol = $('<symbol></symbol>') const $symbol = $('<symbol></symbol>')
.attr('id', svg.id) .attr('id', svg.id)
.attr('viewBox', $optimized.attr('viewBox')) .attr('viewBox', $optimized.attr('viewBox'))