@twick/studio - v0.15.0 / Exports / TextElement
Interface: TextElement
Table of contents
Properties
- alignment
- backgroundColor
- border
- borderRadius
- color
- font
- fontSize
- fontStyle
- fontWeight
- id
- position
- rotation
- shadow
- size
- text
- textDecoration
- verticalAlignment
Properties
alignment
• alignment: "left" | "center" | "right" | "justify"
Defined in
backgroundColor
• Optional backgroundColor: string
Defined in
border
• Optional border: Object
Type declaration
| Name | Type |
|---|---|
color | string |
style | "solid" | "dashed" | "dotted" |
width | number |
Defined in
borderRadius
• borderRadius: Object
Type declaration
| Name | Type |
|---|---|
bottomLeft | number |
bottomRight | number |
topLeft | number |
topRight | number |
Defined in
color
• color: string
Defined in
font
• font: string
Defined in
fontSize
• fontSize: number
Defined in
fontStyle
• fontStyle: "normal" | "italic"
Defined in
fontWeight
• fontWeight: "normal" | "bold"
Defined in
id
• id: string
Defined in
position
• position: Object
Type declaration
| Name | Type |
|---|---|
x | number |
y | number |
Defined in
rotation
• rotation: number
Defined in
shadow
• Optional shadow: Object
Type declaration
| Name | Type |
|---|---|
blur | number |
color | string |
x | number |
y | number |
Defined in
size
• size: Object
Type declaration
| Name | Type |
|---|---|
height | number |
width | number |
Defined in
text
• text: string
Defined in
textDecoration
• textDecoration: "none" | "underline" | "line-through"
Defined in
verticalAlignment
• verticalAlignment: "top" | "middle" | "bottom"