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/CHANGELOG.md +10 -0
- package/README.md +4 -1
- package/dist/{chunk-EAMOVIQK.js → chunk-MC2ZHX5Z.js} +34 -12
- package/dist/chunk-MC2ZHX5Z.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-EAMOVIQK.js.map +0 -1
package/dist/cli.js
CHANGED
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trace-avatar-render",
|
|
3
|
-
"version": "0.2.
|
|
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",
|