Skip to main content

Class: TextSVGOptions

Plugins.TextSVGOptions

Implements

Constructors

constructor

new TextSVGOptions()

Properties

text

text: string = 'Custom Text'

Implementation of

ITextSVGOptions.text

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:42


fontSize

fontSize: number = 100

Implementation of

ITextSVGOptions.fontSize

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:43


width

width: number = 1024

Implementation of

ITextSVGOptions.width

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:44


height

height: number = 1024

Implementation of

ITextSVGOptions.height

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:45


xOffset

xOffset: number = 0

Implementation of

ITextSVGOptions.xOffset

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:46


yOffset

yOffset: number = 0

Implementation of

ITextSVGOptions.yOffset

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:47


boxWidth

boxWidth: number = 1024

Implementation of

ITextSVGOptions.boxWidth

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:48


boxHeight

boxHeight: number = 1024

Implementation of

ITextSVGOptions.boxHeight

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:49


textAnchor

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

Implementation of

ITextSVGOptions.textAnchor

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:50


fontFamily

fontFamily: string = ''

Implementation of

ITextSVGOptions.fontFamily

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:51


fontPath

fontPath: string = ''

Implementation of

ITextSVGOptions.fontPath

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:52


maskText

maskText: boolean = false

Implementation of

ITextSVGOptions.maskText

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:53


innerShadow

innerShadow: boolean = false

Implementation of

ITextSVGOptions.innerShadow

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:54


textColor

textColor: string = '#000000'

Implementation of

ITextSVGOptions.textColor

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:55


bgFillColor

bgFillColor: string = '#ffffff'

Implementation of

ITextSVGOptions.bgFillColor

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:56


svgBackground

svgBackground: string = '#ffffff'

Implementation of

ITextSVGOptions.svgBackground

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:57

Methods

onChange

onChange(): void

Returns

void

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:59


set

set(ops): void

Parameters

NameType
opsITextSVGOptions

Returns

void

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:60


reset

reset(): void

Returns

void

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:63


toJSON

toJSON(): Object

Returns

Object

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

Defined in

webgi/src/plugins/SimpleTextPlugin.ts:68