跳转到内容

stylesFromArray

stylesFromArray(styles, text): TextStyle

Parameters

styles: TextStyle | TextStyleArray

the serialized form of a text object’s styles

text: string

the text string that the styles are applied to

Returns

TextStyle

Defined in

src/util/misc/textStyles.ts:99