I am developing a business process animation. It works great except when I use groups, then I get a reformatting ‘jump’ whenever I add a token to the animation.
Example:
https://clients.areaweb.cl/.pub/localjson-group-anim.html
the code that adds the token is at line 283:
function add_token(tick) {
const found = anims.filter(x => x.start === tick);
found.forEach(token => {
token.increment = 1 / (token.end - token.start);
token.category = 'token';
token.frac = 0;
token.isLayoutPositioned = false;
diagram.model.addNodeData(token);
})
}
If I disable the call to addNodeData, there are no jumps, but also no animation.