From d7432664ca59aa41252d895fe9fec59555d77bca Mon Sep 17 00:00:00 2001 From: Craig Kochis Date: Wed, 4 Oct 2023 23:18:19 -0400 Subject: [PATCH] chore: fix lint Signed-off-by: Craig Kochis --- src/serve_rendered.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/serve_rendered.js b/src/serve_rendered.js index 456605d..3e18ae9 100644 --- a/src/serve_rendered.js +++ b/src/serve_rendered.js @@ -784,9 +784,18 @@ export const serve_rendered = { const padding = 6; ctx.fillStyle = 'rgba(255, 255, 255, 0.8)'; - ctx.fillRect(width - textWidth - padding, height - textHeight - padding, textWidth + padding, textHeight + padding); + ctx.fillRect( + width - textWidth - padding, + height - textHeight - padding, + textWidth + padding, + textHeight + padding, + ); ctx.fillStyle = 'rgba(0,0,0,.8)'; - ctx.fillText(item.attributionText, width - textWidth - (padding / 2), height - textHeight + 8); + ctx.fillText( + item.attributionText, + width - textWidth - padding / 2, + height - textHeight + 8, + ); composite_array.push({ input: canvas.toBuffer() }); }