eclipse / elk

Eclipse Layout Kernel - Automatic layout for Java applications.
https://www.eclipse.org/elk/
Other
251 stars 83 forks source link

Hide content of node in org.eclipse.elk.alg.layered #324

Closed Nic30 closed 6 years ago

Nic30 commented 6 years ago

Hello,

is there an property which controls rendering of child nodes? I have a graph where some nodes has children nodes and children links specified I would like to hide them.

uruuru commented 6 years ago

There's an option NO_LAYOUT which can be set on nodes and edges that shall be excluded during layout. Maybe that's what you seek?

Nic30 commented 6 years ago

NO_LAYOUT option excludes node completely from layout I would like to only hide child nodes inside of node. Currently I am using NO_LAYOUT option on all child nodes.

uruuru commented 6 years ago

Can you elaborate, maybe with an illustration, what the difference between no layout and the behavior you desire is?

Nic30 commented 6 years ago

Just ignore wrong offset of port markers for the moment.

I do have: screenshot from 2018-04-26 18-04-18

(node has single child named connection)

Desired output:

screenshot from 2018-04-26 18-04-52

(node still has single child and it has NO_LAYOUT property set)

Problem is that it is required to set NO_LAYOUT on all children, which can be time consuming.

spoenemann commented 6 years ago

What diagramming framework are you using?

Nic30 commented 6 years ago

Diagram layout: https://github.com/OpenKieler/elkjs self updated to use elk 0.4.0-SNAPSHOT. Graphic: https://github.com/OpenKieler/klayjs-d3 self updated + custom js. Diagrams comes from hardware description and are modified for better readability.

But I think NO_LAYOUT prop. is enough, I will close this issue as I no longer solving this issue.