MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / clamp01

Function clamp01

src/lib/editorManager.js:2710–2714  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2708 }
2709
2710 function clamp01(value) {
2711 if (value <= 0) return 0;
2712 if (value >= 1) return 1;
2713 return value;
2714 }
2715
2716 /**
2717 * Updates the floating button visibility based on the provided show parameter.

Callers 5

onscrollVFunction · 0.85
onscrollHFunction · 0.85
setHScrollValueFunction · 0.85
setVScrollValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected