Skip to content

cola.drag() throws errors with d3v7 #326

Description

@l0drex

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:

Uncaught TypeError: position is undefined
    drag layout.js:532
    drag d3v4adaptor.js:31
    call d3.v7.js:1431
    gesture d3.v7.js:2665
    mousemoved d3.v7.js:2588
    contextListener d3.v7.js:2215
    onAdd d3.v7.js:2254
    selection_each d3.v7.js:1889
    selection_on d3.v7.js:2277
    mousedowned d3.v7.js:2572
    contextListener d3.v7.js:2215
    onAdd d3.v7.js:2254
    selection_each d3.v7.js:1889
    selection_on d3.v7.js:2277
    drag d3.v7.js:2558
    selection_call d3.v7.js:1855
    drag d3v4adaptor.js:38
    selection_call d3.v7.js:1855

Since d3v7 seems to use an adaptor to d3v4, I checked if it works using d3v4 directly, and it does work there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions