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

Function eachAxisModel

src/component/dataZoom/dataZoomProcessor.ts:40–54  ·  view source on GitHub ↗
(
            cb: (
                axisDim: DataZoomAxisDimension,
                axisIndex: number,
                axisModel: AxisBaseModel,
                dataZoomModel: DataZoomModel
            ) => void
        )

Source from the content-addressed store, hash-verified

38 getTargetSeries(ecModel) {
39
40 function eachAxisModel(
41 cb: (
42 axisDim: DataZoomAxisDimension,
43 axisIndex: number,
44 axisModel: AxisBaseModel,
45 dataZoomModel: DataZoomModel
46 ) => void
47 ) {
48 ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {
49 dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {
50 const axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);
51 cb(axisDim, axisIndex, axisModel as AxisBaseModel, dataZoomModel);
52 });
53 });
54 }
55 // FIXME: it brings side-effect to `getTargetSeries`.
56 const proxyList: AxisProxy[] = [];
57 eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {

Callers 1

getTargetSeriesFunction · 0.85

Calls 5

getAxisMainTypeFunction · 0.90
eachComponentMethod · 0.80
eachTargetAxisMethod · 0.80
getComponentMethod · 0.80
cbFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…