watermarkerjs
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

watermarkerjs

一个可以给页面添加水印的插件,提供两种显示方式svg和canvas

Usage

import Watermark from 'watermarkerjs'
 Watermark('水印', {
     color: string,
      fontSize: number,
      fontWeight: string,
      fontFamily: string,
      gap: number,
      inline: boolean,
      invisibleColor: string,
      rotate: number,
      selector: string,
      type: WatermarkType,
  })

返回一个实例对象

实例方法
freeze          冻结防止修改样式
destroy         实例销毁

Readme

Keywords

none

Package Sidebar

Install

npm i watermarkerjs

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

37.4 kB

Total Files

14

Last publish

Collaborators

  • byteluck-fe