The old API of DirectedGraph had to count with the possibility that the API is being called from the dia.Graph object. To be able to do that, it made use of call and bind methods. With the separation of DirectedGraph as a separate plugin, there is no longer any need for these complications.
Also fixes the docs of the fromGraphLib() function for the case where a new JointJS Graph is created from a Graphlib graph, and adds a test.
Description
The old API of DirectedGraph had to count with the possibility that the API is being called from the
dia.Graph
object. To be able to do that, it made use ofcall
andbind
methods. With the separation of DirectedGraph as a separate plugin, there is no longer any need for these complications.Also fixes the docs of the
fromGraphLib()
function for the case where a new JointJS Graph is created from a Graphlib graph, and adds a test.