Remove unused literal node modules: boolean, color, number, and string

This commit is contained in:
2026-03-21 18:38:22 +11:00
parent ae374db9fb
commit 71354ad463
4 changed files with 0 additions and 104 deletions

View File

@@ -1,26 +0,0 @@
import { createNodeModule } from "../nodeTypes.js";
/**
* Constant boolean literal.
*/
export const booleanLiteralNode = createNodeModule(
{
id: "boolean_literal",
title: "Boolean",
category: "Values",
description: "Constant boolean literal.",
searchTags: ["boolean", "literal", "true", "false"],
inputs: [],
outputs: [
{ id: "value", name: "Value", direction: "output", kind: "boolean" },
],
properties: [
{ key: "value", label: "Value", type: "boolean", defaultValue: true },
],
},
{
evaluateValue: ({ node, formatLiteral }) => {
return formatLiteral("boolean", node.properties.value ?? true);
},
}
);

View File

@@ -1,26 +0,0 @@
import { createNodeModule } from "../nodeTypes.js";
/**
* Constant color literal.
*/
export const colorLiteralNode = createNodeModule(
{
id: "color_literal",
title: "Color",
category: "Values",
description: "Constant color literal (0-15).",
searchTags: ["color", "literal", "constant", "value"],
inputs: [],
outputs: [
{ id: "value", name: "Value", direction: "output", kind: "color" },
],
properties: [
{ key: "value", label: "Color", type: "number", defaultValue: 7 },
],
},
{
evaluateValue: ({ node, formatLiteral }) => {
return formatLiteral("number", node.properties.value ?? 7);
},
}
);

View File

@@ -1,26 +0,0 @@
import { createNodeModule } from "../nodeTypes.js";
/**
* Constant numeric literal.
*/
export const numberLiteralNode = createNodeModule(
{
id: "number_literal",
title: "Number",
category: "Values",
description: "Constant numeric literal.",
searchTags: ["number", "literal", "constant", "value"],
inputs: [],
outputs: [
{ id: "value", name: "Value", direction: "output", kind: "number" },
],
properties: [
{ key: "value", label: "Number", type: "number", defaultValue: 0 },
],
},
{
evaluateValue: ({ node, formatLiteral }) => {
return formatLiteral("number", node.properties.value ?? 0);
},
}
);

View File

@@ -1,26 +0,0 @@
import { createNodeModule } from "../nodeTypes.js";
/**
* Constant string literal.
*/
export const stringLiteralNode = createNodeModule(
{
id: "string_literal",
title: "String",
category: "Values",
description: "Constant string literal.",
searchTags: ["string", "literal", "text", "value"],
inputs: [],
outputs: [
{ id: "value", name: "Value", direction: "output", kind: "string" },
],
properties: [
{ key: "value", label: "Text", type: "string", defaultValue: "hello" },
],
},
{
evaluateValue: ({ node, formatLiteral }) => {
return formatLiteral("string", node.properties.value ?? "");
},
}
);