diff --git a/scripts/nodes/library/addNumber.js b/scripts/nodes/library/addNumber.js deleted file mode 100644 index 658a5bb..0000000 --- a/scripts/nodes/library/addNumber.js +++ /dev/null @@ -1,41 +0,0 @@ -import { createNodeModule } from "../nodeTypes.js"; - -/** - * Adds two numeric values. - */ -export const addNumberNode = createNodeModule( - { - id: "add_number", - title: "Add", - category: "Math", - description: "Add two numbers.", - searchTags: ["add", "math", "sum", "number"], - inputs: [ - { - id: "a", - name: "A", - direction: "input", - kind: "number", - defaultValue: 0, - }, - { - id: "b", - name: "B", - direction: "input", - kind: "number", - defaultValue: 0, - }, - ], - outputs: [ - { id: "res", name: "Result", direction: "output", kind: "number" }, - ], - properties: [], - }, - { - evaluateValue: ({ resolveValueInput }) => { - const a = resolveValueInput("a", "0"); - const b = resolveValueInput("b", "0"); - return `(${a}) + (${b})`; - }, - } -); diff --git a/scripts/nodes/library/multiplyNumber.js b/scripts/nodes/library/multiplyNumber.js deleted file mode 100644 index f427f32..0000000 --- a/scripts/nodes/library/multiplyNumber.js +++ /dev/null @@ -1,41 +0,0 @@ -import { createNodeModule } from "../nodeTypes.js"; - -/** - * Multiplies two numeric values. - */ -export const multiplyNumberNode = createNodeModule( - { - id: "multiply_number", - title: "Multiply", - category: "Math", - description: "Multiply two numbers.", - searchTags: ["multiply", "product", "math", "number"], - inputs: [ - { - id: "a", - name: "A", - direction: "input", - kind: "number", - defaultValue: 1, - }, - { - id: "b", - name: "B", - direction: "input", - kind: "number", - defaultValue: 1, - }, - ], - outputs: [ - { id: "res", name: "Result", direction: "output", kind: "number" }, - ], - properties: [], - }, - { - evaluateValue: ({ resolveValueInput }) => { - const a = resolveValueInput("a", "1"); - const b = resolveValueInput("b", "1"); - return `(${a}) * (${b})`; - }, - } -); diff --git a/scripts/nodes/library/subtractNumber.js b/scripts/nodes/library/subtractNumber.js deleted file mode 100644 index 6218f61..0000000 --- a/scripts/nodes/library/subtractNumber.js +++ /dev/null @@ -1,41 +0,0 @@ -import { createNodeModule } from "../nodeTypes.js"; - -/** - * Subtracts one numeric value from another. - */ -export const subtractNumberNode = createNodeModule( - { - id: "subtract_number", - title: "Subtract", - category: "Math", - description: "Subtract one number from another.", - searchTags: ["subtract", "math", "minus", "difference", "number"], - inputs: [ - { - id: "a", - name: "A", - direction: "input", - kind: "number", - defaultValue: 0, - }, - { - id: "b", - name: "B", - direction: "input", - kind: "number", - defaultValue: 0, - }, - ], - outputs: [ - { id: "res", name: "Result", direction: "output", kind: "number" }, - ], - properties: [], - }, - { - evaluateValue: ({ resolveValueInput }) => { - const a = resolveValueInput("a", "0"); - const b = resolveValueInput("b", "0"); - return `(${a}) - (${b})`; - }, - } -);