Skip to content

When adding a node, the parent should not move on the screen #6

Description

@BentleyDavis

Right now the screen zooms out, This is slightly better than where often the node you clicked moves off the screen as the nodes move down when really the nodes should move around the note that was clicked so there isn't a jarring movement.

This can be done by:

  • Get the x/y coordinated of the node that was clicked.
  • Have Dagre calculate the new positions of all the nodes
  • get the new coordinates of the node that was clicked
  • Calculate the difference between the old x and the new x.
  • update all the x coordinates by the difference
  • do the same for y coordinates.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions