MCPcopy
hub / github.com/chartjs/Chart.js / splitByStyles

Function splitByStyles

src/helpers/helpers.segment.js:265–270  ·  view source on GitHub ↗

* @param {Segment[]} segments * @param {PointElement[]} points * @param {object} [segmentOptions] * @return {Segment[]}

(line, segments, points, segmentOptions)

Source from the content-addressed store, hash-verified

263 * @return {Segment[]}
264 */
265function splitByStyles(line, segments, points, segmentOptions) {
266 if (!segmentOptions || !segmentOptions.setContext || !points) {
267 return segments;
268 }
269 return doSplitByStyles(line, segments, points, segmentOptions);
270}
271
272/**
273 * @param {LineElement} line

Callers 1

_computeSegmentsFunction · 0.85

Calls 1

doSplitByStylesFunction · 0.85

Tested by

no test coverage detected