Skip to content

[Bug] Cannot zoom out far enough too see all nodes #17374

@jorrit-hdrn

Description

@jorrit-hdrn

Version

5.3.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=graphgl-gpu-layout&gl=1&theme=dark&code=GYVwdgxgLglg9mABBATgUwIZTQOTgEzQGcAKAdxnygAsBhOcKAGkWrRgHNqp7GBKRAG8AUIkQA3DCkRgCxRAF5EAbQC6AblGJgcaSUnSYixAAZ1iIwB5EFKnQZgo5mAGoXAkWLE69BxACtjMwDEazZObl5Hc383Dy0vGTkiADoABxAiahJPRK8AenzEAA8ALkQAWSxqFJQMMHw4AFsSAQAqGxgGuDIUrrA0FAB1ShomBLzCxABPcqqaWvrGlvbO7t7-wYAJdi5mCbzJABsQNDnqxe6Vg8QAXz5NRNutZ7F0KBAUJFlCIk1n0CQWAIZDoLBoACi-A4xHIo3sjBY4T2USg8TEfjQ0PkSjUj20ukQ-ikFiCzlCnTsqOccSEEx8RL8gSUwUCYV2kQcTgCtNyiRgwCJVkpNFRiAAtIgAIzovJiLEw1IZLI5G6JIgMFAQM6klwhDq2UVc8ZyxJQKQwqDlIx6qWIPWBA3w1Em00YjAnHVStV3B43V55AVEtmsDk8LkS6WyuUK4jpTLZPmmjWfbXW-36kUIxyut3mlCW9N6kiBW2rQ3Z_Zu92e8ret33fFPCYBgPvT5IWN_YTPPw_HGgzDYPC_EhSkwmFjjkx-zHYojGVBDyHzkgAVkniA3frgaWBSCUuSIgxgxHKygmSbERAgHrQABkYE0YFahIhn2ByiYUhPfxOpSwTQYGU0oTncuZeNqjiDOeADkG4AKSwSw8EmEhqgQWIABecDNHWmGIFA0xpDqsEcHUaTUAA4veyE3P2RDlAxBFduUXYES-aBNAAykRRw6lekFwEcujlLBBYAEYYCQABMa5rkwckKUpTDfgAHHwsH-gRRxdGgvHTPx5SCWIEDCaJiDiRwUmyfJil2Sp6maQRYgVuUADM2k3D42oAIJQEcGBEDJxk-kQ2BpIxW4uQEL7YCgAAqwmDGgkBepOPqxkMYYAJJgMAnppV-P71nkAZiAGqg9uoQA

Steps to Reproduce

Open the provided example.
See that the "orphaned" nodes move outside of the viewport.
Try to zoom out
See that you cannot get all nodes in viewport

Current Behavior

The orphan nodes move out of the viewport and i cannot zoom out far enough to get them all in the viewport.

Expected Behavior

I would expect to be able to zoom out far enough to see all the nodes of the graph.

Environment

- OS: MacOs Monterey
- Browser: Chrome
- Framework: none

Any additional comments?

When there are no orphans, like in this example:

You can zoom almost zoom out far enough. This leads me to suspect that the zoom is calculated based on the bounding box of the edges and not the bbox of the nodes, but i'm just guessing here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions