jiangping
2025-05-28 ffa268a0585b4a1f7dac573c2c443bae97ac9a47
company/src/utils/waterMark.js
@@ -16,8 +16,8 @@
    container.style.position = 'relative' // 设置布局为相对布局
    // 创建canvas元素(先制作一块背景图)
    const can = document.createElement('canvas')
    can.width = 300 // 设置每一块的宽度
    can.height = 260 // 高度
    can.width = 320 // 设置每一块的宽度
    can.height = 290 // 高度
    const cans = can.getContext('2d') // 获取canvas画布
    cans.rotate(-20 * Math.PI / 180) // 逆时针旋转π/9
    cans.font = '24px Vedana' // 设置字体