(project)
| 134116 | return +delta2 ? resample(project, delta2) : resampleNone(project); |
| 134117 | }; |
| 134118 | function resampleNone(project) { |
| 134119 | return (0, _transformJs.transformer)({ |
| 134120 | point: function(x, y) { |
| 134121 | x = project(x, y); |
| 134122 | this.stream.point(x[0], x[1]); |
| 134123 | } |
| 134124 | }); |
| 134125 | } |
| 134126 | function resample(project, delta2) { |
| 134127 | function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) { |
| 134128 | var dx = x1 - x0, dy = y1 - y0, d2 = dx * dx + dy * dy; |
no test coverage detected