ShapeContent
Defines the shapes content settings.
Definition
Package:@progress/kendo-angular-diagrams
Properties
align?
string
The alignment of the text inside the shape. You can do combinations between "top", "middle" and "bottom" for vertical align and "right", "center" and "left" for horizontal align. For example, "top right", "middle left", "bottom center", and so on.
color?
string
The color of the shape content text.
fontFamily?
string
The font family of the shape content text.
"sans-serif"
fontSize?
number
The font size in pixels of the shape content text.
15
fontStyle?
string
The font style of the shape content text.
fontWeight?
string
The font weight of the shape content text.
lineSpacing?
number
The spacing between lines of text in the shape in pixels.
0
relativePadding?
number | Padding
The relative padding of the shape content e.g. 0.03 means 3% of the shape width/height.
0
template?
string | (data: any) => string
The template which renders the labels.
text?
string
The text displayed in the shape.
textWrap?
"nowrap" | "wrap"
Configures the text wrapping behavior in the shape.
"nowrap"