chore: code formatting

This commit is contained in:
github-actions[bot]
2022-04-23 23:18:43 +00:00
parent 73cd43c18f
commit 4c98629bbc
130 changed files with 1839 additions and 1788 deletions

View File

@@ -11,11 +11,11 @@ const browser = await puppeteer.launch({
const page = await browser.newPage()
//Select markdown example and take screenshoot
await page.setViewport({ width: 600, height: 600 })
await page.setViewport({width: 600, height: 600})
await page.goto("https://github.com/lowlighter/metrics/blob/examples/metrics.markdown.md")
const clip = await page.evaluate(() => {
const { x, y, width, height } = document.querySelector("#readme").getBoundingClientRect()
return { x, y, width, height }
const {x, y, width, height} = document.querySelector("#readme").getBoundingClientRect()
return {x, y, width, height}
})
await page.screenshot({ type: "png", path: "/tmp/metrics.markdown.png", clip, omitBackground: true })
await page.screenshot({type: "png", path: "/tmp/metrics.markdown.png", clip, omitBackground: true})
await browser.close()