1.0.1 • Published 6 years ago

@rrc/watermark v1.0.1

Weekly downloads
1
License
-
Repository
gitlab
Last release
6 years ago

安全水印

使用

yarn add @rrc/watermark -S
npm i @rrc/watermark -S
import Watermark from '@rrc/watermark'
new Watermark().init({ text: '人人车' })

js 引入

<script src="文件路径或者cdn 路径/index.min.js"></script>
<script>
  $(function(){
    new RrcWatermark().init({ text: '人人车' })
  })
</script>

配置

  {
    text: 'www.renrenche.com', // 水印文本
    font: '20px Times New Roman', // 字体
    rotateDegree: 30 * Math.PI / 180, // 旋转角度
    width: 140, // 宽
    height: 100, // 高
    // 样式
    style: {
      width: '100%',
      height: '100%',
      top: 0,
      left: 0,
      position: 'fixed',
      'z-index': 1000
    }
  }
1.0.1

6 years ago

1.0.0

6 years ago