Added function in the panel for user to be added new function

This commit is contained in:
Ankitkumar Satapara
2026-04-18 17:24:55 +05:30
parent 21aaef6776
commit 5c838908eb
9 changed files with 454 additions and 8 deletions

View File

@@ -275,6 +275,24 @@ namespace Nodify.Calculator
//_o.Input.AddRange(input);
return _o;
case OperationType.System:
if (info.sysOp == SystemOperations.FUNCTION)
{
var funcOp = new FunctionOperationViewModel
{
Title = info.Title,
FunctionName = info.Title
};
// Add flow connectors (triangle)
var funcFlowIn = new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle };
var funcFlowOut = new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, IsInput = false };
funcOp.Input.Add(funcFlowIn);
funcOp.Output.Add(funcFlowOut);
// Configure typed input/output parameters
funcOp.ConfigureParameters(info.FunctionInputs, info.FunctionOutputs);
return funcOp;
}
if (info.sysOp == SystemOperations.AUTH)
{
var authOp = new AuthOperationViewModel