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

Function onionShotOptions

packages/cli/src/commands/keyframes.ts:684–695  ·  view source on GitHub ↗
(args: ShotArgs & { selector?: string })

Source from the content-addressed store, hash-verified

682}
683
684function onionShotOptions(args: ShotArgs & { selector?: string }) {
685 return {
686 samples: num(args.samples) ?? 9,
687 layout: (args.layout === "strip" ? "strip" : "path") as "strip" | "path",
688 fit: args.fit ?? true,
689 from: num(args.from),
690 to: num(args.to),
691 angle: args.angle,
692 scopeSelector: args.selector ?? null,
693 ghost: args.ghost ?? false,
694 };
695}
696
697function printOnionShotSaved(saved: string, elementCount: number): void {
698 console.log(`${c.success("◇")} onion-skin screenshot saved ${c.accent(saved)}`);

Callers 1

runOnionShotFunction · 0.85

Calls 1

numFunction · 0.70

Tested by

no test coverage detected