PitchKit
API Reference@pitchkit/coreFunctions

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

ParameterType
labelsreadonly readonly string[][]
rotationLabelRotation
fontSizenumber

Returns

object

x

readonly x: number;

y

readonly y: number;

On this page