Provides constants for shapes that LabelStyle 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
See Also
Constants
A symmetric parallelogram shape that has sloped edges.
Remarks
An elliptical shape.
Remarks
A 6-sided polygon where the top and bottom edges are aligned with the top and bottom edges of the bounding box.
Remarks
A 6-sided polygon where the left and right edges are aligned with the left and right edges of the bounding box.
Remarks
The LabelShape set as shape.
Remarks
An 8-sided polygon where the edges are aligned with the edges of the bounding box.
Remarks
An 8-sided polygon with the tips touching the edges of the bounding box.
Remarks
A 5-sided polygon with a tip at the top.
Remarks
A stadium shape with the shorter sides rounded.
Remarks
A rectangular shape.
Remarks
A rectangular shape with rounded corners.
Remarks
A triangular shape that points to the top.
Remarks
A triangular shape that points to the bottom.
Remarks
A triangular shape that points to the left.
Remarks
A triangular shape that points to the right.
Remarks
Static Methods
Converts the given argument to an enum constant of this enum type.
Remarks
Parameters
A map of options to pass to the method.
- value - TextWrappingShape
- The value to convert to an enum constant.
Returns
- ↪TextWrappingShape
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
A map of options to pass to the method.
- value - TextWrappingShape
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.