Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@acrodata/watermark
Advanced tools
Add watermark to your page.
npm install @acrodata/watermark --save
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: '...',
};
}
Name | Type | Default | Description |
---|---|---|---|
[options] | WatermarkOptions | {} | See WatermarkOptions |
[container] | HTMLElement | string | null | undefined | See WatermarkOptions['container'] |
[secure] | boolean | true | See WatermarkOptions['secure'] |
[zIndex] | number | 9999 | See WatermarkOptions['zIndex'] |
[scrollHeight] | string |number | undefined | See WatermarkOptions['scrollHeight'] |
Name | Type | Default | Description |
---|---|---|---|
container | HTMLElement | string | null | undefined | Container of the watermark |
secure | boolean | true | Whether prevent the watermark being removed |
image | string | undefined | Image source of the watermark, it's recommended to use 2x or 3x image |
text | string | string[] | undefined | Text of the watermark and dispaly multiple lines with using array |
blindText | string | undefined | Text of the blind-watermark |
blindFontSize | string | number | 16 | Font size of the blind-watermark |
blindOpacity | boolean | 0.005 | Opacity of the blind-watermark |
repeat | 'none' | 'normal' | 'multiply' | multiply | Specify how watermarks are repeated |
position | string | undefined | Specify background-position of the watermark |
zIndex | number | 9999 | Specify z-index of the watermark |
scrollHeight | number | string | undefined | Specify the height of watermark in a scroll container |
gapX | number | 100 | Horizontal gap of watermark contents |
gapY | number | 100 | Vertical gap of watermark contents |
offsetX | number | 0 | Horizontal offset of the watermark content |
offsetY | number | 0 | Vertical offset of the watermark content |
width | number | 120 | Width of the watermark content |
height | number | 60 | Height of the watermark content |
opacity | number | 0.15 | Opacity of the watermark |
rotate | number | -24 | Rotation degree of the watermark content |
fontSize | number | 16 | Font size of the text-watermark |
fontWeight | string | number | 400 | Font weight of the text-watermark |
fontStyle | 'normal' | 'italic' | normal | Font style of the text-watermark |
fontVariant | 'normal' | 'small-caps | normal | Font variant of the text-watermark |
fontColor | string | #000 | Font color of the text-watermark |
fontFamily | string | sans-serif | Font family of the text-watermark |
textAlign | CanvasTextAlign | center | Text alignment of the text-watermark |
textBaseline | CanvasTextBaseline | alphabetic | Text alignment of the text-watermark |
MIT
FAQs
Add watermark to your page
We found that @acrodata/watermark demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.