MCPcopy Index your code
hub / github.com/tdewolff/minify / parseCssFloat

Function parseCssFloat

_benchmarks/sample_echarts.js:2443–2449  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

2441 return clampCssByte(parseInt(str, 10));
2442 }
2443 function parseCssFloat(val) {
2444 var str = val;
2445 if (str.length && str.charAt(str.length - 1) === '%') {
2446 return clampCssFloat(parseFloat(str) / 100);
2447 }
2448 return clampCssFloat(parseFloat(str));
2449 }
2450 function cssHueToRgb(m1, m2, h) {
2451 if (h < 0) {
2452 h += 1;

Callers 3

parseFunction · 0.85
hsla2rgbaFunction · 0.85
modifyHSLFunction · 0.85

Calls 1

clampCssFloatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…