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

Method random

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

* @function LevelRenderer.Tool.Color.prototype.random * @description 随机颜色 * @returns {string} 颜色值,#rrggbb格式

()

Source from the content-addressed store, hash-verified

736 * @returns {string} 颜色值,#rrggbb格式
737 */
738 random() {
739 return '#' + Math.random().toString(16).slice(2, 8);
740 }
741
742 /**
743 * @function LevelRenderer.Tool.Color.prototype.getData

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected