(geo, geoLayout)
| 10 | var zoomendStyle = {cursor: 'auto'}; |
| 11 | |
| 12 | function createGeoZoom(geo, geoLayout) { |
| 13 | var projection = geo.projection; |
| 14 | var zoomConstructor; |
| 15 | |
| 16 | if(geoLayout._isScoped) { |
| 17 | zoomConstructor = zoomScoped; |
| 18 | } else if(geoLayout._isClipped) { |
| 19 | zoomConstructor = zoomClipped; |
| 20 | } else { |
| 21 | zoomConstructor = zoomNonClipped; |
| 22 | } |
| 23 | |
| 24 | // TODO add a conic-specific zoom |
| 25 | |
| 26 | return zoomConstructor(geo, projection); |
| 27 | } |
| 28 | |
| 29 | module.exports = createGeoZoom; |
| 30 |
no outgoing calls
no test coverage detected
searching dependent graphs…