Initial commit

moved from private version control
This commit is contained in:
2025-10-19 21:12:41 +11:00
parent 5e84773bbe
commit e64f3e881e
187 changed files with 25372 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
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);
},
}
);