Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply layout to all/multiple layers #4892

Open
2 tasks done
RSmain opened this issue Feb 9, 2025 · 0 comments
Open
2 tasks done

Apply layout to all/multiple layers #4892

RSmain opened this issue Feb 9, 2025 · 0 comments

Comments

@RSmain
Copy link

RSmain commented Feb 9, 2025

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
My use case are multi-layer network/IT infrastructure plans. To avoid the tedious task of arranging items, moving them arround for expansions and always having some degree of misalignment and conflicts about layout and level of detail, I rely on the automatic "mxFastOrganicLayout" and use Draw.io more like a link charting solution. For comparison, the result looks somewhat like a Maltego chart (but Maltego would be too heavy and license-restricted for that purpose).

And here's the problem: The "mxFastOrganicLayout", or any layout, only applies to one layer at a time. For example, I put networks, routers, and endpoints on one layer, link them, and then link service objects (SSH, web etc.) to the endpoints on another layer.
The automatic layout will re-arrange the network layer, while all the service objects will stay where they are, and their edges to the nodes on the other layer are now going across the page. I didn't find a solution to arrange them automatically, relatively to the nodes on the other layer. A partial solution is to only move the edges to a different layer, of course. But having all nodes on the same layer still is a severe restriction for larger diagrams.

Describe the solution you'd like
When I asked ChatGPT about this, it "invented" the option to select multiple layers in the layer overview before applying the layout. That would be a perfect solution.

Describe alternatives you've considered
If the target layers cannot be selected, I wonder if it would not be the appropriate default behavior to apply layouts to nodes on all layers. The contents of different layers usually interact with each other. Otherwise, I would use pages. Therfore, I doubt that there is any case where you would want to limit the layout to the active layer. A compromise between treating all layers as one for layouts and selectable target layers would be a toggle switch for layouts, all layers vs. active layer.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant