salary
qsh 5 months ago
parent ed0727fa43
commit 31f028d8d8
  1. 4
      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)

Loading…
Cancel
Save