mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
Remove unused literal node modules: boolean, color, number, and string
This commit is contained in:
@@ -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);
|
||||
},
|
||||
}
|
||||
);
|
||||
@@ -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);
|
||||
},
|
||||
}
|
||||
);
|
||||
@@ -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);
|
||||
},
|
||||
}
|
||||
);
|
||||
@@ -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 ?? "");
|
||||
},
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user