IMCAFS

Home

yanxintang/watermark: demo

Posted by lipsius at 2020-03-13
all

Watermark is a simple and quick library to draw watermark on HTML element. Installatin API constructor([el][, options]) Arguments: el {String | HTMLElement}[''] selector or html element options {Object} [{...}] options for watermark textArray {Array} [['example']] text list to display` fontSize {Number} [26] font size` fontFamily {String} ['serif'] font family` padding {Number} [25] watermark wrapper padding with text` lineHeight {Number} [-1] text line height` rotate {Number} [0] the angle of rotate, must in range of (-PI/2, PI/2) fontScale {Number} [0.5] Half-width and full-width fonts width ratio color {String} ['#eeeeee'] text color auto {Boolean} [true] whether add background to mounted element automatically observe {Boolean} [true] whether observe background of mounted element

el {String | HTMLElement}[''] selector or html element options {Object} [{...}] options for watermark textArray {Array} [['example']] text list to display` fontSize {Number} [26] font size` fontFamily {String} ['serif'] font family` padding {Number} [25] watermark wrapper padding with text` lineHeight {Number} [-1] text line height` rotate {Number} [0] the angle of rotate, must in range of (-PI/2, PI/2) fontScale {Number} [0.5] Half-width and full-width fonts width ratio color {String} ['#eeeeee'] text color auto {Boolean} [true] whether add background to mounted element automatically observe {Boolean} [true] whether observe background of mounted element