Home > @uniformdev/canvas > evaluateWalkTreePropertyCriteria

evaluateWalkTreePropertyCriteria() function

Function to call to evaluate conditional properties rules when traversing the node tree with walkNodeTree or other traversal tool. This function will perform a simplification of the conditional property values, removing known-non-matching conditions, and for authoritative matches the match value replaces the value property, clearing the conditionals.

Automatically also evaluates localizable conditional values.

NOTE: this function may mutate its input object for maximum performance.

Signature:

Parameters

ParameterTypeDescription
{ rules, node, keepIndeterminate, }EvaluateWalkTreePropertyCriteriaOptions

Returns:

void