MCPcopy Index your code
hub / github.com/apache/echarts / checkPropInLink

Function checkPropInLink

src/component/axisPointer/modelHelper.ts:346–350  ·  view source on GitHub ↗
(linkPropValue: number[] | number | string | string[] | 'all', axisPropValue: number | string)

Source from the content-addressed store, hash-verified

344}
345
346function checkPropInLink(linkPropValue: number[] | number | string | string[] | 'all', axisPropValue: number | string) {
347 return linkPropValue === 'all'
348 || (isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0)
349 || linkPropValue === axisPropValue;
350}
351
352export function fixValue(axisModel: AxisBaseModel) {
353 const axisInfo = getAxisInfo(axisModel);

Callers 1

getLinkGroupIndexFunction · 0.85

Calls 1

isArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…