(lineCount: number)
| 134 | * @returns The gutter width in pixels |
| 135 | */ |
| 136 | export function calculateGutterWidth(lineCount: number): number { |
| 137 | const digits = String(lineCount).length |
| 138 | return GUTTER_WIDTHS[Math.min(digits - 1, GUTTER_WIDTHS.length - 1)] |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Information about a collapsible region in code. |
no outgoing calls
no test coverage detected