Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
223
function
clamp(n, lo, hi) {
224
return
Math.max(lo, Math.min(hi, n));
225
}
226
227
function
applyViewportTransform() {
228
if
(!previewViewport)
return
;
Callers
10
applyViewportTransform
Function · 0.70
ensureRulers
Function · 0.70
zoomToSelection
Function · 0.70
setZoom
Function · 0.70
zoomAtPoint
Function · 0.70
app.js
File · 0.70
updatePreviewSize
Function · 0.70
onResizeMove
Function · 0.70
onMouseMove
Function · 0.70
openContextMenu
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected