VivaGraphJS icon indicating copy to clipboard operation
VivaGraphJS copied to clipboard

Constant layout does not handle node updates

Open maksbotan opened this issue 9 years ago • 1 comments

When node is updated with constant layout, it is removed. Check line 67 of src/Layout/constant.js. I suggest to turn it into

if (change.changeType === 'add' || change.changeType === 'update') 

Same goes for line 73. When changed like that, I can successfully update my nodes.

Please comment and fix.

maksbotan avatar Oct 24 '15 14:10 maksbotan

:+1:

FGRibreau avatar Dec 28 '15 09:12 FGRibreau