()
| 1143 | translate[1] += p[1] - l[1]; |
| 1144 | } |
| 1145 | function rescale() { |
| 1146 | if (x1) x1.domain(x0.range().map(function(x) { |
| 1147 | return (x - translate[0]) / scale; |
| 1148 | }).map(x0.invert)); |
| 1149 | if (y1) y1.domain(y0.range().map(function(y) { |
| 1150 | return (y - translate[1]) / scale; |
| 1151 | }).map(y0.invert)); |
| 1152 | } |
| 1153 | function dispatch(event) { |
| 1154 | rescale(); |
| 1155 | d3.event.preventDefault(); |
no outgoing calls
no test coverage detected