MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getDimCount

Function getDimCount

libs/echarts/echarts-en.simple.js:32295–32309  ·  view source on GitHub ↗
(source, sysDims, dimsDef, optDimCount)

Source from the content-addressed store, hash-verified

32293// on other dimensions besides coordSys needed.
32294// So, dims that is not used by system, should be shared in storage?
32295function getDimCount(source, sysDims, dimsDef, optDimCount) {
32296 // Note that the result dimCount should not small than columns count
32297 // of data, otherwise `dataDimNameMap` checking will be incorrect.
32298 var dimCount = Math.max(
32299 source.dimensionsDetectCount || 1,
32300 sysDims.length,
32301 dimsDef.length,
32302 optDimCount || 0
32303 );
32304 each$1(sysDims, function (sysDimItem) {
32305 var sysDimItemDimsDef = sysDimItem.dimsDef;
32306 sysDimItemDimsDef && (dimCount = Math.max(dimCount, sysDimItemDimsDef.length));
32307 });
32308 return dimCount;
32309}
32310
32311function genName(name, map$$1, fromZero) {
32312 if (fromZero || map$$1.get(name) != null) {

Callers 1

completeDimensionsFunction · 0.70

Calls 2

maxMethod · 0.80
each$1Function · 0.70

Tested by

no test coverage detected