From 31f028d8d83132e8cefecd72121f9f31fe5010d4 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Thu, 27 Jun 2024 17:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/web/useWatermark.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/web/useWatermark.ts b/src/hooks/web/useWatermark.ts index 4a31359..07cd09c 100644 --- a/src/hooks/web/useWatermark.ts +++ b/src/hooks/web/useWatermark.ts @@ -15,14 +15,14 @@ export function useWatermark(appendEl: HTMLElement | null = document.body) { clear() const can = document.createElement('canvas') - can.width = 300 + can.width = 500 can.height = 240 const cans = can.getContext('2d') if (cans) { cans.rotate((-20 * Math.PI) / 120) cans.font = '15px Vedana' - cans.fillStyle = 'rgba(0, 0, 0, 0.15)' + cans.fillStyle = 'rgba(0, 0, 0, 0.05)' cans.textAlign = 'left' cans.textBaseline = 'middle' cans.fillText(str, can.width / 20, can.height)