LabelBox
The layout information of a label.
Props
Name | Description | Type |
---|---|---|
angle | The rotation angle of the label in degrees. Used for checking whether the text has to be flipped and for retrieving the angle information from previous layouts. | number |
height | The height of the label. | number |
id | The label id. | string |
transform | The CSS transform to be applied on the label element based on the result of the layout algorithm. By default, for edges the transform-origin is set to ‘0px 0px’. | string |
width | The width of the label. | number |
x | The x-coordinate of the label. | number |
y | The y-coordinate of the label. | number |