Fix habits and stargazers plugin, add repositories_affiliations options and metadata updates (#117)

This commit is contained in:
Simon Lecoq
2021-02-08 20:35:39 +01:00
committed by GitHub
parent cd83e85146
commit 3f0b9f96a6
31 changed files with 471 additions and 490 deletions

View File

@@ -117,7 +117,9 @@
console.debug(`metrics/svgresize > padding width*${padding.width}, height*${padding.height}`)
//Render through browser and resize height
const page = await svgresize.browser.newPage()
await page.setContent(svg, {waitUntil:"load"})
await page.setContent(svg, {waitUntil:["load", "domcontentloaded", "networkidle2"]})
await page.addStyleTag({content:"body { margin: 0; padding: 0; }"})
await wait(1)
let mime = "image/svg+xml"
let {resized, width, height} = await page.evaluate(async padding => {
//Disable animations