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

Function startIsBefore

src/helpers/helpers.segment.js:92–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 let value, point, prevValue;
91
92 const startIsBefore = () => between(startBound, prevValue, value) && compare(startBound, prevValue) !== 0;
93 const endIsBefore = () => compare(endBound, value) === 0 || between(endBound, prevValue, value);
94 const shouldStart = () => inside || startIsBefore();
95 const shouldStop = () => !inside || endIsBefore();

Callers 1

shouldStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected