mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-26 03:20:54 +09:00
fix: padding指定時のtop座標計算を修正
This commit is contained in:
parent
9599fb73ad
commit
3deed56363
@ -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 New Issue
Block a user