MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / hierarchyLabelWidth

Function hierarchyLabelWidth

graph-ui/src/galaxy/graph-scope.ts:367–369  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

365
366/** The world width of a name in the scoped hierarchy, as NodeLabels draws it (about 38 texture pixels per character at 64 px). */
367export function hierarchyLabelWidth(name: string): number {
368 return Math.min(name.length, LABEL_MAX_CHARS) * LABEL_UNITS_PER_CHAR + LABEL_UNITS_PADDING;
369}
370
371/*
372 * Der Ausschnitt als Hierarchie (Handtest K5).

Callers 4

GalaxyPanelFunction · 0.90
scopedHierarchyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected