* @param {LineElement} line - the line * @returns {function} * @private
(line)
| 183 | * @private |
| 184 | */ |
| 185 | function _getSegmentMethod(line) { |
| 186 | const opts = line.options; |
| 187 | const borderDash = opts.borderDash && opts.borderDash.length; |
| 188 | const useFastPath = !line._decimated && !line._loop && !opts.tension && opts.cubicInterpolationMode !== 'monotone' && !opts.stepped && !borderDash; |
| 189 | return useFastPath ? fastPathSegment : pathSegment; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * @private |
no outgoing calls
no test coverage detected