137 lines
2.4 KiB
TypeScript
137 lines
2.4 KiB
TypeScript
import { DEFAULT_CROP_NODE_DATA } from "@/lib/image-pipeline/crop-node-data";
|
|
|
|
export const CANVAS_NODE_TEMPLATES = [
|
|
{
|
|
type: "image",
|
|
label: "Bild",
|
|
width: 280,
|
|
height: 180,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "text",
|
|
label: "Text",
|
|
width: 256,
|
|
height: 120,
|
|
defaultData: { content: "" },
|
|
},
|
|
{
|
|
type: "prompt",
|
|
label: "Prompt",
|
|
width: 320,
|
|
height: 220,
|
|
defaultData: { prompt: "", model: "google/gemini-2.5-flash-image", aspectRatio: "1:1" },
|
|
},
|
|
{
|
|
type: "video-prompt",
|
|
label: "KI-Video",
|
|
width: 320,
|
|
height: 220,
|
|
defaultData: {
|
|
prompt: "",
|
|
modelId: "wan-2-2-720p",
|
|
durationSeconds: 5,
|
|
hasAudio: false,
|
|
},
|
|
},
|
|
{
|
|
type: "agent",
|
|
label: "Campaign Distributor",
|
|
width: 360,
|
|
height: 320,
|
|
defaultData: {
|
|
templateId: "campaign-distributor",
|
|
},
|
|
},
|
|
{
|
|
type: "note",
|
|
label: "Notiz",
|
|
width: 220,
|
|
height: 120,
|
|
defaultData: { content: "" },
|
|
},
|
|
{
|
|
type: "frame",
|
|
label: "Frame",
|
|
width: 360,
|
|
height: 240,
|
|
defaultData: { label: "Untitled", exportWidth: 1080, exportHeight: 1080 },
|
|
},
|
|
{
|
|
type: "compare",
|
|
label: "Vergleich",
|
|
width: 500,
|
|
height: 380,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "group",
|
|
label: "Gruppe",
|
|
width: 400,
|
|
height: 300,
|
|
defaultData: { label: "Gruppe" },
|
|
},
|
|
{
|
|
type: "asset",
|
|
label: "Asset (Stock)",
|
|
width: 260,
|
|
height: 240,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "video",
|
|
label: "Video",
|
|
width: 320,
|
|
height: 180,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "crop",
|
|
label: "Crop / Resize",
|
|
width: 340,
|
|
height: 620,
|
|
defaultData: DEFAULT_CROP_NODE_DATA,
|
|
},
|
|
{
|
|
type: "curves",
|
|
label: "Kurven",
|
|
width: 320,
|
|
height: 660,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "color-adjust",
|
|
label: "Farbe",
|
|
width: 320,
|
|
height: 800,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "light-adjust",
|
|
label: "Licht",
|
|
width: 320,
|
|
height: 920,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "detail-adjust",
|
|
label: "Detail",
|
|
width: 320,
|
|
height: 880,
|
|
defaultData: {},
|
|
},
|
|
{
|
|
type: "render",
|
|
label: "Render",
|
|
width: 300,
|
|
height: 420,
|
|
defaultData: {
|
|
outputResolution: "original",
|
|
format: "png",
|
|
jpegQuality: 90,
|
|
},
|
|
},
|
|
] as const;
|
|
|
|
export type CanvasNodeTemplate = (typeof CANVAS_NODE_TEMPLATES)[number];
|