MCPcopy
hub / github.com/chartjs/Chart.js / _limitValue

Function _limitValue

src/helpers/helpers.math.ts:186–188  ·  view source on GitHub ↗
(value: number, min: number, max: number)

Source from the content-addressed store, hash-verified

184 * @private
185 */
186export function _limitValue(value: number, min: number, max: number) {
187 return Math.max(min, Math.min(max, value));
188}
189
190/**
191 * @param {number} value

Callers 10

_int16RangeFunction · 0.85
getBackgroundPointFunction · 0.85
validIndexFunction · 0.85
initOffsetsMethod · 0.85
computeOuterLimitFunction · 0.85
parseBorderRadiusFunction · 0.85
skipOrLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected