water-mark-xizaozao

1.0.4 • Public • Published

Usage

Install

npm i water-mark-xizaozao -S
or
yarn add water-mark-xizaozao

Example

import { watermark } from 'water-mark-xizaozao'
    <!-- 默认 -->
    watermark.set({
      textArr:['123','456'], 
      positionX:15,
      positionY:65,
      rowSpacing:25,
      font:'17px Vedana',
      colorTransparency:'rgba(200, 200, 200, 0.30)',
      width: 250,
      height: 150
    })

Options

    {
      textArr:['123','456'], // 水印内容 必填
      positionX:15,   // 开始位置X 非必填
      positionY:65,   // 开始位置Y 非必填
      rowSpacing:25, // 两个水印之间的间距 非必填
      font:'17px Vedana', // 字体 非必填
      colorTransparency:'rgba(200, 200, 200, 0.30)', // 颜色透明度 非必填
      width: 250, // 水印的宽度 非必填
      height: 150 // 水印的高度 非必填
   }

Package Sidebar

Install

npm i water-mark-xizaozao

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

4.66 kB

Total Files

3

Last publish

Collaborators

  • xizaozao