* @returns {any}
(options)
| 26 | * @returns {any} |
| 27 | */ |
| 28 | function 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 | |
| 40 | function pathVars(points, segment, params = {}) { |
| 41 | const count = points.length; |