show-watermark
<basic.show-watermark>
provider显示水印。
Examples
Basic
Mutiple Content
custom style
Image
Custom container
Definition
Parameters
# | Name | Description | Type |
---|---|---|---|
1 | param_1 | WatermarkProps |
Returns
void
Type references
WatermarkProps
Name | Type | Required | Description |
---|---|---|---|
container | HTMLElement | string | ||
content | string | string[] | ||
zIndex | number | ||
rotate | number | ||
width | number | ||
height | number | ||
image | string | ||
font | { color?: CanvasFillStrokeStyles["fillStyle"]; fontSize?: number | string; fontWeight?: "normal" | "light" | "weight" | number; fontStyle?: "none" | "normal" | "italic" | "oblique"; fontFamily?: string; textAlign?: CanvasTextAlign } | ||
style | React.CSSProperties | ||
gap | [number, number] | ||
offset | [number, number] |