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

Function checkInRange

src/component/brush/visualEncoding.ts:298–312  ·  view source on GitHub ↗
(
    seriesModel: SeriesModel,
    rangeInfoList: BrushSelectableArea[],
    data: ReturnType<SeriesModel['getData']>,
    dataIndex: number
)

Source from the content-addressed store, hash-verified

296}
297
298function checkInRange(
299 seriesModel: SeriesModel,
300 rangeInfoList: BrushSelectableArea[],
301 data: ReturnType<SeriesModel['getData']>,
302 dataIndex: number
303) {
304 for (let i = 0, len = rangeInfoList.length; i < len; i++) {
305 const area = rangeInfoList[i];
306 if (seriesModel.brushSelector(
307 dataIndex, data, area.selectors, area
308 )) {
309 return true;
310 }
311 }
312}
313
314function brushModelNotControll(brushModel: BrushModel, seriesIndex: number): boolean {
315 const seriesIndices = brushModel.option.seriesIndex;

Callers 2

stepAOthersFunction · 0.85
brushVisualFunction · 0.85

Calls 1

brushSelectorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…