PositionOptions
Defined in: index.ts:175
PositionOptions for text watermark and image watermark. When position is set, X and Y are treated as offsets from that anchor.
Example
Section titled “Example”position: { X: 10, Y: 10,}// orposition: { position: Position.topLeft,}// orposition: { position: Position.topRight, X: 60, // 60px from the right edge Y: 60, // 60px from the top edge}// orposition: { X: '10%', // relative to the width of the background image Y: '10%', // relative to the height of the background image}Properties
Section titled “Properties”edgeInset?
Section titled “edgeInset?”
optionaledgeInset?:string|number
Defined in: index.ts:190
Fallback distance from the selected anchor edges when the matching X or
Y value is omitted. Named anchors use the compatibility default 20.
Without a named anchor, set this value when omitted axes must behave the
same on every platform; otherwise legacy text/image defaults are preserved.
Percentages are resolved against the background image.
Example
Section titled “Example”edgeInset: 0// oredgeInset: '5%'position?
Section titled “position?”
optionalposition?:Position
Defined in: index.ts:178
optionalX?:string|number
Defined in: index.ts:176
optionalY?:string|number
Defined in: index.ts:177