Getting Started
Installing
Using npm:
bash
$ npm install watermark-js-plus
Using yarn:
bash
$ yarn add watermark-js-plus
Usage
- Import watermark plugin
ts
import { Watermark } from 'watermark-js-plus'
- instantiation
ts
const watermark = new Watermark({
content: 'hello my watermark',
width: 200,
height: 200,
onSuccess: () => {
// success callback
}
})
- Add a watermark to the web page
ts
watermark.create()