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

Function round

ui/src/lib/export-svg.ts:164–166  ·  view source on GitHub ↗

Numbers are rounded to a tenth: an SVG full of 17 decimals is unreadable.

(n: number)

Source from the content-addressed store, hash-verified

162
163/** Numbers are rounded to a tenth: an SVG full of 17 decimals is unreadable. */
164function round(n: number): number {
165 return Math.round(n * 10) / 10;
166}
167
168function rect(
169 x: number,

Callers 12

textOpenFunction · 0.70
rectFunction · 0.70
document_Function · 0.70
flowCardSvgFunction · 0.70
flowLinkSvgFunction · 0.70
mapEdgeSvgFunction · 0.70
mapSvgFunction · 0.70
outlineMethod · 0.50
si_glyphFunction · 0.50
devicon_glyphFunction · 0.50
custom_glyphFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected