mulmocast 2.4.6 → 2.4.7

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.
@@ -21,7 +21,7 @@
21
21
  /* Text positioned at the bottom */
22
22
  width: 80%;
23
23
  position: absolute;
24
- bottom: 0px;
24
+ bottom: ${bottomOffset}%;
25
25
  /* Enable text wrapping */
26
26
  word-wrap: break-word;
27
27
  overflow-wrap: break-word;
@@ -89,6 +89,7 @@ const generateBeatCaptions = async (beat, context, index) => {
89
89
  width: `${canvasSize.width}`,
90
90
  height: `${canvasSize.height}`,
91
91
  styles: (mergedCaptionParams.styles ?? []).join(";\n"),
92
+ bottomOffset: `${mergedCaptionParams.bottomOffset ?? 0}`,
92
93
  });
93
94
  await renderHTMLToImage(htmlData, imagePath, canvasSize.width, canvasSize.height, false, true);
94
95
  return {
@@ -327,6 +327,7 @@ export declare const mulmoCaptionParamsSchema: z.ZodObject<{
327
327
  type: z.ZodLiteral<"delimiters">;
328
328
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
329
329
  }, z.core.$strip>], "type">>;
330
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
330
331
  }, z.core.$strict>;
331
332
  export declare const mulmoChartMediaSchema: z.ZodObject<{
332
333
  type: z.ZodLiteral<"chart">;
@@ -6288,6 +6289,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
6288
6289
  type: z.ZodLiteral<"delimiters">;
6289
6290
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
6290
6291
  }, z.core.$strip>], "type">>;
6292
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
6291
6293
  }, z.core.$strict>>;
6292
6294
  imageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
6293
6295
  imagePrompt: z.ZodOptional<z.ZodString>;
@@ -6747,6 +6749,7 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
6747
6749
  type: z.ZodLiteral<"delimiters">;
6748
6750
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
6749
6751
  }, z.core.$strip>], "type">>;
6752
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
6750
6753
  }, z.core.$strict>>;
6751
6754
  audioParams: z.ZodDefault<z.ZodObject<{
6752
6755
  padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -7202,6 +7205,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
7202
7205
  type: z.ZodLiteral<"delimiters">;
7203
7206
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
7204
7207
  }, z.core.$strip>], "type">>;
7208
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
7205
7209
  }, z.core.$strict>>;
7206
7210
  audioParams: z.ZodDefault<z.ZodObject<{
7207
7211
  padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -10083,6 +10087,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
10083
10087
  type: z.ZodLiteral<"delimiters">;
10084
10088
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
10085
10089
  }, z.core.$strip>], "type">>;
10090
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
10086
10091
  }, z.core.$strict>>;
10087
10092
  imageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
10088
10093
  imagePrompt: z.ZodOptional<z.ZodString>;
@@ -10617,6 +10622,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
10617
10622
  type: z.ZodLiteral<"delimiters">;
10618
10623
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
10619
10624
  }, z.core.$strip>], "type">>;
10625
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
10620
10626
  }, z.core.$strict>>;
10621
10627
  audioParams: z.ZodDefault<z.ZodObject<{
10622
10628
  padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -13498,6 +13504,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
13498
13504
  type: z.ZodLiteral<"delimiters">;
13499
13505
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
13500
13506
  }, z.core.$strip>], "type">>;
13507
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
13501
13508
  }, z.core.$strict>>;
13502
13509
  imageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
13503
13510
  imagePrompt: z.ZodOptional<z.ZodString>;
@@ -13968,6 +13975,7 @@ export declare const mulmoPromptTemplateSchema: z.ZodObject<{
13968
13975
  type: z.ZodLiteral<"delimiters">;
13969
13976
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
13970
13977
  }, z.core.$strip>], "type">>;
13978
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
13971
13979
  }, z.core.$strict>>;
13972
13980
  audioParams: z.ZodDefault<z.ZodObject<{
13973
13981
  padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -14417,6 +14425,7 @@ export declare const mulmoPromptTemplateFileSchema: z.ZodObject<{
14417
14425
  type: z.ZodLiteral<"delimiters">;
14418
14426
  delimiters: z.ZodOptional<z.ZodArray<z.ZodString>>;
14419
14427
  }, z.core.$strip>], "type">>;
14428
+ bottomOffset: z.ZodOptional<z.ZodNumber>;
14420
14429
  }, z.core.$strict>>;
14421
14430
  audioParams: z.ZodDefault<z.ZodObject<{
14422
14431
  padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -174,6 +174,7 @@ export const mulmoCaptionParamsSchema = z
174
174
  styles: z.array(z.string()).optional(), // css styles
175
175
  captionSplit: captionSplitSchema.optional(), // how to determine caption timing
176
176
  textSplit: textSplitSchema.optional(), // how to split text into segments (default: none)
177
+ bottomOffset: z.number().min(0).max(100).optional(), // bottom offset in percentage (e.g., 20 = 20% from bottom)
177
178
  })
178
179
  .strict();
179
180
  export const mulmoChartMediaSchema = z
@@ -1960,6 +1960,7 @@ export declare const createStudioData: (_mulmoScript: MulmoScript, fileName: str
1960
1960
  type: "delimiters";
1961
1961
  delimiters?: string[] | undefined;
1962
1962
  } | undefined;
1963
+ bottomOffset?: number | undefined;
1963
1964
  } | undefined;
1964
1965
  imageNames?: string[] | undefined;
1965
1966
  imagePrompt?: string | undefined;
@@ -2050,6 +2051,7 @@ export declare const createStudioData: (_mulmoScript: MulmoScript, fileName: str
2050
2051
  type: "delimiters";
2051
2052
  delimiters?: string[] | undefined;
2052
2053
  } | undefined;
2054
+ bottomOffset?: number | undefined;
2053
2055
  } | undefined;
2054
2056
  title?: string | undefined;
2055
2057
  description?: string | undefined;
@@ -4052,6 +4054,7 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
4052
4054
  type: "delimiters";
4053
4055
  delimiters?: string[] | undefined;
4054
4056
  } | undefined;
4057
+ bottomOffset?: number | undefined;
4055
4058
  } | undefined;
4056
4059
  imageNames?: string[] | undefined;
4057
4060
  imagePrompt?: string | undefined;
@@ -4142,6 +4145,7 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
4142
4145
  type: "delimiters";
4143
4146
  delimiters?: string[] | undefined;
4144
4147
  } | undefined;
4148
+ bottomOffset?: number | undefined;
4145
4149
  } | undefined;
4146
4150
  title?: string | undefined;
4147
4151
  description?: string | undefined;
@@ -4534,6 +4538,7 @@ export declare const initializeContextFromFiles: (files: FileObject, raiseError:
4534
4538
  type: "delimiters";
4535
4539
  delimiters?: string[] | undefined;
4536
4540
  } | undefined;
4541
+ bottomOffset?: number | undefined;
4537
4542
  } | undefined;
4538
4543
  };
4539
4544
  sessionState: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mulmocast",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.node.js",