MCPcopy
hub / github.com/apache/echarts / evaluate

Method evaluate

src/util/conditionalExpression.ts:284–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 subCondList: FilterComparator[];
283
284 evaluate() {
285 const needParse = !!this.valueParser;
286 // Call getValue with no `this`.
287 const getValue = this.getValue;
288 const tarValRaw = getValue(this.valueGetterParam);
289 const tarValParsed = needParse ? this.valueParser(tarValRaw) : null;
290
291 // Relational cond follow "and" logic internally.
292 for (let i = 0; i < this.subCondList.length; i++) {
293 if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) {
294 return false;
295 }
296 }
297 return true;
298 }
299}
300
301function parseOption(

Callers

nothing calls this directly

Calls 2

getValueFunction · 0.85
evaluateMethod · 0.65

Tested by

no test coverage detected