|
@@ -82,7 +82,7 @@ export async function addWatermark(
|
|
|
// const maxX = imageWidth / 2 - x * 2;
|
|
|
let dynamicX = x;
|
|
|
const maxStartX = imageWidth - fontSize * 0.7 * 5;
|
|
|
- const nextLineStartX = x + fontSize * 0.7 * 2;
|
|
|
+ const nextLineStartX = x + fontSize * 0.7 * 4;
|
|
|
const height = fontSize + 10;
|
|
|
//计算总分
|
|
|
const totalScore =
|
|
@@ -141,7 +141,7 @@ export async function addWatermark(
|
|
|
y += height;
|
|
|
}
|
|
|
drawText(
|
|
|
- (dynamicX += (v.score + joinStr).length * fontSize * 0.7),
|
|
|
+ (dynamicX += (v.score + " ").length * fontSize * 0.7),
|
|
|
y,
|
|
|
v.score + joinStr
|
|
|
);
|