Skip to content
Menu
Auto
English

TextOptions

Defined in: index.ts:475

Text options for text watermark

text: 'hello world',
position: {
X: 10,
Y: 10,
// or
// position: Position.center
},
style: {
color: '#aacc22',
fontName: 'Arial',
fontSize: 12,
shadowStyle: {
dx: 10,
dy: 10,
radius: 10,
color: '#aacc22'
},
textBackgroundStyle: {
paddingX: 10,
paddingY: 10,
type: TextBackgroundType.stretchX,
color: '#aacc22'
},
underline: true,
skewX: -0.25,
strikeThrough: true,
textAlign: 'left',
italic: true,
bold: true,
rotate: 45
}

optional position?: PositionOptions

Defined in: index.ts:505

text position options

position: {
X: 10,
Y: 10,
// or
// position: Position.center
}

optional positionOptions?: PositionOptions

Defined in: index.ts:493

positionOptions: {
X: 10,
Y: 10,
// or
// position: Position.center
}

optional style?: TextStyle

Defined in: index.ts:536

text style

style: {
color: '#aacc22',
fontName: 'Arial',
fontSize: 12,
shadowStyle: {
dx: 10,
dy: 10,
radius: 10,
color: '#aacc22'
},
textBackgroundStyle: {
paddingX: 10,
paddingY: 10,
type: TextBackgroundType.stretchX,
color: '#aacc22'
},
underline: true,
strikeThrough: true,
textAlign: 'left',
italic: true,
// or
// skewX: -0.25,
bold: true,
rotate: 45
}

text: string

Defined in: index.ts:481

text content

text: 'hello world'