MCPcopy Index your code
hub / github.com/plotly/plotly.js / createGeoZoom

Function createGeoZoom

src/plots/geo/zoom.js:12–27  ·  view source on GitHub ↗
(geo, geoLayout)

Source from the content-addressed store, hash-verified

10var zoomendStyle = {cursor: 'auto'};
11
12function 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
29module.exports = createGeoZoom;
30

Callers 1

geo.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…