Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallo-10 committed Oct 21, 2024
1 parent 78c960e commit 7c895f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/nodes/CustomNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
</script>

Expand Down
7 changes: 3 additions & 4 deletions src/components/nodes/NodeModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "";
Expand Down Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c895f8

Please sign in to comment.