g6/packages/site/docs/apis/shape/TextStyleProps.en.md
2023-11-10 22:11:33 +08:00

2.8 KiB

title order
Text 2

dx

Type: number

Default: 0

Required: false

Description: The x-axis offset

dy

Type: number

Default: 0

Required: false

Description: The y-axis offset

fontFamily

Type: string

Default: ''

Required: false

Description: font family

fontSize

Type: number

Default: 10

Required: false

Description: font size

fontStyle

Type: 'normal' | 'italic' | 'oblique'

Default: 'normal'

Required: false

Description: font style

fontVariant

Type: 'normal' | 'small-caps'

Default: 'normal'

Required: false

Description: font variant

fontWeight

Type: 'normal' | 'bold' | 'bolder' | 'lighter' | number

Default: 'normal'

Required: false

Description: font weight

leading

Type: number

Default: 0

Required: false

Description: leading

letterSpacing

Type: number

Default: 0

Required: false

Description: letter spacing

lineHeight

Type: number

Default: 0

Required: false

Description: line height

text

Type: string

Default: ''

Required: false

Description: text content

textAlign

Type: 'start' | 'center' | 'middle' | 'end' | 'left' | 'right'

Default: 'start'

Required: false

Description: text align

textBaseline

Type: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom'

Default: 'alphabetic'

Required: false

Description: text baseline

textDecorationColor

Type: string

Default: ''

Required: false

Description: text decoration color

textDecorationLine

Type: 'none' | 'underline' | 'overline' | 'line-through' | 'blink'

Default: 'none'

Required: false

Description: text decoration line

textDecorationStyle

Type: 'solid' | 'double' | 'dotted' | 'dashed' | 'wavy'

Default: 'solid'

Required: false

Description: text decoration style

textOverflow

Type: 'ellipsis' | 'clip' | string

Default: 'clip'

Required: false

Description: text overflow

textPath

Type: Path

Default: ''

Required: false

Description: text path

textPathSide

Type: 'left' | 'right'

Default: 'left'

Required: false

Description: text path side

textPathStartOffset

Type: number

Default: 0

Required: false

Description: text path start offset

wordWrap

Type: boolean

Default: false

Required: false

Description: word wrap

wordWrapWidth

Type: number

Default: 0

Required: false

Description: word wrap width