canvas icon indicating copy to clipboard operation
canvas copied to clipboard

Improve Auto-Arrange function of pipeline canvas

Open romeokienzler opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. Larger pipelines get overwhelmingly confusing. The auto-format feature then is not handy anymore as it arranges all nodes horizontally or vertically.

Describe the solution you'd like Introduce a "line break" where nodes get arranged horizontally until a certain (configurable) with is reached, then it automatically starts in the next row and so on

Describe alternatives you've considered Automatic horizontal arrangement of all elements, then move blocks around...

Additional context

romeokienzler avatar Mar 18 '21 13:03 romeokienzler

Please transfer this issue to the canvas repo.

lresende avatar Mar 18 '21 13:03 lresende

@ptitzler mni tnx!

romeokienzler avatar Mar 18 '21 15:03 romeokienzler

@lresende Elyra canvas provides a basic horizontal (and a vertical) auto-arrange algorithm but more application specific auto-arrangements don't necessarily have to be implemented inside Elyra canvas. The host application, in this case Elyra, can calculate whatever x and y co-ordinates it wants for the nodes, based on its own layout algorithm, and then feed them to Elyra canvas either in the pipeline flow document or by calling the CanvasController API to set node positions individually.

The general guidance for adding function in to Elyra Canvas should be we add things:

  1. when a feature is required by more than one host app team
  2. when a feature cannot be implemented by a host app developer. e.g. direct manipulation gestures

So in this case, unless other teams want the exact same type of auto-arrange I think it should be implemented outside of Elyra Canvas.

tomlyn avatar Mar 18 '21 17:03 tomlyn