improve fn node

This commit is contained in:
2026-03-08 11:19:51 +01:00
parent 48a6917a81
commit 2407470c14
6 changed files with 148 additions and 61 deletions

View File

@@ -72,6 +72,9 @@ export const FunctionNode = memo(function FunctionNode({ id, data, width, height
<NodeFooterEdgeIndicators nodeId={id} nodeType="function">
{bodyValue ? `${bodyValue.length} chars` : 'none'}
</NodeFooterEdgeIndicators>
<p className="text-[10px] text-muted-foreground mt-1">
In config: <code className="rounded bg-muted px-0.5">{'{{ x | '}{id}{' }}'}</code> or <code>{'{{ x | '}{id}{'(a, b, key=val) }}'}</code>. Use <code>function(num, x, y, kwargs) &#123; ... &#125;</code> kwargs has keyword args.
</p>
</BaseNodeFooter>
</BaseNode>
)