0.0.3 • Published 3 years ago

gavin-watermark v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

watermark

给你的页面添加水印

Install

npm install --save gavin-watermark // or yarn add -S gavin-watermark

Usage

import watermark from 'gavin-watermark';

watermark(
  {
    content: 'hi, gavin',
  },
  //如果想要将水印插入到某个div,默认是body
  document.getElementById('someId'),
);

Options

option默认值
content水印字样""
width水印宽度160
height水印长度90
x水印起始位置 x 轴坐标20
y水印起始位置 Y 轴坐标20
rows水印行数10
cols水印列数10
colSpace水印 x 轴间隔0
rowSpace水印 y 轴间隔50
color水印字体颜色rgba(207.0/255.0, 207.0/255.0, 207.0/255.0, 1)
opacity水印透明度0.2
fontSize水印字体大小16px
fontFamily水印字体''
rotate水印倾斜度数20
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago