Skip to content

Alignment of Nodes (Parent and children vertically) #19

Open

Description

@basnetjiten

Hi thanks for this awesome package. I have little concern regarding alignment of the Nodes. I am creating a family Tree, I want to align the nodes at center so that two children nodes align accordingly to top node , I tired to show them visually here.
Brackets [ ] represent the nodes, there childres nodes

IMG_20230122_114143

Please guide me through the right path, it is doable.

Activity

  1. changed the title [-]Align Node[/-] [+]Alignment of Nodes (Parent and children vertically)[/+] on Jan 22, 2023
  2. lempiy commented on Jan 23, 2023

    @lempiy
    Owner

    Hello.
    This package uses grid approach for graph representation, meaning that graph's underlying coordinate space is, basically, a 2d Matrix.
    Drawing trees in manner above goes out of current grid algorithm capabilities. If you want to draw tree in symmetrical but non grid manner you may try other packages. For instance this:
    https://pub.dev/packages/graphview .

    I think, in future releases feature like this would be added by creating a gap in the center of even node children.

    |_|_|x|_|_|
    |x|x|_|x|x|
    

    But thats is also not 100% perfect solution.

  3. added
    enhancementNew feature or request
    questionFurther information is requested
    on Mar 7, 2023
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

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions