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

Function boolean

src/core/core.animation.js:7–9  ·  view source on GitHub ↗
(from, to, factor)

Source from the content-addressed store, hash-verified

5const transparent = 'transparent';
6const interpolators = {
7 boolean(from, to, factor) {
8 return factor > 0.5 ? to : from;
9 },
10 /**
11 * @param {string} from
12 * @param {string} to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected