VivaGraphJS
VivaGraphJS copied to clipboard
Composite node with constant layout
Hi, thank you for this awesome lib. I'm creating a composite node (rect + text) with a constant layout. However the g
has no x
and y
and we must use transform
but the constant layout placeNode
doesn't let people to handle this the how do we do that? I have tried to create a graphic and use its placeNode
function to handle it. However, when I call addLink
the node in the constant layout placeNode
function lost its' data. I could create a solution for that but is there a more "native" way?
Oh found the solution. After calling addLink
the node in placeNode
of the constant layout suddenly moved to the id
property. (node.data
=> node.id.data
) I don't know why is this a bug?