Skip to content

Mindmap tidy-tree root edge attachment appears incorrect on right side (likely layout/edge routing issue) #7579

@bayaCh05

Description

@bayaCh05

Related to: #7572

Description

When using layout: tidy-tree in mindmap diagrams with multiple children, links between the root node and its right-side children appear visually disconnected.

This behavior is shape-dependent:

  • default / rectangle / rounded / circle → appear disconnected
  • cloud → appears correctly connected

Key observation

This does not seem to be explained purely by node shape implementation.

Both defaultMindmapNode and cloud currently use intersect.rect(...) for edge attachment, yet they render differently. This suggests the issue may not be in the shape logic itself.

Investigation

  • Tested changes to defaultMindmapNode sizing (horizontal padding reduction)
  • No significant visual improvement
  • Intersection logic (intersect.rect) behaves as expected

Hypothesis

The issue may originate from:

  • tidy-tree layout edge routing
  • or how root-to-child edge points are generated before intersection

The asymmetry (right side only) suggests a directional/layout-specific issue rather than a shape-specific one.

Reproduction

---
config:
  layout: tidy-tree
---
mindmap
  A
    B
    C
    D
    E
    F
    G
Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions