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

Method getColor

src/common/overlay/levelRenderer/Color.js:247–251  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Color.prototype.getColor * @description 获取色板颜色。 * @param {number} idx - 色板位置。 * @param {Array. } userPalete - 色板。 * @returns {string} 颜色值。

(idx, userPalete)

Source from the content-addressed store, hash-verified

245 * @returns {string} 颜色值。
246 */
247 getColor(idx, userPalete) {
248 idx = idx | 0;
249 userPalete = userPalete || this.palette;
250 return userPalete[idx % userPalete.length];
251 }
252
253 /**
254 * @function LevelRenderer.Tool.Color.prototype.customHighlight

Callers 13

ColorSpec.jsFile · 0.45
StyleUtilsSpec.jsFile · 0.45
matchFillColorFunction · 0.45
mapv.3d.jsFile · 0.45
vFunction · 0.45
mapv.min.jsFile · 0.45
drawGrayFunction · 0.45
mapv.jsFile · 0.45
ol.jsFile · 0.45
sFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected