ArgumentNode
Source: packages/parametric/src/nodes/ArgumentNode.ts
Properties
| Name | Type | Description |
|---|---|---|
argName | string | Registry key that identifies this argument within its parent node's args list. |
min | ExpressionNode | null | Optional lower bound expression (numeric args). |
max | ExpressionNode | null | Optional upper bound expression (numeric args). |
step | ExpressionNode | null | Optional step increment expression (numeric args). |
options | NodeCollection<OptionNode> | Select options for enum-style args; empty = unconstrained input. |
Methods
| Signature | Description |
|---|---|
newOptionDraft(): OptionNode | Engine-owned draft factory for the options editor's trailing "add row". |
applyConstraints(json: ArgumentJSON): void | Restore constraint fields from a serialized ArgumentJSON (input excluded). |
toInput(): ArgumentJSON | Serialize this argument as an ArgumentJSON — { key, input } plus any set constraints. |