@softure-ai/marketing-kit 0.41.0 → 0.42.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 +8 -0
- package/dist/compose/timeline.d.ts +6 -0
- package/dist/compose/timeline.d.ts.map +1 -1
- package/dist/compose/timeline.js +9 -1
- package/dist/compose/timeline.js.map +1 -1
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +3 -3
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/draft-overlays.d.ts +10 -0
- package/dist/footage/draft-overlays.d.ts.map +1 -1
- package/dist/footage/draft-overlays.js +45 -15
- package/dist/footage/draft-overlays.js.map +1 -1
- package/dist/footage/draft-text-width.d.ts +30 -0
- package/dist/footage/draft-text-width.d.ts.map +1 -1
- package/dist/footage/draft-text-width.js +51 -1
- package/dist/footage/draft-text-width.js.map +1 -1
- package/dist/footage/draft.d.ts +22 -1
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +56 -29
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/overlay-html.d.ts.map +1 -1
- package/dist/footage/overlay-html.js +6 -5
- package/dist/footage/overlay-html.js.map +1 -1
- package/dist/footage/overlays.d.ts +10 -0
- package/dist/footage/overlays.d.ts.map +1 -1
- package/dist/footage/overlays.js +5 -0
- package/dist/footage/overlays.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/compose/timeline.ts +12 -1
- package/src/footage/compose.ts +3 -3
- package/src/footage/draft-overlays.ts +61 -15
- package/src/footage/draft-text-width.ts +69 -1
- package/src/footage/draft.ts +81 -31
- package/src/footage/overlay-html.ts +6 -4
- package/src/footage/overlays.ts +5 -0
- package/src/index.ts +17 -1
package/src/footage/overlays.ts
CHANGED
|
@@ -107,6 +107,11 @@ export const LIST_CHIP_MIN_FONT_SIZE = 36;
|
|
|
107
107
|
export const LIST_CHIP_CENTRED_MIN_FONT_SIZE = 32;
|
|
108
108
|
/** A place card title's line height, tighter for its big type. */
|
|
109
109
|
export const OVERLAY_TITLE_LINE_HEIGHT = 1.05;
|
|
110
|
+
/**
|
|
111
|
+
* The render's letter spacing, in em: every card's text (`card`), a hook title's and a place card's title lines, and a
|
|
112
|
+
* paper strip's capitals. The draft spaces its letters the same (`\\fsp`) and measures its lines with it.
|
|
113
|
+
*/
|
|
114
|
+
export const OVERLAY_LETTER_SPACING_EM = { card: -0.015, hookTitle: -0.02, placeTitle: -0.025, strip: 0.02 } as const;
|
|
110
115
|
export const OVERLAY_PADDING_EM = { x: 0.6, y: 0.35 } as const;
|
|
111
116
|
/** The search field's padding round its query, in font sizes (its height is the line plus twice this). */
|
|
112
117
|
export const SEARCH_BAR_PADDING_EM = { x: 0.7, y: 0.55 } as const;
|
package/src/index.ts
CHANGED
|
@@ -157,11 +157,22 @@ export {
|
|
|
157
157
|
type StylePadding,
|
|
158
158
|
type StyleShadow,
|
|
159
159
|
} from "./footage/brand-style.js";
|
|
160
|
-
export {
|
|
160
|
+
export {
|
|
161
|
+
createDraftFont,
|
|
162
|
+
createDraftTextMeasure,
|
|
163
|
+
getSpacingWidth,
|
|
164
|
+
toDraftAssSize,
|
|
165
|
+
toDraftSpacing,
|
|
166
|
+
withLetterSpacing,
|
|
167
|
+
wrapDraftLine,
|
|
168
|
+
type DraftFont,
|
|
169
|
+
type DraftTextMeasure,
|
|
170
|
+
} from "./footage/draft-text-width.js";
|
|
161
171
|
export { HAND_FONT } from "./footage/hand-font.js";
|
|
162
172
|
export {
|
|
163
173
|
OVERLAY_FONT_ROLES,
|
|
164
174
|
OVERLAY_FONT_SIZES,
|
|
175
|
+
OVERLAY_LETTER_SPACING_EM,
|
|
165
176
|
OVERLAY_SUBTITLE_SCALES,
|
|
166
177
|
MIN_OVERLAY_SUBTITLE_PX,
|
|
167
178
|
OVERLAY_TITLE_SHRINK,
|
|
@@ -278,7 +289,10 @@ export { describeVoiceoverBatch, produceVoiceovers, type VoiceoverBatchItem, typ
|
|
|
278
289
|
export { getPlaceholderKey, isPlaceholderKey, makePlaceholderWords, writePlaceholderVoiceover, type PlaceholderPace, type WritePlaceholderOptions } from "./voice/placeholder.js";
|
|
279
290
|
export {
|
|
280
291
|
BROWSER_BAR_HEIGHT,
|
|
292
|
+
CAPTION_LETTER_SPACING_EM,
|
|
281
293
|
CAPTION_LINE_HEIGHT,
|
|
294
|
+
CAPTION_RIBBON_LETTER_SPACING_EM,
|
|
295
|
+
toCssEm,
|
|
282
296
|
CAPTION_PILL_PADDING,
|
|
283
297
|
DEVICE_KINDS,
|
|
284
298
|
LAYOUTS,
|
|
@@ -687,6 +701,8 @@ export {
|
|
|
687
701
|
FOOTAGE_DRAFT_OVERLAY_COLORS,
|
|
688
702
|
FOOTAGE_DRAFT_FONT,
|
|
689
703
|
FOOTAGE_DRAFT_WIDTH,
|
|
704
|
+
loadFootageDraftFonts,
|
|
705
|
+
type FootageDraftFonts,
|
|
690
706
|
buildFootageDraftArgs,
|
|
691
707
|
buildFootageDraftCaptions,
|
|
692
708
|
buildFootageDraftJoinArgs,
|