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

Function clampCssFloat

libs/echarts/echarts-en.simple.js:3787–3789  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

3785}
3786
3787function clampCssFloat(f) { // Clamp to float 0.0 .. 1.0.
3788 return f < 0 ? 0 : f > 1 ? 1 : f;
3789}
3790
3791function parseCssInt(str) { // int or percentage.
3792 if (str.length && str.charAt(str.length - 1) === '%') {

Callers 1

parseCssFloatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected