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

Function clamp

src/cm/touchSelectionMenu.js:118–120  ·  view source on GitHub ↗
(value, min, max)

Source from the content-addressed store, hash-verified

116}
117
118function clamp(value, min, max) {
119 return Math.max(min, Math.min(max, value));
120}
121
122export default function createTouchSelectionMenu(view, options = {}) {
123 return new TouchSelectionMenuController(view, options);

Callers 1

clampMenuPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected