({start, end, count, loop, style})
| 24 | } |
| 25 | |
| 26 | function normalizeSegment({start, end, count, loop, style}) { |
| 27 | return { |
| 28 | start: start % count, |
| 29 | end: end % count, |
| 30 | loop: loop && (end - start + 1) % count === 0, |
| 31 | style |
| 32 | }; |
| 33 | } |
| 34 | |
| 35 | function getSegment(segment, points, bounds) { |
| 36 | const {property, start: startBound, end: endBound} = bounds; |