- key
Unique identifier for the plugin (string, default: NULL).
- width
Width of a single watermark (number, default: 200).
- height
Height of a single watermark (number, default: 100).
- opacity
Opacity of the watermark (number, default: 0.2).
- rotate
Rotation angle of the watermark in radians (number, default: pi/12).
- imageURL
Image watermark URL, higher priority than text watermark (string, default: NULL).
- text
Watermark text content (string, default: NULL).
- textFill
Color of the text watermark (string, default: "#000").
- textFontSize
Font size of the text watermark (number, default: 16).
- textFontFamily
Font of the text watermark (string, default: NULL).
- textFontWeight
Font weight of the text watermark (string, default: NULL).
- textFontVariant
Font variant of the text watermark (string, default: NULL).
- textAlign
Text alignment of the watermark (string, default: "center").
- textBaseline
Baseline alignment of the text watermark (string, default: "middle").
- backgroundRepeat
Repeat mode of the watermark (string, default: "repeat").
- backgroundAttachment
Background attachment behavior of the watermark (string, default: NULL).
- backgroundBlendMode
Background blend mode of the watermark (string, default: NULL).
- backgroundClip
Background clip of the watermark (string, default: NULL).
- backgroundColor
Background color of the watermark (string, default: NULL).
- backgroundImage
Background image of the watermark (string, default: NULL).
- backgroundOrigin
Background origin of the watermark (string, default: NULL).
- backgroundPosition
Background position of the watermark (string, default: NULL).
- backgroundPositionX
Horizontal position of the watermark background (string, default: NULL).
- backgroundPositionY
Vertical position of the watermark background (string, default: NULL).
- backgroundSize
Background size of the watermark (string, default: NULL).
- ...
Extra parameters.
See https://g6.antv.antgroup.com/en/manual/plugin/watermark.