MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / clamp

Function clamp

app.js:223–225  ·  view source on GitHub ↗
(n, lo, hi)

Source from the content-addressed store, hash-verified

221}
222
223function clamp(n, lo, hi) {
224 return Math.max(lo, Math.min(hi, n));
225}
226
227function applyViewportTransform() {
228 if (!previewViewport) return;

Callers 10

applyViewportTransformFunction · 0.70
ensureRulersFunction · 0.70
zoomToSelectionFunction · 0.70
setZoomFunction · 0.70
zoomAtPointFunction · 0.70
app.jsFile · 0.70
updatePreviewSizeFunction · 0.70
onResizeMoveFunction · 0.70
onMouseMoveFunction · 0.70
openContextMenuFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected