Interface: Text
Defined in: composition-openapi/dist/index.d.ts:1566
Export​
Text
Properties​
align?​
optionalalign:null|HorizontalAlign
Defined in: composition-openapi/dist/index.d.ts:1650
(default="left") Text align.
Memberof​
Text
backgroundColor?​
optionalbackgroundColor:null|string
Defined in: composition-openapi/dist/index.d.ts:1631
(default="#00000000") Background color in #RRGGBBAA format.
Memberof​
Text
color?​
optionalcolor:null|string
Defined in: composition-openapi/dist/index.d.ts:1625
(default="#FFFFFFFF") Font color in #RRGGBBAA format.
Memberof​
Text
fontFamily?​
optionalfontFamily:null|string
Defined in: composition-openapi/dist/index.d.ts:1638
(default="Verdana") Font family. Provide family-name
for a specific font. "generic-family" values like e.g. "sans-serif" will not work.
Memberof​
Text
fontSize​
fontSize:
number
Defined in: composition-openapi/dist/index.d.ts:1613
Font size in pixels.
Memberof​
Text
height?​
optionalheight:null|number
Defined in: composition-openapi/dist/index.d.ts:1593
Height of a texture that text will be rendered on. If not provided, the resulting texture
will be sized based on the defined text but limited to max_height value.
It's an error to provide height if width is not defined.
Memberof​
Text
id?​
optionalid:null|string
Defined in: composition-openapi/dist/index.d.ts:1572
Id of a component.
Memberof​
Text
lineHeight?​
optionallineHeight:null|number
Defined in: composition-openapi/dist/index.d.ts:1619
Distance between lines in pixels. Defaults to the value of the font_size property.
Memberof​
Text
maxHeight?​
optionalmaxHeight:null|number
Defined in: composition-openapi/dist/index.d.ts:1607
(default=4320) Maximal height. Limits the height of the texture that the text will be rendered on.
Value is ignored if height is defined.
Memberof​
Text
maxWidth?​
optionalmaxWidth:null|number
Defined in: composition-openapi/dist/index.d.ts:1600
(default=7682) Maximal width. Limits the width of the texture that the text will be rendered on.
Value is ignored if width is defined.
Memberof​
Text
style?​
optionalstyle:null|TextStyle
Defined in: composition-openapi/dist/index.d.ts:1644
(default="normal") Font style. The selected font needs to support the specified style.
Memberof​
Text
text​
text:
string
Defined in: composition-openapi/dist/index.d.ts:1578
Text that will be rendered.
Memberof​
Text
type​
type:
"text"
Defined in: composition-openapi/dist/index.d.ts:1668
Memberof​
Text
weight?​
optionalweight:null|TextWeight
Defined in: composition-openapi/dist/index.d.ts:1662
(default="normal") Font weight. The selected font needs to support the specified weight.
Memberof​
Text
width?​
optionalwidth:null|number
Defined in: composition-openapi/dist/index.d.ts:1585
Width of a texture that text will be rendered on. If not provided, the resulting texture
will be sized based on the defined text but limited to max_width value.
Memberof​
Text
wrap?​
optionalwrap:null|TextWrapMode
Defined in: composition-openapi/dist/index.d.ts:1656
(default="none") Text wrapping options.
Memberof​
Text