grtjn / ml-visjs-graph.js

Graph visualization for triples stored in MarkLogic, based on the VisJS Network library

Home Page:https://grtjn.github.io/ml-visjs-graph.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'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.

commented

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.

commented

It was actually related to #11, or maybe both 11 and 15..