VivaGraphJS icon indicating copy to clipboard operation
VivaGraphJS copied to clipboard

Composite node with constant layout

Open ZeroX-DG opened this issue 6 years ago • 1 comments

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?

ZeroX-DG avatar Aug 27 '18 11:08 ZeroX-DG

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?

ZeroX-DG avatar Aug 27 '18 11:08 ZeroX-DG