(
dims: ItrParamDims | EachCb<Ctx>,
cb: EachCb<Ctx> | Ctx,
ctx?: Ctx
)
| 889 | each<Ctx>(dims: [DimensionLoose, DimensionLoose], cb: EachCb2<Ctx>, ctx?: Ctx): void; |
| 890 | each<Ctx>(dims: ItrParamDims, cb: EachCb<Ctx>, ctx?: Ctx): void; |
| 891 | each<Ctx>( |
| 892 | dims: ItrParamDims | EachCb<Ctx>, |
| 893 | cb: EachCb<Ctx> | Ctx, |
| 894 | ctx?: Ctx |
| 895 | ): void { |
| 896 | 'use strict'; |
| 897 | |
| 898 | if (zrUtil.isFunction(dims)) { |
| 899 | ctx = cb as Ctx; |
| 900 | cb = dims; |
| 901 | dims = []; |
| 902 | } |
| 903 | |
| 904 | // ctxCompat just for compat echarts3 |
| 905 | const fCtx = (ctx || this) as CtxOrList<Ctx>; |
| 906 | |
| 907 | const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); |
| 908 | |
| 909 | this._store.each(dimIndices, (fCtx |
| 910 | ? zrUtil.bind(cb as any, fCtx as any) |
| 911 | : cb) as any |
| 912 | ); |
| 913 | } |
| 914 | /** |
| 915 | * Data filter |
| 916 | */ |
no outgoing calls
no test coverage detected