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

Function initZoom

src/plots/geo/zoom.js:32–36  ·  view source on GitHub ↗
(geo, projection)

Source from the content-addressed store, hash-verified

30
31// common to all zoom types
32function initZoom(geo, projection) {
33 return d3.behavior.zoom()
34 .translate(projection.translate())
35 .scale(projection.scale());
36}
37
38// sync zoom updates with user & full layout
39function sync(geo, projection, cb) {

Callers 3

zoomScopedFunction · 0.85
zoomNonClippedFunction · 0.85
zoomClippedFunction · 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…