(l)
| 1195 | return [ (p[0] - translate[0]) / scale, (p[1] - translate[1]) / scale ]; |
| 1196 | } |
| 1197 | function point(l) { |
| 1198 | return [ l[0] * scale + translate[0], l[1] * scale + translate[1] ]; |
| 1199 | } |
| 1200 | function scaleTo(s) { |
| 1201 | scale = Math.max(scaleExtent[0], Math.min(scaleExtent[1], s)); |
| 1202 | } |
no test coverage detected