calculate

Methods

(static) _getNodesForAction(action, eventopt)

Source:
Parameters:
Name Type Attributes Description
action 'setvalue' | 'setgeopoint'

the action being performed.

event CustomEvent <optional>

the event type that triggered the action.

(static) _isRelevant(props) → {boolean}

Source:

Determines relevancy of node by re-evaluating relevant expressions of self and ancestors.

Parameters:
Name Type Description
props *

properties of a node

Returns:

whether the node is relevant

Type
boolean

(static) _updateCalc(control, props, emptyNonRelevantopt)

Source:

Updates a calculation.

Parameters:
Name Type Attributes Description
control Element

view element containing calculation

props *

properties of a calculation element

emptyNonRelevant boolean <optional>

Whether to set the calculation result to empty if non-relevant

(static) _updateValue(control, props, result)

Source:

Updates a control's value after a calculation.

Parameters:
Name Type Description
control Element

view element containing calculation

props *

properties of a calculation element

result *

result of a calculation

(static) performAction(action, eventopt)

Source:

Runs actions.

Parameters:
Name Type Attributes Description
action 'setvalue' | 'setgeopoint'

the action to perform.

event CustomEvent <optional>

the event type that triggered the action.

(static) update(updated, filteropt, emptyNonRelevantopt)

Source:

Updates calculated items.

Parameters:
Name Type Attributes Description
updated UpdatedDataNodes

the object containing info on updated data nodes

filter string <optional>

CSS selector filter

emptyNonRelevant boolean <optional>

Whether to empty non-relevant calculation nodes