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

Function attrs

packages/cli/src/commands/motionShotLayout.ts:143–146  ·  view source on GitHub ↗
(o: Record<string, string | number>)

Source from the content-addressed store, hash-verified

141const timeColor = (f: number) => `hsl(${190 + f * 150} 90% 65%)`;
142
143const attrs = (o: Record<string, string | number>) =>
144 Object.entries(o)
145 .map(([k, v]) => `${k}="${v}"`)
146 .join(" ");
147
148const polygon = (corners: Pt[], fill: string, fillOpacity: number, stroke: string) =>
149 `<polygon ${attrs({

Callers 6

polygonFunction · 0.85
lineFunction · 0.85
circleFunction · 0.85
textFunction · 0.85
buildOnionSvgFunction · 0.85
stripBodyFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected