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

Function capControlPoint

src/helpers/helpers.curve.ts:157–159  ·  view source on GitHub ↗
(pt: number, min: number, max: number)

Source from the content-addressed store, hash-verified

155}
156
157function capControlPoint(pt: number, min: number, max: number) {
158 return Math.max(Math.min(pt, max), min);
159}
160
161function capBezierPoints(points: SplinePoint[], area: ChartArea) {
162 let i, ilen, point, inArea, inAreaPrev;

Callers 1

capBezierPointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected