(p, l)
| 1201 | scale = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s)); |
| 1202 | } |
| 1203 | function translateTo(p, l) { |
| 1204 | l = point(l); |
| 1205 | translate[0] += p[0] - l[0]; |
| 1206 | translate[1] += p[1] - l[1]; |
| 1207 | } |
| 1208 | function rescale() { |
| 1209 | if (x1) x1.domain(x0.range().map(function(x) { |
| 1210 | return (x - translate[0]) / scale; |
no test coverage detected