Remove arithmetic node modules: add, multiply, and subtract

This commit is contained in:
2026-03-21 18:39:19 +11:00
parent f917cf6ad5
commit 3d56c7ce04
3 changed files with 0 additions and 123 deletions

View File

@@ -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})`;
},
}
);

View File

@@ -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})`;
},
}
);

View File

@@ -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})`;
},
}
);