k94314517
2024-06-27 17f3de037c0e60898ff8cfee09d071be6348c5e1
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' // 设置字体