ParaShape

ArgumentNode

Source: packages/parametric/src/nodes/ArgumentNode.ts

Properties

NameTypeDescription
argNamestringRegistry key that identifies this argument within its parent node's args list.
minExpressionNode | nullOptional lower bound expression (numeric args).
maxExpressionNode | nullOptional upper bound expression (numeric args).
stepExpressionNode | nullOptional step increment expression (numeric args).
optionsNodeCollection<OptionNode>Select options for enum-style args; empty = unconstrained input.

Methods

SignatureDescription
newOptionDraft(): OptionNodeEngine-owned draft factory for the options editor's trailing "add row".
applyConstraints(json: ArgumentJSON): voidRestore constraint fields from a serialized ArgumentJSON (input excluded).
toInput(): ArgumentJSONSerialize this argument as an ArgumentJSON — { key, input } plus any set constraints.