'Hierarchy - Top' layout is not applying hierarchical physics
patrickmcelwee opened this issue · comments
This is known good in https://github.com/grtjn/ml-visjs-graph.js/tree/0.4.0 and known bad in whatever version @grtjn is running locally :-).
Creating this issue to help with debugging.
You are right. I observed this when I was working on #15, and edge styling was getting lost altogether. I was trying to pass through complete options in setOptions to resolve this, but that just made things worse. In the end I am still keeping a shadow options object, but passing in diffs only to setOptions (except initially). The culprit with the edges was, that I had to pass through a complete edges.smooth object, not just a loose edges.smooth.type property.