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

Method pathSegment

src/elements/element.line.js:394–397  ·  view source on GitHub ↗

* Append a segment of this line to current path. * @param {CanvasRenderingContext2D} ctx * @param {object} segment * @param {number} segment.start - start index of the segment, referring the points array * @param {number} segment.end - end index of the segment, referring the points array

(ctx, segment, params)

Source from the content-addressed store, hash-verified

392 * @returns {undefined|boolean} - true if the segment is a full loop (path should be closed)
393 */
394 pathSegment(ctx, segment, params) {
395 const segmentMethod = _getSegmentMethod(this);
396 return segmentMethod(ctx, this, segment, params);
397 }
398
399 /**
400 * Append all segments of this line to current path.

Callers

nothing calls this directly

Calls 1

_getSegmentMethodFunction · 0.85

Tested by

no test coverage detected