| 682 | } |
| 683 | |
| 684 | function 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 | |
| 697 | function printOnionShotSaved(saved: string, elementCount: number): void { |
| 698 | console.log(`${c.success("◇")} onion-skin screenshot saved ${c.accent(saved)}`); |