mulmocast 2.21.0 → 2.22.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/lib/actions/images.js +2 -1
- package/lib/data/animationRuntime.d.ts +5 -0
- package/lib/data/animationRuntime.js +639 -0
- package/lib/methods/mulmo_beat.d.ts +2 -7
- package/lib/methods/mulmo_beat.js +1 -12
- package/lib/methods/mulmo_beat_node.d.ts +2 -8
- package/lib/utils/animation_config.d.ts +15 -0
- package/lib/utils/animation_config.js +17 -0
- package/lib/utils/audio_probe_source.d.ts +5 -0
- package/lib/utils/audio_probe_source.js +16 -0
- package/lib/utils/beat_html/chart.js +2 -1
- package/lib/utils/beat_html/decoration.d.ts +16 -0
- package/lib/utils/beat_html/decoration.js +55 -0
- package/lib/utils/beat_html/html_tailwind.d.ts +6 -6
- package/lib/utils/beat_html/html_tailwind.js +13 -7
- package/lib/utils/beat_html/index.js +3 -2
- package/lib/utils/beat_html/mermaid.js +2 -1
- package/lib/utils/beat_html/slide.d.ts +7 -2
- package/lib/utils/beat_html/slide.js +7 -22
- package/lib/utils/beat_html/type.d.ts +43 -1
- package/lib/utils/html_render.js +1 -1
- package/lib/utils/image_plugins/bg_image_css.d.ts +19 -0
- package/lib/utils/image_plugins/bg_image_css.js +75 -0
- package/lib/utils/image_plugins/bg_image_util.d.ts +0 -6
- package/lib/utils/image_plugins/bg_image_util.js +7 -69
- package/lib/utils/image_plugins/html_tailwind.js +2 -39
- package/lib/utils/image_plugins/html_tailwind_script.d.ts +41 -0
- package/lib/utils/image_plugins/html_tailwind_script.js +111 -0
- package/lib/utils/image_plugins/slide.js +2 -5
- package/lib/utils/image_plugins/slide_branding.d.ts +7 -0
- package/lib/utils/image_plugins/slide_branding.js +10 -0
- package/package.json +1 -1
package/lib/actions/images.js
CHANGED
|
@@ -12,6 +12,7 @@ import { agentIncorrectAPIKeyError, agentAPIRateLimitError, imageAction, imageFi
|
|
|
12
12
|
import { getOutputStudioFilePath, mkdir } from "../utils/file.js";
|
|
13
13
|
import { audioCheckerError } from "../utils/error_cause.js";
|
|
14
14
|
import { extractImageFromMovie, ffmpegGetMediaDuration, trimMusic } from "../utils/ffmpeg_utils.js";
|
|
15
|
+
import { audioProbeSource } from "../utils/audio_probe_source.js";
|
|
15
16
|
import { getMediaRefs, resolveBeatLocalRefs } from "./image_references.js";
|
|
16
17
|
import { imagePreprocessAgent, imagePluginAgent, htmlImageGeneratorAgent, beatFrameResolverAgent } from "./image_agents.js";
|
|
17
18
|
import { imageGraphOption } from "./graph_option.js";
|
|
@@ -232,7 +233,7 @@ export const beat_graph_data = {
|
|
|
232
233
|
if (namedInputs.soundEffectFile) {
|
|
233
234
|
return { hasMovieAudio: true };
|
|
234
235
|
}
|
|
235
|
-
const sourceFile = namedInputs
|
|
236
|
+
const sourceFile = audioProbeSource(namedInputs);
|
|
236
237
|
if (!sourceFile) {
|
|
237
238
|
// no need to check if the file exists (ffmpegGetMediaDuration will check it if it is local file)
|
|
238
239
|
return { hasMovieAudio: false };
|