Skip to main content

Class: TextSVGOptions

Plugins.TextSVGOptions

Implements

Constructors

constructor

new TextSVGOptions()

Properties

text

text: string = 'Custom Text'

Implementation of

ITextSVGOptions.text


fontSize

fontSize: number = 100

Implementation of

ITextSVGOptions.fontSize


width

width: number = 1024

Implementation of

ITextSVGOptions.width


height

height: number = 1024

Implementation of

ITextSVGOptions.height


xOffset

xOffset: number = 0

Implementation of

ITextSVGOptions.xOffset


yOffset

yOffset: number = 0

Implementation of

ITextSVGOptions.yOffset


boxWidth

boxWidth: number = 1024

Implementation of

ITextSVGOptions.boxWidth


boxHeight

boxHeight: number = 1024

Implementation of

ITextSVGOptions.boxHeight


textAnchor

textAnchor: "end" | "start" | "middle" = 'middle'

Implementation of

ITextSVGOptions.textAnchor


fontFamily

fontFamily: string = ''

Implementation of

ITextSVGOptions.fontFamily


fontPath

fontPath: string = ''

Implementation of

ITextSVGOptions.fontPath


maskText

maskText: boolean = false

Implementation of

ITextSVGOptions.maskText


innerShadow

innerShadow: boolean = false

Implementation of

ITextSVGOptions.innerShadow


textColor

textColor: string = '#000000'

Implementation of

ITextSVGOptions.textColor


bgFillColor

bgFillColor: string = '#ffffff'

Implementation of

ITextSVGOptions.bgFillColor


svgBackground

svgBackground: string = '#ffffff'

Implementation of

ITextSVGOptions.svgBackground

Methods

onChange

onChange(): void

Returns

void


set

set(ops): void

Parameters

NameType
opsITextSVGOptions

Returns

void


reset

reset(): void

Returns

void


toJSON

toJSON(): Object

Returns

Object

NameType
textstring
fontFamilystring
fontPathstring
svgBackgroundstring
widthnumber
heightnumber
xOffsetnumber
yOffsetnumber
boxWidthnumber
boxHeightnumber
fontSizenumber
maskTextboolean
innerShadowboolean
bgFillColorstring
textColorstring
textAnchor"end" | "start" | "middle"