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

Function text

packages/cli/src/commands/motionShotLayout.ts:164–165  ·  view source on GitHub ↗
(p: Pt, s: string, fill: string, size = 15)

Source from the content-addressed store, hash-verified

162 `<circle ${attrs({ cx: round(p.x), cy: round(p.y), r, fill })}/>`;
163
164const text = (p: Pt, s: string, fill: string, size = 15) =>
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) =>

Callers 3

buildOnionSvgFunction · 0.85
pathBodyFunction · 0.85
stripBodyFunction · 0.85

Calls 3

attrsFunction · 0.85
roundFunction · 0.70
escapeXmlFunction · 0.70

Tested by

no test coverage detected