Browse Source

feat: add generate3d node defaults and dimensions

Add default dimensions (300x300) and createDefaultNodeData case for
the generate3d node type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 5 months ago
parent
commit
cea1433155
  1. 13
      src/store/utils/nodeDefaults.ts

13
src/store/utils/nodeDefaults.ts

@ -7,6 +7,7 @@ import {
PromptConstructorNodeData, PromptConstructorNodeData,
NanoBananaNodeData, NanoBananaNodeData,
GenerateVideoNodeData, GenerateVideoNodeData,
Generate3DNodeData,
LLMGenerateNodeData, LLMGenerateNodeData,
SplitGridNodeData, SplitGridNodeData,
OutputNodeData, OutputNodeData,
@ -32,6 +33,7 @@ export const defaultNodeDimensions: Record<NodeType, { width: number; height: nu
promptConstructor: { width: 340, height: 280 }, promptConstructor: { width: 340, height: 280 },
nanoBanana: { width: 300, height: 300 }, nanoBanana: { width: 300, height: 300 },
generateVideo: { width: 300, height: 300 }, generateVideo: { width: 300, height: 300 },
generate3d: { width: 300, height: 300 },
llmGenerate: { width: 320, height: 360 }, llmGenerate: { width: 320, height: 360 },
splitGrid: { width: 300, height: 320 }, splitGrid: { width: 300, height: 320 },
output: { width: 320, height: 320 }, output: { width: 320, height: 320 },
@ -146,6 +148,17 @@ export const createDefaultNodeData = (type: NodeType): WorkflowNodeData => {
selectedVideoHistoryIndex: 0, selectedVideoHistoryIndex: 0,
} as GenerateVideoNodeData; } as GenerateVideoNodeData;
} }
case "generate3d": {
const nodeDefaults = loadNodeDefaults();
return {
inputImages: [],
inputPrompt: null,
output3dUrl: null,
selectedModel: nodeDefaults.generate3d?.selectedModel,
status: "idle",
error: null,
} as Generate3DNodeData;
}
case "llmGenerate": { case "llmGenerate": {
const nodeDefaults = loadNodeDefaults(); const nodeDefaults = loadNodeDefaults();
const llmDefaults = nodeDefaults.llm; const llmDefaults = nodeDefaults.llm;

Loading…
Cancel
Save