(value?: number | TRBL)
| 96 | * @since 2.7.0 |
| 97 | */ |
| 98 | export function toPadding(value?: number | TRBL): ChartArea { |
| 99 | const obj = toTRBL(value) as ChartArea; |
| 100 | |
| 101 | obj.width = obj.left + obj.right; |
| 102 | obj.height = obj.top + obj.bottom; |
| 103 | |
| 104 | return obj; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Parses font options and returns the font object. |
no test coverage detected