diff --git a/src/components/nodes/CustomNode.svelte b/src/components/nodes/CustomNode.svelte index 5eef40e..a4608d0 100644 --- a/src/components/nodes/CustomNode.svelte +++ b/src/components/nodes/CustomNode.svelte @@ -104,15 +104,15 @@ }); }); } - // Update the node data to include the handles updateNodeData(id, { ...typedData, handles: handles, }); - function handleClose() { - console.log("test"); + export function handleClose() { + console.log(id); + return id; } diff --git a/src/components/nodes/NodeModal.svelte b/src/components/nodes/NodeModal.svelte index 31e5daf..ac93ac9 100644 --- a/src/components/nodes/NodeModal.svelte +++ b/src/components/nodes/NodeModal.svelte @@ -34,7 +34,6 @@ let inputParameterContent = data.inputParameterContent || ""; let declarationLocation = data.declarationLocation || ""; let typeOfDeclaration = data.typeOfDeclaration || "variables"; - let selectedRetunType = data.selectedRetunType || ""; let inputMethodName = data.inputMethodName || ""; let methodDeclarationLocation = data.methodDeclarationLocation || ""; @@ -124,9 +123,9 @@ arduinoCode.set(newCode); //@ts-ignore - sourceNode.data.extras.inputParameterName = inputParameterName; - //@ts-ignore - sourceNode.data.extras.inputParameterContent = inputParameterContent; + (sourceNode.data.extras.variables = + selectedType + " " + inputParameterName), + (sourceNode.data.extras.parameters = inputParameterContent); updateNodeData(sourceNode.id, sourceNode.data); updateNodeData(id, { diff --git a/src/components/sidebar/Sidebar.svelte b/src/components/sidebar/Sidebar.svelte index f4728e5..b0c9758 100644 --- a/src/components/sidebar/Sidebar.svelte +++ b/src/components/sidebar/Sidebar.svelte @@ -43,7 +43,7 @@ .node { margin: 0.5rem; - border: 2px solid #111; + border: 2px solid #111; border-radius: 10px; padding: 0.5rem 1rem; font-weight: 700;