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

Function normalizeSegment

src/helpers/helpers.segment.js:26–33  ·  view source on GitHub ↗
({start, end, count, loop, style})

Source from the content-addressed store, hash-verified

24}
25
26function normalizeSegment({start, end, count, loop, style}) {
27 return {
28 start: start % count,
29 end: end % count,
30 loop: loop && (end - start + 1) % count === 0,
31 style
32 };
33}
34
35function getSegment(segment, points, bounds) {
36 const {property, start: startBound, end: endBound} = bounds;

Callers 1

_boundSegmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected