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

Function _getInterpolationMethod

src/elements/element.line.js:195–205  ·  view source on GitHub ↗

* @private

(options)

Source from the content-addressed store, hash-verified

193 * @private
194 */
195function _getInterpolationMethod(options) {
196 if (options.stepped) {
197 return _steppedInterpolation;
198 }
199
200 if (options.tension || options.cubicInterpolationMode === 'monotone') {
201 return _bezierInterpolation;
202 }
203
204 return _pointInLine;
205}
206
207function strokePathWithCache(ctx, line, start, count) {
208 let path = line._path;

Callers 1

interpolateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected