|
@@ -80,6 +80,7 @@ export async function addWatermark(
|
|
|
//最大宽/高限制
|
|
|
const fontSize = store.config.watermark.fontSize || 30;
|
|
|
// const maxX = imageWidth / 2 - x * 2;
|
|
|
+ const saveX = x;
|
|
|
let dynamicX = x;
|
|
|
const maxStartX = imageWidth - fontSize * 0.7 * 5;
|
|
|
const nextLineStartX = x + fontSize * 0.7 * 4;
|
|
@@ -132,6 +133,7 @@ export async function addWatermark(
|
|
|
}, 0) / 100;
|
|
|
drawText(x, (y += height), `${mainNumber} | ${mainTotalScore}`);
|
|
|
if (store.pageInputs["/image-download"].showSubScore) {
|
|
|
+ dynamicX = saveX;
|
|
|
drawText((dynamicX += fontSize * 0.7 * 5), y, ":");
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
const v = arr[i];
|