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

Function ifMarkLineHasOnlyDim

src/component/marker/MarkLineView.ts:162–172  ·  view source on GitHub ↗
(
    dimIndex: number,
    fromCoord: ScaleDataValue[],
    toCoord: ScaleDataValue[],
    coordSys: CoordinateSystem
)

Source from the content-addressed store, hash-verified

160
161// If a markLine has one dim
162function ifMarkLineHasOnlyDim(
163 dimIndex: number,
164 fromCoord: ScaleDataValue[],
165 toCoord: ScaleDataValue[],
166 coordSys: CoordinateSystem
167) {
168 const otherDimIndex = 1 - dimIndex;
169 const dimName = coordSys.dimensions[dimIndex];
170 return isInfinity(fromCoord[otherDimIndex]) && isInfinity(toCoord[otherDimIndex])
171 && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);
172}
173
174function markLineFilter(
175 coordSys: CoordinateSystem,

Callers 1

markLineFilterFunction · 0.85

Calls 3

isInfinityFunction · 0.70
containDataMethod · 0.45
getAxisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…