Ask Your Question
0

Why do nodes of graph jump away after computeFigure()?

asked Feb 20

Arjen gravatar image Arjen
13 2 4

Trying to visualise a FSM, I stumbled on unexpected behaviour of a graph. I've put the graph in a loop and want to highligh the active state.

return computeFigure(
    bool () {
        bool recompute = runState() != current;
        current = runState();
        return recompute;
    },
    Figure () {
        return buildControllerGraph(ast, current); 
    }
);

At random the nodes jump around, sometimes correctly aligned at the center, sometimes aligned left from the center.

Okay:

image description

Unexpected:

image description

Also tried latest SVN, not working.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered Feb 21

Atze gravatar image Atze
211 2 6

This is a known bug, Paul is fixing it.

link delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]
Also see the Rascal Tutor.

Question tools

Follow

subscribe to rss feed

Stats

Asked: Feb 20

Seen: 14 times

Last updated: Feb 21