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

Method toHex

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

* @function LevelRenderer.Tool.Color.prototype.toHex * @description 转换为16进制颜色。 * @param {string} color - 颜色。 * @returns {string} 16进制颜色,#rrggbb格式

(color)

Source from the content-addressed store, hash-verified

523 * @returns {string} 16进制颜色,#rrggbb格式
524 */
525 toHex(color) {
526 return this.convert(color, 'hex');
527 }
528
529 /**
530 * @function LevelRenderer.Tool.Color.prototype.toHSVA

Callers 2

toNameMethod · 0.95
ColorSpec.jsFile · 0.80

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected