Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Angle-changing tree layout

$
0
0

@Deuchnord1 wrote:

I'm quite new with GoJS and I would like to make an UML class diagram. I'm using the sample to begin. To make the diagram as easy to read as possible, I would like the generalizations to use a vertical tree layout (angle = 90°) and the aggregations to use an horizontal tree layout (angle = 0°), like in this picture (where I have just moved Course class manually for the example) :

The Course class would be in a tree with an 0° angle.

I could make tree layouts on aggregations by changing the convertIsTreeLink function like this:

function convertIsTreeLink(r) {
     return (r === "generalization" || r === "aggregation");
}

but I could not change the angle only for aggregations without alternate generalizations too.

Is it possible to use both angles like in the pictures above?

Thanks for your help

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles