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

Function parseCssFloat

libs/echarts/echarts-en.simple.js:3798–3803  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3796}
3797
3798function parseCssFloat(str) { // float or percentage.
3799 if (str.length && str.charAt(str.length - 1) === '%') {
3800 return clampCssFloat(parseFloat(str) / 100);
3801 }
3802 return clampCssFloat(parseFloat(str));
3803}
3804
3805function cssHueToRgb(m1, m2, h) {
3806 if (h < 0) {

Callers 2

parseFunction · 0.70
hsla2rgbaFunction · 0.70

Calls 1

clampCssFloatFunction · 0.70

Tested by

no test coverage detected