MCPcopy Index your code
hub / github.com/simstudioai/sim / calculateGutterWidth

Function calculateGutterWidth

packages/emcn/src/components/code/code.tsx:136–139  ·  view source on GitHub ↗
(lineCount: number)

Source from the content-addressed store, hash-verified

134 * @returns The gutter width in pixels
135 */
136export 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.

Callers 6

VariableValueInputFunction · 0.90
ConditionInputFunction · 0.90
CodeEditorFunction · 0.90
renderValueInputFunction · 0.90
code.tsxFile · 0.90
code.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected