react-d3-graph icon indicating copy to clipboard operation
react-d3-graph copied to clipboard

Using d3 6.3.1 and zoom/drag problems (Supporting d3 v6.x + @types/react-d3-graph for TS)

Open mehdy-karimpour opened this issue 4 years ago • 2 comments

Describe the bug

  1. As you know, d3 from 6 version has removed d3.event global, then zooming produces an exception "Cannot read property 'transform' of undefined" because it uses var transform = _d3Selection.event.transform;(First image)

  2. Dragging produces "Cannot read property 'undefined' of undefined" exception(Second image)

To Reproduce Steps to reproduce the behavior: Use zoom/drag functionalities

Expected behavior Zooming in/out with-out exception

Screenshots image image

Environment:

  • OS Windows
  • Browser Chrome
  • Version 88.0.4324.150
  • Node version v14.15.5
  • react-d3-graph version 2.6.0
  • d3 version 6.3.1
  • react version 17.0.1

Additional context Related to issue #365 and Pull request #380

mehdy-karimpour avatar Feb 15 '21 22:02 mehdy-karimpour

Good afternoon. I was just checking on the expected timeframe for this fix. We are experiencing the same issue as described.

cooms13 avatar May 10 '21 18:05 cooms13

Has anyone found workarounds for this issue?

hizneway avatar Nov 30 '22 20:11 hizneway