@softure-ai/marketing-kit 0.23.0 → 0.24.0
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 +17 -0
- package/README.md +17 -0
- package/dist/footage/captions.d.ts +8 -1
- package/dist/footage/captions.d.ts.map +1 -1
- package/dist/footage/captions.js +5 -3
- package/dist/footage/captions.js.map +1 -1
- package/dist/footage/compose.d.ts +2 -0
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +3 -2
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/draft-overlays.d.ts +24 -4
- package/dist/footage/draft-overlays.d.ts.map +1 -1
- package/dist/footage/draft-overlays.js +232 -34
- package/dist/footage/draft-overlays.js.map +1 -1
- package/dist/footage/draft.d.ts +7 -2
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +13 -2
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/edl.d.ts +27 -0
- package/dist/footage/edl.d.ts.map +1 -1
- package/dist/footage/edl.js +1 -1
- package/dist/footage/edl.js.map +1 -1
- package/dist/footage/overlay-html.d.ts +21 -1
- package/dist/footage/overlay-html.d.ts.map +1 -1
- package/dist/footage/overlay-html.js +217 -56
- package/dist/footage/overlay-html.js.map +1 -1
- package/dist/footage/overlay-schema.d.ts +98 -6
- package/dist/footage/overlay-schema.d.ts.map +1 -1
- package/dist/footage/overlay-schema.js +215 -45
- package/dist/footage/overlay-schema.js.map +1 -1
- package/dist/footage/overlays.d.ts +109 -16
- package/dist/footage/overlays.d.ts.map +1 -1
- package/dist/footage/overlays.js +303 -52
- package/dist/footage/overlays.js.map +1 -1
- package/dist/footage/pipeline.d.ts +5 -0
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +3 -2
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/render/render.d.ts +4 -1
- package/dist/render/render.d.ts.map +1 -1
- package/dist/render/render.js +2 -1
- package/dist/render/render.js.map +1 -1
- package/package.json +1 -1
- package/schema/edl.schema.json +90 -8
- package/src/footage/captions.ts +13 -4
- package/src/footage/compose.ts +5 -3
- package/src/footage/draft-overlays.ts +276 -35
- package/src/footage/draft.ts +20 -4
- package/src/footage/edl.ts +1 -1
- package/src/footage/overlay-html.ts +239 -59
- package/src/footage/overlay-schema.ts +245 -40
- package/src/footage/overlays.ts +364 -55
- package/src/footage/pipeline.ts +8 -3
- package/src/index.ts +26 -0
- package/src/render/render.ts +3 -2
|
@@ -6,10 +6,14 @@ import { z } from "zod";
|
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* `punch_in`: an emphasis zoom of the picture on a word, eased in and back out. `keyword`: one word or number beside
|
|
9
|
-
* the subject. `lower_third`: a place or a name above the captions. `list`: 2 to 4 short points.
|
|
10
|
-
* `anchor` in the frame. `highlight`: marks the `anchor` rectangle of the frame.
|
|
9
|
+
* the subject. `lower_third`: a place or a name above the captions (or at the top). `list`: 2 to 4 short points.
|
|
10
|
+
* `arrow`: points at `anchor` in the frame. `highlight`: marks the `anchor` rectangle of the frame. `hook_title`: the
|
|
11
|
+
* hook's question or title at the top of the frame, one or two lines, with an optional place label (a drawn pin and
|
|
12
|
+
* "City, Country") above it; it may stay across cuts. `search_bar`: a rounded search field whose text types in.
|
|
13
|
+
* `place_card`: a big place title with a one-line subtitle. `counter`: a number with a unit counting up to its value.
|
|
14
|
+
* `date_stamp`: a day or a date with a place, small, in a corner of the top band.
|
|
11
15
|
*/
|
|
12
|
-
export declare const OVERLAY_KINDS: readonly ["punch_in", "keyword", "lower_third", "list", "arrow", "highlight"];
|
|
16
|
+
export declare const OVERLAY_KINDS: readonly ["punch_in", "keyword", "lower_third", "list", "arrow", "highlight", "hook_title", "search_bar", "place_card", "counter", "date_stamp"];
|
|
13
17
|
export type OverlayKind = (typeof OVERLAY_KINDS)[number];
|
|
14
18
|
/** An overlay's size step: the zoom of a `punch_in`, the type size of the others. */
|
|
15
19
|
export declare const OVERLAY_SIZES: readonly ["s", "m", "l"];
|
|
@@ -17,16 +21,48 @@ export type OverlaySize = (typeof OVERLAY_SIZES)[number];
|
|
|
17
21
|
/** The side of the frame a text overlay sits on. */
|
|
18
22
|
export declare const OVERLAY_SIDES: readonly ["left", "right"];
|
|
19
23
|
export type OverlaySide = (typeof OVERLAY_SIDES)[number];
|
|
24
|
+
/** The band of the text region an overlay sits in (`OVERLAY_POSITIONS_BY_KIND` says which a kind takes). */
|
|
25
|
+
export declare const OVERLAY_POSITIONS: readonly ["top", "middle", "bottom"];
|
|
26
|
+
export type OverlayPosition = (typeof OVERLAY_POSITIONS)[number];
|
|
27
|
+
/**
|
|
28
|
+
* How an overlay enters: `fade` in place, `slide` up into place, `type` letter by letter (text kinds), `none` (it is
|
|
29
|
+
* simply there). Without one, the kind's own entrance. Never a bounce or a pop: the reel stays natural.
|
|
30
|
+
*/
|
|
31
|
+
export declare const OVERLAY_ENTRANCES: readonly ["fade", "slide", "type", "none"];
|
|
32
|
+
export type OverlayEntrance = (typeof OVERLAY_ENTRANCES)[number];
|
|
20
33
|
/** The shortest an overlay stays on screen: shorter does not read. */
|
|
21
34
|
export declare const MIN_OVERLAY_SECONDS = 1;
|
|
22
|
-
/** The longest an overlay stays on screen. */
|
|
35
|
+
/** The longest an overlay stays on screen (a `hook_title` may stay up to `MAX_HOOK_TITLE_SECONDS`). */
|
|
23
36
|
export declare const MAX_OVERLAY_SECONDS = 8;
|
|
37
|
+
/** The longest a `hook_title` stays on screen: up to a whole short film. */
|
|
38
|
+
export declare const MAX_HOOK_TITLE_SECONDS = 180;
|
|
24
39
|
/** The longest `keyword` text. */
|
|
25
40
|
export declare const MAX_OVERLAY_KEYWORD_LENGTH = 24;
|
|
26
41
|
/** The longest `lower_third` text. */
|
|
27
42
|
export declare const MAX_OVERLAY_LOWER_THIRD_LENGTH = 40;
|
|
28
43
|
/** The longest point of a `list`. */
|
|
29
44
|
export declare const MAX_OVERLAY_LIST_ITEM_LENGTH = 32;
|
|
45
|
+
/** The longest `hook_title` text (one or two lines). */
|
|
46
|
+
export declare const MAX_OVERLAY_HOOK_TITLE_LENGTH = 64;
|
|
47
|
+
/** The longest place label (`hook_title`, `date_stamp`). */
|
|
48
|
+
export declare const MAX_OVERLAY_PLACE_LENGTH = 40;
|
|
49
|
+
/** The longest `search_bar` query. */
|
|
50
|
+
export declare const MAX_OVERLAY_SEARCH_LENGTH = 40;
|
|
51
|
+
/** The longest `place_card` title. */
|
|
52
|
+
export declare const MAX_OVERLAY_PLACE_TITLE_LENGTH = 28;
|
|
53
|
+
/** The longest `place_card` subtitle. */
|
|
54
|
+
export declare const MAX_OVERLAY_SUBTITLE_LENGTH = 40;
|
|
55
|
+
/** The longest `date_stamp` text. */
|
|
56
|
+
export declare const MAX_OVERLAY_DATE_LENGTH = 24;
|
|
57
|
+
/** The longest `counter` unit. */
|
|
58
|
+
export declare const MAX_OVERLAY_UNIT_LENGTH = 12;
|
|
59
|
+
/** The largest `counter` value. */
|
|
60
|
+
export declare const MAX_OVERLAY_COUNTER_VALUE = 999999999;
|
|
61
|
+
/** The `type` entrance's and the search bar's typing speed bounds, in characters per second. */
|
|
62
|
+
export declare const MIN_OVERLAY_TYPING_SPEED = 4;
|
|
63
|
+
export declare const MAX_OVERLAY_TYPING_SPEED = 40;
|
|
64
|
+
/** The typing speed without a `typing_speed`, in characters per second. */
|
|
65
|
+
export declare const DEFAULT_OVERLAY_TYPING_SPEED = 14;
|
|
30
66
|
/** A word of the film's transcript: the `occurrence`-th word (1 first) that reads `text`, compared like fillers are. */
|
|
31
67
|
export interface EdlOverlayWord {
|
|
32
68
|
text: string;
|
|
@@ -39,9 +75,20 @@ export interface EdlOverlayAnchor {
|
|
|
39
75
|
width?: number;
|
|
40
76
|
height?: number;
|
|
41
77
|
}
|
|
78
|
+
/** An overlay's own colours (`#rrggbb`), each one in place of the brand's: its card, its text, its accent. */
|
|
79
|
+
export interface EdlOverlayColors {
|
|
80
|
+
card?: string;
|
|
81
|
+
text?: string;
|
|
82
|
+
accent?: string;
|
|
83
|
+
}
|
|
42
84
|
export interface EdlOverlayStyle {
|
|
43
85
|
size?: OverlaySize;
|
|
44
86
|
side?: OverlaySide;
|
|
87
|
+
position?: OverlayPosition;
|
|
88
|
+
entrance?: OverlayEntrance;
|
|
89
|
+
/** Characters per second of the `type` entrance and the search bar's query. */
|
|
90
|
+
typing_speed?: number;
|
|
91
|
+
colors?: EdlOverlayColors;
|
|
45
92
|
}
|
|
46
93
|
export interface EdlOverlay {
|
|
47
94
|
kind: OverlayKind;
|
|
@@ -49,24 +96,47 @@ export interface EdlOverlay {
|
|
|
49
96
|
at_word?: EdlOverlayWord;
|
|
50
97
|
/** The film second it starts at; give this or `at_word`. */
|
|
51
98
|
at?: number;
|
|
52
|
-
/** Seconds on screen (`MIN_OVERLAY_SECONDS` to `MAX_OVERLAY_SECONDS`). */
|
|
99
|
+
/** Seconds on screen (`MIN_OVERLAY_SECONDS` to `MAX_OVERLAY_SECONDS`; a `hook_title` up to `MAX_HOOK_TITLE_SECONDS`). */
|
|
53
100
|
duration: number;
|
|
54
|
-
/** The `keyword`
|
|
101
|
+
/** The text of a `keyword`, `lower_third`, `hook_title`, `search_bar`, `place_card` (its title) or `date_stamp`. */
|
|
55
102
|
text?: string;
|
|
56
103
|
/** The `list` points (2 to 4). */
|
|
57
104
|
items?: string[];
|
|
58
105
|
/** The `arrow` point or the `highlight` rectangle. */
|
|
59
106
|
anchor?: EdlOverlayAnchor;
|
|
107
|
+
/** The place label of a `hook_title` (with a pin) or a `date_stamp`. */
|
|
108
|
+
place?: string;
|
|
109
|
+
/** The `place_card`'s one-line subtitle. */
|
|
110
|
+
subtitle?: string;
|
|
111
|
+
/** The number a `counter` counts up to, with at most two decimals. */
|
|
112
|
+
value?: number;
|
|
113
|
+
/** The number a `counter` counts from (0 by default), below its `value`. */
|
|
114
|
+
from?: number;
|
|
115
|
+
/** The `counter`'s unit after the number (km, days, a currency). */
|
|
116
|
+
unit?: string;
|
|
60
117
|
style?: EdlOverlayStyle;
|
|
61
118
|
}
|
|
119
|
+
/** The kinds that take a side. */
|
|
120
|
+
export declare const OVERLAY_SIDED_KINDS: readonly OverlayKind[];
|
|
121
|
+
/** The positions a kind may take (none: its place is fixed). */
|
|
122
|
+
export declare const OVERLAY_POSITIONS_BY_KIND: Partial<Record<OverlayKind, readonly OverlayPosition[]>>;
|
|
123
|
+
/** The entrances a kind may take (none listed: it takes no entrance). */
|
|
124
|
+
export declare const OVERLAY_ENTRANCES_BY_KIND: Record<OverlayKind, readonly OverlayEntrance[]>;
|
|
125
|
+
/** Whether an overlay types its text in: the `type` entrance, or a search bar without another entrance. */
|
|
126
|
+
export declare function isTypedOverlay(overlay: Pick<EdlOverlay, "kind" | "style">): boolean;
|
|
62
127
|
export declare const overlaySchema: z.ZodObject<{
|
|
63
128
|
kind: z.ZodEnum<{
|
|
64
129
|
arrow: "arrow";
|
|
130
|
+
counter: "counter";
|
|
131
|
+
date_stamp: "date_stamp";
|
|
65
132
|
highlight: "highlight";
|
|
133
|
+
hook_title: "hook_title";
|
|
66
134
|
keyword: "keyword";
|
|
67
135
|
list: "list";
|
|
68
136
|
lower_third: "lower_third";
|
|
137
|
+
place_card: "place_card";
|
|
69
138
|
punch_in: "punch_in";
|
|
139
|
+
search_bar: "search_bar";
|
|
70
140
|
}>;
|
|
71
141
|
at_word: z.ZodOptional<z.ZodObject<{
|
|
72
142
|
text: z.ZodString;
|
|
@@ -82,6 +152,11 @@ export declare const overlaySchema: z.ZodObject<{
|
|
|
82
152
|
width: z.ZodOptional<z.ZodNumber>;
|
|
83
153
|
height: z.ZodOptional<z.ZodNumber>;
|
|
84
154
|
}, z.core.$strict>>;
|
|
155
|
+
place: z.ZodOptional<z.ZodString>;
|
|
156
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
157
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
85
160
|
style: z.ZodOptional<z.ZodObject<{
|
|
86
161
|
size: z.ZodOptional<z.ZodEnum<{
|
|
87
162
|
l: "l";
|
|
@@ -92,6 +167,23 @@ export declare const overlaySchema: z.ZodObject<{
|
|
|
92
167
|
left: "left";
|
|
93
168
|
right: "right";
|
|
94
169
|
}>>;
|
|
170
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
171
|
+
bottom: "bottom";
|
|
172
|
+
middle: "middle";
|
|
173
|
+
top: "top";
|
|
174
|
+
}>>;
|
|
175
|
+
entrance: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
fade: "fade";
|
|
177
|
+
none: "none";
|
|
178
|
+
slide: "slide";
|
|
179
|
+
type: "type";
|
|
180
|
+
}>>;
|
|
181
|
+
typing_speed: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
colors: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
card: z.ZodOptional<z.ZodString>;
|
|
184
|
+
text: z.ZodOptional<z.ZodString>;
|
|
185
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strict>>;
|
|
95
187
|
}, z.core.$strict>>;
|
|
96
188
|
}, z.core.$strict>;
|
|
97
189
|
//# sourceMappingURL=overlay-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-schema.d.ts","sourceRoot":"","sources":["../../src/footage/overlay-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH
|
|
1
|
+
{"version":3,"file":"overlay-schema.d.ts","sourceRoot":"","sources":["../../src/footage/overlay-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH;;;;;;;;GAQG;AACH,eAAO,MA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;;;kBAsFtB,CAAC"}
|
|
@@ -6,38 +6,191 @@ import { z } from "zod";
|
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* `punch_in`: an emphasis zoom of the picture on a word, eased in and back out. `keyword`: one word or number beside
|
|
9
|
-
* the subject. `lower_third`: a place or a name above the captions. `list`: 2 to 4 short points.
|
|
10
|
-
* `anchor` in the frame. `highlight`: marks the `anchor` rectangle of the frame.
|
|
9
|
+
* the subject. `lower_third`: a place or a name above the captions (or at the top). `list`: 2 to 4 short points.
|
|
10
|
+
* `arrow`: points at `anchor` in the frame. `highlight`: marks the `anchor` rectangle of the frame. `hook_title`: the
|
|
11
|
+
* hook's question or title at the top of the frame, one or two lines, with an optional place label (a drawn pin and
|
|
12
|
+
* "City, Country") above it; it may stay across cuts. `search_bar`: a rounded search field whose text types in.
|
|
13
|
+
* `place_card`: a big place title with a one-line subtitle. `counter`: a number with a unit counting up to its value.
|
|
14
|
+
* `date_stamp`: a day or a date with a place, small, in a corner of the top band.
|
|
11
15
|
*/
|
|
12
|
-
export const OVERLAY_KINDS = ["punch_in", "keyword", "lower_third", "list", "arrow", "highlight"];
|
|
16
|
+
export const OVERLAY_KINDS = ["punch_in", "keyword", "lower_third", "list", "arrow", "highlight", "hook_title", "search_bar", "place_card", "counter", "date_stamp"];
|
|
13
17
|
/** An overlay's size step: the zoom of a `punch_in`, the type size of the others. */
|
|
14
18
|
export const OVERLAY_SIZES = ["s", "m", "l"];
|
|
15
19
|
/** The side of the frame a text overlay sits on. */
|
|
16
20
|
export const OVERLAY_SIDES = ["left", "right"];
|
|
21
|
+
/** The band of the text region an overlay sits in (`OVERLAY_POSITIONS_BY_KIND` says which a kind takes). */
|
|
22
|
+
export const OVERLAY_POSITIONS = ["top", "middle", "bottom"];
|
|
23
|
+
/**
|
|
24
|
+
* How an overlay enters: `fade` in place, `slide` up into place, `type` letter by letter (text kinds), `none` (it is
|
|
25
|
+
* simply there). Without one, the kind's own entrance. Never a bounce or a pop: the reel stays natural.
|
|
26
|
+
*/
|
|
27
|
+
export const OVERLAY_ENTRANCES = ["fade", "slide", "type", "none"];
|
|
17
28
|
/** The shortest an overlay stays on screen: shorter does not read. */
|
|
18
29
|
export const MIN_OVERLAY_SECONDS = 1;
|
|
19
|
-
/** The longest an overlay stays on screen. */
|
|
30
|
+
/** The longest an overlay stays on screen (a `hook_title` may stay up to `MAX_HOOK_TITLE_SECONDS`). */
|
|
20
31
|
export const MAX_OVERLAY_SECONDS = 8;
|
|
32
|
+
/** The longest a `hook_title` stays on screen: up to a whole short film. */
|
|
33
|
+
export const MAX_HOOK_TITLE_SECONDS = 180;
|
|
21
34
|
/** The longest `keyword` text. */
|
|
22
35
|
export const MAX_OVERLAY_KEYWORD_LENGTH = 24;
|
|
23
36
|
/** The longest `lower_third` text. */
|
|
24
37
|
export const MAX_OVERLAY_LOWER_THIRD_LENGTH = 40;
|
|
25
38
|
/** The longest point of a `list`. */
|
|
26
39
|
export const MAX_OVERLAY_LIST_ITEM_LENGTH = 32;
|
|
27
|
-
/**
|
|
40
|
+
/** The longest `hook_title` text (one or two lines). */
|
|
41
|
+
export const MAX_OVERLAY_HOOK_TITLE_LENGTH = 64;
|
|
42
|
+
/** The longest place label (`hook_title`, `date_stamp`). */
|
|
43
|
+
export const MAX_OVERLAY_PLACE_LENGTH = 40;
|
|
44
|
+
/** The longest `search_bar` query. */
|
|
45
|
+
export const MAX_OVERLAY_SEARCH_LENGTH = 40;
|
|
46
|
+
/** The longest `place_card` title. */
|
|
47
|
+
export const MAX_OVERLAY_PLACE_TITLE_LENGTH = 28;
|
|
48
|
+
/** The longest `place_card` subtitle. */
|
|
49
|
+
export const MAX_OVERLAY_SUBTITLE_LENGTH = 40;
|
|
50
|
+
/** The longest `date_stamp` text. */
|
|
51
|
+
export const MAX_OVERLAY_DATE_LENGTH = 24;
|
|
52
|
+
/** The longest `counter` unit. */
|
|
53
|
+
export const MAX_OVERLAY_UNIT_LENGTH = 12;
|
|
54
|
+
/** The largest `counter` value. */
|
|
55
|
+
export const MAX_OVERLAY_COUNTER_VALUE = 999_999_999;
|
|
56
|
+
/** The `type` entrance's and the search bar's typing speed bounds, in characters per second. */
|
|
57
|
+
export const MIN_OVERLAY_TYPING_SPEED = 4;
|
|
58
|
+
export const MAX_OVERLAY_TYPING_SPEED = 40;
|
|
59
|
+
/** The typing speed without a `typing_speed`, in characters per second. */
|
|
60
|
+
export const DEFAULT_OVERLAY_TYPING_SPEED = 14;
|
|
61
|
+
const NO_FIELDS = { text: "none", items: false, anchor: "none", place: false, subtitle: false, counter: false };
|
|
62
|
+
const TEXT_ONLY = { ...NO_FIELDS, text: "required" };
|
|
63
|
+
/** What each kind needs, takes and refuses. */
|
|
28
64
|
const KIND_FIELDS = {
|
|
29
|
-
punch_in:
|
|
30
|
-
keyword:
|
|
31
|
-
lower_third:
|
|
32
|
-
list: {
|
|
33
|
-
arrow: {
|
|
34
|
-
highlight: {
|
|
65
|
+
punch_in: NO_FIELDS,
|
|
66
|
+
keyword: TEXT_ONLY,
|
|
67
|
+
lower_third: TEXT_ONLY,
|
|
68
|
+
list: { ...NO_FIELDS, items: true },
|
|
69
|
+
arrow: { ...NO_FIELDS, anchor: "point" },
|
|
70
|
+
highlight: { ...NO_FIELDS, anchor: "rect" },
|
|
71
|
+
hook_title: { ...TEXT_ONLY, place: true },
|
|
72
|
+
search_bar: TEXT_ONLY,
|
|
73
|
+
place_card: { ...TEXT_ONLY, subtitle: true },
|
|
74
|
+
counter: { ...NO_FIELDS, counter: true },
|
|
75
|
+
date_stamp: { ...TEXT_ONLY, place: true },
|
|
76
|
+
};
|
|
77
|
+
const TEXT_LIMITS = {
|
|
78
|
+
keyword: MAX_OVERLAY_KEYWORD_LENGTH,
|
|
79
|
+
lower_third: MAX_OVERLAY_LOWER_THIRD_LENGTH,
|
|
80
|
+
hook_title: MAX_OVERLAY_HOOK_TITLE_LENGTH,
|
|
81
|
+
search_bar: MAX_OVERLAY_SEARCH_LENGTH,
|
|
82
|
+
place_card: MAX_OVERLAY_PLACE_TITLE_LENGTH,
|
|
83
|
+
date_stamp: MAX_OVERLAY_DATE_LENGTH,
|
|
84
|
+
};
|
|
85
|
+
/** The kinds that take a side. */
|
|
86
|
+
export const OVERLAY_SIDED_KINDS = ["keyword", "lower_third", "list", "date_stamp"];
|
|
87
|
+
/** The positions a kind may take (none: its place is fixed). */
|
|
88
|
+
export const OVERLAY_POSITIONS_BY_KIND = {
|
|
89
|
+
keyword: ["top", "middle", "bottom"],
|
|
90
|
+
lower_third: ["top", "bottom"],
|
|
91
|
+
list: ["top", "middle"],
|
|
92
|
+
search_bar: ["top", "middle", "bottom"],
|
|
93
|
+
place_card: ["top", "middle", "bottom"],
|
|
94
|
+
counter: ["top", "middle", "bottom"],
|
|
35
95
|
};
|
|
36
|
-
const
|
|
96
|
+
const TEXT_ENTRANCES = ["fade", "slide", "type", "none"];
|
|
97
|
+
const BLOCK_ENTRANCES = ["fade", "slide", "none"];
|
|
98
|
+
/** The entrances a kind may take (none listed: it takes no entrance). */
|
|
99
|
+
export const OVERLAY_ENTRANCES_BY_KIND = {
|
|
100
|
+
punch_in: [],
|
|
101
|
+
keyword: TEXT_ENTRANCES,
|
|
102
|
+
lower_third: TEXT_ENTRANCES,
|
|
103
|
+
list: BLOCK_ENTRANCES,
|
|
104
|
+
arrow: ["fade", "none"],
|
|
105
|
+
highlight: ["fade", "none"],
|
|
106
|
+
hook_title: TEXT_ENTRANCES,
|
|
107
|
+
search_bar: TEXT_ENTRANCES,
|
|
108
|
+
place_card: TEXT_ENTRANCES,
|
|
109
|
+
counter: BLOCK_ENTRANCES,
|
|
110
|
+
date_stamp: TEXT_ENTRANCES,
|
|
111
|
+
};
|
|
112
|
+
/** Whether an overlay types its text in: the `type` entrance, or a search bar without another entrance. */
|
|
113
|
+
export function isTypedOverlay(overlay) {
|
|
114
|
+
const entrance = overlay.style?.entrance;
|
|
115
|
+
return entrance === "type" || (overlay.kind === "search_bar" && entrance === undefined);
|
|
116
|
+
}
|
|
37
117
|
const overlayText = z.string().trim().min(1, "is empty");
|
|
118
|
+
const hexColor = z.string().regex(/^#[0-9a-fA-F]{6}$/, "is not a #rrggbb colour");
|
|
119
|
+
const article = (kind) => (/^[aeiou]/.test(kind) ? `an ${kind}` : `a ${kind}`);
|
|
120
|
+
const hasTwoDecimals = (value) => Math.abs(Math.round(value * 100) - value * 100) < 1e-6;
|
|
121
|
+
const counterNumber = z.number().min(0).max(MAX_OVERLAY_COUNTER_VALUE).refine(hasTwoDecimals, "has more than two decimals");
|
|
122
|
+
/** Every issue of one overlay's fields against its kind. */
|
|
123
|
+
function checkOverlayFields(overlay, issue) {
|
|
124
|
+
const { kind } = overlay;
|
|
125
|
+
const fields = KIND_FIELDS[kind];
|
|
126
|
+
if ((overlay.at_word === undefined) === (overlay.at === undefined))
|
|
127
|
+
issue([], "needs exactly one of at_word and at");
|
|
128
|
+
if (kind !== "hook_title" && overlay.duration > MAX_OVERLAY_SECONDS)
|
|
129
|
+
issue(["duration"], `${article(kind)} stays at most ${MAX_OVERLAY_SECONDS} s (only a hook_title stays longer)`);
|
|
130
|
+
if (fields.text === "required" && overlay.text === undefined)
|
|
131
|
+
issue(["text"], `${article(kind)} needs its text`);
|
|
132
|
+
if (fields.text === "none" && overlay.text !== undefined)
|
|
133
|
+
issue(["text"], `${article(kind)} draws no text; leave it out`);
|
|
134
|
+
const limit = TEXT_LIMITS[kind];
|
|
135
|
+
if (limit !== undefined && overlay.text !== undefined && overlay.text.length > limit)
|
|
136
|
+
issue(["text"], `is longer than ${limit} characters`);
|
|
137
|
+
if (fields.items && overlay.items === undefined)
|
|
138
|
+
issue(["items"], "a list needs 2 to 4 points");
|
|
139
|
+
if (!fields.items && overlay.items !== undefined)
|
|
140
|
+
issue(["items"], `${article(kind)} draws no points; leave them out`);
|
|
141
|
+
if (fields.anchor === "none" && overlay.anchor !== undefined)
|
|
142
|
+
issue(["anchor"], `${article(kind)} has no anchor; leave it out`);
|
|
143
|
+
if (fields.anchor !== "none" && overlay.anchor === undefined)
|
|
144
|
+
issue(["anchor"], `${article(kind)} needs its anchor`);
|
|
145
|
+
const isRect = overlay.anchor?.width !== undefined && overlay.anchor.height !== undefined;
|
|
146
|
+
if (fields.anchor === "rect" && overlay.anchor !== undefined && !isRect)
|
|
147
|
+
issue(["anchor"], "a highlight needs the anchor's width and height");
|
|
148
|
+
if (fields.anchor === "point" && (overlay.anchor?.width !== undefined || overlay.anchor?.height !== undefined))
|
|
149
|
+
issue(["anchor"], "an arrow points at a point: leave width and height out");
|
|
150
|
+
if (!fields.place && overlay.place !== undefined)
|
|
151
|
+
issue(["place"], `${article(kind)} has no place label; leave it out`);
|
|
152
|
+
if (!fields.subtitle && overlay.subtitle !== undefined)
|
|
153
|
+
issue(["subtitle"], `${article(kind)} has no subtitle; leave it out`);
|
|
154
|
+
if (fields.counter && overlay.value === undefined)
|
|
155
|
+
issue(["value"], "a counter needs its value");
|
|
156
|
+
if (!fields.counter) {
|
|
157
|
+
for (const key of ["value", "from", "unit"])
|
|
158
|
+
if (overlay[key] !== undefined)
|
|
159
|
+
issue([key], `${article(kind)} counts nothing; leave ${key} out`);
|
|
160
|
+
}
|
|
161
|
+
if (overlay.value !== undefined && overlay.from !== undefined && overlay.from >= overlay.value)
|
|
162
|
+
issue(["from"], "a counter counts up: from must be below value");
|
|
163
|
+
}
|
|
164
|
+
/** Every issue of one overlay's style knobs against its kind. */
|
|
165
|
+
function checkOverlayStyle(overlay, issue) {
|
|
166
|
+
const { kind, style } = overlay;
|
|
167
|
+
if (style === undefined)
|
|
168
|
+
return;
|
|
169
|
+
if (style.side !== undefined && !OVERLAY_SIDED_KINDS.includes(kind))
|
|
170
|
+
issue(["style", "side"], `${article(kind)} has no side; leave it out`);
|
|
171
|
+
const positions = OVERLAY_POSITIONS_BY_KIND[kind];
|
|
172
|
+
if (style.position !== undefined && !(positions ?? []).includes(style.position)) {
|
|
173
|
+
issue(["style", "position"], positions === undefined ? `${article(kind)} has a fixed place; leave position out` : `${article(kind)} sits at ${positions.join(", ")}`);
|
|
174
|
+
}
|
|
175
|
+
const entrances = OVERLAY_ENTRANCES_BY_KIND[kind];
|
|
176
|
+
if (style.entrance !== undefined && !entrances.includes(style.entrance)) {
|
|
177
|
+
issue(["style", "entrance"], entrances.length === 0 ? `${article(kind)} has no entrance; leave it out` : `${article(kind)} enters by ${entrances.join(", ")}`);
|
|
178
|
+
}
|
|
179
|
+
if (style.typing_speed !== undefined && !isTypedOverlay(overlay))
|
|
180
|
+
issue(["style", "typing_speed"], "only a typed entrance or a search bar has a typing speed");
|
|
181
|
+
if (style.colors === undefined)
|
|
182
|
+
return;
|
|
183
|
+
if (kind === "punch_in")
|
|
184
|
+
issue(["style", "colors"], "a punch_in draws nothing to colour; leave colors out");
|
|
185
|
+
if ((kind === "arrow" || kind === "highlight") && (style.colors.card !== undefined || style.colors.text !== undefined)) {
|
|
186
|
+
issue(["style", "colors"], `${article(kind)} draws in its accent only; leave card and text out`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
38
189
|
export const overlaySchema = z
|
|
39
190
|
.strictObject({
|
|
40
|
-
kind: z
|
|
191
|
+
kind: z
|
|
192
|
+
.enum(OVERLAY_KINDS)
|
|
193
|
+
.describe("punch_in (an emphasis zoom on a word), keyword, lower_third, list, arrow, highlight, hook_title, search_bar, place_card, counter or date_stamp."),
|
|
41
194
|
at_word: z
|
|
42
195
|
.strictObject({
|
|
43
196
|
text: overlayText.describe("The word as the transcript has it; compared without case and punctuation."),
|
|
@@ -46,8 +199,14 @@ export const overlaySchema = z
|
|
|
46
199
|
.optional()
|
|
47
200
|
.describe("The transcript word the overlay starts on (its start after the cut); give this or at."),
|
|
48
201
|
at: z.number().min(0).optional().describe("The film second the overlay starts at; give this or at_word."),
|
|
49
|
-
duration: z
|
|
50
|
-
|
|
202
|
+
duration: z
|
|
203
|
+
.number()
|
|
204
|
+
.min(MIN_OVERLAY_SECONDS)
|
|
205
|
+
.max(MAX_HOOK_TITLE_SECONDS)
|
|
206
|
+
.describe(`Seconds on screen (${MIN_OVERLAY_SECONDS}-${MAX_OVERLAY_SECONDS}; a hook_title up to ${MAX_HOOK_TITLE_SECONDS}).`),
|
|
207
|
+
text: overlayText
|
|
208
|
+
.optional()
|
|
209
|
+
.describe(`The text: keyword (up to ${MAX_OVERLAY_KEYWORD_LENGTH} characters), lower_third (${MAX_OVERLAY_LOWER_THIRD_LENGTH}), hook_title (${MAX_OVERLAY_HOOK_TITLE_LENGTH}, one or two lines), search_bar (${MAX_OVERLAY_SEARCH_LENGTH}), place_card title (${MAX_OVERLAY_PLACE_TITLE_LENGTH}) or date_stamp (${MAX_OVERLAY_DATE_LENGTH}).`),
|
|
51
210
|
items: z
|
|
52
211
|
.array(overlayText.max(MAX_OVERLAY_LIST_ITEM_LENGTH, `is longer than ${MAX_OVERLAY_LIST_ITEM_LENGTH} characters`))
|
|
53
212
|
.min(2, "a list needs 2 to 4 points")
|
|
@@ -63,42 +222,53 @@ export const overlaySchema = z
|
|
|
63
222
|
})
|
|
64
223
|
.optional()
|
|
65
224
|
.describe("The point an arrow points at, or the rectangle a highlight marks (x, y its top left), in px of the film's frame."),
|
|
225
|
+
place: overlayText
|
|
226
|
+
.max(MAX_OVERLAY_PLACE_LENGTH, `is longer than ${MAX_OVERLAY_PLACE_LENGTH} characters`)
|
|
227
|
+
.optional()
|
|
228
|
+
.describe(`A hook_title's place label above it (drawn with a pin) or a date_stamp's place, e.g. "Hanoi, Vietnam" (up to ${MAX_OVERLAY_PLACE_LENGTH} characters).`),
|
|
229
|
+
subtitle: overlayText
|
|
230
|
+
.max(MAX_OVERLAY_SUBTITLE_LENGTH, `is longer than ${MAX_OVERLAY_SUBTITLE_LENGTH} characters`)
|
|
231
|
+
.optional()
|
|
232
|
+
.describe(`A place_card's one-line subtitle (up to ${MAX_OVERLAY_SUBTITLE_LENGTH} characters).`),
|
|
233
|
+
value: counterNumber.optional().describe("The number a counter counts up to (at most two decimals)."),
|
|
234
|
+
from: counterNumber.optional().describe("The number a counter counts from (0 by default), below its value."),
|
|
235
|
+
unit: overlayText
|
|
236
|
+
.max(MAX_OVERLAY_UNIT_LENGTH, `is longer than ${MAX_OVERLAY_UNIT_LENGTH} characters`)
|
|
237
|
+
.optional()
|
|
238
|
+
.describe(`A counter's unit after the number, e.g. km (up to ${MAX_OVERLAY_UNIT_LENGTH} characters).`),
|
|
66
239
|
style: z
|
|
67
240
|
.strictObject({
|
|
68
241
|
size: z.enum(OVERLAY_SIZES).optional().describe("s, m (the default) or l: the punch-in's zoom (108, 112, 115 %) or the type size."),
|
|
69
|
-
side: z.enum(OVERLAY_SIDES).optional().describe("The side a keyword, lower third or
|
|
242
|
+
side: z.enum(OVERLAY_SIDES).optional().describe("The side a keyword, lower third, list or date stamp sits on."),
|
|
243
|
+
position: z
|
|
244
|
+
.enum(OVERLAY_POSITIONS)
|
|
245
|
+
.optional()
|
|
246
|
+
.describe("top, middle or bottom of the room above the captions: keyword, search_bar, place_card, counter (any), lower_third (top or bottom), list (top or middle)."),
|
|
247
|
+
entrance: z
|
|
248
|
+
.enum(OVERLAY_ENTRANCES)
|
|
249
|
+
.optional()
|
|
250
|
+
.describe("fade, slide, type (text typed in letter by letter) or none; without it the kind's own. Never a bounce or a pop."),
|
|
251
|
+
typing_speed: z
|
|
252
|
+
.number()
|
|
253
|
+
.min(MIN_OVERLAY_TYPING_SPEED)
|
|
254
|
+
.max(MAX_OVERLAY_TYPING_SPEED)
|
|
255
|
+
.optional()
|
|
256
|
+
.describe(`Characters per second of a typed entrance or a search bar (${MIN_OVERLAY_TYPING_SPEED}-${MAX_OVERLAY_TYPING_SPEED}, ${DEFAULT_OVERLAY_TYPING_SPEED} by default).`),
|
|
257
|
+
colors: z
|
|
258
|
+
.strictObject({
|
|
259
|
+
card: hexColor.optional().describe("The card's colour (#rrggbb); the brand's background without it."),
|
|
260
|
+
text: hexColor.optional().describe("The text's colour; the brand's foreground without it."),
|
|
261
|
+
accent: hexColor.optional().describe("The accent (dot, pin, magnifier, arrow, marker); the brand's accent without it."),
|
|
262
|
+
})
|
|
263
|
+
.optional()
|
|
264
|
+
.describe("The overlay's own colours in place of the brand's."),
|
|
70
265
|
})
|
|
71
266
|
.optional()
|
|
72
|
-
.describe("The overlay's size
|
|
267
|
+
.describe("The overlay's look: size, side, position, entrance, typing speed and colours; fonts are the brand's."),
|
|
73
268
|
})
|
|
74
269
|
.superRefine((overlay, context) => {
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (fields.text && overlay.text === undefined)
|
|
79
|
-
context.addIssue({ code: "custom", path: ["text"], message: `a ${overlay.kind} needs its text` });
|
|
80
|
-
if (!fields.text && overlay.text !== undefined)
|
|
81
|
-
context.addIssue({ code: "custom", path: ["text"], message: `a ${overlay.kind} draws no text; leave it out` });
|
|
82
|
-
const limit = TEXT_LIMITS[overlay.kind];
|
|
83
|
-
if (limit !== undefined && overlay.text !== undefined && overlay.text.length > limit) {
|
|
84
|
-
context.addIssue({ code: "custom", path: ["text"], message: `is longer than ${limit} characters` });
|
|
85
|
-
}
|
|
86
|
-
if (fields.items && overlay.items === undefined)
|
|
87
|
-
context.addIssue({ code: "custom", path: ["items"], message: "a list needs 2 to 4 points" });
|
|
88
|
-
if (!fields.items && overlay.items !== undefined)
|
|
89
|
-
context.addIssue({ code: "custom", path: ["items"], message: `a ${overlay.kind} draws no points; leave them out` });
|
|
90
|
-
if (fields.anchor === "none" && overlay.anchor !== undefined)
|
|
91
|
-
context.addIssue({ code: "custom", path: ["anchor"], message: `a ${overlay.kind} has no anchor; leave it out` });
|
|
92
|
-
if (fields.anchor !== "none" && overlay.anchor === undefined)
|
|
93
|
-
context.addIssue({ code: "custom", path: ["anchor"], message: `${overlay.kind === "arrow" ? "an arrow" : "a highlight"} needs its anchor` });
|
|
94
|
-
const isRect = overlay.anchor?.width !== undefined && overlay.anchor.height !== undefined;
|
|
95
|
-
if (fields.anchor === "rect" && overlay.anchor !== undefined && !isRect)
|
|
96
|
-
context.addIssue({ code: "custom", path: ["anchor"], message: "a highlight needs the anchor's width and height" });
|
|
97
|
-
if (fields.anchor === "point" && (overlay.anchor?.width !== undefined || overlay.anchor?.height !== undefined)) {
|
|
98
|
-
context.addIssue({ code: "custom", path: ["anchor"], message: "an arrow points at a point: leave width and height out" });
|
|
99
|
-
}
|
|
100
|
-
if (overlay.kind !== "keyword" && overlay.kind !== "lower_third" && overlay.kind !== "list" && overlay.style?.side !== undefined) {
|
|
101
|
-
context.addIssue({ code: "custom", path: ["style", "side"], message: `a ${overlay.kind} has no side; leave it out` });
|
|
102
|
-
}
|
|
270
|
+
const issue = (path, message) => context.addIssue({ code: "custom", path, message });
|
|
271
|
+
checkOverlayFields(overlay, issue);
|
|
272
|
+
checkOverlayStyle(overlay, issue);
|
|
103
273
|
});
|
|
104
274
|
//# sourceMappingURL=overlay-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-schema.js","sourceRoot":"","sources":["../../src/footage/overlay-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAU,CAAC;AAI3G,qFAAqF;AACrF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC;AAItD,oDAAoD;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AAIxD,sEAAsE;AACtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AACrC,8CAA8C;AAC9C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AACrC,kCAAkC;AAClC,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAC7C,sCAAsC;AACt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