Optional
alignOptional
backgroundOptional
borderOptional
borderOptional
borderOptional
borderOptional
borderOptional
fillOptional
fillOptional
fontOptional
fontIt helps merging respectively, rather than parsing an entire font string.
Optional
fontIt helps merging respectively, rather than parsing an entire font string. Should be 12 but not '12px'.
Optional
fontIt helps merging respectively, rather than parsing an entire font string.
Optional
fontIt helps merging respectively, rather than parsing an entire font string.
Optional
heightHeight of text block. Not include padding Used for background, truncate
Optional
lineOptional
lineOptional
lineLine height. Default to be text height of '国'
Optional
linetextStroke may be set as some color as a default value in upper applicaion, where the default value of lineWidth should be 0 to make sure that user can choose to do not use text stroke.
Optional
marginMargin of label. Used when layouting the label.
Optional
opacityOptional
paddingCan be 2
or [2, 4]
or [2, 3, 4, 5]
Optional
shadowShadow blur for background box.
Optional
shadowShadow color for background box.
Optional
shadowShadow offset x for background box.
Optional
shadowShadow offset y for background box.
Optional
strokeOptional
strokeOptional
strokeOptional
tagReserved for special functinality, like 'hr'.
Optional
textOptional
textThe same as font. Use font please.
Optional
textOptional
textOptional
textOptional
textOptional
verticalOptional
widthWidth of text block. Not include padding Used for background, truncate, wrap
If
fontSize
orfontFamily
exists,font
will be reset byfontSize
,fontStyle
,fontWeight
,fontFamily
. So do not visit it directly in upper application (like ), but usecontain/text#makeFont
instead.