Optionalalign
align?: "left" | "right" | "center"
OptionalbackgroundColor
backgroundColor?: string | number | null
OptionalbackgroundColor2
backgroundColor2?: string | number | null
OptionalbackgroundCornerIteration
backgroundCornerIteration?: number | null
OptionalbackgroundCornerRadius
backgroundCornerRadius?: number
OptionalbackgroundHorizontalGradient
backgroundHorizontalGradient?: boolean
OptionalbackgroundStrokeColor
backgroundStrokeColor?: string | number | null
OptionalbackgroundStrokeLineWidth
backgroundStrokeLineWidth?: number
Optionalcolor
color?: string | number | null
Optionalfill
fill?: string | number | null
OptionalfixedHeight
fixedHeight?: number
OptionalfixedLineHeightMode
fixedLineHeightMode?: boolean
OptionalfixedWidth
fixedWidth?: number
OptionalfontFamily
fontFamily?: string
OptionalfontSize
fontSize?: string | number
OptionalfontStyle
fontStyle?: string
Optionalhalign
halign?: "left" | "right" | "center"
OptionalletterSpacing
letterSpacing?: number
OptionallineSpacing
lineSpacing?: number
OptionalmaxLines
maxLines?: number
Optionalmetrics
metrics?: boolean | { ascent: number; descent: number; fontSize: number }
Type Declaration
- boolean
- { ascent: number; descent: number; fontSize: number }
ascent: number
descent: number
fontSize: number
Optionalpadding
padding?: { bottom?: number; left?: number; right?: number; top?: number }
Type Declaration
Optionalbottom?: number
Optionalleft?: number
Optionalright?: number
Optionaltop?: number
Optionalresolution
resolution?: number
Optionalshadow
shadow?: {
blur?: number;
color?: string | number;
fill?: boolean;
offsetX?: number;
offsetY?: number;
stroke?: boolean;
}
Type Declaration
Optionalblur?: number
Optionalcolor?: string | number
Optionalfill?: boolean
OptionaloffsetX?: number
OptionaloffsetY?: number
Optionalstroke?: boolean
Optionalstrikethrough
strikethrough?: { color?: string | number; offset?: number; thickness?: number }
Type Declaration
Optionalcolor?: string | number
Optionaloffset?: number
Optionalthickness?: number
Optionalstroke
stroke?: string | number | null
OptionalstrokeThickness
strokeThickness?: number
OptionaltestString
testString?: string
Optionalunderline
underline?: { color?: string | number; offset?: number; thickness?: number }
Type Declaration
Optionalcolor?: string | number
Optionaloffset?: number
Optionalthickness?: number
Optionalvalign
valign?: "center" | "top" | "bottom"
OptionalwordWrap
wordWrap?: { width?: number }
Optionalwrap
wrap?: {
mode?: 0 | 1 | 3 | 2 | "none" | "word" | "char" | "character" | "mix";
width?: number | null;
}
Type Declaration
Optionalmode?: 0 | 1 | 3 | 2 | "none" | "word" | "char" | "character" | "mix"
Optionalwidth?: number | null
Base text style configuration.