MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / push

Function push

ui/src/lib/export-svg.ts:568–577  ·  view source on GitHub ↗
(
    value: string,
    kind: CapRows['rows'][number]['kind'],
    gapBefore = false,
    chars = END_CAP_CHARS_SANS
  )

Source from the content-addressed store, hash-verified

566 const text = endCapText(cap.boundary);
567 const rows: CapRows['rows'] = [];
568 const push = (
569 value: string,
570 kind: CapRows['rows'][number]['kind'],
571 gapBefore = false,
572 chars = END_CAP_CHARS_SANS
573 ): void => {
574 wrapText(value, chars).forEach((line, i) =>
575 rows.push({ text: line, kind, gapBefore: gapBefore && i === 0 })
576 );
577 };
578
579 // On screen the bold lead and the sentence after it share one paragraph. At
580 // 32 characters a line the lead fills one on its own anyway, so the export

Callers 2

capRowsFunction · 0.70

Calls 2

wrapTextFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected