(
labelLayout: LabelLayoutData | NullUndefined
)
| 139 | * @return `NullUndefined` if and only if `labelLayout` is `NullUndefined`. |
| 140 | */ |
| 141 | export function ensureLabelLayoutWithGeometry( |
| 142 | labelLayout: LabelLayoutData | NullUndefined |
| 143 | ): LabelLayoutWithGeometry | NullUndefined { |
| 144 | if (!labelLayout) { |
| 145 | return; |
| 146 | } |
| 147 | if (isLabelLayoutDirty(labelLayout)) { |
| 148 | computeLabelGeometry(labelLayout, labelLayout.label, labelLayout); |
| 149 | } |
| 150 | return labelLayout as LabelLayoutWithGeometry; |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * The props in `out` will be filled if existing, or created. |
no test coverage detected
searching dependent graphs…