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

Function liftColor

libs/echarts/echarts-en.simple.js:17094–17107  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

17092var liftedColorCount = 0;
17093
17094function liftColor(color) {
17095 if (typeof color !== 'string') {
17096 return color;
17097 }
17098 var liftedColor = liftedColorMap.get(color);
17099 if (!liftedColor) {
17100 liftedColor = lift(color, -0.1);
17101 if (liftedColorCount < 10000) {
17102 liftedColorMap.set(color, liftedColor);
17103 liftedColorCount++;
17104 }
17105 }
17106 return liftedColor;
17107}
17108
17109function cacheElementStl(el) {
17110 if (!el.__hoverStlDirty) {

Callers 1

Calls 3

liftFunction · 0.70
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected