documentationfor yFiles for HTML 2.6

TextWrappingShape

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

Static Methods