(ctx, line, start, count)
| 217 | } |
| 218 | |
| 219 | function strokePathDirect(ctx, line, start, count) { |
| 220 | const {segments, options} = line; |
| 221 | const segmentMethod = _getSegmentMethod(line); |
| 222 | |
| 223 | for (const segment of segments) { |
| 224 | setStyle(ctx, options, segment.style); |
| 225 | ctx.beginPath(); |
| 226 | if (segmentMethod(ctx, line, segment, {start, end: start + count - 1})) { |
| 227 | ctx.closePath(); |
| 228 | } |
| 229 | ctx.stroke(); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | const usePath2D = typeof Path2D === 'function'; |
| 234 |
no test coverage detected