MCPcopy Create free account
hub / github.com/chartjs/Chart.js / easeInOutBack

Function easeInOutBack

src/helpers/helpers.easing.ts:92–98  ·  view source on GitHub ↗
(t: number)

Source from the content-addressed store, hash-verified

90 },
91
92 easeInOutBack(t: number) {
93 let s = 1.70158;
94 if ((t /= 0.5) < 1) {
95 return 0.5 * (t * t * (((s *= (1.525)) + 1) * t - s));
96 }
97 return 0.5 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2);
98 },
99
100 easeInBounce: (t: number) => 1 - effects.easeOutBounce(1 - t),
101

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected