MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / round

Function round

packages/cli/src/commands/motionShotLayout.ts:167–167  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

165 `<text ${attrs({ x: round(p.x), y: round(p.y), fill, "font-family": "ui-monospace,monospace", "font-size": size, "font-weight": 600 })}>${escapeXml(s)}</text>`;
166
167const round = (n: number) => Math.round(n * 100) / 100;
168const escapeXml = (s: string) =>
169 s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
170

Callers 5

polygonFunction · 0.70
lineFunction · 0.70
circleFunction · 0.70
textFunction · 0.70
stripBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected