(i)
| 109639 | } |
| 109640 | }); |
| 109641 | function ends(i) { |
| 109642 | var arc = topology.arcs[i < 0 ? ~i : i], p0 = arc[0], p1; |
| 109643 | if (topology.transform) p1 = [ |
| 109644 | 0, |
| 109645 | 0 |
| 109646 | ], arc.forEach(function(dp) { |
| 109647 | p1[0] += dp[0], p1[1] += dp[1]; |
| 109648 | }); |
| 109649 | else p1 = arc[arc.length - 1]; |
| 109650 | return i < 0 ? [ |
| 109651 | p1, |
| 109652 | p0 |
| 109653 | ] : [ |
| 109654 | p0, |
| 109655 | p1 |
| 109656 | ]; |
| 109657 | } |
| 109658 | function flush(fragmentByEnd, fragmentByStart) { |
| 109659 | for(var k in fragmentByEnd){ |
| 109660 | var f = fragmentByEnd[k]; |