MCPcopy Create free account
hub / github.com/plotly/plotly.js / constrain

Function constrain

src/traces/image/calc.js:54–56  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

52}
53
54function constrain(min, max) {
55 return function(c) { return Lib.constrain(c, min, max);};
56}
57
58// Generate a function to scale color components according to zmin/zmax and the colormodel
59function makeScaler(trace) {

Callers 2

makeScalerFunction · 0.85
onlyConstrainedPointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…