chore: fix lint
Signed-off-by: Craig Kochis <cjkochis@gmail.com>
This commit is contained in:
parent
30f46ab34e
commit
d7432664ca
1 changed files with 11 additions and 2 deletions
|
|
@ -784,9 +784,18 @@ export const serve_rendered = {
|
||||||
|
|
||||||
const padding = 6;
|
const padding = 6;
|
||||||
ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';
|
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.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() });
|
composite_array.push({ input: canvas.toBuffer() });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue