TextBackgroundStyle
此内容尚不支持你的语言。
Defined in: index.ts:400
background style for text watermark
Example
Section titled “Example”textBackgroundStyle: { paddingX: 10, paddingY: 10, type: TextBackgroundType.stretchX, color: '#aacc22'}// ortextBackgroundStyle: { padding: '10% 50 15%', color: '#aacc22'}// ortextBackgroundStyle: { padding: 10, color: '#aacc22', cornerRadius: { topLeft: { x: '10%', y: 10, }, topRight: { x: 10, y: 10, }, }}Extends
Section titled “Extends”Padding
Properties
Section titled “Properties”color:
string
Defined in: index.ts:413
background color
Example
Section titled “Example”color: '#aacc22'cornerRadius?
Section titled “cornerRadius?”
optionalcornerRadius?:CornerRadius
Defined in: index.ts:437
background corner radius
Example
Section titled “Example”cornerRadius: { topLeft: { x: '10%', y: 10, }, topRight: { x: 10, y: 10, }, bottomLeft: { x: 10, y: 10, }, bottomRight: { x: '10%', y: 10, },}padding?
Section titled “padding?”
optionalpadding?:string|number
Defined in: index.ts:83
padding for text background
Example
Section titled “Example”padding: 10// orpadding: '10%'// orpadding: '10% 20%'// orpadding: '10% 20% 30%'// orpadding: '10% 20% 30% 40%'// orpadding: '10 20% 30 40%'// orpadding: '10 20 30'Inherited from
Section titled “Inherited from”Padding.padding
paddingBottom?
Section titled “paddingBottom?”
optionalpaddingBottom?:string|number
Defined in: index.ts:115
padding bottom for text background
Example
Section titled “Example”paddingBottom: 10// orpaddingBottom: '10%'Inherited from
Section titled “Inherited from”Padding.paddingBottom
paddingHorizontal?
Section titled “paddingHorizontal?”
optionalpaddingHorizontal?:string|number
Defined in: index.ts:123
padding left and right (horizontal) for text background
Example
Section titled “Example”paddingHorizontal: 10// orpaddingHorizontal: '10%'Inherited from
Section titled “Inherited from”Padding.paddingHorizontal
paddingLeft?
Section titled “paddingLeft?”
optionalpaddingLeft?:string|number
Defined in: index.ts:91
padding left for text background
Example
Section titled “Example”paddingLeft: 10// orpaddingLeft: '10%'Inherited from
Section titled “Inherited from”Padding.paddingLeft
paddingRight?
Section titled “paddingRight?”
optionalpaddingRight?:string|number
Defined in: index.ts:99
padding right for text background
Example
Section titled “Example”paddingRight: 10// orpaddingRight: '10%'Inherited from
Section titled “Inherited from”Padding.paddingRight
paddingTop?
Section titled “paddingTop?”
optionalpaddingTop?:string|number
Defined in: index.ts:107
padding top for text background
Example
Section titled “Example”paddingTop: 10// orpaddingTop: '10%'Inherited from
Section titled “Inherited from”Padding.paddingTop
paddingVertical?
Section titled “paddingVertical?”
optionalpaddingVertical?:string|number
Defined in: index.ts:131
padding top and bottom (vertical) for text background
Example
Section titled “Example”paddingVertical: 10// orpaddingVertical: '10%'Inherited from
Section titled “Inherited from”Padding.paddingVertical
paddingX?
Section titled “paddingX?”
optionalpaddingX?:string|number
Defined in: index.ts:140
padding x, alias of paddingHorizontal
Example
Section titled “Example”paddingX: 10// orpaddingX: '10%'Inherited from
Section titled “Inherited from”Padding.paddingX
paddingY?
Section titled “paddingY?”
optionalpaddingY?:string|number
Defined in: index.ts:149
padding y, alias of paddingVertical
Example
Section titled “Example”paddingY: 10// orpaddingY: '10%'Inherited from
Section titled “Inherited from”Padding.paddingY
optionaltype?:TextBackgroundType|null
Defined in: index.ts:407
background type
Default Value
Section titled “Default Value”TextBackgroundType.stretchXExample
Section titled “Example”type: TextBackgroundType.stretchX