16.0.0 • Published 11 months ago

ngx-watermark v16.0.0

Weekly downloads
34
License
MIT
Repository
github
Last release
11 months ago

Table of contents

Versions

Angularngx-watermark
>=14.0.0 <15.0.0v14.x
>=13.0.0 <14.0.0v13.x
>=12.0.0 <13.0.0v12.x
>=11.0.0 <12.0.0v11.x
>=10.0.0 <11.0.0v2.x
>=6.0.0 <10.0.0v1.x

Features

  • Watermark Text Multiple Line
  • Customize font-family with Web Safe Font
  • Allow to use your own web fonts
  • Load web fonts via fontfaceobserver lib

Installation instructions

Install ngx-watermark from npm:

npm install ngx-watermark fontfaceobserver --save

Add needed package to NgModule imports:

import { NgxWatermarkModule } from 'ngx-watermark';

@NgModule({
  ...
  imports: [NgxWatermarkModule,...]
  ...
})

Add ngxWatermark to your HTML element:

<section class="jumbotron" [ngxWatermark]="options">
    ...
</section>

Demo

demo project

Options

OptionTypeDefaultRequiredDescription
textstring''noYour text for create watermark. Seperate line with \n
widthnumber300noSet width for watermark.
heightnumber100noSet height for watermark.
fontFamilystringArialnoSet font-family for text. Can set your custom web fonts.
fontSizestring18pxnoSet font size for text.
fontWeight'normal' or 'bold' or 'bolder' or 'lighter' or 100 or 200 or 300 or 400 or 500 or 600 or 700 or 800 or 900normalnoSet font weight for text.
colorstring#999999noSet font color for text by HEX color.
alphanumber0.5noSet opacity for watermark.
degreenumber-45noSet degree for watermark.
lineHeightnumber24noSet line height for text.
textAlign'start' or 'end' or 'center' or 'left' or 'right'centernoSet text align for text.
textBaseline'alphabetic' or 'top' or 'hanging' or 'middle' or 'ideographic' or 'bottom'middlenoSet text base line for text.
textAlign'start' or 'end' or 'center' or 'left' or 'right'centernoSet text align for text.
backgroundRepeat'repeat' or 'repeat-x' or 'repeat-y' or 'no-repeat' or 'space' or 'round' or 'initial'repeatnoSet background-repeat style for watermark.
backgroundPositionstring0% 0%noSet background-position style for watermark. standard on MDN Web docs
16.0.0

11 months ago

15.0.0

1 year ago

14.0.0

2 years ago

13.0.0

2 years ago

13.0.1

2 years ago

12.0.0

3 years ago

11.0.0

3 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-rc0

4 years ago