New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-watermark

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-watermark

Display watermark on html element with multiple line

  • 16.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ngx-watermark

Simple watermark with multiple line of text for Angular

GitHub license

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

Keywords

FAQs

Package last updated on 13 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc