( span: HTMLSpanElement, label: AxisLabel, theme: AxisLabelThemeConfig )
| 29 | * Applies consistent styling to an axis label span element. |
| 30 | */ |
| 31 | export function styleAxisLabelSpan( |
| 32 | span: HTMLSpanElement, |
| 33 | label: AxisLabel, |
| 34 | theme: AxisLabelThemeConfig |
| 35 | ): void { |
| 36 | // Set inline styles |
| 37 | span.dir = 'auto'; |
| 38 | span.style.fontFamily = theme.fontFamily; |
| 39 | |
| 40 | // Axis titles are bold |
| 41 | if (label.isTitle) { |
| 42 | span.style.fontWeight = '600'; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Adds axis labels to a text overlay with consistent styling. |
no outgoing calls
no test coverage detected