ParaShape

ContainerNode

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

Properties

NameTypeDescription
valueEntityJSON[]Cached entity array produced by the last evaluate() call (own fold result).
keystringIdentifier used to reference this container's result in expressions.
labelArgumentNode | nullOptional label argument rendered as the node's display name.
enabledArgumentNode | nullOptional enable expression — falsy = the node contributes nothing.
laneModelLaneWhich model section this container was declared in.
childrenNodeCollection<BaseNode>Child collection holding this container's operations list.
operations(ContainerNode | OperationNode)[]Operation/container children in declaration order (the fold list).
returnstringContainers hold mixed kinds — reference values never single-unwrap.

Methods

SignatureDescription
setLabel(expr: string | null): voidSet or clear (null/"") the label expression.
setEnabled(expr: string | null): voidSet 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.