1.0.4 • Published 1 year ago

water-mark-xizaozao v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 // 水印的高度 非必填
   }

npm.io

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago