MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / _heatColorToGradient

Method _heatColorToGradient

src/common/mapping/WebMapV3.js:1111–1122  ·  view source on GitHub ↗
(colors = [])

Source from the content-addressed store, hash-verified

1109 }
1110
1111 _heatColorToGradient(colors = []) {
1112 const colorList = [];
1113 colors.forEach((color, index) => {
1114 if (index > 5 && index % 2 === 0) {
1115 colorList.push({
1116 value: color,
1117 key: index === 6 ? 0 : colors[index - 1]
1118 });
1119 }
1120 });
1121 return colorList;
1122 }
1123
1124 _getSettingCustom(setting) {
1125 const { value, values } = setting;

Callers 1

Calls 2

forEachMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected