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

Function line

packages/cli/src/commands/motionShotLayout.ts:158–159  ·  view source on GitHub ↗
(a: Pt, b: Pt, stroke: string, w: number, o: number)

Source from the content-addressed store, hash-verified

156 })}/>`;
157
158const line = (a: Pt, b: Pt, stroke: string, w: number, o: number) =>
159 `<line ${attrs({ x1: round(a.x), y1: round(a.y), x2: round(b.x), y2: round(b.y), stroke, "stroke-width": w, opacity: o, "stroke-linecap": "round" })}/>`;
160
161const circle = (p: Pt, r: number, fill: string) =>
162 `<circle ${attrs({ cx: round(p.x), cy: round(p.y), r, fill })}/>`;

Callers 2

ghostFunction · 0.85
pathBodyFunction · 0.85

Calls 2

attrsFunction · 0.85
roundFunction · 0.70

Tested by

no test coverage detected