(d3Event)
| 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) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…