mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
fix: padding指定時のtop座標計算を修正
This commit is contained in:
parent
9599fb73ad
commit
3deed56363
1 changed files with 2 additions and 2 deletions
|
@ -162,11 +162,11 @@ export async function applyWatermark(img: string | Blob, el: HTMLCanvasElement,
|
|||
case 'center':
|
||||
case 'left':
|
||||
case 'right':
|
||||
return (canvas.height - height) / 2 + (config.padding ? config.padding.top ?? 0 : 0);
|
||||
return (canvas.height - height) / 2;
|
||||
case 'top':
|
||||
case 'top-left':
|
||||
case 'top-right':
|
||||
return rotateY;
|
||||
return rotateY + (config.padding ? config.padding.top ?? 0 : 0);
|
||||
case 'bottom':
|
||||
case 'bottom-left':
|
||||
case 'bottom-right':
|
||||
|
|
Loading…
Reference in a new issue