labelMargin()
function labelMargin(
labels,
rotation,
fontSize
): object;Defined in: packages/core/src/polar/labels.ts:30
Room labels need outside the rim, horizontally and vertically: wrapped height for tangent labels, length for radial ones, each in its direction for horizontal ones. Excludes the gap between rim and label.
Parameters
| Parameter | Type |
|---|---|
labels | readonly readonly string[][] |
rotation | LabelRotation |
fontSize | number |
Returns
object
x
readonly x: number;y
readonly y: number;