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

Method each

src/data/SeriesData.ts:891–913  ·  view source on GitHub ↗
(
        dims: ItrParamDims | EachCb<Ctx>,
        cb: EachCb<Ctx> | Ctx,
        ctx?: Ctx
    )

Source from the content-addressed store, hash-verified

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 */

Callers 6

mapArrayMethod · 0.95
constructorMethod · 0.45
selectRangeMethod · 0.45
modifyMethod · 0.45
eachItemGraphicElMethod · 0.45
SeriesDataClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected