Class: TextSVGOptions
Plugins.TextSVGOptions
Implements
Constructors
constructor
• new TextSVGOptions()
Properties
text
• text: string = 'Custom Text'
Implementation of
fontSize
• fontSize: number = 100
Implementation of
width
• width: number = 1024
Implementation of
height
• height: number = 1024
Implementation of
xOffset
• xOffset: number = 0
Implementation of
yOffset
• yOffset: number = 0
Implementation of
boxWidth
• boxWidth: number = 1024
Implementation of
boxHeight
• boxHeight: number = 1024
Implementation of
textAnchor
• textAnchor: "end" | "start" | "middle" = 'middle'
Implementation of
fontFamily
• fontFamily: string = ''
Implementation of
fontPath
• fontPath: string = ''
Implementation of
maskText
• maskText: boolean = false
Implementation of
innerShadow
• innerShadow: boolean = false
Implementation of
textColor
• textColor: string = '#000000'
Implementation of
bgFillColor
• bgFillColor: string = '#ffffff'
Implementation of
svgBackground
• svgBackground: string = '#ffffff'
Implementation of
Methods
onChange
▸ onChange(): void
Returns
void
set
▸ set(ops): void
Parameters
| Name | Type |
|---|---|
ops | ITextSVGOptions |
Returns
void
reset
▸ reset(): void
Returns
void
toJSON
▸ toJSON(): Object
Returns
Object
| Name | Type |
|---|---|
text | string |
fontFamily | string |
fontPath | string |
svgBackground | string |
width | number |
height | number |
xOffset | number |
yOffset | number |
boxWidth | number |
boxHeight | number |
fontSize | number |
maskText | boolean |
innerShadow | boolean |
bgFillColor | string |
textColor | string |
textAnchor | "end" | "start" | "middle" |