-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cola.drag() throws errors with d3v7 #326
Comments
Did you find a solution for this? |
No, I'm not using the drag function anymore. You could try to write your own adaptor like this one |
Thanks. I'll look into it :) |
v7 same problem . how to make my own adaotor ? still no drag moving and no error console . thanks |
I ended up copying the d3v4 adapter linked above and simplifying it a bit. Turned out I could avoid using the internal imports (at least for my use case) with a few tweaks, and by converting it to JS so the TypeScript time were redundant. |
selection.call(cola.drag) throws a bunch of errors when using the latest d3 version, d3v7. When using cola.js (not the min version), the output is as follows:
Since d3v7 seems to use an adaptor to d3v4, I checked if it works using d3v4 directly, and it does work there.
The text was updated successfully, but these errors were encountered: