kieler / elkjs

ELK's layout algorithms for JavaScript
Other
1.77k stars 97 forks source link

Converting from klayjs to elkjs #95

Closed Malte-Hansen closed 4 years ago

Malte-Hansen commented 4 years ago

Greetings to everybody!

I am currently working on the ExplorViz project to enhance certain quality characteristics of the frontend code. Surprisingly, the project still uses klayjs (predecessor of elkjs) and an update to elkjs is highly desirable. However, as of now I am not certain how some of the layout options which we currently use have changed their name and to the best of my kowledge there is no documentation which helps to identify the corresponding layout options. Therefore, I seek help in finding the corresponding layout options for the following properties (if such exist):

The current implementation for the construction of the graph for which these properties are used can be looked up here. For the remaining layout options which we use I am quite confident to have found a matching property using the ELK reference. Thanks a lot for your advice in advance.

uruuru commented 4 years ago

There used to be legacy ids which hinted at the new layout option. They were removed as part of the last release though.

Regarding node and edge spacings you can have a look at the spacings example. There's no factor option anymore. All options are absolute values.

Border spacing got replaced by padding.

minWidth and minHeight were replaced by nodeSize.minimum.

Malte-Hansen commented 4 years ago

Thanks a lot, this answers my question.