Optional
alignOptional
backgroundOptional
borderOptional
borderOptional
borderOptional
borderOptional
borderOptional
ellipsisOptional
fillOptional
fillOptional
fontIf fontSize
or fontFamily
exists, font
will be reset by
fontSize
, fontStyle
, fontWeight
, fontFamily
.
So do not visit it directly in upper application (like ),
but use contain/text#makeFont
instead.
Optional
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
lineStrategy when text lines exceeds textHeight. Do nothing if not set
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
overflowStrategy when calculated text width exceeds textWidth. break: break by word break: will break inside the word truncate: truncate the text and show ellipsis Do nothing if not set
Optional
paddingCan be 2
or [2, 4]
or [2, 3, 4, 5]
Optional
placeholderPlaceholder used if text is truncated to empty
Optional
richText styles for rich text.
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
truncateMin characters for truncating
Optional
verticalOptional
widthOnly support number in the top block.
Optional
xOptional
y
Epllipsis used if text is truncated