trace-avatar-render 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  main,
6
6
  parse,
7
7
  reportOf
8
- } from "./chunk-EAMOVIQK.js";
8
+ } from "./chunk-MC2ZHX5Z.js";
9
9
  export {
10
10
  USAGE,
11
11
  UsageError,
package/dist/index.d.ts CHANGED
@@ -97,6 +97,8 @@ declare function watermarkOf(v: string | Watermark): Watermark;
97
97
  /** What a brand file may set: the polish options, nothing about what is played. */
98
98
  interface Brand {
99
99
  canvas?: CanvasSpec;
100
+ /** Shapes that fill the picture (no window, no margins), e.g. ["16:9"]; the others keep `frame`. */
101
+ fill?: CanvasSpec[];
100
102
  watermark?: string | Watermark;
101
103
  frame?: 'none' | 'browser';
102
104
  background?: string;
@@ -135,7 +137,7 @@ interface Layout {
135
137
  * The output size for a capture of srcW×srcH shown `width` wide (default: the capture's width, never
136
138
  * upscaled), with or without a browser window around it.
137
139
  */
138
- declare function layoutOf(srcW: number, srcH: number, width: number | undefined, frame?: FrameStyle, canvas?: Canvas): Layout;
140
+ declare function layoutOf(srcW: number, srcH: number, width: number | undefined, frame?: FrameStyle, canvas?: Canvas, fill?: boolean): Layout;
139
141
 
140
142
  /**
141
143
  * The parts of a frame that have text in them (the window's title bar, burned-in captions, title and end
@@ -668,6 +670,9 @@ interface RenderOptions {
668
670
  /** Compose onto a picture of this shape: '9:16' (1080×1920), '4:5', '1:1', '16:9', 'WxH' or { width, height }.
669
671
  * The app is placed between safe margins on the background; an output's width scales the whole canvas. */
670
672
  canvas?: CanvasSpec;
673
+ /** Shapes whose outputs fill the picture: no window, no margins (e.g. ['16:9']). The other outputs keep `frame`.
674
+ * Capture at the same shape (e.g. --viewport 1280x720 for 16:9) and nothing is cropped or padded. */
675
+ fill?: CanvasSpec[];
671
676
  /** A small badge on every frame, cards included: its text, or { text, at, opacity, logo }. */
672
677
  watermark?: string | Watermark;
673
678
  /** The AI for qa and alt (see trace-avatar/assist). Without it nothing calls a model. */
@@ -692,7 +697,7 @@ interface RenderOptions {
692
697
  repairVision?: boolean;
693
698
  }
694
699
  /** What finish() takes besides the capture: the composing options, with the cards resolved. */
695
- type FinishOptions = Pick<RenderOptions, 'cuts' | 'timeline' | 'frame' | 'background' | 'camera' | 'captions' | 'captionsAt' | 'poster' | 'canvas' | 'watermark'> & {
700
+ type FinishOptions = Pick<RenderOptions, 'cuts' | 'timeline' | 'frame' | 'background' | 'camera' | 'captions' | 'captionsAt' | 'poster' | 'canvas' | 'fill' | 'watermark'> & {
696
701
  cards?: {
697
702
  title?: CardOptions;
698
703
  end?: CardOptions;
package/dist/index.js CHANGED
@@ -112,7 +112,7 @@ import {
112
112
  withCards,
113
113
  withCursor,
114
114
  withHolds
115
- } from "./chunk-EAMOVIQK.js";
115
+ } from "./chunk-MC2ZHX5Z.js";
116
116
  export {
117
117
  CAMPAIGN_KINDS,
118
118
  CAMPAIGN_SHAPES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trace-avatar-render",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Render a trace-avatar guide to a GIF or MP4 by playing it on your real app in headless Chromium.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,6 +65,7 @@
65
65
  "trace-avatar": "^0.1.14"
66
66
  },
67
67
  "devDependencies": {
68
+ "@playwright/test": "^1.65.0",
68
69
  "@types/node": "^22.0.0",
69
70
  "@types/pngjs": "^6.0.5",
70
71
  "omggif": "^1.0.10",