@Kakit wrote:
Hi,
I want to have a diagram that can show flows are moving, however, somehow the moving is not smooth but jiggling or lagging. I can see even your sample diagram here is jiggling as well. https://gojs.net/latest/samples/processFlow.html
But I remember previously the sample that you provide on the your website was moving smoothly. Is it the versioning problem?
I use the below function to move the flow.
function loop() { var diagram = myDiagram; setTimeout(function() { var oldskips = diagram.skipsUndoManager; diagram.skipsUndoManager = true; diagram.links.each(function(link) { var shape = link.findObject("PIPE"); var off = shape.strokeDashOffset - 2; shape.strokeDashOffset = (off <= 0) ? 20 : off; }); diagram.skipsUndoManager = oldskips; loop(); }, 100); }Thanks,
Kakit
Posts: 2
Participants: 2