MCPcopy Create free account
hub / github.com/chartjs/Chart.js / helpers.easing.ts

File helpers.easing.ts

src/helpers/helpers.easing.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import {PI, TAU, HALF_PI} from './helpers.math.js';
2
3const atEdge = (t: number) => t === 0 || t === 1;
4const elasticIn = (t: number, s: number, p: number) => -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * TAU / p));

Callers

nothing calls this directly

Calls 3

atEdgeFunction · 0.85
elasticInFunction · 0.85
elasticOutFunction · 0.85

Tested by

no test coverage detected