Merge branch 'main' of github.com:ddcat-ai/open-ai-canvas

This commit is contained in:
ddCat
2026-08-07 18:47:35 +08:00
2 changed files with 85 additions and 114 deletions

View File

@@ -1192,7 +1192,6 @@ function InfiniteCanvasPage() {
}
if (contentNode.type === CanvasNodeType.Script) {
const pipeline = deriveStoryboardPipelineProgress(contentNode, nodesRef.current, connectionsRef.current);
const rowIds = pipeline.rows.map((item) => item.row.id);
return (
<CanvasScriptNodeContent
node={contentNode}
@@ -1203,8 +1202,8 @@ function InfiniteCanvasPage() {
onOpen={() => setScriptEditorNodeId(contentNode.id)}
onCreateImageNodes={() => createScriptImageNodes(contentNode.id)}
onCreateVideoNodes={() => createScriptVideoNodes(contentNode.id)}
onGenerateImages={() => void generateScriptImages(contentNode.id, rowIds)}
onGenerateVideos={() => (contentNode.metadata?.storyboardVideoInputMode === "keyframe" ? void generateScriptVideos(contentNode.id, rowIds) : void createAndGenerateScriptVideos(contentNode.id, rowIds))}
onGenerateImages={(rowIds) => void generateScriptImages(contentNode.id, rowIds)}
onGenerateVideos={(rowIds) => (contentNode.metadata?.storyboardVideoInputMode === "keyframe" ? void generateScriptVideos(contentNode.id, rowIds) : void createAndGenerateScriptVideos(contentNode.id, rowIds))}
onVideoInputModeChange={(storyboardVideoInputMode) => handleConfigNodeChange(contentNode.id, { storyboardVideoInputMode })}
onMergeVideos={() => void mergeVideosByIds(pipeline.successfulVideoNodeIds)}
onCreateActionBoards={() => void createScriptActionBoards(contentNode.id)}