jiangping
2024-05-15 f5ea01314df6f552e8b15b1af283a7b278610ab6
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' // 设置字体