Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acrodata/watermark

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acrodata/watermark

Add watermark to your page

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-77.42%
Maintainers
0
Weekly downloads
 
Created
Source

Watermark

npm license

Add watermark to your page.

Documentation | Playground

Installation

npm install @acrodata/watermark --save

Usage

import { Component } from '@angular/core';
import { WatermarkDirective, WatermarkOptions } from '@acrodata/watermark';

@Component({
  selector: 'your-app',
  template: `
    <div watermark [watermarkOptions]="options">
      <p>...</p>
    </div>
  `,
  standalone: true,
  imports: [WatermarkDirective],
})
export class YourAppComponent {
  options: WatermarkOptions = {
    text: '...',
  };
}

API

Inputs

NameTypeDefaultDescription
[options]WatermarkOptions{}See WatermarkOptions
[container]HTMLElement | string | nullundefinedSee WatermarkOptions['container']
[secure]booleantrueSee WatermarkOptions['secure']
[zIndex]number9999See WatermarkOptions['zIndex']
[scrollHeight]string |numberundefinedSee WatermarkOptions['scrollHeight']

WatermarkOptions

NameTypeDefaultDescription
containerHTMLElement | string | nullundefinedContainer of the watermark
securebooleantrueWhether prevent the watermark being removed
imagestringundefinedImage source of the watermark, it's recommended to use 2x or 3x image
textstring | string[]undefinedText of the watermark and dispaly multiple lines with using array
blindTextstringundefinedText of the blind-watermark
blindFontSizestring | number16Font size of the blind-watermark
blindOpacityboolean0.005Opacity of the blind-watermark
repeat'none' | 'normal' | 'multiply'multiplySpecify how watermarks are repeated
positionstringundefinedSpecify background-position of the watermark
zIndexnumber9999Specify z-index of the watermark
scrollHeightnumber | stringundefinedSpecify the height of watermark in a scroll container
gapXnumber100Horizontal gap of watermark contents
gapYnumber100Vertical gap of watermark contents
offsetXnumber0Horizontal offset of the watermark content
offsetYnumber0Vertical offset of the watermark content
widthnumber120Width of the watermark content
heightnumber60Height of the watermark content
opacitynumber0.15Opacity of the watermark
rotatenumber-24Rotation degree of the watermark content
fontSizenumber16Font size of the text-watermark
fontWeightstring | number400Font weight of the text-watermark
fontStyle'normal' | 'italic'normalFont style of the text-watermark
fontVariant'normal' | 'small-capsnormalFont variant of the text-watermark
fontColorstring#000Font color of the text-watermark
fontFamilystringsans-serifFont family of the text-watermark
textAlignCanvasTextAligncenterText alignment of the text-watermark
textBaselineCanvasTextBaselinealphabeticText alignment of the text-watermark

License

MIT

Keywords

FAQs

Package last updated on 16 Nov 2024

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