Fix SVG display issue
This commit is contained in:
@@ -66,11 +66,13 @@
|
|||||||
if ((conf.settings?.optimize)&&(!q.raw)) {
|
if ((conf.settings?.optimize)&&(!q.raw)) {
|
||||||
console.debug(`metrics/compute/${login} > optimize`)
|
console.debug(`metrics/compute/${login} > optimize`)
|
||||||
const {data:optimized} = await SVGO.optimize(rendered, {multipass:true, plugins:SVGO.extendDefaultPlugins([
|
const {data:optimized} = await SVGO.optimize(rendered, {multipass:true, plugins:SVGO.extendDefaultPlugins([
|
||||||
{name:"cleanupAttrs"},
|
//Additional cleanup
|
||||||
{name:"inlineStyles", active:false},
|
|
||||||
{name:"cleanupListOfValues"},
|
{name:"cleanupListOfValues"},
|
||||||
{name:"removeRasterImages"},
|
{name:"removeRasterImages"},
|
||||||
{name:"removeScriptElement"},
|
{name:"removeScriptElement"},
|
||||||
|
//Force CSS style consistency
|
||||||
|
{name:"inlineStyles", active:false},
|
||||||
|
{name:"removeViewBox", active:false},
|
||||||
])})
|
])})
|
||||||
rendered = optimized
|
rendered = optimized
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
"debug": false, "//": "Debug logs",
|
"debug": false, "//": "Debug logs",
|
||||||
"mocked": false, "//": "Use mocked data instead of live APIs (use 'force' to use mocked token even if real token are defined)",
|
"mocked": false, "//": "Use mocked data instead of live APIs (use 'force' to use mocked token even if real token are defined)",
|
||||||
"repositories": 100, "//": "Number of repositories to use",
|
"repositories": 100, "//": "Number of repositories to use",
|
||||||
"padding": ["6%", "12%"], "//": "Image padding (default)",
|
"padding": ["6%", "15%"], "//": "Image padding (default)",
|
||||||
"community": {
|
"community": {
|
||||||
"templates": [], "//": "Additional community templates to setup"
|
"templates": [], "//": "Additional community templates to setup"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user