(val)
| 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; |
no test coverage detected
searching dependent graphs…