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

Function getLineMethod

src/elements/element.line.js:28–38  ·  view source on GitHub ↗

* @returns {any}

(options)

Source from the content-addressed store, hash-verified

26 * @returns {any}
27 */
28function getLineMethod(options) {
29 if (options.stepped) {
30 return _steppedLineTo;
31 }
32
33 if (options.tension || options.cubicInterpolationMode === 'monotone') {
34 return _bezierCurveTo;
35 }
36
37 return lineTo;
38}
39
40function pathVars(points, segment, params = {}) {
41 const count = points.length;

Callers 1

pathSegmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected