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

Function M

packages/cli/src/commands/motionShotLayout.ts:205–205  ·  view source on GitHub ↗
(p: Pt)

Source from the content-addressed store, hash-verified

203 const all = elements.flatMap((e) => e.samples.flatMap((s) => [...s.q, s.c]));
204 const { k, cx, cy } = fit ? fitTransform(all, W, H) : { k: 1, cx: W / 2, cy: H / 2 };
205 const M = (p: Pt): Pt => ({ x: (p.x - cx) * k + W / 2, y: (p.y - cy) * k + H / 2 });
206 let out = "";
207 for (const el of elements) {
208 const last = el.samples.length - 1;

Callers 1

pathBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected