Provides constants for shapes that DefaultLabelStyle can wrap text into.
Remarks
The shape is fitted inside the label layout and text is wrapped to stay inside the shape. If a padding is set, this padding is kept between the shape and the text.
The resize behavior of the shapes (except for LABEL_SHAPE) to the label layout equal that of the corresponding ShapeNodeShape with the same name for node layouts used by ShapeNodeStyle. This allows using the constants in conjunction with labels on top of nodes rendered with ShapeNodeStyle covering the whole node layout. This is typically achieved using CENTER.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.TextWrappingShape
See Also
Constants
A symmetric parallelogram shape that has sloped edges.
Remarks
An elliptical shape.
Remarks
A 6-sided polygon with tips left and right.
Remarks
A 6-sided polygon with tips at top and bottom.
Remarks
The LabelShape set as shape.
Remarks
See Also
An 8-sided polygon.
Remarks
A stadium shape with the shorter sides rounded.
Remarks
A rectangular shape.
A rectangular shape with rounded corners.
Remarks
A rectangle that is sheared in the horizontal direction to the right.
Remarks
A rectangle that is sheared in the horizontal direction to the left.
Remarks
A trapezoid shape that is smaller at the bottom.
Remarks
A trapezoid shape that is smaller at the top.
Remarks
A triangular shape that points to the top.
Remarks
A triangular shape that points to the bottom.
Remarks
Static Methods
Converts the argument to TextWrappingShape.
Parameters
A map of options to pass to the method.
- value - TextWrappingShape
- The value to convert to TextWrappingShape.
Returns
- ↪TextWrappingShape
- Either
value
if it is already a TextWrappingShape or an appropriate converted value.