ContainerNode
Source: packages/parametric/src/nodes/ContainerNode.ts
Properties
| Name | Type | Description |
|---|---|---|
value | EntityJSON[] | Cached entity array produced by the last evaluate() call (own fold result). |
key | string | Identifier used to reference this container's result in expressions. |
label | ArgumentNode | null | Optional label argument rendered as the node's display name. |
enabled | ArgumentNode | null | Optional enable expression — falsy = the node contributes nothing. |
lane | ModelLane | Which model section this container was declared in. |
children | NodeCollection<BaseNode> | Child collection holding this container's operations list. |
operations | (ContainerNode | OperationNode)[] | Operation/container children in declaration order (the fold list). |
return | string | Containers hold mixed kinds — reference values never single-unwrap. |
Methods
| Signature | Description |
|---|---|
setLabel(expr: string | null): void | Set or clear (null/"") the label expression. |
setEnabled(expr: string | null): void | Set or clear (null/"") the enable expression. |
evaluate(listener?: () => void): EntityJSON[] | Evaluate this container's own fold, cache the result, notify listeners. |
computeUntil(stopBefore: OperationNode | ContainerNode): EntityJSON[] | The fold state up to (not including) stopBefore, baked to concrete geometry — what that step sees as input. Reads the per-step caches (pulling the fold fresh first), so this is cheap. Used by the UI for filter-arg hover previews. |