MCPcopy
hub / github.com/zcreativelabs/react-simple-maps / handleZoomEnd

Function handleZoomEnd

src/components/useZoomPan.js:72–83  ·  view source on GitHub ↗
(d3Event)

Source from the content-addressed store, hash-verified

70 }
71
72 function handleZoomEnd(d3Event) {
73 if (bypassEvents.current) {
74 bypassEvents.current = false
75 return
76 }
77 const [x, y] = projection.invert(
78 getCoords(width, height, d3Event.transform)
79 )
80 lastPosition.current = { x, y, k: d3Event.transform.k }
81 if (!onMoveEnd) return
82 onMoveEnd({ coordinates: [x, y], zoom: d3Event.transform.k }, d3Event)
83 }
84
85 function filterFunc(d3Event) {
86 if (filterZoomEvent) {

Callers

nothing calls this directly

Calls 1

getCoordsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…