Interface TextOptions

Description

Text options for text watermark

Example

text: 'hello world',
positionOptions: {
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: 45,
strikeThrough: true,
textAlign: 'left',
italic: true,
bold: true,
rotate: 45
}

Hierarchy

  • TextOptions

Properties

position?: PositionOptions

Description

text position options

Example

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

Deprecated

since 1.2.4 use position instead

Description

text position options

Example

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

Description

text style

Example

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: 45,
bold: true,
rotate: 45
}
text: string

Description

text content

Example

text: 'hello world'

Generated using TypeDoc