fix(canvas): harmonize prompt model defaults for edge insertions
This commit is contained in:
@@ -223,7 +223,7 @@ describe("useCanvasEdgeInsertions", () => {
|
|||||||
label: "Prompt",
|
label: "Prompt",
|
||||||
width: 320,
|
width: 320,
|
||||||
height: 220,
|
height: 220,
|
||||||
defaultData: { prompt: "", model: "", aspectRatio: "1:1" },
|
defaultData: { prompt: "", aspectRatio: "1:1" },
|
||||||
} as CanvasNodeTemplate);
|
} as CanvasNodeTemplate);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -268,7 +268,7 @@ describe("useCanvasEdgeInsertions", () => {
|
|||||||
label: "Prompt",
|
label: "Prompt",
|
||||||
width: 320,
|
width: 320,
|
||||||
height: 220,
|
height: 220,
|
||||||
defaultData: { prompt: "", model: "", aspectRatio: "1:1" },
|
defaultData: { prompt: "", aspectRatio: "1:1" },
|
||||||
} as CanvasNodeTemplate);
|
} as CanvasNodeTemplate);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -319,7 +319,7 @@ describe("useCanvasEdgeInsertions", () => {
|
|||||||
label: "Prompt",
|
label: "Prompt",
|
||||||
width: 320,
|
width: 320,
|
||||||
height: 220,
|
height: 220,
|
||||||
defaultData: { prompt: "", model: "", aspectRatio: "1:1" },
|
defaultData: { prompt: "", aspectRatio: "1:1" },
|
||||||
} as CanvasNodeTemplate);
|
} as CanvasNodeTemplate);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ describe("useCanvasEdgeInsertions", () => {
|
|||||||
height: 220,
|
height: 220,
|
||||||
data: {
|
data: {
|
||||||
prompt: "",
|
prompt: "",
|
||||||
model: "",
|
model: "google/gemini-2.5-flash-image",
|
||||||
aspectRatio: "1:1",
|
aspectRatio: "1:1",
|
||||||
canvasId: "canvas-1",
|
canvasId: "canvas-1",
|
||||||
},
|
},
|
||||||
@@ -650,7 +650,7 @@ describe("useCanvasEdgeInsertions", () => {
|
|||||||
label: "Prompt",
|
label: "Prompt",
|
||||||
width: 320,
|
width: 320,
|
||||||
height: 220,
|
height: 220,
|
||||||
defaultData: { prompt: "", model: "", aspectRatio: "1:1" },
|
defaultData: { prompt: "", model: "google/gemini-2.5-flash-image", aspectRatio: "1:1" },
|
||||||
} as CanvasNodeTemplate);
|
} as CanvasNodeTemplate);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const CANVAS_NODE_TEMPLATES = [
|
|||||||
label: "Prompt",
|
label: "Prompt",
|
||||||
width: 320,
|
width: 320,
|
||||||
height: 220,
|
height: 220,
|
||||||
defaultData: { prompt: "", model: "", aspectRatio: "1:1" },
|
defaultData: { prompt: "", model: "google/gemini-2.5-flash-image", aspectRatio: "1:1" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "video-prompt",
|
type: "video-prompt",
|
||||||
|
|||||||
@@ -235,7 +235,11 @@ export const NODE_DEFAULTS: Record<
|
|||||||
> = {
|
> = {
|
||||||
image: { width: 280, height: 200, data: {} },
|
image: { width: 280, height: 200, data: {} },
|
||||||
text: { width: 256, height: 120, data: { content: "" } },
|
text: { width: 256, height: 120, data: { content: "" } },
|
||||||
prompt: { width: 288, height: 220, data: { prompt: "", aspectRatio: "1:1" } },
|
prompt: {
|
||||||
|
width: 288,
|
||||||
|
height: 220,
|
||||||
|
data: { prompt: "", model: "google/gemini-2.5-flash-image", aspectRatio: "1:1" },
|
||||||
|
},
|
||||||
"video-prompt": {
|
"video-prompt": {
|
||||||
width: 288,
|
width: 288,
|
||||||
height: 220,
|
height: 220,
|
||||||
|
|||||||
Reference in New Issue
Block a user