MCPcopy Index your code
hub / github.com/microsoft/SandDance / evaluate

Function evaluate

docs/app/js/sanddance-app.js:107629–107637  ·  view source on GitHub ↗

* Delegate method to perform operator processing. * Subclasses can override this method to perform custom processing. * By default, it marshalls parameters and calls the update function * if that function is defined. If the update function does not * change the operator value then StopPr

(pulse2)

Source from the content-addressed store, hash-verified

107627 * @return The output pulse or StopPropagation. A falsy return value
107628 * (including undefined) will let the input pulse pass through.
107629 */ evaluate (pulse2) {
107630 const update2 = this._update;
107631 if (update2) {
107632 const params = this.marshall(pulse2.stamp), v = update2.call(this, params, pulse2);
107633 params.clear();
107634 if (v !== this.value) this.value = v;
107635 else if (!this.modified()) return pulse2.StopPropagation;
107636 }
107637 },
107638 /**
107639 * Run this operator for the current pulse. If this operator has already
107640 * been run at (or after) the pulse timestamp, returns StopPropagation.

Callers

nothing calls this directly

Calls 11

reentrantFunction · 0.70
asyncCallbackFunction · 0.70
UniqueListFunction · 0.70
fFunction · 0.70
resizeRendererFunction · 0.70
clearMethod · 0.65
forEachMethod · 0.45
sizeMethod · 0.45
runMethod · 0.45
errorMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected