1.3.3 • Published 2 years ago

watermark-html v1.3.3

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

watermark-html

A simple library to draw watermark on HTML element with multiple line.

Installation

$ npm install watermark-html

Usage

Import

ES6 module

import Watermark from 'watermark-html';

CommonJS

let Watermark = require('watermark-html');

Setup

Watermark.set({
	title: 'some text',
	subtitle: 'another text'
})
ParamTypeDescriptionExtra
title{string}main text
subtitle{string}second text
width{number}stage widthoptional,default 240
height{number}stage heightoptional,default 180
angle{number}text rotate angleoptional,default -20,value range: -180, 180
fontSize{string}text font sizeoptional,default '22px'
alpha{number}text opcityoptional,default 0.2,value range: 0.01, 1

Remove

Watermark.remove();
1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago